[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Rewriting the Perlang compiler in Perlang
Hi,
I just posted this in
https://gitlab.perlang.org/perlang/perlang/-/work_items/454#note_4680
(the "Rewrite the Perlang compiler in Perlang" issue), but cross posting
it here as well.
For reference, I've played around with generating some stats of the
languages currently and historically used in the project. Here is an
image generated by a tool that I just pushed to the repo (the tool is a
Python+Gnuplot script that was generated by 🤖):
https://gitlab.perlang.org/-/project/2/uploads/77d18440e8a68896e169e920b3a146a1/langstats.png
The highlights marked with dotted lines:
- 2023-09-27: fmt[1] was vendored
- 2024-02-27: libtommath was vendored
- 2024-04-26: interpreted mode was removed, meaning we could drop a
bunch of C# code
- 2024-09-18: The first Perlang file in perlang_cli was committed
- 2025-01-14: CppSharp bindings were added, introducing the first
auto-generated C# file (this is the "light purple" colour in the graph)
- 2025-02-24: tsl was vendored
The tiny, tiny brown/gold-coloured part on top is the part currently
implemented in Perlang. Expect this to grow over time. :) At the moment,
we are not just "rewriting Perlang in Perlang" but also "developing
Perlang so that we can rewrite Perlang in Perlang". At some point, we
will hopefully reach the point where the language and tooling is so
mature that the effort can focus more on the actual "get rid of
depending on .NET" part than the language development. Time will tell
how long it takes to get there.
[1]: https://github.com/fmtlib/fmt
--
Per Lundberg
Perlang author and maintainer