Re: Precedence testing

new topic     » goto parent     » topic index » view thread      » older message » newer message
Spock said...

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:

Spock said...

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.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu