meander

noprompt 2023-07-29T18:54:42.004609Z

@gcoumessos I'm glad you're enjoying it!

geoff 2023-07-29T06:00:41.301159Z

Once term rewriting clicks it’s so incredibly good

geoff 2023-07-29T06:01:53.126039Z

Been adding hiccup like tags to little dsl ast’s and you can just keep rewriting again and again and again until it lowers back into clojure

geoff 2023-07-29T06:02:02.894829Z

Love this library

geoff 2023-07-29T06:03:17.393019Z

Dsl -> parse into hiccup like structure -> rewrite until back into clojure -> wrap the whole thing in a macro -> done

Dane Filipczak 2023-08-02T20:27:26.751069Z

what do you mean by 'back into clojure' here? How is the final clojure representation different from the 'parse into hiccup' step?

geoff 2023-08-03T10:25:24.323339Z

I was parsing the clojure dsl forms into hiccup like tags to pick out information and add some loose typing to know what the form is, then rewriting the hiccup into other hiccup forms closer to normal clojure syntax, then finally rewriting it back into valid clojure syntax which I could execute.

👍 1
Dane Filipczak 2023-08-03T12:13:06.995869Z

thanks! I had misunderstood your final intent as producing some data structure rather than executing clojure syntax.

geoff 2023-07-29T06:03:25.532799Z

Can’t believe this isn’t more well known

❤️ 4