Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ncruces
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
631.
▲
by
ncruces
2y ago
Oh I'm so interested in this. I've wanted to use wazero to run my Exiftool [1] for quite a while. Just as I use wazero to sandbox dcraw [2]. But WASI Perl never materialized. This may just be what I'm missing. [1]: https:&#x
632.
▲
by
ncruces
2y ago
The other either optimizes the same, or has an additional multiplication, and it's definitely less readable.
633.
▲
by
ncruces
2y ago
It's odd because at Google people still write networked servers in C++, which I'd argue, almost no one outside Google does? Rob probably assumed Go could displace this. And it's not unreasonable to assume so, although it'
634.
▲
by
ncruces
2y ago
Yeah, totally: recursive wins.
635.
▲
by
ncruces
2y ago
I've wanted to do something like this for about a decade. Good job!
636.
▲
by
ncruces
2y ago
The problem with a block/page based solution (block per page is a bad idea, IMO, because S3/GCS are cost/performance optimized for around megabyte objects) is consistency: ensuring a reader sees a consistent set of blocks, i.
637.
▲
by
ncruces
2y ago
The read only bit is definitely a relatively simple afair. My Go driver supports it, through a combination of a VFS that can take any io.ReaderAt, and something that implements a io.ReaderAt with http Range requests (possibly with some cach
638.
▲
by
ncruces
2y ago
Is this source available? Read-only or read-write? And if writeable, what's concurrency like?
639.
▲
by
ncruces
2y ago
It doesn't take much to split your go.mod file require blocks into needed dependencies, and test dependencies, with a few comments explaining the why of each dependency. Go tooling will preserve your go.mod comments and structure. You
640.
▲
by
ncruces
2y ago
Worse. A small but significant percentage would actually pay ransom for it, just because moving is a pain. No one new would join, though.
641.
▲
by
ncruces
2y ago
I'm curious, but it did not occur to me to go to the user's profile, and check other posts on unrelated stories.
642.
▲
by
ncruces
2y ago
The problem with those API breaks, for me, is that it may be non trivial to work around them. Most of the open source SQLite encryption extensions have not , for the most part, been able to work around the broken APIs, and are still stuck
643.
▲
by
ncruces
2y ago
SQLite supports this with the help of a virtual table: https://github.com/0x09/sqlite-statement-vtab Available in sqlean: https://github.com/nalgeon/sqlean/blob/main/docs/define
644.
▲
by
ncruces
2y ago
I remember I bought a Round, and started hacking away a subpixel rendering library for it, and then it got killed. I lost interest, but that's still the smart watch I most liked.
645.
▲
by
ncruces
2y ago
I've never done it, but for the readonly case, I think all you need to is to combine the existing reader VFS with zstd-seekable-format-go. https://github.com/ncruces/go-sqlite3/discussions/117#discus...
646.
▲
by
ncruces
2y ago
The sqlite3 C API very much does not serialize "all operations within a single process." The way threading and concurrency work in SQLite may not mesh well with NodeJS's concurrency model. I dunno, I'm not an NodeJS&#x
647.
▲
by
ncruces
2y ago
Taking full advantage of SQLite's extensibility is a center piece of my Go driver. It started due to having to reimplement the OS layer in Go because of tech constraints, but it means you _can_ implement VFSes, UDFs (scalar, aggregates
648.
▲
by
ncruces
2y ago
I've checked locally. Most of these aren't really hotels, but short term rentals. I don't have an huge issue with short term rentals per si. They are an important niche for tourism when you take the whole family, whereas most
649.
▲
by
ncruces
2y ago
Which one? We're curious now. https://en.m.wikipedia.org/wiki/List_of_countries_and_territ...
650.
▲
by
ncruces
2y ago
The most egregious part of it for me is that if I open and close a file I might be canceling some other library's lock that I'm completely unaware of. I resisted using them in my SQLite VFS, until I partially relented for WAL lock
651.
▲
by
ncruces
2y ago
POSIX file locking is clearly modeled around whatever was simplest to implement, although it makes no sense at all.
652.
▲
by
ncruces
2y ago
LLM are the reason I get bug reports like… Them: “why doesn't this thing work I your OSS lib, whereas it works in this other OSS lib?” Me: “does it? it's not supposed to.” Then: “oh idk, ChatGPT told me so.”
653.
▲
by
ncruces
2y ago
Because dozens of in between layers don't need to know the type, and should in fact work regardless of the specific type. Context tells you enough: someone, somewhere may do magic with this if you pass it down the chain. And in good Go
654.
▲
by
ncruces
2y ago
Or an e-Golf.
655.
▲
by
ncruces
2y ago
When you rent an apartment, you can still invite people to your apartment for drinks. But you don't claim to have built an apartment.
656.
▲
by
ncruces
2y ago
You never host the same website on two servers?
657.
▲
by
ncruces
2y ago
If you're using Go, you can also run tests with QEMU binfmt on Linux. https://wiki.debian.org/QemuUserEmulation Many people don't know this, but on a correctly configured amd64 Linux box this just works: $ GOARCH=
658.
▲
by
ncruces
2y ago
They've done for a while. My OSS Go project runs tests in 18 different OS/architecture combinations. Some native, some using QEMU binfmt (user mode emulation on Linux), others launching a VM. In particular, that's how I test
659.
▲
by
ncruces
2y ago
Yeah, that conflicts with their rate limits, which I hope they'll revise under this scheme. https://letsencrypt.org/docs/rate-limits/ For the “exact same set of hostnames” (aka. renewals) the rate limit is 5
660.
▲
by
ncruces
2y ago
I'd settle for most dependencies not having any dependencies at all; at a minimum making a serious effort to only add dependencies that really pull their own weight. This starts from explaining outright which dependencies they have
More ›