Wow, bug from at least 1995
LL(k) is better since it can look ahead over newline tokens. Should I replace goyacc with ANTLR?
Is there any language which uses ANTLR and Go for its parser?
Mastodon is compatible with GNU social. I followed RMS, who is God of Free™ Software.
TIL: LALR(1) parser doesn't work so well along with a grammer where newlines have semantics
Reasons why Rust does not introduce SSO/SVO: Show more
In my understanding, there are 2 reasons.
C++'s std::string requires \0 at the end for string::c_str or string::data. But Rust doesn't need it.
C++'s std::string needs to be allocated even if it is empty because it contains \0 at the end. But Rust's empty String is literally _empty_. So it doesn't need to be allocated actually.
TIL: Rust's String/Vec does not introduce Small String/Vec Optimization
So interesting: How to process text in Xi editor explained by the author.
Xi editor has its text with rope data structure and process it with MapReduce way. It makes many text processing generic. And it enables parallel processing. In some cases, O(n) process can be reduced into O(log(n)), sounds great.
Documentation for Rope (tree data structure for strings). Interesting. I'll read it tomorrow.
GitHub Developer Program is now for free! I registered https://github.com/blog/2348-announcing-new-updates-to-our-github-developer-program