About Archive Tags RSS Feed

 

I've posted my javascript stuff

1 June 2012 21:50

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

| 2 comments

 

Comments on this entry

icon Alan Knowles at 09:59 on 1 June 2012
http://roojs.com

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

icon Steve Kemp at 10:13 on 1 June 2012
http://www.steve.org.uk

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.