Speiser0
@Speiser0@feddit.de
- Comment on Parasitic wasps and caterpillars type of thing 3 months ago:
The first step towards becoming cybermen.
- Comment on happy sun 4 months ago:
Teletubbies was right all the time.
- Comment on You wanna do it, trust me 4 months ago:
Should I cut the blue or the red?
- Comment on The Perfect Solution 5 months ago:
Processors might no longer get twice as fast every few years, but now we can use the power of servers to write software that runs even slower.
- Comment on Humanities be like 6 months ago:
But a vector is a number, no?
- Comment on thisIsGoingToBeASeriousDebate 8 months ago:
Just use
str::as_ptr()
.Here’s an example (disclaimer: I haven’t used inline asm in rust before, expect issues): godbolt.org/z/sczYGe96f
- Comment on thisIsGoingToBeASeriousDebate 8 months ago:
Mostly the missing listing of clobbered registers. Other than that it’s mostly just that you’re doing useless things, like manually putting the stuff into the registers instead of letting the compiler do it, and the useless push and pop. And the loop is obviously not needed and would hurt performance if you do every write like that.
asm!( "syscall", in("rax") 1, in("rdi") 1, in("rsi") text_ptr, in("rdx") text_size, )
(“so many” was inappropriate, sorry.)
- Submitted 8 months ago to foss_gaming@lemmy.world | 0 comments
- Comment on thisIsGoingToBeASeriousDebate 8 months ago:
Definitely left. Right one won’t be optimized. (And there are so many mistakes in your inline asm…)
- Comment on Schrödinger's date format 8 months ago:
And so much more happened: en.wikipedia.org/…/9_November_in_German_history
- Comment on What's your most obscure binding? 9 months ago:
No way, you met json irl?
- Comment on User with this age already exists 9 months ago:
Enter NaN. Or else your age is just a number.
- Comment on The difference 9 months ago:
The first panel is popular media, not computer scientists.
The computer scientist would write papers about how they adapted principles of the alien technology to our stuff.
- Comment on We're monsters 10 months ago:
Why is the snail so large?!
- Comment on Writing C++ is easy. 11 months ago:
I like how this shows how rust is designed more top down and C++ is designed bottom up.
How compiler builders see peppa: