Commit Graph

141 Commits

Author SHA1 Message Date
63687499dc check impossible clauses
Also clean up some comments.

We now have types in constraints, but are still using values from
context.
2025-11-14 21:45:19 -08:00
2853de310b add some missing files, clean up a little 2025-11-10 22:28:32 -08:00
d763be55d4 Update LiftLambda to erase Zero args 2025-10-26 09:42:12 -07:00
7055874dbb Remove old aoc2023 directory 2025-10-25 13:32:58 -07:00
8aee58c23b erase arts in lifted where functions 2025-10-24 11:09:57 -07:00
11ffd96a91 Remove erased function arguments 2025-10-23 22:34:14 -07:00
6a4da51e8a use if/then/else for some constructor cases 2025-10-20 15:22:00 -07:00
15b892510e Map Bool-shaped things to javascript bool, add if/then and tertiary to code gen 2025-10-20 11:08:12 -07:00
ddc73fb41a Change Show FC format to match vscode's expectation 2025-10-11 21:47:34 -07:00
c39d1354c8 Primitive "Add missing cases" for vscode 2025-10-11 13:17:44 -07:00
8209d2d839 Use numbers for constructor tags. 2025-10-04 14:56:59 -07:00
495ed78c80 Use 1-based row/column in error messages 2025-09-29 12:42:13 -07:00
bab25f8dce cleanup TODO.md a little 2025-09-29 11:59:57 -07:00
cc7d8b4968 int add becomes + 2025-09-20 19:58:39 -07:00
1432316fac SortedMap uses any comparator 2025-09-01 15:48:20 -07:00
800cec28de cleanup 2025-07-18 20:47:45 -04:00
ab276ca992 TODO updates, remove unused file 2025-06-03 20:54:29 -07:00
8faecfdf9b record update syntax 2025-04-19 20:11:07 -07:00
0ce1a5e454 Magic Nat 2025-04-09 15:07:31 -04:00
c51d368e90 primop in compiler 2025-04-07 14:29:55 -07:00
549cca19e3 Add flags to TopEntry, detect duplicate constructors, fix issue with missing constructors in CompileExp. 2025-04-05 14:33:54 -07:00
f006fa875d Classify constructors, only dump modules if they successfully compile 2025-03-31 21:21:37 -07:00
b6ce6cfb13 rename top/put/modify on M to avoid collisions 2025-02-01 16:47:10 -08:00
fad966b1ec Refactor code generation to prepare for optimization passes 2025-02-01 12:56:30 -08:00
e3ae301c9c performance and code size improvements
- Use default case for constructors with no explicit match.
- self-compile is 15s now
- code size is 60% smaller

code size and self compile time on par with the idris-built version
2025-01-18 21:33:49 -08:00
5cce1a465e Modules live in separate contexts, only imported modules are in scope 2025-01-12 08:57:01 -08:00
363f85710f add comments, fix fc on an error, add constructor for U 2025-01-10 21:03:20 -08:00
2cdeb2721c Improve auto solving - 30% faster and hopefully proper errors if a type mismatch is blocking it. 2025-01-07 21:01:22 -08:00
7110c94ac6 determine base path 2025-01-06 17:02:21 -08:00
265a81257a cleanup a little bit 2025-01-06 16:28:40 -08:00
0dbc5d5ee7 port compiles hello world 2025-01-04 21:07:25 -08:00
b87999a64d More porting. Parser is working now. Some improvements have been made to auto resolution 2025-01-03 21:57:15 -08:00
9ed2b2077d fixes and changes for porting
- forward declaration of records
- fixes to projections
- drop record accessors (use projections instead)
- changes to names to disambiguate
2025-01-01 20:21:07 -08:00
f4e96d06ec changes to support translation 2024-12-30 22:34:03 -08:00
57a8fe9609 prep for self-hosting 2024-12-29 21:17:06 -08:00
6397cac18a refactor Ord to be based on compare 2024-12-29 16:17:34 -08:00
b92a45a7cf fix alternate tokenizer 2024-12-28 22:28:40 -08:00
9a2eac0bd7 remove a Text.Parser dependency (about 10%), and alternate tokenizer 2024-12-28 21:51:55 -08:00
23a95f70f5 add \case sugar and editor support. fix symlink 2024-12-28 16:02:31 -08:00
3ec2f90770 sugar for data and other improvements
- parse types in let (everything but parser was there)
- add sugar for `data`
- move `joinBy` to prelude
- fix highlighting for char in vscode
- better errors for missing imports
2024-12-28 09:45:21 -08:00
0992dc1367 split up unify to simplify casetree,
- cuts newt.js size in half
- shaves a second off check time for Elab.idr (23%)
- shaves a third off of final link time (33%)
2024-12-27 16:38:50 -08:00
d224099e4a more js keywords 2024-12-27 16:00:35 -08:00
9655434b2a add namespaces to names 2024-12-26 18:51:46 -08:00
93399af9b5 day24 2024-12-24 11:48:37 -08:00
e0c75ff487 improvements to editor support 2024-12-22 14:52:26 -08:00
2c7c5eca55 monadic version of day21 2024-12-21 21:02:56 -08:00
e396514899 day21 2024-12-21 15:10:40 -08:00
567a357dee Day20 2024-12-20 17:06:55 -08:00
f2c6b409fe desugaring record implementation (TODO - dependency) 2024-12-19 20:43:10 -08:00
4289c5c6e8 negative integers 2024-12-19 16:36:59 -08:00