Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
delta64
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
delta64
2y ago
It's slightly odd to say 'wow, epoll can wait on any type of kernel handle, like timerfd and signalfd!' given those *fd interfaces were added just for select/poll/epoll. Strikes me as remarkably ugly design...
2.
▲
by
delta64
3y ago
I've long thought about these kind of OS designs, and what great features they can enable (such as time travel debugging). But the non-determinism introduced by inter-CPU interactions is a fundamental limitation, hence the need to run
3.
▲
by
delta64
4y ago
Why would static linking be incompatible with `dlopen`?
4.
▲
Managarm: End of 2022 Update
(managarm.org)
3 points
by
delta64
4y ago
|
0 comments
5.
▲
by
delta64
4y ago
Sure, but I think '== might be a function call' is a lot less confusing than '== sometimes compares for equal value and sometimes doesn't'
6.
▲
by
delta64
4y ago
How is that any different to some opaque method call? By the same logic `a.equals(b)` might be doing something funky under the hood
7.
▲
by
delta64
4y ago
The obvious thing is to check if the contents are equal. I don't know what cursed C++ you're looking at if you're finding a ton of string implementations not doing exactly that...
8.
▲
by
delta64
4y ago
The author definitely understands that. The point is: when you don't have operator overloading you get stuff like that which does demonstrably confuse many people In languages with operator overloading this just isn't a concern at
9.
▲
by
delta64
6y ago
Thanks so much! I'll take a look at these when I get a chance
10.
▲
by
delta64
6y ago
Maybe that'll be my next project. Or instead someone should just write a compiler which outputs a printf format string, perhaps?
11.
▲
by
delta64
6y ago
It sounds like it should be possible (CMake also has eval), but the lack of OOP isn't so much a problem for what I needed. Packing and unpacking the vectors was more annoying. I can live without OOP, I've written enough C to get u
12.
▲
by
delta64
6y ago
It figures out which rows to render using its own worker index
13.
▲
by
delta64
6y ago
Thanks! This is extremely impressive, and looks like far more effort haha
14.
▲
by
delta64
6y ago
> The model being rendered also is hard-coded in the ray tracer. This is true - but there's no reason why it couldn't be modified to read in a scene description. It's more a proof of concept than anything else.
15.
▲
by
delta64
6y ago
Speaking as the author of the post, I completely agree! I got burned so many times by random shit that made no sense. Stringly typed languages are the absolute worst.