News for hackers. Stuff that matters.
Re:Why is calling my asm function from Rust slower than call... by toxik on Monday December 29, 2025 @03:37PM (#46425296)
Interesting deep dive. Can't say I understand the nuances really, and some of the Rust syntax looks incredibly arcane to me as an outsider.
Re:Why is calling my asm function from Rust slower than call... by ohr on Tuesday December 30, 2025 @02:54AM (#46430673)
(Author here) thanks! Even as an experienced Rust developer, this is a lot of syntax which is part of what makes it archaic I think.

As usual with Rust most of it is due to inherent complexity: for example, when you deal with raw pointers, you need to specify if they are const or mut, and you must have a syntax that’s not &, and not too wordy: so * is a good choice (might be changed to &raw in the future!). And if you want to say that something is generic and the generic parameter is a pointer… you just end up with a lot of syntax.