Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ngrilly
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
451.
▲
by
ngrilly
4y ago
3 issues you listed with Go are actually about the same thing (the lack of sum types): - Go has nil where Rust has Option. - Go has weird not-quite-tuple returns & if err != nil where Rust has Result. - Go has no real enum concept, wher
452.
▲
by
ngrilly
4y ago
> I can assure you that you cannot access undefined memory regions by doing this in Go. Current implementation of slices and interfaces in Go is not memory safe in presence of data races: https://blog.stalkr.net/2022/
453.
▲
Universal Go exploit using data races, no imports
(blog.stalkr.net)
2 points
by
ngrilly
4y ago
|
0 comments
454.
▲
by
ngrilly
4y ago
We're making lithium-ion batteries with a low carbon footprint to make oil history and fight climate change :)
455.
▲
by
ngrilly
4y ago
Yes, but you can still build a static site reading the content from a SQLite file instead of a directory of HTML files. That’s the beauty of SQLite: this is “just” a database library and file format.
456.
▲
by
ngrilly
4y ago
Agreed, RAM usage may be slightly elevated during the switch. But it doesn’t seem to be a big issue in practice. nginx for example is updating itself like this and it works fine.
457.
▲
by
ngrilly
4y ago
No. The number of processes requests in unchanged. They are just dispatched between 2 instances: the new one and the old one. Actually, all new requests are going to the new instance, and only the pending requests are processed by the old i
458.
▲
by
ngrilly
4y ago
Not clear from reading the post if the SQLite C library is embedded and linked in the Worker runtime (which would mean no network roundtrip) or if each query or batch of queries is converted to a network request to a server embedding the SQ
459.
▲
by
ngrilly
4y ago
You can have two app instances writing to the database concurrently, as long as they are running on the same machine. Then it’s possible to deploy a new version without downtime by starting the new binary, switching traffic to the new insta
460.
▲
by
ngrilly
4y ago
I agree with view from a functional point of view. But I think that Slack looks “nicer”, more polished, more structured from an aesthetic perspective.
461.
▲
by
ngrilly
4y ago
I think Zulip has the potential to become a dominant solution in this space if they find way to make the UI as appealing as Slack. Zulip offers a new approach on how to structure discussions by threads while still being a chat application w
462.
▲
by
ngrilly
4y ago
I wasn’t aware or a plan to merge wal2 and BEGIN CONCURRENT into main. That would be awesome. What is your source about this?
463.
▲
by
ngrilly
5y ago
This is what Discourse does.
464.
▲
by
ngrilly
5y ago
Yes, and that’s what makes ALTER TABLE a bit difficult to implement in SQLite, but that’s also simplifying the implementation: https://sqlite.org/lang_altertable.html I agree this is quite unexpected for anyone used to Post
465.
▲
by
ngrilly
5y ago
Thanks Ben! I wasn’t sure if SQLite was storing metadata using the same B-Tree and WAL. As usual with SQLite the documentation about this is excellent: https://sqlite.org/schematab.html
466.
▲
by
ngrilly
5y ago
What about DDL, for example creating or altering a table or an index? Will LiteStream replicate the operation?
467.
▲
by
ngrilly
5y ago
I haven't tested it yet but the feature is exactly as expected, the documentation is very clear, and the demo using fly.io is a wonderful example of how to use it. Out of curiosity, how do you know when someone shares a link about Lite
468.
▲
LiteStream support for SQLite live read-only replicas
(tip.litestream.io)
44 points
by
ngrilly
5y ago
|
15 comments
469.
▲
by
ngrilly
5y ago
If you only had a single case in a few years, then why would you need a ternary operator? Your anecdotal data experience is actually confirming their decision to leave this out of the language.
470.
▲
by
ngrilly
5y ago
We evaluated those 3 options to develop an application used to configure, control and monitor battery systems at Northvolt, and reached very similar conclusions regarding the strengths of each platform.
471.
▲
by
ngrilly
5y ago
Thanks for clarifying!
472.
▲
by
ngrilly
5y ago
Wikipedia explicitly mentions that “The language grew out of a personal project begun in 2006 by Mozilla employee Graydon Hoare”.
473.
▲
by
ngrilly
5y ago
I don’t understand. How is the app working in offline mode when the Phoenix server is not reachable, since the interactions are managed server-side with LiveView?
474.
▲
by
ngrilly
5y ago
Super clear! Thanks!
475.
▲
by
ngrilly
5y ago
Why should we totally avoid CSS? The default CSS is most web browsers is not great for reading (no maximum width, mo margin, etc.).
476.
▲
by
ngrilly
5y ago
In the article: > knocking out undersea cables Most undersea cables being optic fiber, I don’t really see why a solar flare would knock them out. Or maybe they are active components like repeaters? But how are they powered up?
477.
▲
by
ngrilly
5y ago
The only string handling a compiler needs is usually during tokenization. After that the compiler only manipulates tokens, AST, SSA, IR, etc.
478.
▲
by
ngrilly
5y ago
Exactly this. I still remember all of these pain points. It's one of the main reasons why my team moved to Go.
479.
▲
by
ngrilly
5y ago
How do you handle code reviews with Pijul and Nest?
480.
▲
by
ngrilly
5y ago
I don’t recommend Signal either due to the lack of encrypted backup/restore. I don’t understand the prioritization of other features over that one.
More ›