Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ncruces
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
481.
▲
by
ncruces
1y ago
If they didn't want to get caught, don't do that in public, cameras or no cameras. Could've been 20 years ago in a concert and they bump into someone who knows them while hugging. So what's different here? That people on
482.
▲
by
ncruces
1y ago
Thank you! I had searched GitHub by a relevant snippet of code described in the blog and found that one. I guess they merged those changes?
483.
▲
by
ncruces
1y ago
I couldn't find the link in that page, but the fork is here, and seems to be up-to-date: https://github.com/GerHobbelt/re2 If you need that from Go, you can probably use that to create a fork of this: https:/
484.
▲
by
ncruces
1y ago
Writers won't queue up, rather they'll storm the place, taking turns at asking “can I go now” and sleeping for (tens, hundreds of) milliseconds at a time. This only gets “worse” as computers get faster: imagine how many write tran
485.
▲
by
ncruces
1y ago
No idea if it applies, but one way would be to direct all writes (including any transaction that may eventually write) to a single connection. Then writers queue up, while readers are unimpeded.
486.
▲
by
ncruces
1y ago
It's well scoped, but not short lived; it's an SQLite connection. But the API surface is huge, with 100s of methods on the connection and derived objects, with it being unclear which might block and be worthy of asynchronous cance
487.
▲
by
ncruces
1y ago
You can take that view, yes. But if you store your context in a struct (which is not the recommend “best practice” – but which you can do) it's no longer a function coloring issue. I do that in on of my libraries and I feel that it
488.
▲
by
ncruces
1y ago
The other day someone was gloating they'd created a 30k LoC code base in a few weeks with a similar setup. I'd consider that a liability, not an asset, but they were pretty happy with it.
489.
▲
by
ncruces
1y ago
It's one thing to say that: - an LLM can help you write a boilerplate `if (err != nil) { return fmt.Errorf(...) }` that actually matches the conventions for code base you're in; - your IDE can "hide" those additional lin
490.
▲
by
ncruces
1y ago
Previously: https://news.ycombinator.com/item?id=44470464
491.
▲
by
ncruces
1y ago
I'm not the author of wazero, although I've been a maintainer. I'm just the author of the wazero based SQLite driver. modernc takes the SQLite amalgamation, runs it through the C preprocessor, then converts the result to Go f
492.
▲
by
ncruces
1y ago
I know. Now see how far JSON got them. So why wouldn't you just use a text format to persist a personal website a handful of people might use? I created one of the SQLite drivers, but why would you bring in a dependency that might not
493.
▲
by
ncruces
1y ago
In 2020 Tailscale used a JSON file. https://tailscale.com/blog/an-unlikely-database-migration
494.
▲
by
ncruces
1y ago
For modernc you gave the correct link. For the wazero based driver, it's this package (I'm the author): https://github.com/ncruces/go-sqlite3
495.
▲
by
ncruces
1y ago
The standard lib has pbkdf2 though. I'm guessing the goal is that the file can be managed more easily with a text editor and some shell utils.
496.
▲
by
ncruces
1y ago
No dependencies apart from the standard library is my guess.
497.
▲
by
ncruces
1y ago
> and this trivially extends to constructing a fair N-sided die out of any arbitrarily biased die for any N They wrote something interesting, even if it only tangentially matches the topic. Pointing out that it doesn't exactly mat
498.
▲
by
ncruces
1y ago
I use unicode for math in comments, and think makes certain complicated formulas far more readable.
499.
▲
by
ncruces
1y ago
> especially since when traveling to countries like Spain and Italy, every Airbnb / Hotel requires you to send a picture of your passport. They're required to, it's part of the in-person hotel check-in process to require
500.
▲
by
ncruces
1y ago
Still trying to upstream my Wasm SIMD libc optimizations. https://github.com/WebAssembly/wasi-libc/pull/586
501.
▲
by
ncruces
1y ago
Came here to say this. Over Europe, https://nat64.net/ directly, at least, is pretty cool. Only had good experiences with them.
502.
▲
by
ncruces
1y ago
If it's possible that it's stuff that's being used at initialization time, wasm-ctor-eval might help. Also, you probably want to build a reactor (-mexec-model=reactor) if that's not what you're already doing. A comm
503.
▲
by
ncruces
1y ago
And if you need parts of libc, you can use something like the below, for something more minimal than musl: https://github.com/Photosounder/MinQND-libc Personally, although I do use wasi-sdk (clang) and the wasm32-unkno
504.
▲
by
ncruces
1y ago
The correct integer type to use to store pointers (the only one specified to actually work) is uintptr_t, not size_t.
505.
▲
by
ncruces
1y ago
> It makes sense that you should be able to assign a pointer to a size. If the size is signed, this cannot be done due to its smaller capacity. Why? By the definition of ptrdiff_t, ISTM the size of any object allocated by malloc cannot
506.
▲
by
ncruces
1y ago
That's about to change: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3322.pdf
507.
▲
by
ncruces
1y ago
You'll probably be 80 by the time your oldest grandkid enters kindergarten. How energetic will we be in our 80s? That's the bit that's scary to me.
508.
▲
by
ncruces
1y ago
Same logic applies to all subscriptions. This may look fine when it's one sub. But then you're spending hundreds of €$£ a month on stuff and need to go through a list of dozens of things to figure out which you should continue p
509.
▲
by
ncruces
1y ago
This might provide context: https://alexgarcia.xyz/blog/2024/sqlite-vec-hybrid-search/in...
510.
▲
by
ncruces
1y ago
You need to buy one copy of each for the fair use to apply.
More ›