You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,10 +37,33 @@ Lot's of stuff is missing...
37
37
38
38
## performace
39
39
40
-
The esp-lisp is interpreted, too keep the code small and simple. Compared to lua from the NodeMcu it's about 2x slower, but lua is compiled and uses lots of memory for functions (about 600 bytes for a simple call).
40
+
The esp-lisp is interpreted, to keep the code small and simple. Compared to lua from the NodeMcu it's about 2x slower, but lua is compiled and uses lots of memory for functions (about 600 bytes for a simple call).
41
41
42
42
## how to build
43
43
44
+
### I want to run it on my linux/cygwin, I have GCC
45
+
46
+
- Get https://github.com/yesco/esp-lisp
47
+
- esp-lisp> ./run
48
+
49
+
It'll compile and run it for you, you'll have a lisp prompt.
50
+
51
+
lisp> help
52
+
...
53
+
54
+
try out the commands, it also shows what functions/symbols there are
55
+
56
+
lisp> (+ 3 4)
57
+
7
58
+
59
+
lisp> (setq fac (lambda (n) (if (= n 0) 1 (* n (fac (- n 1))))))
60
+
#func[]
61
+
62
+
lisp> (fac 6)
63
+
720
64
+
65
+
### build embeddable image and flash it to a nodemcu/EPS8266 device
66
+
44
67
In a directory:
45
68
46
69
- Get https://github.com/SuperHouse/esp-open-rtos (and all it wants)
0 commit comments