Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
torginus
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
271.
▲
by
torginus
3mo ago
Yes unfortunately, C++ has a long history of features that were supposed to be much more limited than how they ended up being used - but engineers ended up finding holes in these fences, and that's how we ended up with things like SFIN
272.
▲
by
torginus
3mo ago
This whole story is so nonsensical - we can't make self replicating probes because the materials are very hard to extract - extract from what ? Perhaps if that is the case, it's because you have to get the metal from that mineral
273.
▲
by
torginus
3mo ago
Not by a long shot. https://en.wikipedia.org/wiki/Abundance_of_the_chemical_elem...
274.
▲
by
torginus
3mo ago
The most abundant elements are the ones biology works with (except for Helium ).
275.
▲
by
torginus
3mo ago
Actually the other way around: https://en.wikipedia.org/wiki/Abundance_of_the_chemical_elem... There's tons of Carbon, Nitrogen and Oxygen in the universe, but very little metals. Heavier elements are much rarer.
276.
▲
by
torginus
3mo ago
Afaik reflex is a bit different - it times the input to frame latency in your game, and tries to start the gameloop as late as possible in the frame so that your input gets sampled at the latest possible time and the frame still makes it to
277.
▲
by
torginus
3mo ago
I am not super familiar with Wayland, but basically how composited rendering under X11 works, is if you have a fullscreen window, you can give an 'unredirect' hint to the compositor, in which case when nothing else is drawing your
278.
▲
by
torginus
3mo ago
This kind of thing is certainly possible under Windows - you can basically patch any kernel API call, replace any COM object instantiation, install filter drivers that intercept any request to and from a device, replace userland DLLs with y
279.
▲
by
torginus
3mo ago
Onerous is a great word for this. I just checked the linked fork implementation, and basically all the lines of C code there is to the point, and does something useful. Most lines of Rust actually are there to satisfy some constraint of the
280.
▲
by
torginus
3mo ago
Andrew Kelley mentioned that the rewrite did bring technical improvements, however those were not tied to Rust and could've been made in the Zig codebase.
281.
▲
by
torginus
3mo ago
I don't even get what they gain by Rust - Bun imports Webkit, which is a C++ project, relying on it for stuff like JITing Javascript. I would say that's a major concern, and making sure the JIT doesn't emit anything broken or
282.
▲
by
torginus
3mo ago
I've had someone tell me to not bother with list virtualization under React, since the 'computer's fast, it won't matter'. We shipped it like that. Turns out the computer's not fast and it does matter.
283.
▲
by
torginus
3mo ago
To be clear I am not picking nits, nor am I trying to prove that 'language X' is better than Rust - but if you want to mention stack allocation as an advantage, then it has to be general enough to work all the time - in my sibling
284.
▲
by
torginus
3mo ago
Thanks for answering my points in detail! I think this is one of those domains where there's enough theory and practical considerations, that basically given the same set of constraints, there's generally one set of correct conclu
285.
▲
by
torginus
3mo ago
This isn't necessarily true - at least not in a meaningful way - if Goose has a Vec in it, that'll end up on the heap no matter what.
286.
▲
by
torginus
3mo ago
Actually, this is my personal opinion, but in Java, allocating an object is just bumping a pointer, so it's much cheaper than doing a malloc in C. I personally don't think the stack is a good place to put temp values and I'm
287.
▲
by
torginus
3mo ago
They really are not - there used to be whole schools of thought on how to lay out applications in memory, using the freedom of C before C++ came along, and standardized on a bunch of solutions that are controversial in some circles - stuff
288.
▲
by
torginus
3mo ago
They might've pushed it, but they certainly didn't invent the idea. Although I'm not 100% familiar with their arguments. POD - objects with no behavior are pretty popular way of representing data, you can serialize and deseri
289.
▲
by
torginus
3mo ago
I didn't recommend fixed point for simpler HW - I recommended it for better precision (if you know what you are doing). First, a point I didn't make, is that if you have 32 bits of fixed, you get way more precision than with a 3
290.
▲
by
torginus
3mo ago
I an not suggesting analog.. HDMI and DVI are fully digital, yet they retain the same dead simple signaling of VGA... at least for sending images, all the added features on HDMI, such as content protection and embedding other signals into t
291.
▲
by
torginus
3mo ago
I never understood why fixed precision, and integer math isn't more popular. In engineering, we used fixed point all the time, it ran on much simpler hardware and the error is mathematically easy to model. IEEE 754 floats are not only
292.
▲
by
torginus
3mo ago
What I don't get is that Chrome is hundreds of megabytes of just executable code, I assumed they statically linked half the userland. Also, I though tanh isn't a function, but an intrinsic emitted by the JS JIt that uses CPU instr
293.
▲
by
torginus
3mo ago
These smart peripheral protocols suck balls. The VGA->DVI->HDMI chain retained the following simplicity of: 1. Send color of pixel 2. At the end of the line + blank send a pulse on HSYNC pin 3. At the end of the screen send a signal o
294.
▲
by
torginus
3mo ago
Agree, and this is a huge bungle you can make in language design, that will affect compiler performance down the line significantly. If you know which package each type comes from, you only need to check the exports of that package, otherw
295.
▲
by
torginus
3mo ago
Yes. Anyone who doesn't acknowledge the efficiency difference between pretraining vs RL and assume that since we've run out of data for the former, we have to do the latter, is not making a serious attempt at modelling the future:
296.
▲
by
torginus
3mo ago
I thought linear algebra was pretty much the poster child of applied mathematics - the entire field was invented to represent computations in a regularized form to feed into computers. Well not really, but much like Boolean algebra or th
297.
▲
by
torginus
3mo ago
Huh. I never knew that was a thing. Although sounds cool. Though if you do that, or take something like a ncurses UI, and start turning it into something nicer, at what point do you have something that's not a terminal? But I guess the
298.
▲
by
torginus
3mo ago
I use the terminal that happens to be at hand, which is usually the one that ships with the OS, or the one in VSCode. I don't have high demands on the terminal, and I don't understand what problems are there to solve, as long as i
299.
▲
by
torginus
3mo ago
Its academia. Rust is admirable for having been able interesting programming language research into a mainstream language, but this had the implication of bringing the people who did said research with it into the communities. It used to be
300.
▲
by
torginus
3mo ago
I remember watching this urban exploration video, the guy went into an abandoned Russian nuclear bunker, deep underground. Watching this titanic effort of engineering, made by people who were both highly intelligent and had vast resources a
More ›