Comments (2)
Sadly none of this can be implemented. The UTF8 code is broken but you can't change from binary to Java's String
anyway. I'm going to have to think of another way to get around issues with TailCallVarargs
as otherwise we will be adding to the stack, even on a varargs function.
The original Lua source is pretty confusing, though it might be worth reading through it to find how tailcalls are handled.
The opcode is executed in this function and a tail call count is stored here.
KopiLua's source is here. This might be easier as there is no messing about with pointers.
from cobalt.
This occurs because the function we are calling is a c function, so tail call optimizations don't occur. If we were to implement this ourselves, then we would loose the ability to tail call Java functions. Neither method seems ideal.
from cobalt.
Related Issues (20)
- `;` rules not consistent with PUC Lua HOT 3
- Memory limits via allocation sampling HOT 3
- Integer overflow when creating too long strings
- Push a frame for every function call HOT 1
- `tostring` does not obey `__name`.
- Doubles can end with "f" or "d"
- is there an interpreter? HOT 3
- Does have a plane to support "goto" keyword ? HOT 2
- Missing punctuation in pattern match MASK_PUNCT HOT 1
- Verify bytecode on loading HOT 1
- `IllegalArgumentException` when calling `gsub` HOT 1
- Fuzz testing HOT 1
- Switch to Lua 5.4's random algorithm
- Better benchmarking/performance monitoring
- Port Lua tests to busted-style tests
- `no visible label 'labelname' for <goto> at line X`: The line number seems to be the line number of the previous token.
- `goto` used as identifier and preceded by `then` errors with `compiler assert failed` HOT 1
- Varargs not accepting nil values HOT 5
- NonResumableException when terminating a yielding tostring metamethod HOT 1
- `pairs` and `ipairs` do not do argument checking HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cobalt.