@borkdude I'm trying to integrate @mark_engelberg's Instaparse with #Scittle, so that I can run mw-parser client-side. But, since I thought other people might also be interested in running Instaparse with Scittle, I thought I'd try to do a scittle build that included it, copying what you've done to include e.g. re-frame.

If this file is autogenerated, I'll see whether I can autogenerate it!

Many thanks

https://git.journeyman.cc/simon/mw-parser

mw-parser

Rule parser/compiler for MicroWorld

Forgejo at Journeyman.cc

@borkdude, in your 'scittle with additional libraries' files, you have, for each file in the library, a line

SHADOW_ENV.evalLoad( <filename>, <boolean>, <???>);

where ??? is a string of JS source code with some punctuation replaced by hex codes.

The second last line appears to invoke the file itself (recursively!?!), and the last is always

SHADOW_ENV.evalLoad("shadow.module.<filename>.append.js", false, <???>);

What should I read to understand what's going on here?

#Clojure
#Scittle

Surprised (in a good way) to see @borkdude repost my 3+ year old tweet today that announced the #scittle powered phone oriented ‘Away from Preferred Editor Clojure(Script) playground’ at https://jurjanpaul.github.io/ape-cljs-playground

Thank you!

Looking forward to watching your Conj talk when it is published btw!
(Did the Conj influence this repost somehow?)

Away from Preferred Editor ClojureScript Playground

@cford I have really no intention of using this often! I was just seeing what it could do. And given that #Scittle is pretty much at the bleeding edge, I don't think that #LLMs are going to help me much!

Well, there *were* problems in my trigonometry functions. But I spent a lot of time hunting bugs in them that weren't there. It turns out the real bug was in my tree algorithm: I wasn't backtracking correctly.

However, this now works, and you may play with it if you wish.

#Scittle
#Clojure
#Lisp

https://git.journeyman.cc/simon/tittle

This isn't wholly fixed -- I still can't draw trees, something is going wrong when I'm backing up -- but this is beginning to look good!

Tittle: Turtles in #Clojure #Scittle

https://www.journeyman.cc/~simon/tmp/

Tittle: Turtles in Scittle

@borkdude So aye. What I was thinking of doing was trying to build a complete LOGO implementation in the browser, and I think that's probably possible. I'd need to get instaparse working, and I haven't yet sussed how to load libraries... but certainly to get interactive turtle graphics going is possible.

But #Scittle is a wonderful toy! The other thing I'm working on (which is working rather better) is here:

https://www.journeyman.cc/~simon/tmp/japji/

Japji Sahib

Well, it's not precisely *working*, as such. But it definitely isn't not working!

Tittle: Turtles in #Clojure #Scittle, with gratitude to @borkdude !

https://www.journeyman.cc/~simon/tmp/index.html

Tittle: Turtles in Scittle

@Tallish_Tom aye, I'm working in #Scittle which means I'm entirely in the browser and don't have access to any of the JVM environment, or to most standard #Clojure libraries.

Basically, I'm unwell and bored and fractious and trying to find things which are just hard enough to stretch myself without being hard enough to frustrate me!

https://github.com/babashka/scittle

GitHub - babashka/scittle: Execute Clojure(Script) directly from browser script tags via SCI

Execute Clojure(Script) directly from browser script tags via SCI - babashka/scittle

GitHub

H'mmm... seeing that #Scittle sits on top of #Javascript, I can cheat and use Javascript's trigonometry functions.

That's cheating, isn't it?

I'm not feeling well enough to do Hard Sums.