yamlscript

Ingy döt Net 2024-06-28T20:03:29.408329Z

https://gist.github.com/ingydotnet/c7576a447ad9334a4503e0738ecb5f99 Anyone have an idea of what is going on with this? "Method code too large" because I required clojure.core.async?

Ingy döt Net 2024-06-28T20:06:27.841849Z

https://stackoverflow.com/questions/35733558/large-defrecord-causes-method-code-too-large is about the only related thing I find. I'm just trying to add clojure.core.async to YS

2024-06-28T21:32:31.220389Z

I’m not familiar with this issue unfortunately

2024-06-28T23:25:23.360099Z

Can't see enough there to be sure, but Method Too Large can result from any overlarge data literal (because Java doesn't have data-structure literals; it compiles to code that builds up the data structure). So the problem also occurs sometimes with core.match or even, IIRC, case. You work around it one way or another.

2024-06-28T23:26:59.346569Z

One workaround (if it really is obviously a data literal) is to read it from a resource with clojure.edn. No limit there, except of course the height and width of your computer.

Ingy döt Net 2024-06-28T23:28:06.562879Z

I posted more in #sci I think I'm just giving too many arguments to a macro or something but I'm about to get an airplane so I can't investigate further. But yeah it looks like I can get around as pretty easily once I'm at my destination. Thanks for looking

Ingy döt Net 2024-06-28T23:30:29.282249Z

Nothing to do with .async specifically

Ingy döt Net 2024-06-28T23:30:58.544609Z

Just the straw that broke the macro's back 😊