Low Level JavaScript
summary
Low Level JavaScript is an experimental language that adds C‑style annotations and compiles to JavaScript to let code use a typed‑array heap, emulates a stack, and implement its own allocator. Benchmarks claim about 8x memory reduction versus objects and about 10× speed on linked lists by using compact structs and pointer arithmetic. The prototype ships as a Node CLI, includes a K&R malloc port, requires manual malloc/free, and currently cannot store arbitrary JS objects in the LJS heap.
AI-written summary · about
chapters (23)
- 0:00Intro
- 1:00Linked List
- 1:20JavaScript
- 3:35Memory Usage
- 4:55Tweets
- 5:58LHS
- 6:33structs
- 7:16offsets
- 7:35pointers
- 8:22heap allocation
- 9:35implementation
- 10:40open source tools
- 11:27what are pointers
- 12:35how pointers work
- 13:25monomorphic code
- 14:22compile ends down
- 15:24example code
- 15:45manual interfacing
- 16:25memory leaks
- 17:01weak references
- 18:04interop
- 18:29general concluding remarks
- 20:12question
related talks
52mJavaScript at the Speed of Light
30mJavaScript Taking Both the High and Low Roads
29mJavaScript in JavaScript: Inception
06mJavaScript: The Fairly Odd Parts
41mJerryScript: An Ultra-lightweight JavaScript Engine for the Internet of Things
31mJavaScript Compilation Techniques or "Wasn't JavaScript supposed to be slow?"
26mJavaScript Level 9000
33mJavaScript the Grumpy Parts
