akavel / goluago Goto Github PK
View Code? Open in Web Editor NEW[on hold] Port of Lua 5.1 interpreter to Go Language Toolchain. [Work In Progress.] See also: http://lua.org and http://golang.org
[on hold] Port of Lua 5.1 interpreter to Go Language Toolchain. [Work In Progress.] See also: http://lua.org and http://golang.org
See comment at:
and "extern register" in:
I know goluago does not advertise ARM support yet, but how much work would it be to add it?
Currently, compiling a go program that imports goluago on ARM gives the following output:
# command-line-arguments
_dtoa: illegal combination CMPD C_LFCON C_REG C_NONE, 9 1
(7051) CMPD $0.000000e+00,R0,
pow: illegal combination CMPD C_LFCON C_REG C_NONE, 9 1
(4450) CMPD $0.000000e+00,R2,
_dtoa: illegal combination CMPD C_LFCON C_REG C_NONE, 9 1
(7051) CMPD $0.000000e+00,R0,
pow: illegal combination CMPD C_LFCON C_REG C_NONE, 9 1
(4450) CMPD $0.000000e+00,R2,
Additional tests for checking Lua implementations for correctness are available at lua-TestMore website -- see section "The Lua Test Suite". Shall use them too, in addition to the testsuite provided by Lua authors I already use.
testing functions and calls
+
+
+
PANIC: unprotected error in call to Lua API ([string "from loadbuffer"]:125: attempt to index global 'table' (a nil value))
FAIL github.com/akavel/goluago/internal 0.024s
Given that non-cgo C won't be supported in Go 1.4+ anymore, a switch to rsc's c2go C->Go translator is a must. The good part is that I wanted for something like this to happen anyway, before even c2go was first announced. Also, advantages abound. The bad part is that it will probably require much work again.
void
·lua_tonumber(uintptr L, uintptr index, uintptr pret) {
*((lua_Number*)pret) = lua_tonumber((lua_State*)L, (int)index);
}
How these can be compiled ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.