klimi
next time use mutex
BinaryByter
klimi
xD
Dima
lockfree banning
Anonymous
Dima
this is ub
Anonymous
oop added a bunch of undefined behaviours
Anonymous
same with templates
BinaryByter
Did you know that UB doesnt have to be bad?
Roxifλsz 🇱🇹
oop added a bunch of undefined behaviours
Tbh code with undefined behaviours should throw compiler errors
Anonymous
not errors
BinaryByter
You cannot always check on compile time
Roxifλsz 🇱🇹
warnings
Errors, and only could be overridden by explicitly writing that you do want that behaviour
olli
Tbh code with undefined behaviours should throw compiler errors
Throwing errors would define it to be wrong. And some UB can't be checked at compile time
Roxifλsz 🇱🇹
Errors, and only could be overridden by explicitly writing that you do want that behaviour
None of this implicit, whoops your shit segfaulted cuz you forgot to initialize your int
Anonymous
however UB is too hard to check by the gcc one
Roxifλsz 🇱🇹
Throwing errors would define it to be wrong. And some UB can't be checked at compile time
Obviously errors would be thrown for the stuff that can be checked
Anonymous
so we should use some sort of static checker
Roxifλsz 🇱🇹
So you would ban/remove UB where possible?
Not ban, but require programmers to explicitly write that they do want undefined behaviour (whatever it can be used for)
Roxifλsz 🇱🇹
BinaryByter
Have you tried Rust? You might like it then
I dont want to have to tell the language that I wanna be a piglet
Bader
btw @linuxer4fun what are you making? I saw library but what is it for?
BinaryByter
Neural Network library
BinaryByter
subset of the baumhaus chess engine
klimi
bambuuus
BinaryByter
baumhaus in german is litterally "treehouse"
Bader
oh awesome, never done any AI or anything like it before
Bader
i'm into blockchain and now some cryptography lol
BinaryByter
you can use my library as a starting point
BinaryByter
once it works ;)
BinaryByter
Mat
once it works ;)
Can you post the link again?
BinaryByter
actually I won't ;)
Bader
lol, it's actually a good tech
BinaryByter
because i'm ashamed ;_;
BinaryByter
because it doesnt work after about a year of trying really hard
Bader
because i'm ashamed ;_;
no imposter sydrome allowed
BinaryByter
https://github.com/Wittmaxi
BinaryByter
here
BinaryByter
first pinned repo
Mat
Ty
Bader
lol what is gerlang
Bader
is it a dank version of golang
BinaryByter
Ty
Don't give me the solution!
BinaryByter
i will work it out on my own!
BinaryByter
no matter how many virgins I need to sacrifice
BinaryByter
currently i'm stuck on - guess what - SIGSEV
BinaryByter
for some obscure reason a vector suddenly empties itself
BinaryByter
size: 0 - OK size: 1 - OK 0out size - not okay should be 1 0neur size - not okay should be 1
BinaryByter
does anybody know an issue where members of a base class randomly change?
BinaryByter
@OxFFFFFFFF
Bader
taking a look very cool 👍 (not the error lol)
Anonymous
Anonymous
It's enough once
BinaryByter
It's enough once
I kinda had the hope that it deletes the messages
BinaryByter
use /* * */ style comments for the topmost comment.
Ибраги́м
Wierd
BinaryByter
Whaaat
I know
BinaryByter
should I push?
BinaryByter
maybe you 'll find something
Ибраги́м
OK
klimi
I'm searching that guy and im like... wtf did he go.... Look into history... Fk
BinaryByter
https://github.com/Wittmaxi/ZENeural/tree/master/library/header
BinaryByter
here
BinaryByter
the problematic class is Layer<floatType>
BinaryByter
and its inheritand OutputLayer<floatType>
Anonymous
assert is not safe in multithread environment
BinaryByter
i've put asserts into every function to know exactly where it gets sero
BinaryByter