Skip to content

I've posted my javascript stuff

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

Comments On This Entry

  1. [gravitar] Alan Knowles

    Wondered why you did not gjs or seed, both can do this using lib soup

  2. [author] Steve Kemp

    Mostly because I wanted to experiment with the Mozilla engine. I admit there are more practical alternatives, but I think I've learned something and I now know how to embed a decent engine in my code.