HNHacker News
TopNewBestAskShowJobs

jfkebwjsbx

1,123 karma · joined February 12, 2020

submissionscomments
jfkebwjsbx··on Show HN: UUIDs that are Shakespearean, grammatically correct sentences
Fun is fine outside production code.
jfkebwjsbx··on Fixing Mass Effect black blobs on modern AMD CPUs
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 long time.

jfkebwjsbx··on Fixing Mass Effect black blobs on modern AMD CPUs
Running in another thread does not make it correct, it only increases performance.
jfkebwjsbx··on Does playing chess make you smarter? A look at the evidence
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 astonishing to me than the memory side).

jfkebwjsbx··on Windows on Raspberry
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.

jfkebwjsbx··on How do I design a game from scratch? A primer on core loops
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 and we have yet to reach a good answer.

jfkebwjsbx··on How do I design a game from scratch? A primer on core loops
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 data around is not always fast enough and definitely not trivial to merge the results back.

In summary, it is a hard problem with no general solution. If you could solve it, then you have solved multithreading design for any problem.

jfkebwjsbx··on Krita, OpenGL and Qt
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?

jfkebwjsbx··on How do I design a game from scratch? A primer on core loops
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.
jfkebwjsbx··on Krita, OpenGL and Qt
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 you can reuse all your code and tooling and run everywhere.

jfkebwjsbx··on Krita, OpenGL and Qt
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 one.

jfkebwjsbx··on Krita, OpenGL and Qt
Metal is not cross platform nor open.
jfkebwjsbx··on Ways to make a web component
And such extension is a major PITA to do. The API is atrocious, like most of the DOM API is.
jfkebwjsbx··on Ways to make a web component
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.
jfkebwjsbx··on TensorFlow, Keras and deep learning, without a PhD
The exact same thing happens in every non-regulated field.

People want cheap everything, and a race to the bottom happens.

jfkebwjsbx··on Things I wish I’d known about CSS
All Europe?
jfkebwjsbx··on Rust 1.45
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 bug. This means I will avoid casts altogether in my code, and I do hope they get rid of them at some point as some have suggested.

jfkebwjsbx··on Rust 1.45
It is't about performance because array indexing also panics.
jfkebwjsbx··on Rust 1.45
> 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).

jfkebwjsbx··on Networked games: Playing in the past or future
Thanks! The renderer is to be expected to be in C++, but I was thinking about the server side more (the simulation).
jfkebwjsbx··on Networked games: Playing in the past or future
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?
jfkebwjsbx··on Introducing Swift Service Lifecycle
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).

At least that was how things were around >10 years ago, not sure about the current state of things. Anyone can chime in? Do embedded vendors etc. provide proper forks of newish, modern compilers?

jfkebwjsbx··on Introducing Swift Service Lifecycle
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 least. Same for ignoring the need to design the system to avoid crashes to begin with, including OOM ones.

This has nothing to do with ensuring your system is OK on crash, which is another side of robustness.

jfkebwjsbx··on Go generics may use square brackets [] not parenthesis ()
A lot of software needs specialized data structures to perform their job.

They are not "bizarre concoctions".

jfkebwjsbx··on Go generics may use square brackets [] not parenthesis ()
There is nothing wrong with code generation, what do you mean by "or worse"?
jfkebwjsbx··on Bringing the print statement back
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.
jfkebwjsbx··on Rust Is Surprisingly Good as a Server Language
Binary interfaces with process isolation have existed for at least 30 years, too.
jfkebwjsbx··on Ask HN: My GitHub account got suspended without any notice
If you are need to gc repos it is likely you are a huge customer that they care about.
jfkebwjsbx··on Tour of Rust
> 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 it wrong", it is just a matter of convenience and development speed vs. performance.

For the vast majority of code it does not matter whether you allocate a few times or not. The timing difference is in the noise.

Let Rust be a convenient language rather than a PITA.

jfkebwjsbx··on Rust Is Surprisingly Good as a Server Language
Fair enough. I wanted to mention that Rust is not the only language that targets WASM since you talked about maturity.
← PreviousPage 3 of 29Next →