« first day (706 days earlier)      last day (4244 days later) » 

1:00 PM
@thecoshman I don't think I have a phobia, but I find it unpleasant to look at.
 
Xeo
3d'ing 2d images, lovely.
 
@Neil it is rather gruesome I'll give you that. I take it you don't like bot flies, or that frog that carries it babies in its skin
 
@jalf What's "it" ? The message is very unclear here, and what I can read is more along the lines of "lololol so much design patterns"
 
kikoo
 
1:13 PM
Sorry, everything just went black there.. what did you write?
*faints again*
 
@Neil I really hate bot flies
 
@thecoshman Are there really people who like bot flies?
 
@Neil I mean to the point where it is somewhat of a fear, not a phobia, it is perfectly rational
 
@thecoshman You're calling fear of bot flies perfectly rational?
 
I don't want to know what bot flies are.
 
1:18 PM
@Neil well, I am not scared of them suddenly invading my home land
@CatPlusPlus indeed you do not... but I feel compelled to spread the disgusting knowledge of them
@neil I take it you don't want to see a picture of a seriously nasty wound from a spider bite
 
Fuck this entire conversation.
 
@thecoshman I dislike spiders too
 
@kbok Yep, pretty much. And a lot of the criticism that you might level at Java is basically "lololol so much design patterns"
 
giant mili/centi-peades are rather nasty too... especially that giant one
 
@jalf Which is somehow justified... But I often don't like the tone.
 
1:21 PM
Java - Java Artificially Validates Anti-patterns
bet y'all din't know it was an acronym
 
So that's why people keep writing it "JAVA".
 
does std::string::size include the null terminator?
 
nope
 
Why would it?
 
I don't know. because it's C++
and it has strange and quirky rules
 
1:25 PM
@jalf Except the Java criticism.
 
sbi
@TonyTheLion At least in C++98 there was no requirement for std::string to even use a null terminator. I don't know if that has changed, though.
 
@sbi hehe
 
Null terminator is silly.
 
@sbi ohhhh :)
@CatPlusPlus You're silly. :P
 
Archaic shit.
 
1:26 PM
How do you determine the end of a string in memory without a null terminator?
 
@CatPlusPlus you sure it doesn't suck?
 
By storing its size perhaps.
 
@TonyTheLion With a length prefix.
 
We're living in a modern age of 1980 technology.
 
sbi
@TonyTheLion How does std::vector determines the length of its array?
@CatPlusPlus Actually, C was born 1970.
 
1:27 PM
Whatever.
 
@sbi is that 13 or 113 consecutive days?
 
sbi
@LuchianGrigore What? 13, I guess.
Yep, 13.
I had been kayaking for the weekend two weeks ago.
 
Was it in the hundreds before that? :))
 
lol, missing airports is one thing, but making them up is so much worse. thejournal.ie/…
 
sbi
@LuchianGrigore I honestly don't know. I don't pay attention to that.
 
1:31 PM
5 mins ago, by R. Martinho Fernandes
@TonyTheLion With a length prefix.
 
I have 268. :<
 
@TonyTheLion you learn fast :P
 
I do eh :P
 
sbi
@LuchianGrigore Ah, this comes with a calender. So I found that, except for January and February, I have failed to show up at SO for one or more days in every months this year so far.
 
@R.MartinhoFernandes hahah that's hilarious
I installed iOS6 on my phone yesterday
 
1:34 PM
@TonyTheLion poor you
 
yes, well I'm not planning to use their map app
I'll stick to Google
 
The most useful function in my phone is clock.
 
@CatPlusPlus Well, I have to get around at times, and a map is useful if you don't know your way.
 
@CatPlusPlus even more then phone functionality?
 
1:35 PM
Why do you even have a phone?
Just buy a clock, much cheaper
 
I don't need to buy anything, I already have it.
 
lol
you took me to literally
you fail.
 
@Abyx Basically, you're trying to build an argument from popularity (FP languages are not popular, so they suck) on top of an argument from ignorance or from anecdote, your pick (I never saw a program built in an FP language, so they don't exist).
 
why did you get a phone?
 
Received calls: 09:35:05
Dialled calls: 04:30:58
Over 4 years or so.
 
1:37 PM
@R.MartinhoFernandes yep, I know
 
