graalvm-mobile

borkdude 2023-01-06T21:11:40.759499Z

@smith.adriane FYI, someone was asking about the state of "this project" (grease) on Reddit: https://www.reddit.com/r/Clojure/comments/p3jojl/comment/j38o6da/?utm_source=reddit&utm_medium=web2x&context=3

๐Ÿ†’ 3
๐Ÿ‘€ 1
phronmophobic 2023-01-06T21:12:32.463429Z

cool!

jdavredbeard 2023-01-06T21:18:48.280939Z

does graalvm generally create a relatively large binary, compared to apps made other ways?

jdavredbeard 2023-01-06T21:19:12.605449Z

or is that something to do with grease? or is the question off base?

phronmophobic 2023-01-06T21:19:47.786749Z

the binary for the demo project was intentionally bloated to include as many libraries as possible that might be useful for trying at the repl.

โœ… 1
phronmophobic 2023-01-06T21:20:28.379969Z

there's also been zero effort to try to optimize binary size.

borkdude 2023-01-06T21:21:05.901369Z

FWIW, babashka packs several libs and is around 75mb for macOS (and I've done my best to reduce binary size by getting rid of dynamic requires, etc)

borkdude 2023-01-06T21:21:15.745399Z

Don't know what the iOS limit is

phronmophobic 2023-01-06T21:21:42.249519Z

Since I haven't tried to optimize binary size, it's hard to know how it compares with other options.

phronmophobic 2023-01-06T21:26:57.548509Z

I just looked another build that includes fewer clj libs and it was around 111mb and half of that is just skia (a non clojure graphics library).

phronmophobic 2023-01-06T21:30:59.259609Z

I have an old build that's only 85mb on my phone.

jdavredbeard 2023-01-06T21:32:24.234939Z

nice! yeah - I truly don't have context so just asking for my own knowledge - assuming skia is what you are using for ios rendering?

jdavredbeard 2023-01-06T21:36:54.008719Z

in any case, I bet youre right that with optimization based on what the given app actually needs, could be smallerโ€ฆ and I'm not surprised there is interest in the status of this project, I think its a really apt idea

phronmophobic 2023-01-06T21:38:38.020749Z

yes, skia is what I was using for rendering. I think the build that I had was a debug build though. It would also be possible to use something besides skia.

jdavredbeard 2023-01-06T21:44:53.030279Z

yep! I don't plan on making new bindings anytime soon ๐Ÿ™‚ I hope to use membrane and/or humbleui soon for my app - goal would be desktop and mobile - still wrapping my brain around how to represent frontends in clojure - i work in infrastructure so these code patterns are a lot more complex that what I'm usually looking at

1
phronmophobic 2023-01-06T21:47:22.564339Z

At some point, it would be interesting to have a membrane backend based on Apple's CoreGraphics library.