I previously mentioned some work I'd done with mixing Javascript & C.
The code is now visible here:
This consists of a binary which allows you to run javascript files, those javascript files have some extra methods available to them, allowing this sample file to execute and do things:
- Fetch a web-page with curl.
- Connect to a locally running memcached server.
- Parse command line arguments.
Not great work, but still a useful exercise.
ObQuote: "Please! I don't wanna go back there, you don't know what it's like to be treated as a freak!" - Shrek
Tags: mozjs 2 comments
http://roojs.com
Wondered why you did not gjs or seed, both can do this using lib soup