Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Yoric
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
691.
▲
by
Yoric
2y ago
Of course, if it's streamlined to be 600x faster, it's just going to be done 600x more often.
692.
▲
by
Yoric
2y ago
No, I'd expect the Government to seize my physical assets and auction them off. Not sure it's very different.
693.
▲
by
Yoric
2y ago
Conceptually, what happened was foo.a = a; foo.b = await b(); // while waiting for b's completion, something happens that changes the value of `a`, making `foo` invalid (or more complex variants of this) In a multi-t
694.
▲
by
Yoric
2y ago
> More ENERGY needed. Which doesn't have to be oil. Fair enough, I was using oil as the unit of energy.
695.
▲
by
Yoric
2y ago
> It's a simple, clean model - no need for locks. Nit: You can very easily have race conditions in async JS. There are all sorts of Mutex-style structures for async.
696.
▲
by
Yoric
2y ago
To be more precise, in JS land, we introduced async not directly because of scripting but because of backwards compatibility - prior to async/Promise, the JS + DOM semantics were specified with a single thread of execution in mind, wit
697.
▲
by
Yoric
2y ago
> Furthermore, retrofitting a program using synchronous execution to use asynchronous execution is a tremendous amount of work as you need to do it bottom up to maintain compatibility during the transition. Can attest to that. I was part
698.
▲
by
Yoric
2y ago
Because, if my memory serves, that's the definition of peak oil. Peak oil is the peak of the curve `energy extracted/energy expended to extract it`. Since 2017, this has been decreasing. *edit* I realize that the definition of pea
699.
▲
by
Yoric
2y ago
Well, we have reached peak oil, so we're slowly edging towards the threshold at which extracting oil will consume more oil than it produces. Economists are calling for a carbon price because by the time we reach this threshold, it will
700.
▲
by
Yoric
2y ago
Agreed. For my personal sensibilities, Python or TypeScript are better default languages. Of course, I'm a bit obsessive about quality/safety, so I'm probably going to use Rust for most tasks :)
701.
▲
by
Yoric
2y ago
I believe that GP was speaking of Stable Diffusion-style architectures + models, which you can run on your own hardware.
702.
▲
by
Yoric
2y ago
I recall Georges Orwell making the same kind of remarks about novels in one of his essays, I think a little before WWII. I seem to recall that he was speaking of the depiction of physical violence in pulps. I... kinda think he was right.
703.
▲
by
Yoric
2y ago
Especially when you're not certain of the type used for numbers.
704.
▲
by
Yoric
2y ago
There is a dict-equivalent data type in Go for JSON (it's `map[string]any`), it's just rather counter-intuitive. However, as a Go developer, I'm one of the people who consider that JSON support in Go should be burnt down and
705.
▲
by
Yoric
2y ago
> The author lists multiple reasons for this, but for me the biggest one is the first one: Go is good for almost everything. I'd nuance that claim. I haven't found Go to be _particularly good_ at any specific task I've und
706.
▲
by
Yoric
2y ago
I wasn't planning to turn this into a language flame war, so I'm not going to give details. Let's just say that the designers of Rust and Go have prioritized very different feature sets when designing their type systems. If y
707.
▲
by
Yoric
2y ago
> To some extent most of the jobs I find in tech seem to me to be societal busy work. And the people that make those jobs seem to take themselves a bit too seriously. Thanks. You're putting in words something that was bothering me b
708.
▲
by
Yoric
2y ago
I just moved away from the (close) suburbs of Paris and I biked a few miles to work. But yeah, if you live in distant suburbs, it's much harder.
709.
▲
by
Yoric
2y ago
Sure, and it's great that this has become possible (a while ago now). My remark was about Java ~1.0, as by now, the ship has long sailed and it's unlikely that many people will start adopting this style. (and no, I have no idea wh
710.
▲
by
Yoric
2y ago
In benchmarks I've seen, Go is ~6 times slower. But generally speaking, the reason I prefer Rust to Go for most developments is its type system. I could see myself using Rust to handle business-specific/safety-critical logic and G
711.
▲
by
Yoric
2y ago
Agreed, it's pretty clearly a subset of algebraic effects. In fact, I'm fairly certain that I've seen examples similar to OP as the hello world of algebraic effects a few times.
712.
▲
by
Yoric
2y ago
I actually think that having both possibilities, as in the OP, is the most complex solution of all, especially if you need to go hunting for a `?` that could be anywhere on your screen.
713.
▲
by
Yoric
2y ago
I assume that the poster meant that Java could have had `Result<T, E>` return values like Rust if it had launched with parametric polymorphism, instead of having a layer of the type system dedicated to errors.
714.
▲
by
Yoric
2y ago
> It's a bit amusing to me how "checked errors" in general has made a comeback in Go and Rust, and in many newer languages like Zig (and now this one) as well. For what it's worth, checked errors have been part of the
715.
▲
by
Yoric
2y ago
Oh, nice! The first one was excellent. Now part of my Gimp toolbox. Thanks for your work!
716.
▲
by
Yoric
2y ago
As a European, it's... hard to fathom. I've lived in big cities most of my life and I take the car maybe 10 times per year, including cabs. And that's mostly to get away from the city, where I can't go by bus.
717.
▲
by
Yoric
2y ago
Even Go? For me, its main redeeming point [1] was its so-called "goroutines" (which are basically Erlang lightweight processes, with the mailbox replaced with Concurrent ML-style channels). That being said, I've gotten used t
718.
▲
by
Yoric
2y ago
Sure, initial reactions were all over the place. But that doesn't detract from what I wrote.
719.
▲
by
Yoric
2y ago
Well, blowing up Nordstream was clearly against Russian interests, so yeah, nobody believe that the Russian government did. This one? Anything that messes up with the credibility of NATO governments (and France is one of the pillars of NATO
720.
▲
by
Yoric
2y ago
Well, the US is pretty well-known for its spying capabilities, both government (NSA/Echelon) and private (Palantir, etc.)
More ›