BinaryByter
vector is quite harmless
BinaryByter
But why not look at webcpp?
Anonymous
he's not an extreme, he's just questioning things which is great?
BinaryByter
But why not look at webcpp?
webcpp is only made possible by templates - but the internal code of it is a mess
Ludovic 'Archivist'
But why not look at webcpp?
Looking at a bad design doesn't make the premises of said design bad
BinaryByter
Looking at a bad design doesn't make the premises of said design bad
webcpp isn't that badly designed, i'd argue 🤔(using a map to store the stuff like you suggested would... be slow) but its not uncommon for templates to be abused
Mihail
he's not an extreme, he's just questioning things which is great?
questioning something would imply on actually looked at the answers and not just arguing how you're right, even when you're clearly wrong
BinaryByter
Or rather: do you listen to arguments?
BinaryByter
i'd take my statement back if there was one that REALLY showed that i'm wrong
BinaryByter
but then you bitch about webcpp not using compile time strings?
Ludovic 'Archivist'
I think I kinda spoonfed you one
Mihail
the one arguing he is right is you
you are too, except that you missed the second part which only applies to you
Anonymous
Baguette dude, does nanoseconds turn you on or why is it the only advanced thing I hear coming out of you
Ludovic 'Archivist'
but then you bitch about webcpp not using compile time strings?
Well it is better to use compile time literals, won't deny that, but you can also use constexpr constructors and make a pattern to write into a buffer like I used in the FEL display_ranges, which is constexpr
Dima
(just like you top kek ( ͡° ͜ʖ ͡°)
Anonymous
Let me tl, dr Dima's last comment: I ran out of arguments and need to throw shit like a monkey instead
Anonymous
https://pastebin.com/tSfshuLf im having trouble with this code, im not sure what i should do trying to learn oop
BinaryByter
what is the trouble you are having?
BinaryByter
i would never have read such a long comment without your TLDR 😂
Ludovic 'Archivist'
Baguette dude, does nanoseconds turn you on or why is it the only advanced thing I hear coming out of you
Maybe because my job is to optimize stuff and that I am salty that my personal situation prevented me a +5kEUR/m employment at the biggest financial establishment in Europe
Ибраги́м
Anonymous
trying to use a vector in a constructor
Ибраги́м
And I believed in u.
Anonymous
Dima
Honestly, Idc
BinaryByter
Anonymous
It's all good Dima
BinaryByter
yes 😊
Ludovic 'Archivist'
Baguette dude, does nanoseconds turn you on or why is it the only advanced thing I hear coming out of you
And because it is kinda my work to make things go fast, have you ever heard about high performance software or low latency software?
Anonymous
not using a const in a constructor i think
Anonymous
did you try to run the code
BinaryByter
Anonymous
in int main
Ludovic 'Archivist'
Baguette dude, does nanoseconds turn you on or why is it the only advanced thing I hear coming out of you
Maybe because I can write a bloom filter in less time it takes you to understand its concept because that is also my job?
Anonymous
And because it is kinda my work to make things go fast, have you ever heard about high performance software or low latency software?
I've got 60ns time for a single packet to process, if you have more than half a brain cell you know what I'm into with that
Anonymous
go fight in the dms
BinaryByter
because a hashmap that takes NS is precious time
Ludovic 'Archivist'
Whatever
BinaryByter
when you could do it compile time
Anonymous
ive been using structs
Anonymous
because you walking around with a boner hitting everyone with it while getting off to nanoseconds is fucking annoying mate
BinaryByter
Whatever
not whatever, if you have 60ns lol
Anonymous
i didnt know i havent been using OOP
BinaryByter
struct is the same as class in C*+
BinaryByter
(roughly)
Dima
Okay shut up everyone lets help that guy with structs
Anonymous
no
Anonymous
JS? I'm talking of writing DMA polling based NIC drivers?
Anonymous
variables in class are private
Ludovic 'Archivist'
because a hashmap that takes NS is precious time
Yeah, and if you can find a structure that can map a quotation symbol to a structure in less than a nanosecond, you have broken some laws of physics
BinaryByter
variables in class are private
you have the public attribute
Anonymous
which messes up my code
Anonymous
okay but apparently you should private the variables
Anonymous
for OOP
BinaryByter
it depends on how the interface is made
Anonymous
Mihail
okay but apparently you should private the variables
in a case like yours i wouldn't
Ludovic 'Archivist'
You told me to use the hasmap instead of compile time features
No I told you it is an alternative, and that constexpr everything is better
Dima
and why'd you do that?
I wouldn’t. but I am sure ya would
Anonymous
i wanna learn it tho