Fork me on GitHub
#graalvm-mobile
<
2022-03-31
>
borkdude10:03:15

@smith.adriane Testing out mobiletest on my local mac system since I now have an upgraded macOS

borkdude10:03:21

I could not compile due to:

com.oracle.svm.core.util.UserError$UserException: Could not load CAPCache file

borkdude10:03:37

Also an error about cached_scope_id

borkdude10:03:10

and a very minor bash thing I could fix myself:

rm -rf ./library/classes && mkdir -p ./library/classes
rm -rf ./generated_classes && mkdir -p generated_classes
(added -p, else the bash script would not execute well)

borkdude10:03:14

Any hints there?

borkdude11:03:54

Would mobiletest become easier to maintain/run if we used jdk 17 + coffi to avoid the jni stuff?

phronmophobic16:03:49

I'm not sure if the jdk 17+ ffi works with graalvm.

phronmophobic16:03:21

I submitted some patches to dtype-next to improve the situation with the class generation and temporary folders. It's much more manageable with the newer versions of dtype-next, but I haven't taken the time to upgrade yet.

phronmophobic16:03:59

Are you trying scripts/compile-shared or scripts/compile-membrane?

phronmophobic17:03:51

I'm not seeing the CAPCache error, but I do see the cached_scope_id error. It's been a while, so I'm not sure where the error might be. I would probably have to update my local graalvm and reevaluate all the config settings. I noticed this:

# Printing build artifacts to: /Users/adrian/workspace/mobiletest/library/bb.build_artifacts.txt
I don't remember the artifact name using the name bb.build_artifacts.txt. I tried compiling with the latest version of babashka as a dep. Would having babashka as a dep affect the graalvm configs?

borkdude17:03:06

yes, I think so as bb has native-image settings in META-INF

phronmophobic20:03:49

Ok, I updated to GraalVM CE 22.0.0.2 and was able to get the basic app (non membrane) running on my iPhone. It required changes to just about everything (eg. the compile script, the linked dependencies, the app boilerplate, the reflection config)

phronmophobic20:03:43

@borkdude, do you have a specific goal in mind, or just experimenting?

borkdude20:03:52

@smith.adriane Now that I have an to date macOS system, I thought I could give this a try to see if I could make an app myself with this, e.g. a SCI REPL or whatever

❤️ 1
pfeodrippe12:04:45

I have being doing some experimentation with Flutter (components defined in Clojure) + SCI (in CLJS). SCI just rocks, man, it's a great gift to the humanity https://twitter.com/pfeodrippe/status/1509385178858328068?t=cYVjHhz13sgIHQp0QnI67g&amp;s=19

borkdude12:04:30

Nice! So there is some JS engine in the flutter app?

pfeodrippe12:04:30

Yes, https://pub.dev/packages/flutter_js, JavaScript core on iOS and quickjs on Android (which I never used)

borkdude13:04:00

Looking forward to see more of that :)

pfeodrippe13:04:20

Hopefully ClojureDart will make this useless 🙏

borkdude13:04:43

But then I would have to port SCI to ClojureDart ;)

pfeodrippe13:04:02

Oh yeah hahahahaha 😂

borkdude13:04:35

Which I will probably try once ClojureDart matures a bit ;P

❤️ 1
borkdude20:03:52

so, mostly experimenting

phronmophobic20:03:50

:thumbsup: that would be very cool. I can try to clean up and get things back into a working state again, but I probably wouldn't be able to do that until next week

borkdude20:03:36

no hurry at all!

phronmophobic20:03:01

Do you have an iOS developer account? You can get a free account, and you'll need one if you want to run the demo.

phronmophobic20:03:31

I know there was talk of iOS simulator support, but I'm not sure what the status is.

borkdude21:03:56

not sure, but I'll sign up if necessary