Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
drogus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
drogus
2y ago
I know about Jaws as a screen reader, but I don't think it is much of a conflict. WebAssembly is a niche within a niche (like a tool in a WebAssembly ecosystem within a programming ecosystem), so it will probably never grow to a popula
32.
▲
by
drogus
2y ago
These are very good questions, I'll respond here, but I'll also add more info to the README. This project is mainly targeting WebAssembly usage on the server, cause I think it makes little sense to run JavaScript in WebAssembly in
33.
▲
by
drogus
2y ago
Yeah, bun will still include V8 in the generated binary
34.
▲
by
drogus
2y ago
The binaries are a few KBs at the moment. I haven't measured the build times, cause it's too early for it to mean much. The amount of supported types and functions is very limited, so it will change a lot over time as I add more s
35.
▲
Show HN: Jaws – a JavaScript to WASM ahead-of-time compiler
(github.com)
290 points
by
drogus
2y ago
|
107 comments
36.
▲
by
drogus
2y ago
I guess it depends on what libraries you're using, but honestly a lot of very popular libraries are at 1.x and hardly change. Honestly I'm not sure where people are getting these experiences from. I feel like either they make it u
37.
▲
by
drogus
2y ago
That's not the point, though. The author says: > Rust has arrived at the complexity of Haskell and C++, each year requiring more knowledge to keep up with the latest and greatest. Go was designed as the antidote to this kind of endl
38.
▲
by
drogus
2y ago
It's funny when people mention Go as the gold standard of not adding features to the language and Rust as ever-changing when Rust hasn't introduced any major changes in at least 3-4 years and Go introduced a major paradigm shift i
39.
▲
by
drogus
2y ago
I have a similar experience, but I still use LLMs, just a bit differently. I pretty much never ask it to generate complex code. I also rarely ask for definitions or facts, cause of the tendency to generate garbage answers. What I use it for
40.
▲
by
drogus
2y ago
For me, it depends on the problem. I avoid LLMs for anything complex, cause I prefer to think it through myself. But there are often times when you know exactly what you want and you know how it should look like. Let's say you need a s
41.
▲
by
drogus
2y ago
Would "you're going to be less productive in Rust than nearly any other language unless GC time or any bug are dealbreakers" be a fair summary of what you mean? Either way, I fully disagree with that. Many more traits of Rust
42.
▲
by
drogus
2y ago
Have you written much Rust?
43.
▲
by
drogus
3y ago
Today I've released a tool for load testing that I think is quite interesting as it explores running scenarios as WebAssembly modules. The blog post also goes a bit into details of why I think WebAssembly is a powerful tool
44.
▲
Crows – a Rust and WebAssembly based load testing tool
(itsallaboutthebit.com)
6 points
by
drogus
3y ago
|
1 comments
45.
▲
by
drogus
3y ago
Speed is not the only thing why Rust makes sense: 1. Safe Rust disallows data races at compile time, see for example: https://msrc.microsoft.com/blog/2020/04/the-safety-boat-kube... 2. WASM is getting more an
46.
▲
by
drogus
3y ago
I think it really depends on the context. There are a few things that one should consider when thinking about "how quickly a developer can become proficient in Rust": 1. Exposure into lower level languages. If Rust is your first l
47.
▲
by
drogus
3y ago
Neither of these features change much in how you code in Rust. Personally I have never used either of those since they came out and I'd expect that you rarely find them in most of the user facing apps. It's definitely super useful
48.
▲
by
drogus
3y ago
I implore anyone that says "Go is simple therefore Go codebases are simple" to look at big Go projects like Kubernetes
49.
▲
by
drogus
3y ago
I disagree that it's more pragmatic (and I love Rust), but in my opinion it's designed more thoughtfully. There are many articles pointing out various inconsistencies in Go, like: https://fasterthanli.me/articles&#
50.
▲
by
drogus
3y ago
What big language features did Rust get in the last few years? What big changes have you seen that changed codebases directly? Cause I code in Rust and my Rust code these days looks very similar to what I was writing a few years ago. The bi
51.
▲
by
drogus
3y ago
I worked both with Go and Rust in a professional setting and imho if someone doesn't care about readability, the code won't be readable in either of the languages. Yes, in Rust you tend to build more abstractions, but if they'
52.
▲
by
drogus
3y ago
Out of curiosity, how many professional projects written in Rust have you worked on?
53.
▲
Can Rust prevent logic errors?
(itsallaboutthebit.com)
24 points
by
drogus
3y ago
|
5 comments
54.
▲
by
drogus
3y ago
Ok, I see what you mean. Still, even knowing that general access tokens are all or nothing it was surprising that exactly the same thing was used for containers. Like, if you generate a separate credentials for containers it strongly sugges
55.
▲
by
drogus
3y ago
It's not about the API key. It's about the container registry credentials. Which you would expect to be able to only interact with the container registry. This is not the case. If you go to the container registry and click to do
56.
▲
by
drogus
3y ago
Yes. And when you generate the container registry token it doesn't mention any of it and it's hard to notice, cause docker auth is base64 encoded. But after you decode the credentials you get a regular DO token that you can use wi
57.
▲
by
drogus
3y ago
Wait till you hear that when you generate a DO container registry key it includes a key that gives you access to all of the resources, not only the registry.
58.
▲
by
drogus
3y ago
I find this post extremely weird. The author starts with saying sharing state is bad and then continues to complain sharing state in async Rust is hard, which is like, use channels if you don't want to pass mutexes everywhere?
59.
▲
by
drogus
3y ago
You missed the point entirely. “The research, the engineering, the design and the brand” is almost exactly the same for both models. The problem is that Sennheiser charges you $150 more for pretty much the same headset.
60.
▲
by
drogus
3y ago
> It's less featureful, and I'd consider that a strong virtue in the YAGNI camp - less to go wrong, less mental overhead. Imagine when you actually need any of the features that PostgreSQL provides like pub/sub, logical
More ›