logs archiveBotHelp.net / Freenode / #2f30 / 2015 / September / 24 / 2
k0ga
r = u[(i-1)*sizex+(j-i)*sizey) + u[i*sizex+(j-i)*sizey) + ...
stateless
was i-1 even valid in all cases? :P
k0ga
instead of p = &u[i * sizex +j*sizey]; r = *p[-1] + *p[+1] + *p[-sizex] + *p[sizex]
stateless
yeah
from the regex matcher
i like the note on do while
"Notice that advancing over the input string is done with a do-while loop, a comparatively unusual construct in C programs. The occurrence of a do-while instead of a while should always raise a question: why isn't the loop termination condition being tested at the beginning of the loop, before it's too late, rather than at the end after something has been done? But the test is correct here: since the * operator permits zero-length matches, we first have to ch
k0ga
or anether code that was initializing a 4 dimension array with a sequential number, and they were using 4 nested loops and a serializing expression in the more nested instead of:
for (p=&m[0][0][0][0]; p < lim; ++p) *p = id++;
abouth the matcher, yeah. When you do parers do while are very common
in my parser I use more do while that while
stateless
k0ga, haha nice
k0ga
do you know what was the answer when I modified this part?
they said me that was stupid this change because the compiler can optimize the 4 loops
argggg, the super mighty compiler sindrome ...
stateless
lol
k0ga, tell them that code is written for humans
k0ga
yeah, but these ppl think that pointers are for machines
Evil_Bob
https://www.youtube.com/watch?v=xdJ8VJ8byy0
the place to Bee.. SD
hmm is the archive broken or is it really been quiet on the ML? http://lists.suckless.org/dev/date.html
atmc
math guy presenting with Comic Sans
so much love
FRIGN
atmc: link?
Evil_Bob
FRIGN: btw the bug i thought was a bug in cols.c wasnt a bug, just checked :)
FRIGN
can you enlighten me what the fu*k you are talking about?
:P
Evil_Bob
no
:P
FRIGN
<Evil_Bob> i found a bug in cols the other day but i need to investigate it
Evil_Bob
yes, i was wrong
FRIGN
yo, I deeply audited this bi**h
no more bugs in it
guaranteed
Evil_Bob
:D
FRIGN
you'd rather find a bug in echo(1)
Evil_Bob
they took our jerbs
FRIGN
you'd rather find a bug in true(1) or false(1)
you'd rather eat snot and diarrhea and puke up a donkey's ass
Evil_Bob
$ yes "its all ogre now"
FRIGN
you'd rather do it for shrek
you'd rather eat a roadkilled skunk and piss a cactus out of your di*k
Evil_Bob
hmm kinky
FRIGN
you'd rather lick the sh*t skid off the inside of a toilet bowl
Evil_Bob
btw how deep did you audit sbase?
FRIGN
deeper than I was in your mom
well, except sed(1), find(1), I did pretty much every tool
however, take a look at xargs(1)
you might find something there
Evil_Bob
ok :)
FRIGN
Evil_Bob: are you looking into xargs(1)?
it def needs a "logical" cleanup
the code is rather bad
Evil_Bob
looked at it briefly, bit tired now, will do some coding tomorrow
stateless
lul
just looking at xargs commit history
"The flexible design already allowed to add these flags trivially."
FRIGN, ur words :P
now go and screw it up!
:P
k0ga
hahahahahah
FRIGN
lool
stateless
:P
FRIGN
stateless: I lol'ed when I watched se7en with my gf
right at the end, when they're sitting in the police car
the killer says: "It's trivial" :D
stateless
yeah :P
Evil_Bob
ROFL
stateless
be back
Evil_Bob
this is https://www.youtube.com/watch?v=O0ilk2NfOyw dancing
FRIGN
stateless: "It was about damn time. Consistency is very important in such a
big codebase."
http://git.suckless.org/sbase/commit/xargs.c?id=eee98ed3a446d1c84e7adc4ce084ec880cc8a669
~/dev/sbase-GIT $ git log | grep "trivial"
We skipped flags before, so no real bug, but it's trivial to add
In this case, it's more or less trivial.
basis (as many of these are trivial to test).
The o-flag was trivial to implement.
The flexible design already allowed to add these flags trivially.
or less trivial, putting us yet again ahead of the competition.
Also, I changed the awk-script so that it can sort trivial
Add trivial equivalence class support in tr(1) and update manpage
Thinking about it long enough, the solution seems almost trivial.
Also, now that we are using {sym,}linkat, implement the trivial -L and
Currently we only handle login names - it should be trivial to
Evil_Bob
http://git.suckless.org/sbase/commit/?id=8ab096d2a4213d9676f9531474afda0c73a7c04a
GNU/Turd sucks
http://git.suckless.org/sbase/commit/?id=1a8dfaca372fba96615e8559d76a13b1fc1f217f only git commit that has "fu*k" in it
naughty boy
hmm thats actually interesting
sh*tty glibc strtoul :)
FRIGN
lool
this was like at 2am
I was sleep-drunk haah
Evil_Bob
lol
FRIGN
*haha
http://git.suckless.org/sbase/commit/?id=286df29e7d78ae4a6b4474bb14d517e02e4f0489
Evil_Bob: ^
Evil_Bob
meh :P
its undefined behaviour i guess
« prev 1 2 3 next »