Speiser0
@Speiser0@feddit.de
- Comment on Parasitic wasps and caterpillars type of thing 10 months ago:
The first step towards becoming cybermen.
- Comment on happy sun 11 months ago:
Teletubbies was right all the time.
- Comment on You wanna do it, trust me 11 months ago:
Should I cut the blue or the red?
- Comment on The Perfect Solution 1 year 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 1 year ago:
But a vector is a number, no?
- Comment on thisIsGoingToBeASeriousDebate 1 year 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 1 year 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 1 year ago to foss_gaming@lemmy.world | 0 comments
- Comment on thisIsGoingToBeASeriousDebate 1 year 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 1 year ago:
And so much more happened: en.wikipedia.org/…/9_November_in_German_history
- Comment on What's your most obscure binding? 1 year ago:
No way, you met json irl?
- Comment on User with this age already exists 1 year ago:
Enter NaN. Or else your age is just a number.
- Comment on The difference 1 year 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 1 year ago:
Why is the snail so large?!
- Comment on Writing C++ is easy. 1 year ago:
I like how this shows how rust is designed more top down and C++ is designed bottom up.
How compiler builders see peppa: