Re: Precedence testing
- Posted by petelomax Oct 22, 2020
- 1260 views
What about about !! and ^^ for not_bits() & xor_bits() ? For c2ypt0 apps perhaps >>> and <<< ?
Sorry, not yet in. &&= and ||= are already in, but not <<= and >>=.
I suspect a bitwise not should really be `~~` instead of `!!`, which has already found some real-world use in other languages, as a logical "not not".
Are 32-bit rotates still 32-bit rotates on 64-bit? anyway, asm:
How does Phix compare for context switching?
Very well, especially when inline. In fact just a couple of weeks ago I penned this which boosted performance compared to non-asm by 90%, although I ended up with something 1000 times better even than that.
A hll call/return won't be so great, but you can define a global label, eg #ilASM{ :!myGlobal ... ret} and #ilASM{ call myGlobal }, which is pretty much what quite a few of the "true builtins" do.
PS I actually managed to make a copy of Orac run on Phix - not very stable and probably still riddled with "illegal-sequence-ops" though, plus I suspect you'd be way better off modifying phix directly than persisting with that approach.