« first day (1647 days earlier)      last day (3316 days later) » 

user1804599
lol
 
boredom level: high
 
@LightningRacisinObrit would you like a cookie?
 
@LightningRacisinObrit I didn't expect you to answer that - I'm kinda stumped now
 
5:07 PM
ok
last time I trust you
 
@LightningRacisinObrit according to google, this is the "worlds greatest cookie". I will get you one of those, I promise.. not today, but some day
hmm, anyone know of a compiler that does template specialization generation of function template specializations at the first point of instantiation? (in a context where it could be post-poned until the end of the TU)
 
5:21 PM
it's sad that iterators are so slow when it comes to dealing with files.
 
@Veritas Iterators? Files? Uh?
 
with streams*
 
You mean, input/output iterators on streams?
 
@EtiennedeMartel istream_iterator and ostream_iterator, presumably (and/or the istreambuf/ostreambuf variants).
 
@qub1n: That makes him wrong at time of writing. He might have been right had he made that claim five years ago, but that is not the scenario. I might as well tell you that C++ hasn't been invented yet; you're going to say I'm not wrong? — Lightning Racis in Obrit 43 secs ago
yeahhhh
 
5:27 PM
Yeah, well, it's not the iterators' fault.
 
@Veritas it would be were that true
 
@Veritas It's not really that the iterators themselves are slow, but that the iterators do formatted I/O, which can be slow (and if you real goal isn't formatted I/O, other possibilities can be a lot faster).
 
I thought that the std::streambuf_iterators weren't doing formatted I/O. Am I mistaken?
 
mate
what are you really asking
 
Yeah, make a problem statement and provide SSCCE (on Ideone or Coliru)
 
5:34 PM
@Veritas stream iterators do formatted I/O (well, they do whatever << and >> are defined to do, but that's normally formatted I/O). streambuf iterators are...sort of unformatted I/O, but only sort of (but I forget the details--I long ago decided they were rarely worth the trouble, so I mostly don't use them).
 
I was basically looking at optimizations when it comes to turning files to strings. The iterator approaches are very slow compared to ifstream::read for instance.
no real problem, I just find the iterator approaches more elegant.
 
still no idea what you're talking about
 
@Veritas For small files, you can use std::stringstream buf; buf << infile.rdbuf();, then buf.str() contains the entire file. For larger files, yes, you want to use read. stackoverflow.com/a/2602258/179910
 
@JerryCoffin yep I know. I am just saying that it's sad that the iterator approaches are slower. I also wonder if this could be avoided considering proper inlining or it's just different internal approaches.
 
5:41 PM
you still haven't shown that the iterator approaches are "slower" or gone into detail about this claim
you're taking it as a fact
it may well be
 
there are many benchmarks online
 
but it may not be!
e.g.?
that's what we're asking for. information!
 
Benchmarked: both Tyler's solutions take about 21 seconds on a 267 MB file. Jerry's first takes 1.2 seconds and his second 0.5 (+/- 0.1), so clearly there's something inefficient about Tyler's code. — dhardy Oct 1 '12 at 12:32
@Veritas Of course, LRiO will prefer to remain ignorant rather than read that, but that's his problem, not yours.
 
user1804599
I traveled back in time today; worked out totally feyn.
 
the first that comes into my mind is insanecoding.blogspot.gr/2011/11/how-to-read-in-file-in-c.html In my machine the difference is even greater.
 
5:45 PM
hng
now you have a decent question!
 
hi, is this the place where I get free developers to answer my questions?
 
uh..
 
@FilipRoséen-refp Is it normal that if you post something to the Future Proposals Group it does not immediately pop up in the list?
 
user1804599
@khajvah no
 
@khajvah nice try. not taking the starbait.
 
5:47 PM
@khajvah No. Most of us are expensive developers. Vlad from Moscow is free (unemployed).
 
have this instead.
 
@khajvah FREEEDUUUUM
 
@LightningRacisinObrit Stars are the reason I live
 
Oh, wait, that's not what you meant.
 
@LightningRacisinObrit At first I was like "Invalid", but then I was like "Well, I'm not In the mood today" so I clicked valid instead
 
5:48 PM
lol rekt
 
I suspect it's because the iterator approaches don't retain the size information.
 
@Columbo it can take a few moments; how long ago did you post (whatever you posted)?
 
@FilipRoséen-refp Like twenty minutes
@FilipRoséen-refp It was about allowing virtual void foo() = 0 {} :o)
 
@Columbo [std-proposal]?
 
@FilipRoséen-refp yep
 
5:49 PM
what size information
 
