Search:
Match:
2 results
Research#llm📝 BlogAnalyzed: Dec 25, 2025 13:07

Salvatore Sanfilippo on Lua vs. JavaScript for Redis Scripting

Published:Dec 23, 2025 23:03
1 min read
Simon Willison

Analysis

This article quotes Salvatore Sanfilippo, the creator of Redis, discussing his preference for JavaScript over Lua for Redis scripting. He explains that Lua was chosen for practical reasons (size, speed, ANSI-C compatibility) rather than linguistic preference. Sanfilippo expresses a dislike for Lua's syntax, finding it unnecessarily divergent from Algol-like languages, creating friction for new users without offering significant advantages. He contrasts this with languages like Smalltalk or Forth, where the learning curve is justified by novel concepts. The quote provides insight into the historical decision-making process behind Redis and Sanfilippo's personal language preferences.
Reference

If this [MicroQuickJS] had been available in 2010, Redis scripting would have been JavaScript and not Lua.

Research#llm📝 BlogAnalyzed: Dec 25, 2025 13:10

MicroQuickJS: Fabrice Bellard's New Javascript Engine for Embedded Systems

Published:Dec 23, 2025 20:53
1 min read
Simon Willison

Analysis

This article introduces MicroQuickJS, a new Javascript engine by Fabrice Bellard, known for his work on ffmpeg, QEMU, and QuickJS. Designed for embedded systems, it boasts a small footprint, requiring only 10kB of RAM and 100kB of ROM. Despite supporting a subset of JavaScript, it appears to be feature-rich. The author explores its potential for sandboxing untrusted code, particularly code generated by LLMs, focusing on restricting memory usage, time limits, and access to files or networks. The author initiated an asynchronous research project using Claude Code to investigate this possibility, highlighting the engine's potential in secure code execution environments.
Reference

MicroQuickJS (aka. MQuickJS) is a Javascript engine targetted at embedded systems. It compiles and runs Javascript programs with as low as 10 kB of RAM. The whole engine requires about 100 kB of ROM (ARM Thumb-2 code) including the C library. The speed is comparable to QuickJS.