« first day (925 days earlier)      last day (4028 days later) » 

8:00 PM
Well, others were volunteered, so it could be worse
 
user142019
Oh my God.
 
Ell
@FredOverflow I'm using FreeImage. But obviously I'm doing something wrong. Here is my code coliru.stacked-crooked.com/… - it loads each colour value to a vector<float>. Don't worry if you can't be bothered to look, I'll figure it out eventually
 
user142019
N3580 uses Moronic_case.
 
user142019
Most fugly thing ever.
 
link to N3580?
 
8:01 PM
@Ell Don't color formats usually use integers instead of floats?
 
What is that?
 
user142019
A proposal.
 
"Moronic_case" i meant
 
@FredOverflow Most GPU formats are float-based now.
 
user142019
8:02 PM
@FredOverflow floats from 0.0 to 1.0, usually.
 
oh, okay
 
user142019
OpenGL allows both, though.
 
user142019
It will convert integers to floats if the GPU requires that I think.
 
> if the GPU requires that I think.
Why would the GPU require that @rightfold thinks?
 
user142019
LOL
 
8:06 PM
+1 not saying anything :) (we have just been discussing how on earth only 2 people still have the boost silver badge to date...; I'll add "anonymous beneficiaries" to the list of contributing factors) — sehe 1 min ago
 
user142019
The F in Fred is for "funny".
 
^ lol /cc @LucDanton
 
user142019
Hoera! Een week lang vakantie!
 
Xeo
@sehe Why do I feel like your upvotes are wasted, if he's going to make new accounts all the time anyways.
Or rather, answering as a new anonymous identity.
@FredOverflow Commas, man, how do they work?
 
@Xeo Well, it -is- a democratic thing. I'm upvoting for the added value. That's not a complete waste.
@rightfold Yeah. For the first time in ages (forever, actually, at least >15 years) I'm actually heading out outside the summer break
 
8:10 PM
0
A: Cache hit and miss calculation in c#

Eric LippertC# does not use the bizarre c++ convention that bitshifting also means stream manipulation. You'll have to actually call methods for i/o.

^^ lol
 
user142019
@sehe Waarheen?
 
@Mysticial hahahahaha xD
 
Could you, perhaps, make the answer helpful by adding insight on which methods to call? As it stands it is a, hilariously funny, comment. — sehe 6 secs ago
 
I believe that's the shortest answer I've ever seen from Eric Lippert. But it gets the job done.
 
@rightfold Limbabwe
@Mysticial Not really
 
8:12 PM
@Mysticial It's probably just a stub. Wait a couple of minutes and I'm sure it'll grow. (That's what she said!)
 
@FredOverflow Eric Lippert plays FGITW?
 
He's probably bored
 
@FredOverflow My thinking. I don't it's right though; his 'aura' and the 'funny' level will sollicit so many gratuitous upvotes that any 'serious' helpful answer will be doomed to rot in a corner.
Dat edit /cc @rightfold
 
user142019
What the fuck man.
 
user142019
I close my screen saver and suddenly Chrome is slow as a dog.
 
8:14 PM
@rightfold Well, then, don't close your screen saver!
 
user142019
@sehe "c++" and "i/o" looks so fugly.
 
@rightfold Firefox will run circles around your Chrome.
 
You write infile. and then wait for Intellisense to step in. — FredOverflow 36 secs ago
Dat comment
 
@FredOverflow You mean, it will busy loop like crazy?
 
user142019
@FredOverflow because Firefox is web-scale?
 
Xeo
8:16 PM
But c# includes the same bitshifting operators for integers.. — Hanya Idrees 48 secs ago
 
GUYS
You are derailing an already unhelpful answer.
 
Xeo
Oh gawd, ahahaha
 
What is SO coming to
 
@rightfold It better be :)
 
user142019
@sehe Never heard of it. Is it a combination of Limburg and Zimbabwe?
 
8:18 PM
@Mysticial It's terribly unhelpful.
 
@Xeo That must be one of the stupidest comments in a while.
 
