[17/*] The only alternative to something like this would be to write these parts in inline assembler, which honestly, would be fine with me - except the syntax for inline assembler is so horrid that it makes it very unpleasant to use.
-
Show this thread
-
[18/*] So another option would be to get serious about inline assembler, and make a pleasant-to-use, well specific ASM syntax that can be placed in C. I'd be fine with either.
3 replies 0 retweets 18 likesShow this thread -
-
-
-
-
Replying to @cmuratori @yvz_gny
Disclaimer: I'm not a Zig zealot or even a user so this isn't a recommendation: inline asm input/output/clobbering syntax does look like someone put thought into it. https://ziglang.org/documentation/master/#Assembly …
1 reply 0 retweets 0 likes -
Except it doesn't? That looks exactly as crappy as the CLANG version, where the syntax is unreadable due to tons of unnecessary markup.
1 reply 0 retweets 0 likes -
Replying to @cmuratori @yvz_gny
Not disagreeing, but curious (again, not zealot / defending Zig at all)- I'd want to see a 1:1 mapping of variables to registers, then my asm code, then a map from regs I care about to output values. I do agree that syntax is gross but don't have any better ideas :( Got anything?
2 replies 0 retweets 0 likes -
(and also, as an aside, a very large agreement to "it's ridiculous that we should have to do any asm for this, since intrinsics literally exist for this purpose")
1 reply 0 retweets 1 like
Yes, that part is obviously unfortunate.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.