@tekknolagi · 2 years ago
It's late so I am going to go to bed instead of writing code, but I am enjoying reading comments on the compiling-ML-to-C post.
CodeMusings is a community where developers share their current projects, plans, and thoughts —
a modern take on the classic Unix .plan file.
Write in Markdown, connect with fellow coders.
@tekknolagi · 2 years ago
It's late so I am going to go to bed instead of writing code, but I am enjoying reading comments on the compiling-ML-to-C post.
@jaytaph · 2 years ago
It seems that something "dropped" (or snapped) when it comes to the borrow checker of Rust. I think I actually get it now, and somehow I get less iss…
@jaytaph · 2 years ago
I have a bit of trouble getting the adoption agency algorithm implemented. There is lot of fighting with the borrow checker (nothing changes there),…
@jaytaph · 2 years ago
Yes, I'm still fighting with Rust's borrow checker. I've got a lot of help from ChatGPT where it helps me to correct some mistakes (but doublecheck t…
@jaytaph · 2 years ago
So i've got an arena which is part of a document (tree) so all the nodes are stored there, and we reference nodes through their node_id (which is a s…
@jaytaph · 2 years ago
I ran into a bit of trouble with the document tree generation. This is where a good grasp of the borrow checker comes into play, and I'm not there ye…
@jaytaph · 2 years ago
I'm starting to get the hang of Rust. The borrow checker isn't yelling at me as much as it used to do, and I'm starting to see why things aren't work…
@jaytaph · 2 years ago
Now that the tokenizer is done, I seem to be able to tokenize most of the html files i've tested. That's good! So i'm spending my time on creating t…
@jaytaph · 2 years ago
Finally, the tokenizer passes all html5lib-tests and is merger into the main branch [https://github.com/jaytaph/gosub-browser/](https://github.com/ja…
@jaytaph · 2 years ago
It seems I hit (another) snag: more than 5000 of the 6000 token tests from html5lib-tests are passing, so that's a big win. There are 2 issues that…
@jaytaph · 2 years ago
Happy times with the tokenizer! I've setup a tester that will actually test the tokenizer again the html5 testsuite. More and more tests found are p…
@jaytaph · 2 years ago
Now that I'm filling more and more data states, i can actually parse more and more html5 code. To test all this, i've generated some testcases throug…
@jaytaph · 2 years ago
As character entities are "completed", i can finally tokenize whole strings like "this is © 2023" and have it parsed correctly with the copyrigh…
@jaytaph · 2 years ago
Finally done with the named character references. This took too long because I could not get the businesslogic right. Different code bases uses a dif…
@jaytaph · 2 years ago
I've spend some time fighting against Rust. It's not clear who won though. The biggest problem I'm currently facing is the fact that I have to discov…