Victor Taelin
c3882799b3
initial haskell port, for type-checking
...
since hvm is untyped, it is hard to spot type errors, and debugging is
still not very mature, so I'll keep a haskell view of kind2 to debug
2024-03-01 23:11:05 -03:00
Victor Taelin
e849d16aee
auto formatter
2024-03-01 20:40:31 -03:00
Victor Taelin
21dd404798
reorganize repo, split files
2024-03-01 14:30:11 -03:00
Victor Taelin
10da6d2afb
fix obliterate
2024-03-01 12:21:43 -03:00
Victor Taelin
9ef466ee48
remove check.hvm1
2024-03-01 12:21:26 -03:00
Victor Taelin
36e53b7800
fix error
2024-03-01 12:21:11 -03:00
Victor Taelin
37f9c47e98
improve errors
2024-03-01 12:13:31 -03:00
Victor Taelin
fdbc3d013c
move pretty-printing to rust-side; hvm1 just outputs serialized messages
2024-03-01 11:57:40 -03:00
Victor Taelin
a0d2eecf24
hole syntax just underscore
2024-02-29 21:48:42 -03:00
Victor Taelin
2cd7b5261a
printing polishments, checkpoint
2024-02-29 19:21:48 -03:00
Victor Taelin
86651018e5
improvements
2024-02-29 18:45:40 -03:00
Victor Taelin
b4a49abab7
separate metas for unification and holes for inspection; bugfixes
2024-02-29 17:30:20 -03:00
Victor Taelin
03ba63a233
initial bidirectional unifier
2024-02-29 14:00:34 -03:00
Victor Taelin
5f12049dec
Revert "wip"
...
This reverts commit 4fd07958bc
.
2024-02-26 23:10:29 -03:00
Victor Taelin
51b65d581f
Revert "fixes"
...
This reverts commit 0ea8ff35c4
.
2024-02-26 23:10:25 -03:00
Victor Taelin
0ea8ff35c4
fixes
2024-02-26 23:09:34 -03:00
Victor Taelin
4fd07958bc
wip
2024-02-26 21:57:05 -03:00
Victor Taelin
9a6ffc9a81
fix txt reducer
2024-02-25 21:17:09 -03:00
Victor Taelin
06e2991e59
typo
2024-02-25 20:53:25 -03:00
Victor Taelin
c8fd9e54d5
improved equality - check docs/equality.md
2024-02-25 19:46:44 -03:00
Victor Taelin
6dbe738b4c
Working Rust CLI! Pretty errors. Many improvements
2024-02-24 20:50:01 -03:00
Victor Taelin
ee3c1550d9
initial port from ts to rust
2024-02-23 22:19:24 -03:00
Victor Taelin
bcf7fd28b9
giving up on bootstrapping due to parser perf
...
initially, I wanted Kind2 to be bootstrapped, but I'm facing
difficulties, because pure hvm parser is still much slower than the
typescript parser; a few seconds vs instant to parse the entire
codebase. I think HVM2 will need to have proper immutable strings (i.e.,
nodes that expand as if they were cons-strings, but are stored as
buffers) before it can have fast parsers. as such, I'm making the
decision to NOT bootstrap it now. that is a tough decision becase,
honestly, if we don't do it as soon as possible in the development
process, it is very unlikely we'll ever do it. but the tech isn't ready
for it, and we need to move forward, so, that's the only solution.
as such, I'll be rewritting the typescript to Rust, and we'll have a
very similar design to former Kind2, with Rust doing the parsing, IO and
error reporting, and a checker.hvm1 / checker.hvm2 file doing the actual
type-checking (and HOAS-based type-level evaluation).
also, I believe we'll not even generate .hvm from a .kind bootstrap.
while losing types is significant, being able to manually edit the HVM
is very helpful to debugging, it simplifies and accelerates the
development process and removes many complications that are bought by
bootstrapping
2024-02-23 14:28:04 -03:00
Victor Taelin
cc0bffb22c
recursive Kind2 file loader works now...
...
someone acquired debt today
2024-02-22 23:43:20 -03:00
Victor Taelin
ab98950f50
wip
2024-02-22 21:31:53 -03:00
Victor Taelin
dd47b11576
Merge pull request #2 from Derenash/master
...
Add Binary Balanced Tree
2024-02-22 17:01:41 -03:00
Victor Taelin
f3451e442b
WIP - breaking; will update after the map merge
2024-02-22 17:01:05 -03:00
Victor Taelin
e4b262f9d1
many things
2024-02-21 22:10:51 -03:00
Derenash
3f1828cb0a
add extra lines to test6 for merge facility
2024-02-21 12:21:03 -03:00
Derenash
0f7ebfe06d
deleting and commenting few U60 files
2024-02-21 12:18:31 -03:00
Derenash
1336cd89a0
add comment to testBBT
2024-02-21 12:14:16 -03:00
Derenash
658bade510
Update BBT tests file
2024-02-21 12:12:11 -03:00
Derenash
627cc96777
Add commented version of BBT maps to String and U60
2024-02-21 12:11:42 -03:00
Derenash
0e97867813
add Cmp files for String and U60
2024-02-21 12:10:56 -03:00
Derenash
7124036c94
Update comments on BBT files
2024-02-21 12:10:30 -03:00
Victor Taelin
37fb440ea9
split files and add OBLITERATE
2024-02-20 19:23:15 -03:00
Derenash
aa3de2bf64
renamed testBBT function
2024-02-20 18:18:24 -03:00
Derenash
5898cf5e70
renamed testBBT
2024-02-20 17:09:22 -03:00
Derenash
95e65c55a6
BBT updates
2024-02-20 17:08:37 -03:00
Victor Taelin
9c1a3f16a0
checkpoint
2024-02-20 16:50:19 -03:00
Derenash
c6be73b582
Merge branch 'master' of https://github.com/Derenash/kind2.0
2024-02-20 14:58:08 -03:00
Derenash
6bf27d1d22
small improvements to BBT
2024-02-20 14:55:49 -03:00
Derenash
cb515a8cb1
Add working BBT, still optimizing it
2024-02-20 13:32:14 -03:00
Victor Taelin
8b16d0751f
i dont remember
2024-02-20 01:11:21 -03:00
Victor Taelin
2033189215
Kind.mat
2024-02-19 20:10:38 -03:00
Victor Taelin
1aa7559d97
kind2 parses Bool.kind2
2024-02-19 17:10:00 -03:00
Victor Taelin
2ce6e5bfe1
update
2024-02-19 15:38:28 -03:00
Victor Taelin
9a7a3aa1aa
add missing files
2024-02-19 15:27:32 -03:00
Victor Taelin
7c09ed7b4e
recent
2024-02-19 15:16:21 -03:00
Victor Taelin
cc8e109571
skip comments
2024-02-19 12:37:51 -03:00