A
Alex Shinn
synthcode.com · Personal blog · on HN since 2009
Alex Shinn writes about Scheme software he built, including the Chibi Scheme interpreter and the Irregex regular expression library.
What HN saysHN commenters praise Chibi Scheme as a small, embeddable R7RS implementation and recommend Irregex for its Lisp-style SRE syntax over regex strings.
16HN people shared it
13linked it in comments
3stories submitted
33story points
2 years agolast shared
2009people per year2026
Most-shared posts
- 1Irregex5 people · first shared 2017
- 2Small is Beautiful4 people · 33 points · first shared 2009 · 14 comments on HN
- 3Chibi3 people · first shared 2013
- 4Chibi scheme3 people · first shared 2013
- 5Match.scm1 people · first shared 2018
- 6Scribble1 people · first shared 2016
What HN people wrote when they linked it
ristos · 2024-09-09
Chibi scheme has almost all of those things, except non-hygienic macros: https://synthcode.com/scheme/chibi/
It's R7RS scheme, which is a very small, well designed core for lisp. 13k LOCs of C. Very easy to embed, and a nice C FFI. I absolutely love it.
Geiser supports Chibi scheme out of the box, and I wrote this simple nREPL for it that I use: https://github.com/Risto-Stevcev/chibi-repl-server/
I use delimited continuations for conditions and restarts: https://gist.github.com/Risto-Stevcev/e6fd8417e34ef74a74adfadc468ea7d1
aboardRat4 · 2025-03-21
Rust people as usual.
Compete disregard to prior art and blithe disregard to p's and q's when usurping other projects' names.
https://synthcode.com/wiki/chibi-scheme
zokier · 2023-04-09
There is also unrelated Scheme(/Racket) library called IrRegular Expressions/irregex: https://synthcode.com/scheme/irregex
It is notable for supporting lispy "SRE" syntax in addition to traditional PCRE syntax, standardized as SRFI 115: https://srfi.schemers.org/srfi-115/srfi-115.html
rekado · 2022-12-30
For Scheme I enjoy using Irregex: http://synthcode.com/scheme/irregex/
The key benefit is to have a proper DSL instead of a DSL hidden away inside an untyped string.
bjoli · 2022-06-11
Orr Irregex and it's more limited SRFI:
http://synthcode.com/scheme/irregex/
https://srfi.schemers.org/srfi-115/srfi-115.html
jhgb · 2021-11-17
> Ignoring the flame bait, for me the only things I wish more regex engines supported (cough JavaScript) is the ability to ignore whitespace, and have named groups.
Irregex? http://synthcode.com/scheme/irregex/
Johnny_Brahms · 2017-03-24
I have replaced most regular expressions with irregexes http://synthcode.com/scheme/irregex/ . They are sadly scheme specific, but does a lot for clarity.
For anything more complex than small things that can be understood in less than 20 seconds, I use a parser generator, be it parsack (racket version of Haskell's parsec) or whichever I have at hand.
dleslie · 2016-07-18
Chibi[0] supports Scribble. :)
0: http://synthcode.com/scheme/chibi/lib/chibi/scribble.html
groovy2shoes · 2016-07-01
I'm a fan of TeX2page[1] for converting (La)TeX to HTML. There are also similar TeX/Scribe-inspired markup processors. Scribble[2] comes to mind, and Chibi Scheme[3] even comes with a very lightweight, very configurable "Scribble" processor in the form of `chibi-doc`. Chibi's flavor is a little more similar to TeX (using '\' as the leader rather than '@', for example), if that's important to you.
[1]: https://ds26gte.github.io/tex2page/index.html
[2]: https://docs.racket-lang.org/scribble/index.html
[3]: http://synthcode.com/wiki/chibi-scheme
And here's Chibi's own manual written in it: https://github.com/ashinn/chibi-scheme/blob/master/doc/chibi.scrbl
I think it would be freakishly easy to adapt chibi-doc into a general text preprocessor rather than an HTML generator, and honestly I've thought about it before. I may just do it yet :)
Narishma · 2014-08-31
Have you looked at Chibi-Scheme?
http://synthcode.com/scheme/chibi/
chalst · 2013-11-04
Alex Shinn's Chibi scheme, weighing in at 50kB (but with a dependency on the Boehm garbage collector, which weighs >1 Mb ...), might fit the bill.
Some links
1. Andy Wingo (main Guile implemetor)'s "buyer's guide" to Scheme implementations -
http://wingolog.org/archives/2013/01/07/an-opinionated-guide-to-scheme…
2. Chibi Scheme homepage - http://synthcode.com/scheme/chibi/
qznc · 2013-01-09
Scheme is not a single alternative. Racket [0] is a Scheme, which can be compared to things like Python or Ruby. There are other implementations, which should be used for different uses. For example, Chibi Scheme [1] is a nice alternative to Lua, but not to Python or Ruby.
Given your other two Lisps, I rather make this list:
* Common Lisp (which implementation?)
* Racket
* Clojure
[0] http://racket-lang.org/
[1] http://synthcode.com/wiki/chibi-scheme
lubutu · 2012-01-23
What I find interesting about The Bull is how Picasso's initial breakthrough is to reduce the prominent head to a small insignificant shape. Only with that done can he go on to reduce the rest of the body to such a degree. To me that demonstrates how attacking a problem from an unusual angle can yield an unexpected development, when trying to reduce the more obvious components first would probably result in something more like a bull and less like a work of art.
cf. http://synthcode.com/blog/2009/06/Small_is_Beautiful