4 ms·
Going one step further, challenge yourself not to use raw language constructs, but dive deep into assembly. Need a conditional? Time to jump around. I wrote a
by spoils19 4y ago
Going one step further, challenge yourself not to use raw language constructs, but dive deep into assembly.
Need a conditional? Time to jump around.
I wrote a web server that scales to over 1 million requests per second, and I found out it's much more maintainable, scalable and environmentally friendly for our company.
- danparsonson 4y agoThat sounds like it was a lot of fun but I'm wondering what assembly gave you that was not available in e.g. C? My understanding is that most compilers can out-optimise the average developer, so are you an above-average developer (well I guess you are) or did assembly enable you to do something that was difficult in a higher level language? Or was it more about the challenge (which I'm totally on board with by the way)?
- strangetortoise 4y ago> My understanding is that most compilers can out-optimise the average developer Do you happen to know where (what source) you got that from? I'm genuinely curious, as to my knowledge, compilers are generally still easily fooled by things that causes them unable to vectorize code or factor out conditional jumps. To give an example here, see Mike Actons' talk below (from about 43:10 onwards) in which he describes the compiler failures. https://youtu.be/rX0ItVEVjHc?t=2590 https://youtu.be/rX0ItVEVjHc?t=2590
- danparsonson 4y agoNo specific source I could point to really, just that I've been hanging around message boards like this for a long time. I didn't mean to say it's impossible to beat a compiler or they don't have any blind spots, but thanks for the link - sounds interesting :-)
- kubanczyk 4y ago> not to use raw language constructs Nit: assembly is a language. The phrase you are looking for is probably "structured programming".
- jesse__ 4y agoTouche