Compiler hanging on v11.4 with uncurried enabled

Hello there !

I’m updating our modules to the latest ReScript version (from 11.0.0 curried to 11.1.4 uncurried) and I noticed that API module won’t compile as it hang on some files and my processor (Macbook pro M1) stays at 80% of usage.
Do you have ever noticed something this ?

I’m thinking if it’s a performance issue, maybe it’s because of our heavy usage of ppx-spice ?

I haven’t heard of similar experiences, could you maybe try to come up with a minimal repro?

Could be related to the usage of PPXes.

Do you use the built-in rescript builder or rewatch?

We’re using the built-in rescript builder. I checked the amount of @spice and found out around 2600 :sweat_smile: (of course it includes variant aliasing and not just type declaration)

I’m not sure how to make a repro but I’ll try to reduce the amount of compiled files to reduce the scope and iterate over it

you could try with rewatch to see if it’s the builder or the compiler.

Did you try using older versions of the compiler?

I tried rewatch and have the same issue, sometimes it can parse every files but hang on the next step or it hangs during the parsing.

I tried the 11.1.0 without success, and I have a strange issue with 11.0.0 and the uncurried mode with rescript-react (latest version)

PS: the rewatch compile time is impressive, the first build of our toolkit module is at least 2x faster !

3 Likes

Yeah, rewatch is very fast!

Si there’s no error with 11.1.4? It just hangs? Weird. Could you try with the latest v12 alpha maybe?