[quakenet] <Dune> there is a debate about that SSE stuff Oy
13:31
[quakenet] <Dune> heinrich5991, tbh I'm annoyed to have to carefully maintain and test cmake, because I don't like having to deal with cmake. so I'm biased in that regard ^^
[quakenet] <Dune> some people on transifex have requested for ngettext support because some languages don't play so nice with using plural for everything (e.g. %d players online) :/
13:50
[quakenet] <heinrich5991> yea, we should probably do that at some point
13:50
[quakenet] <heinrich5991> e.g. russian has different plural for 2-5, 21-25, 31-35, etc.
13:52
[quakenet] <Dune> I don't think there is an open issue
For English and German, it's easy, 1: singular, everything else: plural. For other languages, there are sometimes multiple plural forms, e.g. in Russian, we have 1: singular; 2-5, 21-25, 31-35,...
[quakenet] <Oy> could remove the flag on default and set a config option for that, which you can turn on for old distros
16:04
[quakenet] <Dune> hmm. how comes I don't have it in my gcc :/
16:04
[quakenet] <Dune> hold on
16:04
[quakenet] <Dune> 5 years sounds long
16:05
[quakenet] <Oy> seems u are using 4.9 and the guy from the link has 4.10
16:07
[quakenet] <Dune> yeah I used an old distro for 32 bit :|
16:07
[quakenet] <Dune> > could remove the flag on default and set a config option for that maybe we should propose that fix on the tracker?
16:12
[quakenet] <heinrich5991> we can just manually set the flag when we build it on an old distro I guess
16:15
[quakenet] <Dune> something needs to be done for packaging though
16:16
[quakenet] <Dune> e.g require gcc >= 4.10
16:17
[quakenet] <heinrich5991> this is the things that distributions figure out by themselves, normally (which versions of gcc they need to compile packages)
16:19
[quakenet] <Dune> that would be hard to figure, it should be somewhere in the notes
16:19
[quakenet] <Dune> wouldn4t it?
16:24
[quakenet] <Dune> heinrich5991, there is a stray commit in your PR (?)
[quakenet] <heinrich5991> 2 == true doesn't evaluate to true in C/C++ or python
22:39
[quakenet] <day> heinrich5991: what is 'true' in c?
22:39
[quakenet] <day> it's not a keyword that exists afaik
22:39
[quakenet] <day> but 'int 2' does evaluate to true
22:40
[quakenet] <day> or rather very thing not 0 is evaluated as true
22:42
[quakenet] <heinrich5991> day: I think it exists from c99 onwards
22:42
[quakenet] <day> regarding python "if 2:" is interpreted as 'true' but "if 2 == True" is interpreted as 'false'
22:43
[quakenet] <heinrich5991> I think our disagreement stems from the fact that you consider everything that evaluates the "then" branch of an "if" as "true" and everything else as "false"
22:45
[quakenet] <heinrich5991> in both python and c/c++ false and 0 behave pretty similarly and true and 1 do as well
22:45
[quakenet] <heinrich5991> try e.g. True + True in python
22:45
[quakenet] <day> you are right about bool existing. its in 'stdbool.h'. and "2 == true" is false
22:48
[quakenet] <day> so this means that 'if' uses its own 'true/false' logic?
22:49
[quakenet] <day> i find it rather odd that 'if(2)' is interpreted as 'true', but if(2==true) is not
22:49
[quakenet] <heinrich5991> the logic for if is (without looking into the standard) that everything nonzero will cause the "then" branch to be executed, and 0 will cause the "else" branch to be executed
22:50
[quakenet] <day> which is equivalent in my mind to "everything is seen as true that is non zero."
22:51
[quakenet] <heinrich5991> but true is just one possible value that will cause this behavior
22:51
[quakenet] <heinrich5991> there are many more :)
22:52
[quakenet] <heinrich5991> in python, if calls the __bool__ function on the object passed to the if
22:53
[quakenet] <day> i see
22:54
[quakenet] <day> so true/false in c literally act like integer '1' and '0'. the implementation is so shady that 'int a = true + true' nets you a == 2 :"D
22:56
[quakenet] <heinrich5991> yes. also works in python
22:56
[quakenet] <day> so in reality bool doesnt really exist imho. if(1 == false) is equivalent to if(1 == 0)
22:56
[quakenet] <heinrich5991> if you want to call it that, yes
22:56
[quakenet] <day> ah. thats why you mentioned true + true in python. didnt expect it would happen there o0
22:57
[quakenet] <day> i mean true/false are concepts, whereas 1 and 0 are numbers