@Rapptz I don't agree that it's unhelpful. The OP assumes that >> streams work in C#. Eric Lippert says they don't and says to use functions.
 
@Mysticial Look at it this way. Guy is obviously confused. He gets a terribly unhelpful answer saying "That's not how it works" and doesn't tell him how exactly it works. Oh so you call a method? Which method? It's unhelpful.
It's the equivalent of an answer saying RTFM.
 
Then why don't you provide a better answer?
 
Xeo
I wish RTFM was a valid answer on SO. :(
 
8:22 PM
@rightfold Yeah, ontwikkelingsgebied :)
 
Vote to RTFM :P
 
user142019
@sehe Ik ben geconfuseerd.
 
@Rapptz +1, I flagged it as not an answer now, since it's obviously not a stub, being expanded
 
user142019
Oh "gebied", not "beleid". Whoops. :v
 
@Borgleader closed as "OP apparently didn't RTFM"
 
8:23 PM
@Xeo It is. Just, post it as a comment
 
user142019
I'm downvoting as RTFM.
 
@FredOverflow am I an owner yet
 
user142019
It's a very bad question.
 
@Johann If anything, you are an ownee.
 
...
 
Xeo
8:26 PM
Hm. A bit rum with my coke, or going to bed early today... tough decisions.
 
everyone who isn't an owner is an ownee
 
Xeo
Yeah, because you(r code) constantly get(s) owned by us.
 
I'm an ownee.
 
@rightfold is also an ownee, because he is a pony (pwnee).
 
user142019
8:29 PM
lol
 
@Rapptz that's old hat (colordiff, colorgcc and colormake)
 
what is the easiest way to perform an HTTP POST request in Windows? (in C++ of course)
 
Mention N3421 with a link and you get my upvote ;) — FredOverflow 7 secs ago
@Abyx install Python
 
Xeo
Boost.Asio, maybe?
 
HELLOMYNAMEISNOTADAM.
 
8:30 PM
eve?
 
Xeo
Hello Eve.
 
@Xeo asio has no http support
 
greetings
 
@Abyx cassablanca or libcurlpp
 
fuck both of them
 
8:31 PM
now you have no options. :D
 
user142019
@Abyx libcurl probably.
 
user142019
If it supports Windows at all.
 
Xeo
@Abyx You mean with all the fancies included?
 
user142019
Or
 just use C++/CLI! :D
 
C#.
 
8:32 PM
@Abyx So, good luck then
 
If it's Windows, C#.
 
I mean want something I can link statically, so casablanca won't work for me. also it looks like a beta
 
4 mins ago, by Borgleader
user image
 
user142019
That '70s Show.
 
Which one? lol
 
8:32 PM
@Abyx You're starting to sound like a low troll
 
@FredOverflow That's the name of it.
 
user142019
@FredOverflow oh lol.
 
I know lol
 
and curl looks like a C crap
 
I also know that "Dr. Who" is not a question.
 
8:33 PM
@Abyx curlpp
come on, think for >2s, look for more than 2 mins.
THEN jump to conclusions
 
user142019
OH NO A C API WHAT DO WE DO NOW.
 
You can always write things yourself, you know.
1 min ago, by sehe
@Abyx So, good luck then
 
sleep(120000);
goto conclusions;
 
meh, I want something like URLDownloadToFile, which allows to perform GET in one call
 
@FredOverflow That's already a huge improvement over the current procedure
 
8:35 PM
cant write Crap without C :P
 
@Abyx Look at VB.NET assemblies. HttpClient has something like this, too
@Abyx Also, make up your mind. POST or GET?!
 
meh, .net, don't wannnaaa
 
Fuck that
 
@sehe POST. if it would be GET I'd use URLDownloadToFile
 
1 min ago, by Abyx
meh, I want something like URLDownloadToFile, which allows to perform GET in one call
^ 'nuff said
 
8:36 PM
@sehe "something like"
 
Also, a 20s search on SO would have pointed you at PoCo
@Abyx sigh...
 
@Borgleader The last well-written thing in C was Mahlers 2:nd symphony. (pun readily extended to C#)
 
well, I'm going to use it in installer, so it can't use .net/python/dlls/etc
 
Are you using your own installer?
As in, you're making one?
 
@sehe did you use POCO? is it good?
@Rapptz yes
 
8:38 PM
Why?
Also Poco is pretty cool looking and C++ like from what I've seen
 
@Rapptz custom UI, etc
 
Meh, never cared about the UI of an installer.
 
@Rapptz apt rocks.
 
neither did I, but it's not me who decide that part
anyway, I already have that installer and I just want to add an http post request to it)
 
Xeo
@FredOverflow Or.. the new revision of my paper! :D std::sort(x.begin(), x.end(), [](>));
 
8:42 PM
poco, huh... let's look at it
 
Ell
I think ASIO would be fine :3
 
@Xeo wth is [](>) ?
 
@Xeo Make that sort(x, >) and I'll buy it.
 
Xeo
hrhr
boost::sort(x, [](>))
 
8:44 PM
@Borgleader "I'm so fucking lazy to type"
 
Xeo
But I think one could actually push (>) instead of [](>)
 
@Ell asio has no urlencode and other http-related crap
 
@Xeo C++ adopting sections from Haskell? drooling
 
What's wrong with std::greater<int>()
 
@Xeo Not sure. (+) is a little less amusing since (+expr) would be a valid expression.
 
8:45 PM
@Rapptz Not polymorphic.
 
Xeo
@FredOverflow That's the original idea behind [](+)
 
@Rapptz You have to mention the type. N3421 will fix that.
 
@FredOverflow Has fixed that. Went in at the meeting before Bristol
 
Xeo
@DeadMG Well, yeah, but (@) by itself is invalid in all circumstances as far as I can see.
 
@R.MartinhoFernandes eh
 
8:46 PM
@R.MartinhoFernandes Happy age++ day R..
 
@DeadMG Cool. Does any compiler implement that yet?
 
Xeo
@DeadMG Now, if we also had partial application for fixed-numargs operators...
x | filtered((>3)) - but that'll probably never happen
x | filtered(std::bind((>), _1, 3)) will likely be the closest one can get to that.
 
Landas?
 
Xeo
Give or take []
 
Functional is awesome.
 
8:50 PM
lambdas*
 
Hello!
 
@DavidJensen We will never get those...
 
Xeo
Of course, one could always return to Boost.Lambda, i.e. x | filtered(_1 > 3)
 
@FredOverflow you code in scala, correct?
 
8:51 PM
Thank god for cute coeds!
 
Ell
functional is convoluted :P
 
@Xeo x | filtered((>3)) doesn't look like c++ to me.
 
@Borgleader I code in lots of languages. Scala is one of them, yes.
 
Anyways, if you guys wanna upvote the better answer:
1
A: Cache hit and miss calculation in c#

Moo-JuiceTo quantify what Eric means: C++ is quite flexible in the operators that can be overloaded. It has become a sort of "idiom" that the bitshift operators << and >> also be used for input and output. This actually makes kind of sense as it is a logical construct and the eye registers some kind of...

 
@FredOverflow What ide do you use or if not an ide, what text editor?
 
8:52 PM
@Borgleader I use an Eclipse plugin called ScalaIDE.
 
Xeo
@CaptainGiraffe Yet
 
scala isn't confusing enough to be a successor to java
 
Xeo
Give it another 10 years
 
Oh noes Eclipse :(
 
code::blocks !
 
8:53 PM
@Xeo Quite true dog.
 
@Mysticial lol it still doesn't mention the replacement in his case aha but +1 anyway.
 
Boost::thread vs pthread what do you thinks ?
 
@MalikBenmekki c++11
 
8:54 PM
@MalikBenmekki Why not std::thread?
 
@Johann I dare you to look at the supertypes of List and repeat that statement :)
 
...;)
 
@FredOverflow, "that's what she said"? :) — Moo-Juice 13 secs ago
^^ lol
 
@FredOverflow Don't know, but I doubt it'll take long, it's a fairly trivial stdlib addition with basically no likely conflicts.
 
8:55 PM
@Morwen because you can't create an abstract class Thread and re-implement run() functions as in Java
 
@MalikBenmekki That's a good thing, not a bad thing.
 
Did I hear Java?
 
@Morwenn what do you think about that
 
@rightfold Mocca roasted, fresh beans. my perversion knows no boundaries.
 
user142019
Binmaster we need your help.
4
 
8:57 PM
It's way too big for the chat.
 
That was fast... too fast...
 
@rightfold +1 DeadMG has earned title BinMaster and will be his nickname (aside from Puppy) in Alf Pilgrim v. The Mods
 
I didn't know puppies could be fast. I thought they could only bark.
 
That was ugly code by the way.
Ugly use of new
 
Xeo
@ThePhD Oh yeah, the conclusion to that is already known, right?
I mean, Alf got banned after all.
 
8:58 PM
new became such an old feature.
 
room topic changed to Lounge<C++>: And Lord Puppy the Binmaster smote the unbelievers, and all bowed down [c++] [c++11] [no-helpdesk]
 
@Xeo Normal Playthrough + Unexpected Ending
 
@Xeo He did?
 
@Xeo And only temporarily, right?
 
8:59 PM
@FredOverflow I think I'm gonna try IntelliJ if that doesn't work I'll give your Eclipse pluging a go.
 
Xeo
@DeadMG ... yes? Until Mid-May
 
oh
why?
... and when?
 
Xeo
No clue
 
@Johann Who would have thought it?
 
Xeo
room topic changed to Lounge<C++>: And Lord Puppy the Binmaster smote the unbelievers, and all bowed down [c++] [c++11] [no-helpdesk] [pffft-bwahaha]
 
8:59 PM
@Abyx Yes. Not for HttpClient though
 
I am suprised there isn't already one @Pawnguy7
 
room topic changed to Lounge<C++>: And Lord Puppy the Binmaster smote the unbelievers, and all bowed down [bible-quotes] [c++] [c++11] [no-helpdesk]
 
Well, Alf was particularly confrontational with people on a regular basis.
 
@Johann Perl people (a) prefer to scribble cryptic instructions onto magnetic media (b) know they won't harvest much more than trolls
 
Sometimes he was right, but usually just confrontational. I don't see it as a surprise someone put him in Cooldown.
 
9:01 PM
@ThePhD Is that a nice was of saying he was an ass?
 
Xeo
@ThePhD How nicely formulated. I'd have just said he's a dick.
 
@Xeo You dick!
 
@DeadMG smite, smote, smitten?
 
@Johann Oh. I thought there was. Though to be honest, I don't really know what Perl is. General scripting? Server-side scripting?
 
scripting @Pawnguy7
 
9:01 PM
@sehe Smited. Smitten is for relationships.
 
user142019
@sehe Smothered.
 
@sehe I dunno, I was smitten by him sounds a bit different than I was smote by him.
I mean, smote can also be used for a relationship FORALL values of sufficiently big dick.
 
"I was smitten with him" indicates an attraction. "I was smote by him" indicates that he delivered some holy justice with fire, lightning, and such.
 
^
 
despite their confusing spellings, "smite" and "smitten" are completely unrelated.
 
9:03 PM
I say smote.
 
I actually don't know which.
I should check the dictionary.
 
Xeo
Just like found and found!
 
confound!
 
..but not !found
 
Dictionary.com says smitten is past tense of it.
 
9:04 PM
what is plonking? I assume it is a chat term.
 
Xeo
Ignoring.
 
I'd explain, but it would falsify the point
4
 
hmm
how does one plonk
3
 
@Johann With a fish. Usually a red fish.
 
Not like that.
 
9:05 PM
step one - obtain a red fish.
 
Who's plonking who?
 
check the functional room
 
Xeo
Me, @ThePhD
 
@Johann step two - use it slap the one you want to plonk
 
@rightfold and I had a row
 
9:06 PM
@Xeo You can give me your redfish any day of the week~
 
...
 
Xeo
Okay, now I don't feel like plonking him anymore.
 
