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

Clarify/modify bytecode cost function #248

Open
kazimuth opened this issue Sep 16, 2016 · 0 comments
Open

Clarify/modify bytecode cost function #248

kazimuth opened this issue Sep 16, 2016 · 0 comments

Comments

@kazimuth
Copy link
Contributor

kazimuth commented Sep 16, 2016

Currently our bytecode "cost function" - what we use to count user bytecode - doesn't account for the fact that some bytecode are more expensive than others on the actual machine underneath the VM. Also, it's all scattered around this file, which will make it hard to implement in various editors.

Also, we may want to adjust and document the method costs of various standard library methods. Note that Math.sin and other trig functions currently cost 50 bytecode, which is pretty cruel in continuous space.

We should have a simple definition that will be clear and easy to implement. We should probably put it in the spec.

See also: bytecode instruction listings.

cc @jbloxham

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

No branches or pull requests

1 participant