logs archiveBotHelp.net / Freenode / #2f30 / 2015 / August / 13 / 2
FRIGN
yeah, I agree with PATH_MAX
k0ga
X uses alloca
FRIGN
never ran into issues tbh
X sucks
stateless
FRIGN, it is much easier to deal with
k0ga
(or used, I don't know currently)
stateless
if you know the upper limit of the buffer and it is not too big
and it has to only live for the duration of the function
so char buf[BUFSIZ] etc.
FRIGN
stateless: I never use alloca
and will never
k0ga
for communications is good
stateless
FRIGN, this is not about alloca anymore :P
FRIGN
yeah
stateless
we established that alloca is bad already
FRIGN
ok
k0ga
you know what is the maximum packet size, so it is bounded
FRIGN
well, static arrays are fine+
k0ga
I tried to use alloca in scc
stateless
k0ga, you may as well just have char pkt[PKTSIZE];
no need for alloca
:P
k0ga
in case of error I have memory leak
but I thought that in case of error is better don't worry about leaks
stateless
yes
:P
FRIGN
alloca is just dangerous. there is no error-reporting except a SIGSEGV :P
stateless
so are recursive functions
:P
unless they are tail recursive
:P
FRIGN
lol, thing is, sometimes you need head recursion
k0ga
FRIGN: automatic arrays are dangerous
there is no check
FRIGN
k0ga: you mean VLAs?
k0ga
no
stateless
no
k0ga
int f() {int p[80000000];}
stateless
if you nest deep enough even without VLAs
you can crash
FRIGN
ah okay
stateless
with VLAs it is easier because if the size is not controlled then you will potentially crash quicker
FRIGN
thing is here though, that the heap is easier to handle than the stack
stateless
thing is with recursion there is a benefit, it can simplify code a lot so even if you do not use tail recursion it is still worth it if you can prove that it won't nest too deep
FRIGN
I don't know how well a stack overflow can be detected either
stateless
FRIGN, there is a guard page that is not writable, so it crashes
FRIGN
ah okay
stateless
that's when you nest too deep
k0ga
old compilers generated 'call csv' as first instruction of every function
stateless
some systems will resize the stack up to a limit
k0ga
and csv checked the stack to detect it
stateless
you can controll these limits with ulimit
k0ga
(I am talking about very, very old systems)
stateless
k0ga, no MMU systems I guess :P
k0ga
not so advanced MMU
stateless
no per page protections?
k0ga
original PDP11 unix did it
stateless
I see
https://github.com/id-Software/Quake/blob/master/WinQuake/net_dgrm.c#L332
nice debugging feature
FRIGN
stateless: you know, if the fu*king file-utils were not path-based, it would be muuch simpler
stateless
hahahaha
it drops packets for testing
FRIGN
lol
k0ga
and stateless I don't have a pdp11 in my home :P (this begins to be a common joke in suckless xD)
stateless
FRIGN, and instead be what?
FRIGN
stateless: I know _exactly_ what you mean
http://cdn.meme.am/instances/50061753.jpg
stateless
haha
https://github.com/id-Software/Quake/blob/master/WinQuake/net_dgrm.c#L619
hahaha
atmc
stateless: the nike logo is missing
retard
IT WOULD MEME A LOT TO ME IF YOU WOULD GO TO PROM WITH ME
k0ga
FRIGN: I hope sent a mail this week to the ml asking for test cases
I think it is going t be stable enough to begin with the test phase
FRIGN
noice!
:)
does it compile sbase?
k0ga
sbase is c99 :P
FRIGN
yeah
xenkey
guys
who was the first country to have fiber optics
http://www.speedtest.net/result/4578920090.png
k0ga
FRIGN: I was thinking in something more simple, regression tests
retard
"fiber optics"?
FRIGN
xenkey: I'll get 100M soon
:P
Drakevr
i have 50/50 back home and pretty happy with it :p
FRIGN
Drakevr: I'll only be satisfied with 1G
:P
Which white man is happy with a Fiat when he can own a Porsche?
Drakevr
lol
retard
i don't have a license
FRIGN
lol
license for what, retard?
retard
to kill
to run oracle software
also driving an automobile
dami0
hi
retard: you're missing out on road rage and maintenance costs!
« prev 1 2 3 4 5 6 next »