I've posted my javascript stuff

Friday, 1 June 2012

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

[gravitar] Alan Knowles

Submitted at 09:59:04 on 1 june 2012

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

[author] Steve Kemp

Submitted at 10:13:47 on 1 june 2012

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.


Comments are closed on posts which are more than ten days old.

Recent Posts

Recent Tags