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

Option to increase stack size in bundled Lua JIT #14427

Open
Russoul opened this issue Apr 23, 2021 · 0 comments
Open

Option to increase stack size in bundled Lua JIT #14427

Russoul opened this issue Apr 23, 2021 · 0 comments
Labels
enhancement feature request lua stdlib

Comments

@Russoul
Copy link

Russoul commented Apr 23, 2021

  • nvim --version: nightly

Hi all! I have a Neovim plugin written in a FP language - Idris 2. It transpiles to Lua.
Functional languages heavily rely on recursion.
Considering that many functions are not tail recursive — thus can’t be rewritten into a loop — sometimes it’s easy to get yourself into a stack overflow. I noticed that the stack size in the bundled Lua JIT seems to be reduced compared to what I see in my locally installed one.

I am sure there is a way to tune stack size somewhere in the configs for installation of Neovim.

But maybe someone here knows how to do that off the top of their head ?

@Russoul Russoul added the enhancement feature request label Apr 23, 2021
@zeertzjq zeertzjq added the lua stdlib label Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature request lua stdlib
Projects
None yet
Development

No branches or pull requests

2 participants