Skip to content

Commit

Permalink
Update README and add node script
Browse files Browse the repository at this point in the history
  • Loading branch information
syg committed May 24, 2012
1 parent 2bb3337 commit bd58c56
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
27 changes: 19 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
LLJS
====

LLJS (formerly known as *JS) is a typed dialect of JavaScript that offers a C-like type system with manual memory management.
It compiles to JavaScript and lets you write memory-efficient and GC pause-free code less painfully, in short, LLJS is the bastard child of JavaScript and C.
LLJS is early research prototype work, so don't expect anything rock solid just yet.
The research goal here is to explore low-level statically typed features in a high-level dynamically typed language.
Think of it as inline assembly in C, or the unsafe keyword in C#.
It's not pretty, but it gets the job done.

[Try It Online](http://lljs.org)
LLJS (formerly known as *JS) is a typed dialect of JavaScript that offers a
C-like type system with manual memory management. It compiles to JavaScript
and lets you write memory-efficient and GC pause-free code less painfully, in
short, LLJS is the bastard child of JavaScript and C. LLJS is early research
prototype work, so don't expect anything rock solid just yet. The research
goal here is to explore low-level statically typed features in a high-level
dynamically typed language. Think of it as inline assembly in C, or the
unsafe keyword in C#. It's not pretty, but it gets the job done.

[Try It Online](http://lljs.org)

Usage
=====

For users of node.js, `bin/ljc` is provided.

For users of SpiderMonkey `js` shell, the compiler can be invoked with:

$ js src/ljc.js
7 changes: 7 additions & 0 deletions bin/ljc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env node

var path = require('path');
var fs = require('fs');
var dir = path.join(path.dirname(fs.realpathSync(__filename)), '..');

require(path.join(dir, 'ljc')).cli();

0 comments on commit bd58c56

Please sign in to comment.