@Veritas You could test by reading into (for example) a static array you know ahead of time is big enough. My guess is that it won't help much though.
 
Maybe I screwed sth. up, but I don't want to double-post either
 
@Columbo did you post through the webinterface, or by mail?
 
@FilipRoséen-refp The web interface
Assuredly I just cocked it up, I'm so clumsy
 
@Columbo seems like it
 
5:52 PM
what I mean is that the read call is provided with the character number to be read. The iterators are not provided with this so they have to for example check for EOF in each iteration.
 
Hint if something you posted doesn't show up then it probably went into modqueue
 
@CatPlusPlus That'S what I thought first
I'll just wait for a bit
 
@Veritas just like read does
it does feel like read would be better at it but I can't put my finger on quite why
in the presence of sufficient optimisations obviously
 
Hello everyone
 
Nobody here by that name
 
5:56 PM
That's an old pun
 
old people make old puns
 
LRiO you are right, I just now checked that read uses a sentry.
 
I'm usually right.
 
I wonder why there's no compiler thingy to just print out specific types
 
6:00 PM
Specific types of what
 
modern eff c++ says that at compile time the best (not sure if only yet) way to find out what type has been inferred is to trigger a compiler error related to it
this seemed really weird and counter intuitive to me
or is it intuitive
it was the first thing I thought of myself
 
@AlexM. Missed you so much
:P
 
but then I also expected for something like a compiler directive that prints out types in the compile log or sth
@LucasHenrique hi cicada
 
@AlexM. Might be kind of convenient, but no--in fact, essentially the only output you can get at compile time is error/warning messages.
 
Like variable + *(void*) ?
 
6:05 PM
I randomly remembered yesterday
that when I first joined, sehe thought I was cicada
for some unknown reason
 
Were you trolling?
 