1:52 PM
@CatPlusPlus Not very talkative are you?
 
@R.MartinhoFernandes Pascal strings? BSTRs? Anyone
BSTRs are the funkiest, str[-1] is the length
 
> I'm trying to imitate PHP's file_get_contents() function for C++.
lol
@StackedCrooked except on this chat then
 
@sbi Out of context it seems to be a statement about the current state of affairs in the USA.
 
Pascal strings used a one-byte length prefix.
 
2:00 PM
@CatPlusPlus For some values of "Pascal".
 
@CatPlusPlus Max 255 bytes length. Seems highly inconvenient.
I think I overuse the verb "to seem".
 
@StackedCrooked oh no, you see it has a prefix to say how many bytes are used for the prefix of how long the string is
 
@StackedCrooked Generally wasn't a big problem in the CP/M days. When more memory became common, most Pascal compilers added types with 16 (and later, probably 32) bit counts.
 
1.2623830496605862226841748706512e+614 characters should be enough for anyone :P
 
@CatPlusPlus Wait, that's 13+ hours?! I'm pretty sure I won't reach that with skype, home phone and mobile combined.
 
2:04 PM
GCC 4.7.2 got released today. They fixed 75 bugs
 
@sehe But you will with mumble.
 
@sehe Over 4 years?
 
@R.MartinhoFernandes ahahaha. That's true. I probably spent more time in mumble than ever on a phone.
 
He is like Mr Mumble himself.
 
Also, typed more words in chat than in emails :)
 
2:05 PM
is that mumble server still running?
 
@sehe ...and at the opposite extreme, that's roughly what my wife uses in a single day.
 
@StackedCrooked Tony is more often on than me, but he probably is mostly alone unless I join ... :)
@JerryCoffin Ow
 
@sehe Well, being fair, if I checked objective numbers, I am probably exaggerating -- but not much.
 
Oh wait... No. I just remember I used to work from home a lot and it was right about the time that I mentored a junior colleague. We ended up pair programming on a shared remote desktop for many hours. We used landline phone connection for voice during the cheap hours
@thecoshman Of course loungecpp.sehe.nl/mumble-server
 
@JerryCoffin Women..
They like to talk.
 
2:09 PM
W. A. I. T. -- Why Am I Talking? http://www.conversationmatters.com/articles/waystolearn/wait.html
 
@sehe do people still use it?
 
@thecoshman on occasion
 
@StackedCrooked But somewhat never really listens...
 
@thecoshman Scrawl up. Wake up. Wha-evah
 
Only some animals.
 
2:10 PM
I might have to drop in some time... though I would need to sort my self out with a mic... could use my headset from work... but then I will forget to bring it back in
 
@TonyTheLion, i like to make it good, instead of "enough good". it hurts my brain to see its having a copy of something, which is waste of memory and time. — Rookie 1 min ago
ok is this guy really moaning about 1 allocation?
 
it's Friday btw...
 
@TonyTheLion Moanin' n groanin.
 
@Abyx Woo :)
 
@Abyx soon... soon I am free
 
2:13 PM
> Is it possible to build a sort of combined semaphore/spin lock in C?
not sure what this OP is planning to do with a combined semaphore spinlock?!
 
@TonyTheLion Control freaks go.
@TonyTheLion Spinnin' round, up 'n down.
 
@CatPlusPlus Hah. To my surprise I total ~3 hrs over the last 2 years on my mobile. The 51min of that is to my wife. Makes sense. 42min is to my mom. It turns out it really does show up that she is hard to hang up on :)
 
hahah
 
@TonyTheLion Something indecent.
 
@TonyTheLion "I'm trying to imitate PHP..." ... "I like to make it good, instead of 'good enough'". Hmmm...no, no self contradiction there at all!
@StackedCrooked In that case we're immorally obliged to help!
 
2:20 PM
:D
 
Xeo
No message from Funatics yet, and seems it's a bit late to call. :(
 
What's Funatics?
 
@JerryCoffin haha
 
Game dev.
 
> why fill with nullbytes? that is waste of time, isnt it?
Ahahahahahahaha
Oh god
 
2:22 PM
lol
 
Downvote, downvote everything he ever said.
 
that guy is such a waste
 
Poor rookie.
 
@CatPlusPlus Reminds me of one of my co-workers.
 
