Steve Kemp's Blog Writings relating to Debian & Free Software

I've posted my javascript stuff

Fri, 1 Jun 2012 12:32:38 GMT

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

[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

[gravitar] 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.

Spiral Logo

Search

Recent Posts

Recent Tags

Links

RSS Feed

  • Subscribe to feed