Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
npn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
181.
▲
by
npn
3y ago
the distinct difference between Vue and Svelte is html in Vue need to be wrapped in `<template>` tag. There is no such restriction in Svelte SFCs.
182.
▲
by
npn
3y ago
Syntax highlighting and code formatting sometime break because Svelte file is single file component format, which mean it has script, markup and style in a single file. It's rather complex to parse it right, especially when you use reg
183.
▲
by
npn
3y ago
It is transpiled to C++.
184.
▲
by
npn
3y ago
Then it's wrong too. Because it is perfectly valid js code. It is just that they repurpose the label syntax (used for breaking out of inner loops) for the reactive statement.
185.
▲
by
npn
3y ago
Could be the plugin was broken somehow. Happen all the time for me. Even now the syntax highlighting and code formatting feature would break if I write the code the wrong way. from my understanding the plugin does some clever tricks like in
186.
▲
by
npn
3y ago
you can download a html page from some website, rename it to `.svelte` and it will mostly work just fine with some minor modifications like remove the html wrapper tag and rename `<head>` to `<svelte:head>`. I don't think t
187.
▲
by
npn
3y ago
you clearly don't know what you are talking about. reactive declarations do not change the type of the objects. it just that they can rerun when the dependencies change. sure for the convenience of the users you do not need to type `le
188.
▲
by
npn
3y ago
> written in Rust What? From my knowledge Jakt is written in C++ and Jakt itself, not Rust. Sure the first implementation was written in Rust but it was quickly replaced when Adreas took over the project.
189.
▲
by
npn
3y ago
Elixir is pretty popular, and has been adopted by multi big companies. Yet from my experience it does not have any drama whatsoever.
190.
▲
by
npn
3y ago
in fact Crystal concurrency is the same with Go, both using coroutine technique. though Go should be more performance because it is built for that feature.
191.
▲
by
npn
3y ago
Crystal supports directly interacting with the IO streams, so even if it is IO-bound it still can be a lot faster.
192.
▲
by
npn
3y ago
To me Crystal is actually a more polished Ruby implementation. There was some annoying inconsistent in ruby stdlib that was corrected in Crystal, for example the modules for file/directory interaction. Ruby was my main language for scr
193.
▲
by
npn
3y ago
Almost there. From now on it it's only matter of developer experience. Like provide a installer which do all the necessary setup for you, including install Visual C++ Build Tools, LLVM and other stuff. Then the community need to update
194.
▲
by
npn
3y ago
Compilation time was a huge pain point for me, too. Dev builds took 30s to finish, completely killed the productivity. It's much better now though, after I compile the compiler myself, using glibc instead of musl, using LLVM 15 instead
195.
▲
by
npn
3y ago
> This is not to say it's never technical, just that it's rare for it to be a reason. It will be a lot more technical reason from now on, when we begin to utilize more "AI" stuff, like language models. all of those st
196.
▲
by
npn
4y ago
I work with sqlite a lot. Usually with millions rows. The last time I check my script written in crystal which read ten millions entries from the disk, remove the duplication then write the result to sqlite3 database file and it all happen
197.
▲
by
npn
4y ago
pretty sure you haven't used ipfs before. for users to download resources from ifps you either need to install the client (which quite resource intensive) or use the gateways (which is just a server and cost money to run). also the spe
198.
▲
by
npn
4y ago
I picked Crystal so I didn't have to choose.
199.
▲
by
npn
4y ago
> It made text look better on the laptop screen (high dpi) but worse on external monitors (low dpi). what profile did you choose? LCD.ini make the low DPI ones looked way nicer to me, to the point I could live without it. It looked bad o
200.
▲
by
npn
4y ago
I have used MacType for many years. The default profile is pretty bad IMO. I always switched to the LCD.ini profile right after installation. The great thing about MacType is it can somewhat fix the horrible font rendering of some applicati
201.
▲
by
npn
4y ago
8% is still admirable considering the largest trade partner of Vietnam is China whom still has strict zero-COVID policy through the year.
202.
▲
by
npn
4y ago
Safety is overrated. If safety is the most important aspect of software then we should have been using Ada for everything by now. The same with idiomatic, in order to write code in a language idiomatically, you have to spend a lot of time u
203.
▲
by
npn
4y ago
You can't use Crystal to write ruby extensions, because it has a huge runtime and a big GC. You can call Ruby script in Crystal though. [0] And I think Zig would be easier to maintain compare to Rust because it is a simpler language. S
204.
▲
by
npn
4y ago
I wonder what part of "curl has to run on many versions of a single OS" is so hard to uderstand that people keep making dumb example like this. Porting a codebase to a specific target is way easier compare to porting it to multi v
205.
▲
by
npn
4y ago
I love Elixir, but it is an extremely niche language. It's great for network application, but just doesn't seem to be suitable for a daily driver language. Meanwhile crystal can fit all the bill: you can use it to write small scri
206.
▲
by
npn
4y ago
Some language use three characters for bitwise operators, like `>>>`, `!!!`, `&&&`. I think it is a good compromise.
207.
▲
by
npn
4y ago
Well, since you only have like 2 hours of productive work per week, thousands might still not enough.
208.
▲
by
npn
4y ago
Chinese developers are famous for making apps serving 1.4 billion people, with at most 1/3 salary of US, and the willingness to do 996 a whole year around. I would be surprised that no company in the west take advanced of that.
209.
▲
by
npn
4y ago
7000 people x $300k = $2.1B And that's salary alone. The operation cost to serve all those people is a lot more. Twitter revenue last year was around $5B.
210.
▲
by
npn
4y ago
There was a long twitter thread from some one proclaimed 10+ years SRE listing a lot of things that could bring the server down. Lot of them are pretty far-fetched and outdated. Too bad I did not bother to save the link.
More ›