graalvm-mobile

borkdude 2022-03-31T10:30:15.635039Z

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

borkdude 2022-03-31T10:30:21.761039Z

I could not compile due to:

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

borkdude 2022-03-31T10:30:37.925489Z

Also an error about cached_scope_id

borkdude 2022-03-31T10:31:10.910079Z

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)

borkdude 2022-03-31T10:31:14.788839Z

Any hints there?

borkdude 2022-03-31T11:16:54.978179Z

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

phronmophobic 2022-03-31T16:36:49.551369Z

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

phronmophobic 2022-03-31T16:38:21.457209Z

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.

borkdude 2022-03-31T17:22:39.277419Z

oh right

phronmophobic 2022-03-31T16:35:59.506589Z

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

phronmophobic 2022-03-31T17:07:51.969339Z

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?

borkdude 2022-03-31T17:20:06.719829Z

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

phronmophobic 2022-03-31T20:44:49.189229Z

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)

phronmophobic 2022-03-31T20:45:43.740829Z

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

borkdude 2022-03-31T20:46:52.798329Z

@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
pfeodrippe 2022-04-01T12:41:45.896439Z

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&s=19

borkdude 2022-04-01T12:57:30.494739Z

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

pfeodrippe 2022-04-01T12:58:30.177619Z

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

borkdude 2022-04-01T13:00:00.488159Z

Looking forward to see more of that :)

pfeodrippe 2022-04-01T13:01:20.889489Z

Hopefully ClojureDart will make this useless 🙏

borkdude 2022-04-01T13:01:43.105979Z

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

pfeodrippe 2022-04-01T13:02:02.103049Z

Oh yeah hahahahaha 😂

borkdude 2022-04-01T13:02:35.802139Z

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

❤️ 1
borkdude 2022-03-31T20:47:52.159629Z

so, mostly experimenting

phronmophobic 2022-03-31T20:48:50.962809Z

👍 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

borkdude 2022-03-31T20:49:36.917429Z

no hurry at all!

phronmophobic 2022-03-31T20:53:01.171389Z

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.

phronmophobic 2022-03-31T20:53:31.837199Z

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

borkdude 2022-03-31T21:01:56.756779Z

not sure, but I'll sign up if necessary