Hacker News new | ask | show | jobs
by pjmlp 746 days ago
Yes, Assembly programming concatenanting strings, is horrible.

Intrisics give the best of both worlds, without dealing with string based content.

Actually ESPOL/NEWP from 1961 was one of the very first system programming languages with two key inovations, intrisics and unsafe code blocks.

1 comments

I’m not a fan of concatenating strings either. I was thinking about the MSVC/Pascal-style inline assembly here, which isn’t based on strings.

Correct me if I’m wrong, but I don’t think that you can guarantee a routine is constant-time by using intrinsics. You need asm for that. Asm that won’t be changed by the compiler. So you need to write an external asm file for that now, which is fair enough, but I just wouldn’t present intrinsics as all-around superior.

Yes, if you want full control, only external Assemblers will do the trick.