r/Clojure • • Aug 13 '21

Develop native mobile apps with JVM Clojure, GraalVM, SCI and Skia: Apropos

Watch this episode of Apropos where Adrian Smith and I show a novel approach to developing native mobile apps with JVM Clojure, GraalVM, SCI and Skia:

Video: https://vimeo.com/585335551

Code: https://github.com/phronmophobic/mobiletest

85 Upvotes

8 comments sorted by

View all comments

3

u/HyperDown Aug 13 '21

This looks cool, but I don't totally understand. Does this process allow you to actually produce a standalone app which could be published on the app store?

6

u/Borkdude Aug 13 '21

Yes. The app from the video is available on TestFlight: https://testflight.apple.com/join/GLOKMgFX.

1

u/stefan_kurcubic Jan 06 '23

Hello

what's the state of this project?

It appears to still be in alpha phase?

What can be done about app size?

1

u/phronmophobic Jan 06 '23

Yes, the project is still in alpha. I'm not actively working on the project at the moment, but I would like to ship a demo app and add support for android at some point.

What can be done about app size?

The app size hasn't been optimized at all. In fact, it's been intentionally bloated to include several useful libraries that may be fun to play with at the repl. Many of the libraries might not be necessary depending on the use case and there are several general techniques for reducing the graalvm binary output that haven't been applied.

I found an old build on my phone that was 84mb, so there's plenty of opportunity to optimize bundle size if that is a priority. I haven't spent any time trying optimize bundle size so I don't currently have a good sense for how this approach compares with other options.