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.
Just use str::as_ptr()
.
Here’s an example (disclaimer: I haven’t used inline asm in rust before, expect issues): https://godbolt.org/z/sczYGe96f
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.)
Definitely left. Right one won’t be optimized. (And there are so many some mistakes in your inline asm…)
And so much more happened: https://en.wikipedia.org/wiki/9_November_in_German_history
No way, you met json irl?
Enter NaN. Or else your age is just a number.
Depends on whether you installed arch on the plane yet.
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.
Does linux have guis at all? I mean it’s just a kernel.
Steps to fix:
Real world doesn’t make exceptions. So you’ll get UB.
Did anyone else misread this as the rail being densely filled with humans (for every a,b in R, a < b, there are infinitely many humans in (a,b))?
The Mad World version by Gary Jules is actually a cover of Tears For Fears’ original:
I like how this depicts how rust is designed more top down and C++ is designed bottom up.
How compiler builders see peppa:
https://www.deviantart.com/ian-exe/art/Peppa-pig-front-face-743773121
I think these two pigs are the best comparison of rust and c++ I’ve ever seen. Also considering the aesthetics, it’s so accurate.
I see how you censored at “undefined”. Thanks. The actual value could easily kill anyone who sees it.
Reminds me of https://youshallnotpass.glitch.me/. But this one is even harder. :D
Yes, I’ll name my child parent. This will reverse the tree, vertically.