Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
OskarS
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
OskarS
5d ago
I remember vividly being so annoyed when they added W to the Swedish alphabet in 2006. The alphabet I learned to recite in first grade is suddenly wrong?! I still don't say it correctly unless I concentrate, if I have to recite the alp
2.
▲
by
OskarS
11d ago
It's interesting reading this, wondering how much C++26 static reflection could improve the ergonomics of a system like this. Like, if you tag the class with a specific attribute, can you have have it generate the Trace() function auto
3.
▲
by
OskarS
23d ago
Fair enough, I don't know the C++ ABI to this extent.
4.
▲
by
OskarS
24d ago
Lovely little alias, but I much prefer fracjson[0] pretty printing to jq, so I might go with that instead! [0]: https://github.com/j-brooke/FracturedJson
5.
▲
by
OskarS
24d ago
Yes, it works exactly like this, this is a demo on godbolt [0]. rdi stores the pointer in both cases, makeS1() uses RVO, makeS2() takes it explicitly and constructs with placement new. I will say before testing this i didn't realize th
6.
▲
by
OskarS
24d ago
That's what I'm saying, if you have a CoW filesystem, backing up with atomic snapshots is almost certainly fine, SQLite's advice against copying probably doesn't apply to that. But just typing `cp` in a terminal is proba
7.
▲
by
OskarS
25d ago
> The simple way to fork a sqlite db is just to copy it SQLite recommends against doing that [1] while a transaction is active, because the copy might have some pre/post data in it which could potentially cause corruption. Presumabl
8.
▲
by
OskarS
26d ago
I think it's reasonable for a DB like SQLite to delegate that to the filesystem. There is an overhead for doing it on the DB level, and since SQLite is just a file on the filesystem which, presumably, is serving many other files as w
9.
▲
by
OskarS
1mo ago
I think that's totally fair, it's just different people come to youtube for different things. Nebula is just a different value proposition.
10.
▲
by
OskarS
1mo ago
Obviously YMMV, but I haven't had any issues like that, the quality of the videos is the same I get in the YouTube app. They take a few seconds longer to start though.
11.
▲
by
OskarS
1mo ago
Yes, of course you can, but this sense of always having to curate your watch history and hide from the algorithm is just not there for Nebula. I guess it's different from person to person, but it's remarkable how freeing it feels
12.
▲
by
OskarS
1mo ago
It's a little beside the point of the post, but I just want to fly a flag for Nebula: I subscribed solely to get early versions of Jet Lag: The Game, but I'm finding myself watching it more and more! It has many of the channels I
13.
▲
by
OskarS
1mo ago
The obvious alternative is SQLite, and it has many advantages. If you want to do a "zipped list of files", SQLite does that just fine (that's what SQLar is), but it can do so much richer data. Even if you don't want that
14.
▲
by
OskarS
2mo ago
mem::forget isn’t the only way you can safely leak a value, you can do it with reference cycles too, right? And there is no way for the compiler to detect that? Isn’t that why mem::forget is safe, because you can always implement it yoursel
15.
▲
by
OskarS
2mo ago
I think you're underestimating the speed of modern computers and hard-drives, fzf can search through 100k entries easily without any delay. Try it with `cat /usr/share/dict/words | fzf`, it's extremely responsi
16.
▲
by
OskarS
3mo ago
Does this trick work with foreign keys? Like, if you have an ON CASCADE DELETE, does it delete a bunch of rows in other tables when converting the table to strict?
17.
▲
by
OskarS
3mo ago
One useful thing to do sometimes when looking at whether or not a user is interested in participating in Wikipedia or just participating in arguing about things is to look at their contributions to actual wikipedia articles, the thing Wikip
18.
▲
by
OskarS
3mo ago
They can certainly be part of the standard library, it's just that you have to make the programmer be specific: it's a bad idea `new Random(seed)`, because you can then never update the `Random` class, and you might get stuck with
19.
▲
by
OskarS
3mo ago
I've always thought that random number generators are one of the best examples of Hyrum's law ("all observable behaviours are part of your API"): once you release a random number generators that either uses a default see
20.
▲
by
OskarS
4mo ago
Everyone knows about bit-fiddling functions, what the poster was referring to is using this trick to not have to store the capacity for a dynamic vector. Which is genuinely very clever and rare, I don’t think I’ve ever seen it done quite li
21.
▲
by
OskarS
4mo ago
It doesn’t really work though for generic vectors. If you support not just vec_push but vec_pop as well, then you really do need to store capacity separately or else call realloc way more often than you normally need to.
22.
▲
by
OskarS
4mo ago
As a non-web dev, I have a question about this part: > There was a sad coda; as is the way of contract work, I moved on. I explained what I had built to my replacement, that it always worked even without javascript. He was appalled and s
23.
▲
by
OskarS
4mo ago
Not even young people: I have a very expensive MacBook Pro M5 i got from work, but my personal laptop is old and needs replacing. I’m a well-paid senior software developer and could afford any computer I wanted. But the MacBook Neo is a top
24.
▲
by
OskarS
4mo ago
Sure! The main formats are VST3 (from Steinberg, the most popular format), AU (from Apple, supported by most macOS hosts, and Logic only uses AU), AAX (for Avid Pro Tools) and CLAP (an open source variant, that's the best of all of the
25.
▲
by
OskarS
4mo ago
That’s a really great explanation, I think I more or less followed all of it. Thanks for taking the time to write it out!
26.
▲
by
OskarS
4mo ago
The UI for audio plugins generally work in an event driven manner: you get events like mouseMove, keyDown, repaint, etc. from your host. In response to those events, you run your script to figure out what you need to do. You have no control
27.
▲
by
OskarS
4mo ago
So you can't execute a Janet script on a different thread than it was created on? Still not good: if you're making audio plugins, you don't control the threads which your program runs on. It's just not good enough, IMHO.
28.
▲
by
OskarS
4mo ago
My first question too, and I checked out the linked book [1], and sure seems like it! There's global functions like `janet_init()` and `janet_loop()` all over the place. A language shouldn't advertise itself as "embeddable&qu
29.
▲
by
OskarS
4mo ago
> and with short selling in public markets being possible, an accurate price will be established very quickly. I know very little about markets, but: aren't the short-sellers just going to provide liquidity for the big index funds?
30.
▲
by
OskarS
4mo ago
I would guess that the 1998 era Microsoft compiler didn't have nearly as many warnings as modern compilers do.
More ›