-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
52 lines (37 loc) · 1.35 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
A virtual machine for something almost like ruby.
The verneuil process produces artificial rubies that are somewhat unlike real
rubies - they are too pure and don't have the characteristics of real ones.
This is a virtual machine that:
* executes something that is almost Ruby (it looks like it)
* and that can store its state to disk. And resume.
Think: Continuations. Serializable.
Is it useful? That depends. You could for example use this to
* script website interaction with your user
* create scripts that run for days/months
* create crash safe programs (checkpoints? transactions?)
* transfer running programs over the wire (agents!)?
* and perhaps more
STEREOID-CODE
Verneuil is *eval* on stereoids.
SYNOPSIS
code = "puts 42"
program = Verneuil::Compiler.compile(code)
process = Verneuil::Process.new(code, self)
process.run # prints 42 to the console.
STATUS
Verneuil currently handles all the programs in spec/programs. The following
Ruby features should work:
* Method calls
* Local variables
* Method definitions
* if then else
* while
* Masking class methods
* correct self
* fork, join
Currently this project lays sleeping for a few months - until I will need it
again. That day is sure to come.
CONTRIBUTORS
Florian Hanke (florianhanke.com)
Kaspar Schiess (absurd.li)
(c) 2011-2015 Kaspar Schiess