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

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/Borkdude Jan 06 '23

This is very much a demo project. If you have questions about it, it's best to join the graalvm-mobile channel on Clojurians slack. The code live here now:

https://github.com/phronmophobic/grease

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.

8

u/cbleslie Aug 13 '21 edited Sep 12 '25

school correct saw dam nose telephone capable dinosaurs sink childlike

This post was mass deleted and anonymized with Redact

5

u/mac Aug 13 '21

To me this just blows any other mobile development experience totally out of the water.

1

u/_thealeks Oct 07 '21

Super exciting! The app size though: 255MB?