@R.MartinhoFernandes You're free to go help him
 
2:26 PM
@R.MartinhoFernandes You're free!!
:P
 
0
Q: Piping large files using IPC::open2

kikumbobI have made a perl script that wraps around another tool (overlapFeatures) so that I can correctly convert my file formats on the fly. The files I am dealing with are all tab-seperated tables of typically 2 million lines or so. On its own, overlapFeatures has no trouble dealing with these. Howe...

oh look a question about threading in perl
lol
 
To reserve space without initializing, use std::string::reserve of course. And yes the performance may be a factor if the file was actually a kernel special character device with a zero-copy path or something silly like that. Of course, memory mapped files beat the crap out of all of these approaches. — sehe 22 secs ago
@TonyTheLion Why lol? Perl6 has very nice threading support. It beats C++ support for threading, IMO. Just a pity that it comes with a shitty core language :)
 
@sehe cause Perl
@sehe meh, why didn't I think of that. I knew there was something essential I overlooked
 
@TonyTheLion Well, just don't look at those questions then. Rule of the internet: if it isn't your cup of tea, move on
 
@sehe That won't work.
 
2:31 PM
@sehe are you seriously telling me I can't have a giggle. :)
 
You can't fread into a reserved string.
 
ugh
why not?
 
greetings!
 
What's the point of making it a oneliner? I'd always opt for legible code. As a self-professed VB.Net enthusiast (IIRC) I think you should understand the sentiment? — sehe 8 secs ago
@TonyTheLion Yes. I'm always serious
@R.MartinhoFernandes Mmm. Is data() const? Soooo vector<charT> beats string once again
@Chimera earthlings!
 
2:34 PM
@sehe :-)
 
@sehe No. You can't fread into a reserved vector either.
Only the range [data(), data() + size()) is valid, not [data(), data() + capacity())
 
So, I played with the new iPad for so long last night that I only slept a few hours. Tired.
 
@sehe har har :)
@Chimera new iPad?
 
@R.MartinhoFernandes "valid"? Can we define that
 
@sehe A valid range is a range with valid iterators.
 
2:40 PM
@sehe not invalid, muahahah
 
Xeo
Writing to an uninitialized char shouldn't have any bad consequences, though. Wasn't there a rule that allowed this for primitive types?
 
@Xeo But how do you make std::string::size correct after you write to the reserved space?
 
Xeo
true enough, nvm.
 
Invariants, people. That's the important part.
 
oh right
 
2:41 PM
@R.MartinhoFernandes Dunno, I sometimes like to use recursive mutexes.
 
so what is std::string::reserve good for then?
 
Avoiding unnecessary reallocations.
 
@TonyTheLion Yeah, I went to the dark side and bought the latest iPad.
 
Frequent reallocation can become quite expensive.
 
ah right
but then your std::string::size won't be correct if you write less then your original specified size?
 
2:43 PM
Konrad is correct that there's no way to do that without copy the contents of the whole file once.
 
@TonyTheLion But you can resize again afterwards.
 
problems, problems
@R.MartinhoFernandes ah right
 
The fundamental problem is not lack of RVO or move semantics.
The fundamental problem is that a stringstream does not let you pilfer its internal buffer.
stringstream::str always copies.
 
why didn't they (the standard library writers) put move semantics to that?
 
2:50 PM
I'll write this down as something to put on wheels next: a pilferable string stream.
 
pilfer: steal; especially : to steal stealthily in small amounts and often again and again
 
lol
if (!((*(int*)&(array[j]))&radix)) <--- I don't consider this very readable
 
Oh god
"not very readable" is an understatement, that is atrocious
 
0
Q: Implementing radix sort for doubles in C

LegendreI am trying to implement the C++ code here in C. This is how I wrote it: double array[5] = { 1.2345, 2.377, 0.1456, 0.6748, 1.23685 }; for (i=0;i<32;i++) { unsigned int radix=(1 << i); double zwarray[5]; int count0 = 0; int count1 = 0; ...

comes from this question ^
 
2:59 PM
@TonyTheLion Probably breaks the strict aliasing rule.
 
@StackedCrooked it's supposed to set a specific bit in radix or array, can't really tell
 

« first day (706 days earlier)      last day (4244 days later) »