Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microses: bitfields, so microses is subset of asm.js #3

Open
erights opened this issue Jan 10, 2017 · 5 comments
Open

Microses: bitfields, so microses is subset of asm.js #3

erights opened this issue Jan 10, 2017 · 5 comments

Comments

@erights
Copy link
Owner

erights commented Jan 10, 2017

No description provided.

@erights erights changed the title Microses: bitfieds, so microses is subset of asm.js Microses: bitfields, so microses is subset of asm.js Jan 10, 2017
@erights
Copy link
Owner Author

erights commented Jan 15, 2017

Microses is not a syntactic subset of asm.js anyway. @metaweta , the question is, if we lift the bitfield restrictions, can legal asm.js easily be transformed into equivalent asm.js programs that are also microses programs? If not, what other restrictions would we need to lift?

@metaweta
Copy link

Will have to check, but here's the specification:
http://asmjs.org/spec/latest/

@metaweta
Copy link

Current support:
http://caniuse.com/#feat=asmjs

@metaweta
Copy link

I looked over the validation section, and as far as I can tell, if you lift the restriction on bitwise operators, the rest of asm.js code can be transformed into microses. In particular, asm.js is pretty much restricted to manipulating numbers and typed arrays, not strings or other kinds of objects.

@erights
Copy link
Owner Author

erights commented Jun 21, 2018

At https://github.com/Agoric/TinySES we list an additional reason for TinySES to include bitwise operators: the addition of BigInts to JS and TinySES.

Leaving open here for now, but this issue should move to https://github.com/Agoric/TinySES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants