Fork me on GitHub
#graalvm-mobile
<
2023-01-06
>
borkdude21:01:40

@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&amp;utm_medium=web2x&amp;context=3

👀 2
🆒 4
jdavredbeard21:01:48

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

jdavredbeard21:01:12

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

phronmophobic21:01:47

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.

✅ 2
phronmophobic21:01:28

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

borkdude21:01:05

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)

borkdude21:01:15

Don't know what the iOS limit is

phronmophobic21:01:42

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

phronmophobic21:01:57

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).

phronmophobic21:01:59

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

jdavredbeard21:01:24

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?

jdavredbeard21:01:54

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

phronmophobic21:01:38

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.

jdavredbeard21:01:53

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

clojure-spin 2
phronmophobic21:01:22

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