@ThePhD Wat, I thought we were exclusive.
 
@DeadMG You're too Wide, I just can't take it. ;~;
 
@ThePhD It is a compiler bug.
 
9:07 PM
One does not simply be such as from again and before thereby in such a case.
 
seriously though, how do I plonk/ignore
 
@Borgleader I've heard good things about IntelliJ's Scala support.
@Johann You probably need more rep for that :)
 
oh
 
@Borgleader whoops sorry
 
the 'r' chat people were smart to make it a restrictive room-keeps out the chatter
 
9:10 PM
@FredOverflow I linked that to you earlier :P
 
Ell
@DeadMG does wide compile on linux do you know?
As in, have you written makefile or anything?
 
Widefile
 
@Johann We want the chatter.
 
as far as I am aware, it compiles and executes just fine
 
Wide Temp File -> .wtf
3
 
9:11 PM
but you will have to do the makefiling yourself
 
Ell
Right
 
...
 
Surprisingly, I was forced to downvote this. — DeadMG 19 mins ago
^ I'm so happy Stack Overflow still has sense of fairness
 
wow, that was 19 minutes ago?
 
@Johann Funny you should say that.
@DeadMG No, I warped time-space to put you off
 
9:15 PM
why would that not surprise me
 
@DeadMG Its 19 dog minutes, so only 2.5 actual hooman minutes
 
I know, gods amongst ourselves
 
woof woof cockface
 
user142019
LOL
 
So mean :(
 
9:17 PM
Any musi advice down there?
 
I guess I should've said Blizzard minutes >.>
 
watch out for irony stars
3
 
wtf?!?
 
double irony
 
nah. that's sarcasm
 
9:19 PM
so
let's see if my latest additions to Wide pass at least the most basic testing
 
double irony = 5412341.71;
hehe
 
At the darkest, saddest moments of your life, I was beside you, watching. You were pretty funny.
long double irony = 42.;
 
@Johann I don't get it.
 
I think Johann doesn't understand irony.
 
a poor attempt at a leet version of sarcasm
sigh
 
9:23 PM
At least, think generic: template<typename T> constexpr irony<T> = 42;
 
oh god
don't remind me.
 
@Morwenn and cpp14, although, make it 42 or it won't even compile for integral types (:))
 
@sehe Yeah, and I'm not even sure of the syntax.
 
so fucking embarassing
 
@sehe Do variable template reject narrowing conversions?
 
9:24 PM
@Morwenn me neither
@Morwenn well, I can only assume it expands down to a regular declaration with initializer...
 
@sehe Would be template<typename T> constexpr T irony = T(42);
@sehe I think it does allow narrowing conversions unless we use curly brace initialization.
@sehe Don't even want to know what would do a irony<std::vector<int>>...
 
reddit.com/r/Cplusplus there is a subreddit for everything
 
it's /r/cpp
 
a subreddit on preprocessors?! <gasp/>
 
my point not exactly
 
Sterilized but acceptable
 
goddamnit
I broke clang again... somehow
it's so fucking brittle :(
 
Once, GCC broke my computer. Forced to restart.
 
not really sure what I did to Clang, but it seems to have duplicated some C++ types unnecessarily
 
Wow, coliru handles template recursion better than my computer.
 
9:55 PM
huh
I ran through every difference with source control, and none of them explain Clang's funky behaviour
 
@ƁukaszNiemier Whoops, I hope I fixed it now (I'm glad I asked. Feel free to edit it yourself in the future :)) — sehe 1 min ago
Whoops
@DeadMG Wrong
 
lol
 
Clang's (funky) behaviour is a fact. The code will explain it
 
I'm pretty sure that this thing executed correctly at the latest commit
 
Better find the explanation for that
 
9:56 PM
agree
the sane thing to do is to revert each difference until Clang behaves normally again
 
Ell
Im gonna attempt to compile wide soon
 
@DeadMG And don't forget the differences in your code
 
@sehe Those are the differences I'm talking about. I didn't rebuild Clang.
 
Ah.
 

« first day (925 days earlier)      last day (4028 days later) »