misalcedo / tortuga

A CGI and WCGI server for HTTP/1.1
Apache License 2.0
7 stars 0 forks source link

Switch compiler to async with a task per file to compile. #33

Closed misalcedo closed 3 years ago

misalcedo commented 3 years ago

Switch compiler to async with a task per file to compile. The lexer, parser, transformer, and emitter were also made async though I am not yet sure how useful that will be. The emitter is currently still using a blocking implementation as async traits are not yet supported.

misalcedo commented 3 years ago

Cancelling as moving towards async fs and emitters is much more difficult than intended. serde does not support async read, and making all the emitter async lead to lots of generic function signatures that did not compile.