nope
do I look like a troll? :(
don't answer
 
yes
@AlexM. just stop using auto
or start using typeid
but the latter is not too reliable for this
 
Damn
This thing is creepy
 
6:08 PM
@LucasHenrique Damn, hide it or I'm going to throw something at it.
 
I adblocked it
 
Oh wait, I can do that too.
 
1 message moved to bin
 
Alex M. Jerry Coffin saves the day again.
 
6:09 PM
@LightningRacisinObrit I was looking for something to more easily test if I'm right when I experiment with inference
I'll just trigger errors then
 
I'm laughing so hard
 
time to eat my pasta <3
 
@AlexM. You're never right when you experiment with inference
 
Fucking compiler errors again.
 
You may infer that from the fact that I said so.
 
6:11 PM
Boobst library goes over the top.
 
^ best typo ever
 
What's with all these flags goddamit
 
user1804599
Boost is great.
 
user1804599
Boobs are great.
 
6:13 PM
Boost is a lot of code to include into a project....
it's got some nice things, though
 
user1804599
Luckily you don't need to include it into a project, since it's perfectly installable.
 
user1804599
$ brew install boost, wait five seconds, done!
 
sexist pigs
I'll have your head
 
true, at least in anything with a halfway decent package manager
 
user1804599
lolwindows
 
6:15 PM
yep
flavor of choice for pretty much all of Milwaukee
I mean, it's case-by-case, but everywhere I've worked used Windows dev machines and either Windows app environments or Nix-based Web servers
and for web dev it doesn't matter quite as much as native app dev
 
@Mooseman What if this where a medical stack excange, and the accepted post killed people? Would that be enough? — Rook 1 min ago
 
^^ I smell butthurt.
 
God I miss actually writing C++ for projects instead of dabbling in it for fun.
 
Xeo
I'mma have some fun this week implementing a logistics system for our game
\o/
 
6:20 PM
nice!
what would this logistics system be responsible for, exactly?
 
@LightningRacisinObrit maybe it's because std::back_insert_iterator also checks when to do allocations?
 
@milleniumbug That is not over the top at all.
 
so good, every time
there really isn't a match for QF tagliatele
 
Nice.
@Veritas Thanks to lack of your arrow use, the discussion looks like this:
A: "I'm hungry" B: "maybe it's because std::back_insert_iterator also checks when to do allocations?"
 
lol point taken
 
6:23 PM
@milleniumbug seems legit to me
 
Xeo
@ShotgunNinja logistics :P
exactly what it sounds like. moving resources around
 
I used std::back_insert_iterator and I also got hungry the same day
coincidence?
I think not.
 
@Xeo oh, just like in-game resource management?
 
Xeo
ye
 
Because I could also see it being a tracking tool for in-game events.
Not sure where that'd come in handy; maybe for something like TF2 and all of their achievement stuff...
 
6:26 PM
@AlexM. Cicada knew it.
 
today I ripped out some shitty code with a sledgehammer
 
user1804599
@Xeo clone factorio
 
Xeo
I brought up factorio's system as an inspiration ,ye
but we're gonna need something semi-automatic
 
user1804599
Oh, it's 4/20 today.
 
6:34 PM
concat [s1, s2 ... sn] reasonable instead of s1 ++ s2 ++ ... ++ sn for n ~ lot?
 
user1804599
No.
 
user1804599
It should be concat.
 
user1804599
conat is a silly name.
 
I just mistyped :P
 
user1804599
6:35 PM
Nok wins once again; the concatenation operator is variadic.
 
Nok?
motte ok nok?
 
user1804599
Nok!
 
well, I don't mind sprinkling stuff with show
 
I'm considering switching delivery guys because I'm so fucking tired of having to wait for them to call just to say "yes please deliver it" every time I order online
there's this 3rd party service that lets you order from multiple restaurants and they don't need double confirmation, I think I'll use that instead
@Rapptz read the announcement about the naruto spin off miniseries?
it's supposed to be released this month
 
6:47 PM
I have to say this: you're all wasting your time
 
you make it sound like I'm expending time learning C++
which I assure you is not the case
 
Quick question: What is the principle for copy/pasting code snippets for others to solves on Stack Overflow?
I forgot the acronym, is it SOPP or something?
It has to do with posing short, concise, relevant codes that addresses the issues the asker is asking about.
 
user1804599
SSCCE.
 
@Puppy I should mention that in my resume "I taught myself C++ in 24 hours thanks to a book my aunt bought me"
 
@rightfold, Thanks
 
user1804599
7:00 PM
"SSCCE or GTFO" is Stack Overflow rule #1.
2
 
If only the rules of SO is more obvious on the front page.
Anyway, my issue is resolved.
 
I love it when VS' debugger hangs.
 
I spent all of today working on a T4 template which would often cause VS to crash.
 
@MarcoA. TIL SAMS refers to Turbo C++
 
The starboard today is filled with messages with low star counts.
Somebody has really low standards.
 
7:14 PM
if only that had been a single message
 
wtf
 
@LightningRacisinObrit Yesterday there was a hockey game. The Montreal Canadiens would have lost if it wasn't for Dale Weise (pictured above), who is basically this guy nobody gives a shit about normally. The Twittosphere predictably exploded.
 
why does he look like he's gonna rape me :\
 
7:17 PM
Expectations
 
ew
 
Anyway, it's 3-0 Montreal. Only one win left before they move on to the next round. Eat shit, Ottawa.
 
/cc @LightningRacisinObrit
inb4 flag
 
@Columbo That movie is weird.
 
@fredoverflow You are fred.
 
7:23 PM
Thanks for reminding me.
 
You're welcome.
 
Tom Hanks
 
How's the wife
Oh wait I shouldn't rub this in IIRC
 
You're both on drugs
 
@Columbo Wife? Is that a typo? How's the wifi?
 
@fredoverflow :D
@LightningRacisinObrit I'm just sayin' I think your vagina might be biting people :|
 
@milleniumbug Is it me or does std::back_inserter sound really wrong?
 
@fredoverflow it does
 
7:28 PM
So I'm not a pervert. Or at least, I'm not the only pervert.
3
 
no, rightfold made a back_inserter joke a while ago
I still remember it
it's imprinted on my memory
 
user1804599
Bleh.
 
@AlexM. it would almost be wrong if rightfold didn't make a joke about std::back_inserter
 
user1804599
I'd go the easy way and use HTTP basic auth but that's slow as hell since I'd have to verify the password on each request.
 
user1804599
So I have to do crap with tokens.
 
user1804599
7:30 PM
HTTP y u no stateful.
 
@LightningRacisinObrit You're not giving me bad conscience mate
 
@Columbo It'll happen
 
@fredoverflow lemme star that, I need to remember it
 
@LightningRacisinObrit It won't, I lost mine when I posted someones comment as an answer on SO
 
7:33 PM
jk that never happened
 
inb4 ok
@LightningRacisinObrit I profusely apologize
My bad, my bad
I should go back to my terminally ill father now, we wanted to visit my mothers grave
 
@Columbo ok... how many grandmother's funerals have you taken off for this year?
 
We can't go anywhere else anyway, our house burned down and the village hates us for being ugly
@Mgetz Not enough, the limit is yet to be reached
 
@Columbo Nobby Nobbs
 
7:35 PM
@Mgetz So how you doin'
 
Jan 12 at 13:16, by рытфолд
@Xeo my boyfriend has a back inserter.
 
TIL @rightfold is gay
 
I think that was the time I got suspended for telling rightfold that at that hour I was not looking forward to finding out what he inserts in his back
 
@Columbo I believe it's more complicated than that.
 
... in a less than nice way
 
7:37 PM
@Columbo He is whatever is hip right now.
 
should have just flagged his message instead
 
@fredoverflow Multiple personality disorder?
Ahhhh
 
He's the closest thing we have to a Tumblr user.
 
@EtiennedeMartel but we're all using Tumblr indirectly through stack.tumblr
Oh wait that's Imgur
I confuse hipster shit CUZ IDC
 
Tumbgur
 
user1804599
7:39 PM
@EtiennedeMartel I am a Tumblr user.
 
do people still use tumblr a lot? I noticed its UI was broken on a few albums on firefox so I assumed it's dead and unmaintained
 
@rightfold Got your concats right here!
 
user1804599
@AlexM. I follow over 2000 blogs and it seems fairly active.
 
How can one person follow 2000 blogs??
 
user1804599
Basically, when I refresh the dashboard, all posts I saw before the refresh are not on the page anymore.
 
7:40 PM
Holy tits I was even righter than I suspected.
 
user1804599
No matter how quickly I refresh it.
 
all I know is that there was this nice album with anime chicks a long time ago
and after scrolling for a while the whole album turned white
scrolling back would fix it, but scrolling forward again would make it reappear
making the last N pictures unopenable
 
user1804599
Dependency injection is so much work.
 
user1804599
OMG GO
 
7:45 PM
wow LRiO the morning question was quite the rep fest
 
@EtiennedeMartel lol
 
Wow, Deepwater Horizon was five years ago today.
 
user1804599
@fredoverflow I don't see all posts.
 
user1804599
But all of them are interesting so I follow all of them.
 
user1804599
There are probably lots of them of which I never see any posts, lol.
 
I'm home!
 
user1804599
> In terms of features yes, but Kotlin syntax is extremely similar. Also the Kotlin docs mention Scala everywhere as if that's where it's from.
 
user1804599
@fredoverflow I like object-oriented programming the most in C++.
 
OO in C++ is fucking terrible.
 
@fredoverflow how come
 
user1804599
7:50 PM
Because C++ makes inheritance a pain in the butt.
 
user1804599
More object-oriented programming languages should do that.
 
exactly
 
user1804599
Inheritance should be as bug-prone and painful and verbose as possible.
 
"Harry told me he didn't like OO." - "What? How? When?" - "In Harry tense."
 
user1804599
lol
 
7:53 PM
that was terrible.
I'm pretty sure I just sprouted a brain tumor because of that pun.
 
@rightfold ?
 
what's wrong with inheritance in C++?
 
@fredoverflow What?
 
@AlexM. Nothing. Rightfold is having h is er period
 
@AlexM. The same as in any other language- shitloads.
 
7:56 PM
Interesting. So a works, but b---a--- not
 
I thought it was something only C++ screwed up
 
@Puppy Proof?
 
user1804599
@AlexM. It requires reference semantics in many cases.
 
user1804599
Slicing and crap.
 
user1804599
Can't use normal value semantics.
 
7:56 PM
@Columbo What are you asking for proof of?
 
user1804599
You have to play all sorts of tricks and make wrappers and virtual clone functions.
 
@rightfold Sure you can.
 
@Puppy That shit is wrong with C++'s way of inheritance.
 
@AlexM. Hardly. Simple rule of thumb: everything that C++ screws up, is either worse or missing completely in Java.
 
@JerryCoffin Java? Isn't that an island or sth.?
 
7:57 PM
@Columbo I'm the one that said that there was nothing particularly wrong with it.
in fact I think that C++'s inheritance is probably a bit better than competitors.
 
@Columbo I guess "or something" covers enough ground to include it (along with everything else).
 
@Puppy So.... was that earlier post sarcasm?
2 mins ago, by Puppy
@AlexM. The same as in any other language- shitloads.
 
no.
I meant that there's nothing especially wrong with C++'s way of doing it.
 
I understood it
 
@Columbo I believe his emphasis was on "particularly". IOW, it's horrible in C++, but at least equally horrible in everything else too.
 
7:59 PM
inheritance in general on the other hand has shitloads of problems.
 
like, inheritance is screwy no matter how you slice it
 

« first day (1647 days earlier)      last day (3316 days later) »