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

Pay for what you use: varadic functions #25

Open
0xekez opened this issue Jun 6, 2021 · 0 comments
Open

Pay for what you use: varadic functions #25

0xekez opened this issue Jun 6, 2021 · 0 comments
Labels
Compiler 🐅 Related to the compiler

Comments

@0xekez
Copy link
Owner

0xekez commented Jun 6, 2021

Varadic functions require that we heap allocate function arguments. This is slow. Most existing Lust programs do not use varadic functions - in that situation we don't need to heap allocate arguments.

Trouble with doing this is that it adds a lot of code complexity (two implementations of function calls) and once there is a standard library which will use varadic functions most Lust programs are liable to use varadic functions.

@0xekez 0xekez added the Compiler 🐅 Related to the compiler label Jun 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compiler 🐅 Related to the compiler
Projects
None yet
Development

No branches or pull requests

1 participant