2 ms·
I've been doing similar things with Swift and Racket: * https://defn.io/2023/03/19/racketfest-talk-2023/ https://defn.io/2023/03/19/racketfest-talk-2023/ * ht
by Bogdanp 3y ago
I've been doing similar things with Swift and Racket:
* https://defn.io/2023/03/19/racketfest-talk-2023/ https://defn.io/2023/03/19/racketfest-talk-2023/
* https://defn.io/2023/02/04/racket-foreign-callouts-to-swift/ https://defn.io/2023/02/04/racket-foreign-callouts-to-swift/
I also started out using JSON to exchange data between the languages, but eventually wiring everything manually became an annoyance so I came up with a little Racket DSL[1] that automatically serializes and deserializes between the two languages (at runtime in Racket & using code generation in Swift). So far, I've built two apps with this approach, and I think it's great:
* https://github.com/Bogdanp/Franz https://github.com/Bogdanp/Franz (macOS, Windows, Linux)
* https://github.com/Bogdanp/remember https://github.com/Bogdanp/remember (macOS, iOS)
[1]: https://github.com/bogdanp/noise https://github.com/bogdanp/noise