Fork me on GitHub
#graalvm
<
2021-12-03
>
igrishaev08:12:20

Did anyone have an issue with s/conform? It works fine but adds +18 extra Mbs to the binary file (in my case, at least). I need to parse some arbitrary data that comes from the user's input.

igrishaev08:12:22

Namely, I'm parsing arbitrary CLI options. yes I know there is clojure.tools.cli , but it requires the opts to be declared in advance. In my case, the opts are arbitrary

igrishaev08:12:15

And the same for s/valid?: if I put this line no matter how complex a spec is, it gives +18 Mbs to the file

borkdude09:12:59

@igrishaev Yes, this is why I recommend to place specs in an optional-to-load namespace

borkdude09:12:49

The issue you're pointing to is about CLJ-1472 which was an issue in Clojure that didn't let you use GraalVM with spec at all. This is now solved.

igrishaev09:12:42

yes, that's right. Well, I've figured out with a primitive state-machine parser