BinaryByter
I am not sure whether I should laugh or cry...
btw: there are people who claim that classes have overhead
olli
In terms of?
BinaryByter
overhead
BinaryByter
haven't you seen the discussion in the CLINL group?
olli
The same people claiming namespaces introduce overhead? But depending on padding and alignment classes might have some memory overhead
BinaryByter
the memory overhead is only there to increase the read speed
BinaryByter
and thus an okay tradeoff
BinaryByter
but if you don't want it, just add the nopadding flag
Rahul
How long you have been in c++
BinaryByter
🤔
BinaryByter
I started with like.. 8 or 9... but it wasnt anything big
BinaryByter
then with 11 i switched to pascal
BinaryByter
until I was 13
BinaryByter
and now i'm 15
BinaryByter
so... maaybe 2.5 years?
klimi
Rahul
Are you working
BinaryByter
No, i go to school
Rahul
Great
BinaryByter
why?
Rahul
You learn faster with respect to age
BinaryByter
Meh, age isn't really an indication of how good someone is
BinaryByter
+ projects can look very impressive at first glance until you realize how trivial they are
BinaryByter
like... I built a compiler 3 years ago... BUUT: it didn't use the normal parsing, it just parsed in the format command ( param )
Rahul
That's great
BinaryByter
meh, its... a bit of a shitty compiler
BinaryByter
+ it didn't spew out optimal code
BinaryByter
it still doesn't
Francisco
+ it didn't spew out optimal code
That would have been asthonishing
BinaryByter
and the code is just dreadful
Mihail
+ it didn't spew out optimal code
Can anything be truly "optimal" tho?
Mihail
No optimizer is perfect
BinaryByter
but my compiler's output is... not even a bit optimized
BinaryByter
its just blatantly like... "Eat my overhead, dude"
Rahul
Optimization is just make you application standard
BinaryByter
Well yea
BinaryByter
TBH my compiler was more of a proof of concept
Mihail
but my compiler's output is... not even a bit optimized
Well I've never tried writing a compiler, but I'd imagine that'd be one of the hardest things
Mihail
Wtf argument is this
Mihail
That's pure bs
BinaryByter
BinaryByter
you just have to do it in a pretty rationalized way
Rahul
That's pure bs
Hey it is running code
BinaryByter
but irellevant
Mihail
Hey it is running code
Yeah you're missing out on only like 1000 other factors tho
Francisco
meh, its always quite easy
I've had a subject of writing compilers. The theory to properly implement a compiler is not that easy
BinaryByter
you make yourself lexer
BinaryByter
you make the output run through a parser
Rahul
Yeah you're missing out on only like 1000 other factors tho
Do you think Samsung runs app faster than pixel on same hardware architect ure
BinaryByter
and then you make your parser create a tree
BinaryByter
but yea, in theory it always looks harder
BinaryByter
but for real: no compiler dev cares about chomsky sets
Rahul
Theory of automata
BinaryByter
again: all your theory isn't worth a lot in real world
Francisco
it is pretty easy, actually
Also, our teacher punished us if error messages weren't that good. Any compiler should have comprehensible compiler errors
Mihail
And if you mean hardware
Mihail
It still doesn't matter
Mihail
Wtf?
Well it kinda makes sense
Rahul
And if you mean hardware
So you think speed doesn't matter
Mihail
So you think speed doesn't matter
Are you even reading my messages, buddy?
BinaryByter
Francisco
Wtf?
Imagine gcc doesn't give you any information about the errors when parsing. That would be funny
BinaryByter
Well it kinda makes sense
but its really hard to implement
Mihail
CLINL is gcc only
Speaking of which why not move to clang for the rewrite
Mihail
Or is gcc still better for osdev
Francisco
:D
Error messages are as important as parsing the text
Rahul
Are you even reading my messages, buddy?
When things are customised then it is getting slow not fast