Sixteenth RacketCon in Oakland, CA
See https://con.racket-lang.org/ and you can get a ticket at https://www.eventbrite.com/e/racketcon-2026-tickets-1997181002140. The live stream is publicly available, but buying this $10 ticket helps pay for the live stream and ensure its availability for the entire community.
Subscribe to Racket.
It's fun. They have a corresponding amount (16 years or so) of cruft they need to deal with though:
See Matthew Flatt's Sunday morning talk A New Foreign-Function Interface: ffi2.
Subscribe to The Functional Cruft of Programming. I mean craft!
I am interested in the general problem, of how you build runtime systems and interfaces to existing code. I thought of using Standard ML modules to specify the interfaces in terms of something like GNU lightning, and then meta-programming the runtimes in the high-level language. I guess I could do this by writing a Standard ML #lang for racket, ... The GNU people weren't interested (see Graham Hutton, Zac Garby and Patrick Bahr - Calculating (Correct) Compilers (Effectively) and Matthew Flatt on Rhombus and Syntax Transformers). See also Matthias Felleisen's 2019 talk on Racket where he talks about throwing away code.
Subscribe to Lambda World.
Then see Brian Kernighan on How To Succeed in Language Design Without Really Trying and The Story of Unix - Chapter Ω: The Captains All Jumped Ship.
My comment:
There is a fairly old idea of using DSLs to specify low-level code (stuff like TCP/P network stacks and vector graphics and text-rendering libraries) in high-level languages. Then porting to hardware is a matter of writing the lower stages of the compiler for those languages, which you can also do in a DSL. The most serious attempt I know of to do this was the Viewpoints STEPS project by Alan Kay, Ian Piumarta and others. See "Open, extensible composition models (extended abstract)" by Ian Piumarta. There are people who are 'lifting the OS into the high-level language" but without the language infrastructure. One nice example is Sylvain Huet's Minimacy system which is a high-level ML like functional language which can express low-level hardware interfaces for various protocols and he uses this to produce bare-metal application firmware for embedded systems. I think the FUBS project at FUTO is something similar. In the Viewpoints approach you develop a stack of IRs top-down and the result is your portability is built in from day one. I messed around with a primitive JIT compiler once in Standard ML and I was amazed at how easy it was to write reliable, portable low-level interface code when you have a nice typed functional high-level language with a good module system to use to do it. That was just interfacing to existing C libraries though. I could have been using the same tools to write the compiler and runtime for Standard ML, and that's what I felt I ought to be doing, but I was working alone because I failed to get anyone else interested. Turns out the Viewpoint people were doing exactly that, but nobody told me about them! Maybe the racket people would be interested in this idea? Are you able to go to the RacketCon in Oakland?
Subscribe to The Functional Craft of Programming.
Comments
Post a Comment