node native addons
, you have to write some C++ code and that wraps simple. Which means users gotta rebuild ur js code using C++.node-ffi
if you want to skip the wrapper part, but for some reason the user will still rebuild it and it's slow af
But I don't see an C++ code
That's coz the interpreter is written in js. https://github.com/Ratismal/brainfuck-node/blob/master/lib/index.js
v8 engine
spider monkey
e.t.c so when the web assembly sequence is complete browsers will now comes compiled with a web assembly VM which means that all the browser size will increase
spider monkey
from mosilla and use it on desktop well you just created another or maybe a betther platform than NODE
SIMPLE_API void init_simple_module(SimpleState *sState)
{
//standard streams
register_block("__std_print",std_print);
}
void std_print(void *pointer)
{
fprintf(stdout, "%s", SIMPLE_API_GETSTRING(2) );
}
compile to your lib e.g lib.so
so in simple you could do callDynamicModule("lib.so")
__std_print("Hello World")
list = [[0]]
@list[0][0] //resolves in error
dev
branch i ll push to it every hour. In short i ll be re writing simple-lang to fix a lot of things