Tim Caswell

Results 341 comments of Tim Caswell

It's not too heavy. Luvit which includes luajit + libuv + openssl + zlib + node API shims written in lua clocks in at around 1.5MB (vs about 11mb for...

Stock lua + libuv (luv bindings) loads a repl at 1mb rss.

For comparison, the stock lua repl included in lua is 1.1mb. So libuv is more efficient than whatever is baked into lua.

@mcollina I don't think I'm even going to attempt to run libuv and a JavaScript runtime on a microcontroller. Is there prior art in this kind of experiment?

@svaarala wow, that's really impressive! How does that compare to stock lua and embedded lua? You're right that libuv is way too much for that kind of device, but it...

Thanks for the links. I'm actually using miniz for luvit.io (with a few patches I added to fix it's buggy zip file support.) We're still using openssl, but I think...

Right, when in doubt, look at luvit's miniz code, I try to copy all patches here, but sometimes forget.

You're welcome to submit a pull request. I've been super busy with other projects at the moment.

Initially I don't think uv is the right place, but then again it needs access to it anyway for proper setup so maybe it's not crazy after all.

The way I do this in luvit is to pass the arg list to the script as part of the main bootstrap. https://github.com/luvit/luvi/blob/master/src/main.c#L130-L135 https://github.com/luvit/luvi/blob/master/src/lua/init.lua#L91