Hacker News

New stories

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