forked from mbebenita/LLJS
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |