Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jfkebwjsbx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
jfkebwjsbx
6y ago
Fun is fine outside production code.
62.
▲
by
jfkebwjsbx
6y ago
Ignoring your condescending tone, there is no need for another thread to "enable" running the simulation at a fixed frequency. In fact, a myriad of games (and other kinds of simulations) have been doing exactly that for a very lon
63.
▲
by
jfkebwjsbx
6y ago
Running in another thread does not make it correct, it only increases performance.
64.
▲
by
jfkebwjsbx
6y ago
Chess is all about memorizing patterns of many kinds to then recognize them and reapply on the spot. What all great chess players have in common is an amazing memory and the will to think and work on chess all day long (which is more astoni
65.
▲
by
jfkebwjsbx
6y ago
It is a C API but a lot of code make assumptions about how things are laid out, which need fixing. There is also a lot of software for which the source is not available anymore.
66.
▲
by
jfkebwjsbx
6y ago
Duplicating state has always been an approach for multithreading, but the problem is that it is not always fast enough and merging back can be hard. There is no silver bullet. There are decades of academic research and engineering on this a
67.
▲
by
jfkebwjsbx
6y ago
Audio is a very different problem that is typically about a chain of streaming buffers. The thread pulling audio data (and all the others processing it) is independent from the UI etc., that is not an issue. Copying and passing immutable da
68.
▲
by
jfkebwjsbx
6y ago
WebGPU is not high-level, no? It is closer to Vulkan than to OpenGL. And I am not sure Vulkan runs everywhere... what about consoles?
69.
▲
by
jfkebwjsbx
6y ago
That doesn't work as well as you think it does because entities cannot think on their own. They need to refer to global shared state all the time.
70.
▲
by
jfkebwjsbx
6y ago
I have always seen its goal as providing the means to create different user libraries for different specialized purposes on top of it. Then you also get implementations of other APIs like Direct3D on top on Vulkan, which is amazing because
71.
▲
by
jfkebwjsbx
6y ago
A couple of corrections, if you don't mind... Vulkan is not hardware-specific, it is an open, cross platform standard like OpenGL. Direct3D is not standard, but it is so well supported and used (even in Linux!) that you can consider it
72.
▲
by
jfkebwjsbx
6y ago
Metal is not cross platform nor open.
73.
▲
by
jfkebwjsbx
6y ago
And such extension is a major PITA to do. The API is atrocious, like most of the DOM API is.
74.
▲
by
jfkebwjsbx
6y ago
This is not true. It does not matter that HTML is page-based to be able to provide an abstraction for components of elements of the page.
75.
▲
by
jfkebwjsbx
6y ago
The exact same thing happens in every non-regulated field. People want cheap everything, and a race to the bottom happens.
76.
▲
by
jfkebwjsbx
6y ago
All Europe?
77.
▲
by
jfkebwjsbx
6y ago
They aren't unforgiving, because if you need performance you can use another function that does not do the check. Same as for arrays. It seems strange to have a cast as a safe operation and yet return results that are almost surely a b
78.
▲
by
jfkebwjsbx
6y ago
It is't about performance because array indexing also panics.
79.
▲
by
jfkebwjsbx
6y ago
> there is no room in the type system to return an error There is: you panic, like in the array case. That would have been much robust (at the cost of performance).
80.
▲
by
jfkebwjsbx
6y ago
Thanks! The renderer is to be expected to be in C++, but I was thinking about the server side more (the simulation).
81.
▲
by
jfkebwjsbx
6y ago
That naively means EVE simulation could be about 10x as fast if written in something else? Or did you speed up some modules in a native/JIT language?
82.
▲
by
jfkebwjsbx
6y ago
Swift, Rust nor Go provide support for exotic targets. If you want code to work in actually "weird architectures and little known operating systems", then your only option is C (or weird dialects of "C" in some cases). A
83.
▲
by
jfkebwjsbx
6y ago
There are resources that won't be cleanly cleared on crash. Others won't be removed at all. There is also the debugging analysis and the monitoring sides of it too. Thus avoiding shutdown logic is sloppy engineering to say the lea
84.
▲
by
jfkebwjsbx
6y ago
A lot of software needs specialized data structures to perform their job. They are not "bizarre concoctions".
85.
▲
by
jfkebwjsbx
6y ago
There is nothing wrong with code generation, what do you mean by "or worse"?
86.
▲
by
jfkebwjsbx
6y ago
There is nothing nice about it. Not even in a REPL. Preventing a simple move of the cursor does not justify complexity and yet another way to apply a function.
87.
▲
by
jfkebwjsbx
6y ago
Binary interfaces with process isolation have existed for at least 30 years, too.
88.
▲
by
jfkebwjsbx
6y ago
If you are need to gc repos it is likely you are a huge customer that they care about.
89.
▲
by
jfkebwjsbx
6y ago
> I'm also arguing against it being provided in the stdlib because Rust is big in avoiding "you're holding it wrong" kind of answers Even if it was true that Rust is big on that, such a function is not "holding
90.
▲
by
jfkebwjsbx
6y ago
Fair enough. I wanted to mention that Rust is not the only language that targets WASM since you talked about maturity.
More ›