Viewing profile — OskarS
OskarS
HN member- Joined
- Sun, Sep 04, 2016, 8:33 PM UTC
- HN karma
- 8,242
- Public activity
- 1,223 items
- HN profile
- View on Hacker News ↗
About OskarS
No profile information was provided.
Recent public activity
-
comment
Comment #49152382
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:…
-
comment
Comment #49056064
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 |…
-
comment
Comment #48880208
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?
-
comment
Comment #48645053
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…
-
comment
Comment #48558227
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 updat…
-
comment
Comment #48554196
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 g…
-
comment
Comment #48514548
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 cl…
-
comment
Comment #48514539
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 w…
-
comment
Comment #48478007
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 alw…
-
comment
Comment #48387084
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 coul…
-
comment
Comment #48383862
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…
-
comment
Comment #48381384
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!
-
comment
Comment #48381193
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 s…
-
comment
Comment #48374257
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 r…
-
comment
Comment #48371020
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…
-
comment
Comment #48369062
> 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 …
-
comment
Comment #48321883
I would guess that the 1998 era Microsoft compiler didn't have nearly as many warnings as modern compilers do.
-
comment
Comment #48120127
That is how I (a non-lawyer) understand it as well, but I wonder if it's so simple when you combine it with the GPLness of it all. Like, releasing something under the (A)GPL is a l…
-
comment
Comment #47456991
Certainly that’s part of it, but also just NIMBYism. Los Angeles were able to defeat the Owen’s Valley farmers back then, I don’t think they would be now.
-
comment
Comment #47452690
Yeah, the "two-bit saturating counter" thing is pretty much exactly how I thought it worked (which would be terrible for the example in the article), but I had no idea about the fa…
-
comment
Comment #47440371
Hmm, that's interesting. The code as written only has one branch, the if statement (well, two, the while loop exit clause as well). My mental model of the branch predictor was that…
-
comment
Comment #47350033
> Two boxes is the only choice that makes sense. It is always better than one box. Congratulations on your $1,000. I'll use some of my $1,000,000 I got by nonsensically picking one…
-
comment
Comment #47333597
Conceptually it's quite similar to how C++ templates work (not including C++20 concepts, which is the kind of constraining you're talking about). I quite like it when writing C++ c…
-
comment
Comment #47311239
It was an essentially pointless platitude about the GIL from a very new account not really related to the article, and all comments from this account are the same: top level commen…
-
comment
Comment #47307695
Yep. Real "dead internet theory" vibes, really sad to see.