|
compilers are fun. i wrote at one at work a couple of years ago for an embedded scripting language and learned a lot doing it. the feature i'm the most proud of is the nice error reporting system which underlines errors with token-level granularity and gives sensible human-friendly messages. at the time, this was better than any real compiler we used. i found several fun bugs during development. my favourite was a performance issue where the compiler seemingly got exponentially slower the longer the input text was. after a few hours of profiling which didn't really help, i finally noticed that i had written: C++ code:
|
# ¿ Jul 11, 2017 13:26 |
|
|
# ¿ May 13, 2024 09:00 |
|
The Management posted:more like one of those moments when you realize why C++ is a terrible language still copy and pasting code with #include in 2017!
|
# ¿ Jul 11, 2017 20:01 |
|
*reparses the same header for the 22,452nd time*
|
# ¿ Aug 4, 2017 15:35 |
|
c shouldn't be improved because it's not intended to be good - a moron
|
# ¿ Aug 4, 2017 15:58 |
|
insert compiler disk 1 *whiiirrrrr* insert compiler disk 2 *whiiirrrrr* insert linker disk 1 *whiiirrrrr* Silver Alicorn posted:this has gone far enough!!
|
# ¿ Aug 4, 2017 17:18 |