1
1
mirror of https://github.com/anoma/juvix.git synced 2024-09-11 16:26:33 +03:00
juvix/test/Core
Łukasz Czajka 75bce8f665
Per-module compilation (#2468)
* Closes #2392 

Changes checklist
-----------------
* [X] Abstract out data types for stored module representation
(`ModuleInfo` in `Juvix.Compiler.Store.Language`)
* [X] Adapt the parser to operate per-module
* [X] Adapt the scoper to operate per-module
* [X] Adapt the arity checker to operate per-module
* [X] Adapt the type checker to operate per-module
* [x] Adapt Core transformations to operate per-module
* [X] Adapt the pipeline functions in `Juvix.Compiler.Pipeline`
* [X] Add `Juvix.Compiler.Pipeline.Driver` which drives the per-module
compilation process
* [x] Implement module saving / loading in `Pipeline.Driver`
* [x] Detect cyclic module dependencies in `Pipeline.Driver`
* [x] Cache visited modules in memory in `Pipeline.Driver` to avoid
excessive disk operations and repeated hash re-computations
* [x] Recompile a module if one of its dependencies needs recompilation
and contains functions that are always inlined.
* [x] Fix identifier dependencies for mutual block creation in
`Internal.fromConcrete`
- Fixed by making textually later definitions depend on earlier ones.
- Now instances are used for resolution only after the textual point of
their definition.
- Similarly, type synonyms will be unfolded only after the textual point
of their definition.
* [x] Fix CLI
* [x] Fix REPL
* [x] Fix highlighting
* [x] Fix HTML generation
* [x] Adapt test suite
2023-12-30 20:15:35 +01:00
..
Asm Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Compile Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Eval Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Normalize Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Print Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Recursor Fix de Bruijn indices in rmap (#1898) 2023-03-17 13:11:36 +01:00
Transformation Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
VampIR Per-module compilation (#2468) 2023-12-30 20:15:35 +01:00
Asm.hs JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
Compile.hs JuvixCore to JuvixAsm translation (#1665) 2023-01-09 18:21:30 +01:00
Eval.hs Add internal core read command (#1517) 2022-09-06 15:26:48 +02:00
Normalize.hs Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
Print.hs Print JuvixCore correctly (#1875) 2023-03-15 16:41:39 +01:00
Recursor.hs The rmap recursor (#1893) 2023-03-16 14:47:21 +01:00
Transformation.hs Recursion unrolling for functions (#1912) 2023-03-24 15:05:37 +01:00
VampIR.hs Implement core transformation let-hoisting (#2076) 2023-05-16 13:42:44 +02:00