Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Yoric
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
631.
▲
by
Yoric
2y ago
To complete your post and the parent: most Rust applications don't need GC. Lifetimes, Box and Rc or Arc will generally amply cover all your needs. For a few applications, though (e.g. a JavaScript VM, or something that deals with comp
632.
▲
by
Yoric
2y ago
For what it's worth, I've recently started writing a small open-source tool to avoid consuming too much in the way of videos and social networks. https://github.com/Yoric/keep-it-focused/ We'll see
633.
▲
by
Yoric
2y ago
Google is betting on digital quantum computers. There are, however, analog quantum computers, e.g. by Pasqal, which hope to capitalize on this to optimize AI-like high dimension optimization problems.
634.
▲
by
Yoric
2y ago
Interesting point. Of course, the question remains of whether companies that buy into AI will hire a sufficient stream of junior developers so that some of them will graduate into seniors.
635.
▲
by
Yoric
2y ago
Yeah, a bit like the many frameworks that were supposed to make development trivial in X, many of which ended up being quite useful, but remained _additional_ skills to master in an ever-growing list of things we need to know to be able to
636.
▲
by
Yoric
2y ago
Delay is good. Delay is necessary. While we have (some bricks of) the technology to generate/store/consume energy without emitting CO2, we haven't nearly rolled it out and we need time to do so. So, yes, by all means, any mon
637.
▲
by
Yoric
2y ago
With a simple script? I'd bet on the LLM making more mistakes.
638.
▲
by
Yoric
2y ago
True, but the alternative is letting people starve. I suggest that this should not be one of the goals of our society.
639.
▲
by
Yoric
2y ago
Yeah. I wonder if something like GlueSQL or the IndexedDB layer of most browsers could be used as such an API.
640.
▲
by
Yoric
2y ago
That's a good point. It would be very nice to have a LLVM IR-style language for database queries, though. As a language, SQL is... well, a little behind times. ORMs explore lots of interesting design choices, but as you mention, by pil
641.
▲
by
Yoric
2y ago
I like this metaphor. I suspect that GenAI will eventually reach a point where it's actually really useful, but we aren't quite there yet.
642.
▲
by
Yoric
2y ago
In which country? In France, for instance, you have a (typically) 6 months long no questions asked window to fire a new hire, if they prove a bad employee. Presumably, if you haven't found out in 6 months, you wouldn't find out by
643.
▲
by
Yoric
2y ago
Which only works when the error itself doesn't contain any information. It's better than nothing, of course.
644.
▲
by
Yoric
2y ago
It would, if people actually defined new errors. But, as I mentioned in my message, people just use `errors.New` or `fmt.Errorf`, all the way down, so you end up with errors that cannot be matched. Which means, in turn, that if these are er
645.
▲
by
Yoric
2y ago
This doesn't look meaningfully different from current error handling in Go. It's basically the same syntactic sugar as `try!` in Rust, isn't it?
646.
▲
by
Yoric
2y ago
The drawback, on the other hand, is that all the Go code I've read (including the stdlib and all the dependencies of my current project) is using `fmt.Errorf` or `errors.New`, which means that you can't use `errors.As`, which mean
647.
▲
by
Yoric
2y ago
> Rust eventually realised this and introduced try! and ? to simplify this That was prototyped around Rust 0.4, so I wouldn't say "eventually" :)
648.
▲
by
Yoric
2y ago
Interestingly, every time (and I mean _every_ time) that I've tried to use `errors.As` on errors raised by lib code, I found out that the lib just went with "nah, I'm just going to use `errors.New` or `fmt.Errorf`", whic
649.
▲
by
Yoric
2y ago
Do you have examples for the latter?
650.
▲
by
Yoric
2y ago
Which, sadly, is still the case of too many dependencies. While I much prefer Python as a language, Go wins against Python by having a fresher ecosystem, with a higher baseline for type safety. Still pretty low with respect to Rust or mypy&
651.
▲
by
Yoric
2y ago
> Do you have a pydantic equivalent in go? I've been working on one [1]. But gosh, does go make it hard. [1] https://github.com/pasqal-io/godasse
652.
▲
by
Yoric
2y ago
In OCaml, that's actually a common use for exceptions, as they let you unwind extremely quickly and carry a result (helped by the fact that OCaml doesn't have finally or destructors).
653.
▲
by
Yoric
2y ago
Well, Go doesn't quite support RAII. This syntax looks more like Python or Rust.
654.
▲
by
Yoric
2y ago
Also, I don't think it's possible to perform any kind of backwards-compatible static analysis that would tell you when it's safe to just JMP. Unless you have full information, perhaps (at the very least everything already spe
655.
▲
by
Yoric
2y ago
Isn't this part of the Go memory model ( https://go.dev/ref/mem )?
656.
▲
by
Yoric
2y ago
What does that mean? If I follow correctly, assuming that there are no bugs in the compilers/interpreters, Go is less memory-safe than Java, C#, Python (with GIL), JavaScript or Rust. The only languages that are less memory safe would
657.
▲
by
Yoric
2y ago
Well, time will tell. As Go usage increases, it becomes a more tempting target, which means that more malicious third-parties will start poring over the code of the std library and the frameworks looking exactly for this kind of vulnerabili
658.
▲
by
Yoric
2y ago
So far, I haven't seen any sign that LLM/GenAI could be used to solve e-waste. It's definitely an impressive technology, but seems to be much suited at generating porn than at solving global issues.
659.
▲
by
Yoric
2y ago
So far, that is the main use case for AI. Which is great, but probably doesn't deserve the trillion dollar hype (and e-waste). We'll probably get another AI winter once the hype dies down, but we'll have added a few more tool
660.
▲
by
Yoric
2y ago
Well, these ML compilers are pretty simple, actually :)
More ›