Telegramy
Articles
About
« Rev
@programminginc
715
Fwd »
Mark
yes, but epoll is hard tbh
Mark
and when i asked similar question on SO, i got downvoted
Mark
"duplicate question"
Mark
smh
Mark
no it's not
Roxifλsz 🇱🇹
yes, but epoll is hard tbh
I literally first heard of that name today only :D
Mark
well okay, it wasn't 1:1 question
Mark
i asked about real-world usages of epoll edge-triggered
Mark
which isn't asked in other questions
Mark
also fun fact
Mark
shrinking 1gb node.js runtime down to ~300kb
i've worked on this for a year
Mark
xd
Mark
i've reached dead end atleast 6 times
Mark
i remember few reasons why
Roxifλsz 🇱🇹
i've worked on this for a year
Oh kek, that's fucked up
Mark
1) c++ sucks 2) google grpc really really sucks and is literally the worst thing i've ever used
Mark
3) msgpack sucks
BinaryByter
1) c++ sucks 2) google grpc really really sucks and is literally the worst thing i've ever used
1 is false you are just stupid lol
Mark
on c/c++
BinaryByter
xDDD
BinaryByter
1) c++ sucks 2) google grpc really really sucks and is literally the worst thing i've ever used
2) consider implementing ACPI :)
Mark
1 is false you are just stupid lol
neck thyself kthnxbye just saying my opinion lol
Mark
2) consider implementing ACPI :)
nty
BinaryByter
neck thyself kthnxbye just saying my opinion lol
xDDD
Mihail
1 is false you are just stupid lol
Reminder you were asking people to remind you how shitty it's OOP it is
Mark
3) msgpack sucks
lemme see...
BinaryByter
Reminder you were asking people to remind you how shitty it's OOP it is
because it is
Mark
wat
Mark
pls
Mark
github: ludocode/mpack
Roxifλsz 🇱🇹
https://github.com/ludocode/mpack i used this
Mark
ASAN throws ugly errors about it
Mark
it was overflowing stack somewhere
Roxifλsz 🇱🇹
wat
Automatic removal, against spammers or whatever
Mark
Automatic removal, against spammers or whatever
ye
Mark
it was overflowing stack somewhere
when i used growing buffer
Mark
and official library is ugly as hell
Mark
it was overflowing stack somewhere
also i found this out in a hard way
Mark
it ended up overwriting some parts of my program memory in the long run
Roxifλsz 🇱🇹
ASAN throws ugly errors about it
What's ASAN? Is it like valgrind or smth?
BinaryByter
think so yea
Mark
well
Mark
yea
Mark
pretty much, but better
Mark
basically you add -fsanitize=address
Mark
to clang or gcc
Mark
lemme show y'all an example
Mark
oh well
Mark
Mark
and if you do buffer overflow then it'll dump memory layout of that part where it happened
Mark
Roxifλsz 🇱🇹
How does this work? Does this memory checking get compiled into the binary?
Ariana
oh wow cool debugger
Mark
How does this work? Does this memory checking get compiled into the binary?
yep
Mark
it adds overhead and increases binary size
Mark
of course
Roxifλsz 🇱🇹
it adds overhead and increases binary size
Oh shit, is the performance better than valgrind? That's what matters
Mark
no idea
Mark
might be
Mark
it adds overhead and increases binary size
my program's binary (with debugging symbols, debug messages etc.) is ~150kb right now
Roxifλsz 🇱🇹
Anyway, cool stuff, is this built right into the compiler?
Mark
with asan it's 470kb
Roxifλsz 🇱🇹
with asan it's 470kb
Eh, that's not too bad
Mark
asan is not the only tool btw
Roxifλsz 🇱🇹
Alright, learned something new
Mark
uhh can i get that link restriction lifted lol
Roxifλsz 🇱🇹
Hmmm
Mark
anyway
Mark
ffs
Mark
hard to get rid of old habits :c
Mark
Roxifλsz 🇱🇹
uhh can i get that link restriction lifted lol
I think one day has to pass, that bot is too simple to have exceptions or smth
Mihail
uhh can i get that link restriction lifted lol
one day and it'll be removed
Mark
I think one day has to pass, that bot is too simple to have exceptions or smth
kek
Mihail
DaySandBox
Roxifλsz 🇱🇹
ffs
https://clang.llvm.org/docs/AddressSanitizer.html
Mark
i wanted to send those three links here
Mark
but ye
Mark
cool shit
Mark
however
« Rev
@programminginc
715
Fwd »