scastie icon indicating copy to clipboard operation
scastie copied to clipboard

Is there a subscription option to allow >30s compilation time or enable incremental compilation?

Open tribbloid opened this issue 3 years ago • 2 comments

I'm writing a tutorial for a static typechecking library that relies heavily on inductive construction:

https://scastie.scala-lang.org/tribbloid/RL1BZ0YTR9WyH4MBw624tA

Despite the short program, the compilation exceeds 30s and was terminated immediately.

Screenshot from 2022-02-10 19-42-39

Every time I re-run the program, sbt starts from scratch and disregard the bytecode that was already compiled in the previous run. The latest sbt being executed locally doesn't have this problem

I understood that the resource is too scarce to justify long compilation. But for users that heavily rely on the website for quick demonstration, will there be a option for them to pay for more availability?

tribbloid avatar Feb 11 '22 00:02 tribbloid

@tribbloid incremental compilation won't help here since it's just a single file i think we can extend the timeout to one minute if that would help atm if you need longer timeouts you could host it yourself

OlegYch avatar Feb 11 '22 02:02 OlegYch

we could implement more fine-grained control over timeouts since it's currently both wasteful resource-wise and not really helpful against determined attacker please contact @scalacenter for possible donations

OlegYch avatar Feb 11 '22 02:02 OlegYch