joyride

pez 2022-07-09T10:00:08.732449Z

Is there a reason why Joyride does not implement clojure.core/load-file, @borkdude?

pez 2022-07-09T10:01:43.907529Z

Thinking I should be able to implement it pretty easily, so guessing the answer is ”no particular reason”, but my intuitions about these things are sometimes wrong. 😃

borkdude 2022-07-09T10:02:58.033839Z

The reason is that SCI doesn't include it by default since reading from the filesystem isn't "safe" by default, but it can be easily done. However! When we move to sci.async, then the semantics of load-file will change a bit.

borkdude 2022-07-09T10:03:41.301879Z

but this can be alleviated by making it "auto-awaited" so when you write:

(load-file ...)
it will be similar to nbb's:
(await (load-file ...))

borkdude 2022-07-09T10:04:33.874419Z

tl;dr: I think it's fine to add it, but things might change a bit with sci.async. So maybe let's do that first

pez 2022-07-09T10:06:10.250049Z

Thanks! I'm fine with doing it in the order you suggest. 😃

borkdude 2022-07-09T10:06:33.734129Z

Also, how does load-file work in the web version?

pez 2022-07-09T10:37:40.488219Z

I think that should work fine. Though, currently Joyride does not work in the web version, iirc.