Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ncruces
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
691.
▲
by
ncruces
2y ago
Java's exceptions are also visible in the signature, and harder to ignore. I actually like Go's solution better, because it's verbose, because the fact that I pay the cost of "if err != nil" every effin time, I&#x
692.
▲
by
ncruces
2y ago
No, that's not how it works, and yes you're speculating. These companies outsourced these services to highly efficient call centers, powered by software designed by these tech bros. The people working there are incentivized to up
693.
▲
by
ncruces
2y ago
Everyone does. This is another step towards that. The top comment says Google has been stop-and-go about this. Well the tech was never there to do it. But they never really stopped playing with the idea. Since 2013.
694.
▲
by
ncruces
2y ago
Once you compile your Typescript to Javascript, Javascript runtimes can run it, Javascript code can call it, etc. Even source maps work. Once you start using libSQL features, SQLite tools will simply stop working with your databases. That m
695.
▲
by
ncruces
2y ago
My builds of SQLite do enable foreign keys by default. This is easy to do for any project using the amalgamation.
696.
▲
by
ncruces
2y ago
That's a non solution for existing code that already calls GetPixel 20 million times. It's not like I'm saying C is the best possible way to write new code. I'm just commenting why this matters for performance, and “remo
697.
▲
by
ncruces
2y ago
Imagine that you created a function GetPixel that reads an RGB pixel at a memory address, and which has a NULL check as a precondition. If the compiler can "prove" that the pointer is not NULL it can (after inlining the call) remo
698.
▲
by
ncruces
2y ago
Then build with SQLITE_DEFAULT_FOREIGN_KEYS=1 to make it opt-out (and to opt-out you'd need to inject SQL). As for STRICT: if you make your tables STRICT, there's no opt-out. So why is this an issue? Do you want them to break the
699.
▲
by
ncruces
2y ago
If that was the case, they wouldn't introduce cross incompatibilities in the changes they made (or would at least discuss compatibility in the docs), and they'd make any added features useful to others by properly documenting them
700.
▲
by
ncruces
2y ago
If you "intend to get rid of some of the baggage" you won't be fully compatible. libSQL already isn't fully compatible: as soon as you add a RANDOM ROWID table, you get "malformed database schema" when using th
701.
▲
by
ncruces
2y ago
Large chunks of the test suite are open source, committed to the repo and easy to run with a `make test`. Everytime a bug is reported in the forums, the open source tests are updated as part of the bug fix for everyone to see. There's
702.
▲
by
ncruces
2y ago
All this talk of “SQLite is not open contribution” never seems to consider that a project being “open contribution” doesn't mean the maintainers will accept your contributions. They have a process for contributions to follow: you sugge
703.
▲
by
ncruces
2y ago
The kinds that keep file format compatibility? Or are they claiming they will support MVCC with full file format and interprocess synchronization compatibility.
704.
▲
by
ncruces
2y ago
> Why not? Generally the zero-value for a union type is just the first option, which can be useful or not. You can wrap it in an option type to ensure it's been initialized too. Races with the GC, if you try to be smart and have unb
705.
▲
by
ncruces
2y ago
What's the output of this Go program, without going to the playground link? print(math.MinInt / -1) https://go.dev/play/p/Vy1kj0dEsqP
706.
▲
by
ncruces
2y ago
I don't want to handle errors after every division and division doesn't crash, both sound rather practical, though.
707.
▲
by
ncruces
2y ago
You can do it “in place” as the target can be the same as the source. And you can definitely resize it, both truncate it and extend it. The only restriction, really, is that all parts except for the last one need to be at least 5MiB. GCS co
708.
▲
by
ncruces
2y ago
You can? You create a multi-part with 3 chunks: the 1st part is a copy range of the prefix, the 2nd part the bit you want to change, and the 3rd a copy range of the suffix? And yes, all of this is useless for heavy (and esp. concurrent) wri
709.
▲
by
ncruces
2y ago
S3 can at least do a multi-part upload, where any given part is a copy of a range of an existent object. Then you can finish the upload overwriting the previous object. GCS, unfortunately, does not support copying a range. OTOH, it has long
710.
▲
Show HN: wazero compiler ported to 4 new OSes
(github.com)
7 points
by
ncruces
2y ago
|
0 comments
711.
▲
by
ncruces
2y ago
Both this and read-after-write consistency is single object. So coordinating writes to multiple objects still requires… creativity.
712.
▲
by
ncruces
2y ago
Might finally be possible to do this on S3: https://pkg.go.dev/github.com/ncruces/go-gcp/gmutex
713.
▲
by
ncruces
2y ago
GCS is just missing x-amz-copy-source-range in my book. Can we have this Google? … Please?
714.
▲
by
ncruces
2y ago
Who's the bigger troll? Putting up the initial challenge, especially with the accompanying commentary, is just as much trolling as that.
715.
▲
by
ncruces
2y ago
When you think you're removing sexism, just to bring it back.
716.
▲
by
ncruces
2y ago
Not if you work for a local council or whatever, and need to develop an iOS app for some reason. Then you pay, because they basically force you to use their hardware, software, connectors, formats, billing services, etc every step of the w
717.
▲
by
ncruces
2y ago
Portugal will keep it too. Dumb phones are still being sold that are 2G only. Not just that, but “landlines” are still being offered that are really a 2G phone restricted to work only in the vicinity of a home that's not (yet?) covered
718.
▲
by
ncruces
2y ago
Some time ago I tried to come up with something that worked with pen and pencil, even if it used backup tables or something, to make a board game that would explain the concept to kids. I wasn't very successful, and eventually gave up.
719.
▲
by
ncruces
2y ago
Article assumes that reads/writes can only ever fail if working with remote files.
720.
▲
by
ncruces
2y ago
A lot of CV that used to be analytical (and benchmarked for metrics on synthetic data) is being replaced by train model on synthetic data to give answer.
More ›