Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ngrilly
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
50 ms
·
511.
▲
by
ngrilly
5y ago
Wondering the same.
512.
▲
by
ngrilly
5y ago
Next step: train a NN to predict what we’re going to say to compensate network latency :)
513.
▲
by
ngrilly
5y ago
“Aggressively normal” :)
514.
▲
by
ngrilly
5y ago
I really like Zig, but it's difficult to compare it with Rust without mentioning Rust memory safety and data race freedom.
515.
▲
by
ngrilly
5y ago
Your reply provides a lot of context. Thanks!
516.
▲
by
ngrilly
5y ago
What has been changed to improve k8s for applications with poor connectivity between workers on the edge and the control plane in the cloud?
517.
▲
by
ngrilly
5y ago
Try Nomad: https://news.ycombinator.com/item?id=25351446
518.
▲
by
ngrilly
5y ago
I think most of us in software engineering assume the probability distribution has a fat tail. I've seen some authors name this the "blowup factor". For instance, your most likely estimation is 10 days, best case is 5 days, a
519.
▲
by
ngrilly
5y ago
> It also tells us how many team-weeks this fictional, idealised project would require [...] by adding all the estimates together. I would be wary with just "adding all the estimates together". That's because we tend to es
520.
▲
by
ngrilly
5y ago
If the simulation is like containers and VMs, then for sure we'll find a way to escape the sandbox :)
521.
▲
by
ngrilly
5y ago
I mostly agree, but having used Linear.app which has a crazy good and fast UI based on a local database synced with their cloud database, I'm not sure anymore: https://youtu.be/WxK11RsLqp4?t=2170 . I think it's imp
522.
▲
by
ngrilly
5y ago
The fact that database engines written in Java exhibit high latency is not a reason to dismiss all other programming languages except C and C++. It still makes sense to consider modern languages like Rust, Go, Zig, etc.
523.
▲
by
ngrilly
5y ago
Yes. https://blog.golang.org/ismmkeynote
524.
▲
by
ngrilly
5y ago
Go GC pauses are bounded at 0.5 ms: https://blog.golang.org/ismmkeynote
525.
▲
by
ngrilly
5y ago
I agree that most of the time the segfault will happen later during program execution, which makes debugging very tricky. From that point of view, Java preserving memory safety even in presence of data races is a big win. I guess that'
526.
▲
by
ngrilly
5y ago
Not easy, but definitely possible: https://blog.stalkr.net/2015/04/golang-data-races-to-break-m... > We have to admit that exploiting this requires a fairly specific situation in which there is a data race we c
527.
▲
by
ngrilly
5y ago
You're right. That's a big advantage of the JVM. It's memory safe even in presence of data races. That post from Russ Cox (again) explains quite well why Go is not memory safe in presence of data races, and what should be cha
528.
▲
by
ngrilly
5y ago
I agree that a data race on an interface value in Go, is worse than an infinite loop or a memory leak, because it can lead to calling the wrong method on a value, which is hard to debug.
529.
▲
by
ngrilly
5y ago
Yes, the JVM will keep executing the program, but I'm still not convinced this is strictly better than segfaulting if a thread is stuck in an infinite loop using CPU for nothing, and another is leaking memory.
530.
▲
by
ngrilly
5y ago
This is the "technical meaning" of "undefined behaviour" according to Wikipedia: > Undefined behavior (UB) is the result of executing a program whose behavior is prescribed to be unpredictable, in the language specifi
531.
▲
by
ngrilly
5y ago
This is not guaranteed at all: > Note that the fail-fast behavior of an iterator cannot be guaranteed as it is, generally speaking, impossible to make any hard guarantees in the presence of unsynchronized concurrent modification. Fail-fa
532.
▲
by
ngrilly
5y ago
I see your point now. Yes, Java won't segfault, unlike Go on slices/maps/interface values. But even without segfaults, undefined behaviors due to race conditions can still be pretty in Java (causing infinite loops, memory lea
533.
▲
by
ngrilly
5y ago
> doesn't seem like you go back and change things to be like Java Java is like Go in that regard. That's why you have to use ConcurrentHashMap instead of HashMap for instance.
534.
▲
by
ngrilly
5y ago
Looks neat! How Obsidian handlers sync conflicts? For instance, I edit a note on iOS while offline, then I edit the same note on desktop while online, then the iOS device comes back online. Apple Notes for example is handling this amazingly
535.
▲
by
ngrilly
5y ago
I agree that a programmatic API semantically equivalent to SQL – for example like the JSON-based MongoDB API you mentioned – would go a long way making things easier for application developers and removing the need for ORMs (which I consist
536.
▲
by
ngrilly
5y ago
A more pragmatic view in that article: https://blog.nelhage.com/post/some-opinionated-sql-takes/
537.
▲
by
ngrilly
5y ago
RethinkDB is mentioned in the article.
538.
▲
by
ngrilly
5y ago
When I compare the codebase of a tool like gqlgen (a GraphQL library in Go) with the code base of PostgreSQL or SQLite, I'd say even 10% is generous.
539.
▲
by
ngrilly
5y ago
Seems similar to fly.io, but fly.io seems better: uses WireGuard instead of service mesh, supports custom domains, supports any TCP or UDP service, provides volumes, etc. But that’s great seeing more options in that market!
540.
▲
by
ngrilly
5y ago
Apologies. I thought I pasted the original link but I was wrong. Thanks for fixing it.
More ›