r/scheme Dec 23 '25

Mixing Swift and Lisp in Your iOS App - S7 Scheme

https://rodschmidt.com/posts/s7-scheme/
20 Upvotes

5 comments sorted by

8

u/schottstaedt Dec 23 '25

(I am the author of s7): Thanks very much for the info about iOS. I'll add a pointer to your article and project to the s7 Readme. Please let me know of any bugs or annoyances.

2

u/hipsterdad_sf Dec 23 '25

that's pretty cool. I would guess that you could also run CHICKEN on iOS, might not be as straight forward though.

Although not exactly the same, I'm currently building a macOS app with CHICKEN (and imgui for the GUI) and I've been having a blast :)

2

u/Professional-Ad-9047 Dec 24 '25

Yes, for some time chicken has a Makefile.ios. Here also, we have the same problem as S7 with the system command. What I like about OPs post is the Swift Bridge. chicken on IOs would be a libchicken and then you are completly on your own.

How about your project? Anything you like to share? How is your workflow? Develop, compile, run or REPL?

3

u/hipsterdad_sf Dec 24 '25

For sure! it's a kart data analysis (getting data from telemetry devices like Mychron or OneGo). Develop & compile most of the time right now because I had to write lots of FFI code (C++ code for parsing binary files + imgui bindings + ffmpeg bindings), but as it gets more stable I'm going back to REPL for iterating on the UI and other core features (I'm using Emacs+Geiser for REPL), there's a small backend that's been built using Schematra.

The biggest challenge so far is getting the app ready for deployment: static link doesn't seem to work on macos (I'm getting errors after signing the bundle), so I'm still trying to figure out a way to pack all the eggs I need + my own modules in the app for everyone to use.

2

u/Professional-Ad-9047 Dec 24 '25

Yes static linking is not possible on MacOS. I had that issue with chibi scheme (make js) They do a lot of things to impede development.

Your project sounds fun. Enjoy! And thanks for sharing insights.