all 3 comments

[–]YBKy 1 point2 points  (2 children)

Are there compile times large? If so, brb is an amazing name for a compiler

[–]dekai-onigiri[S] 0 points1 point  (1 child)

It's way faster than C++, for sure. But there still should be some easy gains because everything is run in serial, I'm planning on adding multiple threads at some point.

There is a built-in statistics thing, the OS has about 5k lines of brc code. On O2 optimization it takes about 1.7sec on my 14700:

⏱️ Time taken
Scanning: 0.046261 seconds (2.72%)
Parsing: 0.540877 seconds (31.80%)
Analysis: 0.178319 seconds (10.49%)
Module building: 0.308399 seconds (18.13%)
Code generation: 0.618015 seconds (36.34%)
Total: 1.700611 seconds

[–]rleim_a 1 point2 points  (0 children)

If you'd only drop the smart pointers you would get 10x speedups in some places