Hacker News

New stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. AI Debt vs. Treasuries(ft.com ↗)
    1comments
  2. "WeWorm": Zero-click worm could have taken over all WeChat accounts(heise.de ↗)
    discuss
  3. Dwarf Star Support for Qwen3.8 Flash Next(github.com/antirez ↗)
    discuss
  4. YuE2 – Frontier music generation with editable scores(github.com/multimodal-art-projection ↗)
    discuss
  5. Pactora – AI contract review built by a lawyer, not engineers(pactora.uk ↗)
    discuss
  6. Automattic says CEO Mullenweg was gone and back inside 33 hours. What happened?(thenewstack.io ↗)
    discuss
  7. OpenSpec – A lightweight and configurable AI spec framework(openspec.dev ↗)
    discuss
  8. Calculator for Australian take-home pay, tax and super(auspaycalculator.org ↗)
    discuss
  9. How much does one hour of bots cost on Cloudflare Workers?(gfuse.dev ↗)
    discuss
  10. Plans for Agents (and Humans)(hive.technology ↗)
    discuss
  11. Australia says it could follow Canada in forging deeper ties with EU(independent.co.uk ↗)
    discuss
  12. Fossil tooth analysis confirms Tyrannosaurus rex was warm-blooded(cnn.com ↗)
    discuss
  13. The mascots, design and visual history of Wikipedia(itsnicethat.com ↗)
    discuss
  14. 60%+ of Japan firms with foreign workers would struggle without overseas hiring(japantimes.co.jp ↗)
    discuss
  15. Show HN: DroidPutter – Run Cardputer Apps on Android via USB OTG(github.com/fcavalcantirj ↗)
    discuss
  16. Why building a Rust LSP is hard(rust-glancer.github.io ↗)
    discuss
  17. Some things Veloren does differently(jsbarretto.com ↗)
    discuss
  18. New Potential Automatic Parallelizer(deshi.ch ↗)
    1comments
  19. I Put My Startup Esdenera on Hold(archive.org ↗)
    discuss
  20. Am I Cited by AI? See which AI assistants are reading your papers(amicitedby.ai ↗)
    discuss
  21. Quantifying Context Rot(boolean.ai ↗)
    discuss
  22. A4list: Two weeks, folded small (A4 paper plan designer)(enzom.dev ↗)
    1comments
  23. Signal Enables Phone Number-Less Registration in Beta(privacyguides.org ↗)
    discuss
  24. Steve Wozniak launches merch store(daringfireball.net ↗)
    3comments
  25. VideoRouter – OpenRouter for video and image generation APIs(videorouter.sh ↗)
    1comments
  26. Perhaps I Got Lucky Never Learning Math(humanparadox.org ↗)
    discuss
  27. Gentrification signals are a lagging indicator of home prices, not a leading one(petervijeh.com ↗)
    discuss
  28. GPS time from ATSC broadcast PoC(fabian.fyi ↗)
    discuss
  29. iTerm2 Buddy – iTerm2 Companion App(iterm2.com ↗)
    discuss
  30. Firefox 156 opens PDFs 45% faster, plus a few annoying bug fixes(pcworld.com ↗)
    discuss

Ribbit: A Small Scheme VM, Compiler and REPL in 4K (2021) [video]

2 pointsby 52m agoyoutube.com
1 comments
52m agoHN ↗

Compact language implementations are increasingly popular for use in resource constrained environments. For embedded applications such as robotics and home automation, it is useful to support a Read-Eval-Print-Loop (REPL) so that a basic level of interactive development is possible directly on the device. Due to its minimalistic design the Scheme language is particularly well suited for such applications and several implementations are available with different tradeoffs. In this paper we explain the design and implementation of a compact Scheme system that supports a REPL, is extensible and has a 4 KB executable code footprint.

https://github.com/udem-dlteam/ribbit

https://arxiv.org/abs/2310.13589

Abstract.

The Ribbit system is a compact Scheme implementation running on the Ribbit Virtual Machine (RVM) that has been ported to a dozen host languages. It supports a simple Foreign Function Interface (FFI) allowing extensions to the RVM directly from the program’s source code. We have extended the system to offer conformance to the R4RS standard while staying as compact as possible. This leads to a R4RS compliant REPL that fits in an 7 KB Linux executable. This paper explains the various issues encountered and our solutions to make, arguably, the smallest R4RS conformant Scheme implementation of all time.

Previous:

https://news.ycombinator.com/item?id=31096771

https://news.ycombinator.com/item?id=41524517

Try the online R4RS REPL here :

https://udem-dlteam.github.io/ribbit/repl-r4rs-tc.html