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

Xeo
9:00 AM
The first part I got, I meant the last part with std::find
Maybe you mean std::find_if?
 
Well, the family.
I mean that the need for non-local returns is a sign that you are not using the right algorithms.
Inside C++ there is a weird functional language struggling to get out. :P
4
 
LEWG very concerned that most uses of any should really be variant but we don't have variant
 
"but we don't have variant" might be the real problem
 
right
but the LEWG can't fix that right now
 
also, there's at least one sample implementation, Boost.
@DeadMG I see
 
9:10 AM
Dietmar raises a good point that nobody cared about variant enough to propose
 
Variant is tricky.
Just like optional.
They are both so fundamental that all the cruft in C++ makes it hard as fuck to spec and make everything work/everybody happy.
 
@DeadMG maybe everyone just thought someone else will do it?
@R.MartinhoFernandes but both are extremely useful. Optional maybe a bit more.
 
Xeo
@R.MartinhoFernandes I'm trying to help it :D
 
add :: Maybe Int -> Maybe Int -> Maybe Int
add = liftM2 (+)
 
Xeo
@R.MartinhoFernandes They should just fix up union :P
 
9:15 AM
seems like any has survived "no-variant".
 
Why I am not coding in Haskell yet? :?
 
Xeo
I mean, variant is union with a few more niceties.
Or am I wrong with that?
 
@R.MartinhoFernandes Inside C++ there's an even bigger abomination struggling to get out.
 
Xeo
@DeadMG A shame, kinda
 
If boost::variant contains things like string and vector in it...
Does it properly delete them when you write a new type in?
 
Xeo
9:18 AM
The most problematic thing to get into built-in union is probably recursive_variant
 
@ThePhD What the fuck would be the point if it didn't?
 
Xeo
@ThePhD It just destructs the old value
Also, what the robot says.
 
@Xeo or at least the recursive_variant_wrapper approach
 
But, that's good to know.
 
9:19 AM
=[
 
lol
 
really, enough of this shit already
 
y u do dis to me. ;~;
 
Xeo
@sehe Yeah, but the user doesn't care / notice how it's implemented
just that "recursive variants work"
 
@ThePhD note: it's you doing it
 
Xeo
9:19 AM
And getting that as a language-feature seems kinda hard
 
@ThePhD because you post terrible code
 
I guess, underlying boost::variant is just a char data[ sizeof( largest type ) ] with an index to the template parameter, that is last active, then?
 
@Xeo well
> Portability: Unfortunately, due to standard conformance issues in several compilers, make_variant_over is not universally available. On these compilers the library indicates its lack of support for the syntax via the definition of the preprocessor symbol BOOST_VARIANT_NO_TYPE_SEQUENCE_SUPPORT. 1_53_0
 
@ThePhD it's some sort of aligned_storage, char[] is lame and primitive
 
aligned_storage ?
 
9:20 AM
you're lame and primitive
 
Is that a std:: type?
 
@kbok thanks :) look at the starboard, huh.
 
@ThePhD google
 
guys, I can't sleep
 
9:21 AM
@Mikhail try this
 
It doesn't work, it just closes the new window it opened. Using Opera 13
 
@Xeo Agreed
 
this is disapointing
 
@BartekBanachewicz lol
 
@Mikhail so it worked
 
Xeo
9:22 AM
@sehe That's boosts fault :P
 
@R.MartinhoFernandes: you around?
 
It's also kind of like @JerryCoffin's post about a good array type.
 
I'm announcing my departure today
 
9:23 AM
@Xeo lol - send a bug fix
 
@DeadMG Maybe.
 
I quit my job.
 
Wat.
 
the Committee asked me to separate out my algorithms from the string class
 
9:23 AM
Wait, why? D:
 
Xeo
Nooo.
 
want to check the new proposal?
 
@Xeo looking at that tentacle was somehow comforting for me
 
@Mikhail That's the point. Also, if you're that bored, why don't you read the newbie hints? loungecpp.wikidot.com/owners%3Anewbie-hints
 
0
Q: How to get the serial number of the hard disk of the client user

user2285699i want to find the serial number of hard disk of the client users using java Script or jquery Then save in Sql Server Data base ... Please Help me ... Thanks

 
9:24 AM
By the way if anyone is looking for an elite C++ developer in Paris feel free to contact me :p
 
@DeadMG You can link me to it, but I won't have time for a decent reading before lunch.
 
@sehe, i'll just go back to the IRCs
 
@kbok If you're ultra bored, I can definitely use a hand on my project. <3
Of course, it'd be strictly for fun and I can't pay you at all. =[
Which probably means I can't have you at all. ;~;
q_q I hate money.
 
@ThePhD Well, no offense meant but I saw your code so
2
 
=[[[[[[[[[[[[[
I haven't used it.
 
God. D:
 
Xeo
Hahaha
 
wdjakawkjd q__________q
 
@Mikhail or... you know, maybe, get some sleep :)
 
Also, I already have plenty of non-lucrative projects
 
9:27 AM
@R.MartinhoFernandes OK then I'll wait
 
@sehe I have to finish my thesis tomorrow, so fuck it.
 
Right now what I need is a big pile of cash
 
@kbok ahhahaah pwned @ThePhD
@ThePhD that's goddamn obvious
 
=[
 
3
A: Boost::fusion, Eigen and zip transformation

user2282520I believe what you need to use is zip_view. Your for_each invocation would be: typedef demo::data_eigen<REALTYPE>& vector_ref; typedef boost::fusion::vector<vector_ref,vector_ref,vector_ref> my_zip; boost::fusion::for_each(boost...

^ the Q hath begotten an answer
 
9:30 AM
but it does seem right now that LEWG will approve any
 
^ /cc @Mikhail @MickaëlPointier who was it who complained about very complicated, localized answers not getting replies?
@DeadMG "any"? did you forget a negation?
 
@sehe Well, the answer is simpler than the question
@sehe not any, any
 
Yay, optional_delete works. :D
 
Come on guys, let's confuse @sehe
 
@kbok Ah :) zing
@kbok lalalalalalalalalalala
 
9:33 AM
@kbok I considered being an elite C++ developer in Paris
 
2 hours ago, by Mikhail
I'm going try the OpenMP. I got something that takes 36ms and it must take 30 ms
 
@kbok Ultimately though I concluded that I had no idea how to go about getting a job in France, let alone an English-language one
 
^ also it would depend on the rest of the program. a lot @jalf
 
@LightnessRacesinOrbit Why didn't you?
 
@kbok Also, moving, ugh. Still, it would have been incredible. Still not ever ruling it out.
I'd like to end up in either Paris or New York, I think
 
9:35 AM
Ah right, guess I remembered the numbers wrong :)
 
@LightnessRacesinOrbit Linkedin, Viadeo, and monster are the highways of recruiting. Also, drop a call. A good C++ developer gets all the attention instantly
@LightnessRacesinOrbit I'd like to move to New York since Paris is a bit too familiar to me
 
@R.MartinhoFernandes What I'd love is literal variadic packs to just summon an integer sequence on the spot. You know, the indices trick, but without the need for a 'helper function template' to accept the secondary pack (of indices)
 
Hm. Should I make it so I can do my_unique_ptr = { ptr, specialized_deleter_instance }; ?
 
It's very nice and all, once you get to know her, but it doesn't feel quite adventurous for a frenchman. (Well, for me, at least. I know some people who are being challenged. :p)
 
Like, from a std::pair or something ?
 
9:37 AM
@jalf Ah. Well, we were both right, right? Didn't we say: "use brains; code; use profiler;" - basically?
 
@ThePhD what?
 
@sehe Meh, I don't care about it. Decent lambdas and algorithms are a better solution.
 
@R.MartinhoFernandes You mean, just hide the indices trick behind proper std::invoke e.g. ?
 
@sehe namespace brains { class ZombieApp { }; }
 
Having to write algorithms with the wrapper/worker pattern is a minor uncommon nuissance.
 
9:38 AM
Usually, I make a std::unique_ptr and I just assign it straightaway to what I want it to control ( u_ptr = someptr; ). If I wanted to assign both a deleter and a ptr at the same time... I was wondering the syntax to use for that if it was on the side of an operator=.
 
@Neil Go to the java/c# room, maybe
 
@kbok only prob with New York is that east coast US is fucking cutthroat
 
@sehe No, I mean boost.fusion-like algorithms.
 
I've had dealings with a firm in NJ and they're mostly cunts
 
@R.MartinhoFernandes s/ss/s/
 
9:39 AM
@LightnessRacesinOrbit Dealing?
 
@sehe Geez, you are a tough crowd to please
 
@sehe ssssSSSSssSSSSSss
 
@R.MartinhoFernandes hint: fusion has boost::fusion::invoke :) (only, not for member functions, AFAIR)
 
So, my brother-in-law has resigned from his 9-to-5 job in spectacular fashion. Jerry Maguire meets Masterchef. http://t.co/4JB1gPp1kj
^ awesome (courtesy of @sbi)
 
@Neil I don't have that much MPD
 
9:41 AM
@sehe No, as in boost::any
 
@sehe Oh. The name threw me off, since the TMP crowd in the lounge uses it for something else (the INVOKE thing from the standard).
 
@sehe Male-pattern baldness? I would hope not
I wouldn't want that on anyone
 
@kbok spectacular: 2/10 style: 9/10
 
@sehe true
 
@DeadMG it was explained to me :)
 
9:41 AM
should ope so :P
 
@R.MartinhoFernandes I'll admit now, that I don't know what the popular lounge-meaning of INVOKE is... :(
 
It's the callable object abstraction that the standard uses but does not expose :<
 
@kbok That awkward moment when he remembers his notice period is one month and he must put up with the ridicule for a full 20+ working days
 
The notice period is always horrible anyways so
 
the cake is a lie
 
9:44 AM
@LightnessRacesinOrbit What ridicule?
 
I wouldn't ridicule that guy.
I'd congratulate him.
And spend a large amount of my paycheck enjoying his cake.
 
Xeo
Hahaha, mrcake.co.uk is down
> The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Too many hits, I assume
 
@R.MartinhoFernandes okay, it's what I expected. Does anyone have it mimicked in wheels/annex/...?
 
Xeo
If you std::bind it, you get the functionality :s
 
@ThePhD Good thing telkitty isn't around
 
9:47 AM
@sehe :o why?
 
Xeo
std::bind(foo, a, b, ...)() == INVOKE(foo, a, b, ...)
 
nuttin' - forget I mentioned it
 
Xeo
I think, atleast
 
Hnnnnggggghhh
@sehe Curriossiiiitttyyy :c
 
@R.MartinhoFernandes Well it's awkward having just quit anyway
 
9:47 AM
@ThePhD don't kill the cat!
 
@R.MartinhoFernandes Never mind having done it on a fucking cake like you're trying to be cute
 
Right, you sound like the perfect coworker.
 
@LightnessRacesinOrbit he isn't. it's just marketing/advertising
 
@sehe But I'll kill a kitty with questions when it shows up if you don't tellll meeeeeeee ;~;
 
@ThePhD well fuck dude she was posting cakes on and on, that was kinda obvious
 
9:48 AM
was
 
sounds like she's dead
 
uh well, maybe
 
>_>
@sehe What did you do...
 
Xeo
He ate it
 
Everytime I type break; in a case switch I think: "There should be a better way to do this"
 
9:53 AM
Don't type break at all. :D
 
Hello, I have a problem with my COBOL program. Since there is nobody in the COBOL room, I think it is appropriate to ask here. Also, my time is important compared to yours, so please answer ASAP.
7
 
@ThePhD You mean you do not use case switches?
@ereOn Daily LOL.
 
:)
What's up ?
 
Not much. Trying to build a cilinder in C++ OpenGL
How about you?
 
Trying not to kill the QA "devs" from writing such crappy test-plans.
 
9:56 AM
@Cheiron ...
I wonder why people jump on OpenGL so hastily
 
@BartekBanachewicz Because its a school assignment. I have to use OpenGL
 
@BartekBanachewicz: It is "root" and low-level, and is fun.
 
C++ was my choice though
And also: OpenGL is fun
 
Nothing about OpenGL or DirectX is fun. =[
 
@Cheiron you tell me
@ThePhD Lern2Code
 
9:58 AM
@ereOn what does that even mean? (apart from the "fun", I know what that is)
 
@jalf Do you?
 
@BartekBanachewicz You dont like to build your own small 3D world with some interaction?
 
@R.MartinhoFernandes Believe it or not...
 
@jalf These are fancy terms you can use in all types of sentences. They make you look good, smart and knowledgable.
 
@Cheiron That sounds like something artists do, not OpenGL programmers.
 
10:00 AM
Example : "My factory builder generator is, in a sense, the "rootest" thing in my low-level JBOSS applet server appliance."
 
@R.MartinhoFernandes Im not a 'real' OpenGL programmer, just a student.
 
This has got to be my favorite compiler error to date: coliru.stacked-crooked.com/…
 
So is it Latex or Latek?
 
help me
 
10:01 AM
Haha, Neiter.
Sounds german.
 
It's /ˈlɑːtɛx/
 
The last letter isn't a "K"
 
If I have a template function inside of a template class and I'm not defining it inline,
 
It's a weird thing that 3 people on earth know how to pronounce.
 
All of /ˈlɑːtɛk/, /ˈleɪtɛx/, or /ˈleɪtɛk/ are crutches for those that can't articulate properly :P
 
10:02 AM
how is it supposed to be written?
 
@ereOn All German and Greek speakers know, FTR.
 
@R.MartinhoFernandes German ? You mean it is meant to be pronounced like "ch" ?
 
Yes, it's the ach-Laut.
 
Then I know how to say it.
 
Xeo
Either like in "Dach" or "ich", IIRC
 
10:04 AM
Hurray.
 
Xeo
There's more than one way to say it
According to the official website, atleast
 
Sorry got that wrong.
It's like the end of the Scottish word loch.
@ereOn The first sound of Spanish "Juan" works too. So actually, a large portion of the world's population know how to pronounce it.
 
Xeo
English has no good equivalent, though, right?
 
Haay, guize
I
 
@Xeo Does Scottish count?
 
Xeo
10:12 AM
That's what I mean with "no good" :)
 
... actually, coliru can explain better than I can. I'll just screw up explaining it somhow, I'm 90% sure.
templates in my templates. <3
 
@Xeo FWIW, English is always a terrible source of examples for these things.
@ThePhD Prepare yourself to be astonished coliru.stacked-crooked.com/…
 
..... Wat.
That's legal ?
Well of course it's legal, it compiles, but...
..... Waaaaaaaaaaaaaaaaaaat
 
compiles != legal
 
True.
 
10:15 AM
As I said earlier, a 17yo girl may like it but that doesn't make it legal.
 
Don't move me to the RealC++ room ;~;
 
good morning people!
good morning @refp
thank you @refp, how are you doing?
I'm doing good, just woke up and been messing around with the guitar to prepare for the upcoming audition tomorrow
there, a conversation not regarding the c++ standard.. I'm not just another
 
@R.MartinhoFernandes any interesting c++ related questions popping up lately?
 
took the bait
 
10:23 AM
@refp I don't browse C++ questions regularly.
 
any getting a re-beating in LEWG over allocators
 
@refp @ereOn has a COBOL question..
 
@R.MartinhoFernandes I was just thinking if anything has been linked in here
 
Xeo
@DeadMG That's a long discussion over any
 
@MartinJames I'm no COBOL writer, but I can give it a go.. what's it about?
 
10:23 AM
Sigh.
 
@Xeo It was nearly done until allocators came around.
 
Xeo
ow
 
@refp Hehe - see starboard :)
 
11
Q: Do these members have unspecified ordering?

Lightness Races in OrbitA colleague told me that, in the following type, all members have unspecified ordering in memory (relative to one another). I doubt this, because they all have the same access level. Who is correct? struct foo { public: int x; public: int y; public: int z; };

 
apparently, there's a problem with the details of type-erased allocators
 
10:24 AM
How about that one?
or:
9
Q: Does `decltype` give me an object's static type, or its runtime type?

Lightness Races in Orbit [C++11: 7.1.6.2/4]: The type denoted by decltype(e) is defined as follows: if e is an unparenthesized id-expression or an unparenthesized class member access (5.2.5), decltype(e) is the type of the entity named by e. If there is no such entity, or if e names a set of overloaded functio...

Finally, my favourite troll:
4
Q: Is C++ ASCII-aware?

Lightness Races in OrbitA colleague told me: C++ is not ASCII-aware. The source character set of a C++ program is implementation-defined, so to what extent is my colleague incorrect?

 
@MartinJames can't find it, so I will take a look at the question posted first by @LightnessRacesinOrbit
 
@refp Yes - please do not waste any more time looking for the COBOL question!
 
@LightnessRacesinOrbit why is it most often a "colleague" who is responsible for your questions? is this another "I got a friend who.." trick?
 
Oh gawd, would you stop whoring your questions?
 
also, @LightnessRacesinOrbit, all the questions you have linked above has been answered with satisfying answers, that makes them less interesting, sadly :(
maybe not the decltype question though.. I'll take a closer look at it
 
10:28 AM
I should whore my questions which are really questions
1
Q: Speedup a short to float cast?

MikhailI have a short to float cast in C++ that is bottlenecking my code. The code translates from a hardware device buffer which is natively shorts. float factor= 1.0f/value; for (int i = 0; i < W*H; i++)//25% of time is spent doing this { int value = source[i];//ushort -> int destination[i]...

 
@Mikhail Nobody provided a real SSE answer yet?
 
@R.MartinhoFernandes that was answered in a satisfying way as well.. :(
 
If you want, I can link you to some crappy questions.
 
@Mysticial yeah I don't know. Currently this guy is preventing me from getting the 30fps target we need to prevent our system from saturating...
 
@R.MartinhoFernandes questions tagged is per definition not interesting since we all know that unicode is a "broken" "feature" of c++
 
10:30 AM
Oh ic. It's only 3 hours old. So none of the guys have seen it yet.
 
@refp Who said anything about C++?
 
@R.MartinhoFernandes I did :(
33
Q: Set all bytes of int to (unsigned char)0, guaranteed to represent zero?

refp This is not a matter of recommended practise (nor undefined behavior), but about what the c++-standard actually guarantees in the matter of turning all bytes of an integer type to the value of (unsigned char)0. The Question(s) In the snippet below, is the expression used by the if-stateme...

 
Or not... I see Paul R already commented.
 
^ since we are all linking our trolling questions
 
Hm.
Reading the driver model for Windows and reading how C++ isn't always the best choice for driver-mode code is interesting.
Also, I learned that while there is placement new, there's no placement delete =[
> Because there is no “placement delete” with additional arguments to pass in a tag or a pooltype, there is no way to pass in a tag (or memory control, if needed) when using operatordelete, making it impossible to check that the tag at the point of release was the intended one, thus defeating much of the benefit of using tagged memory.
 
10:32 AM
@Mikhail Yeah, both answers you have so far are complete crap. I looks like Paul R didn't answer because he's waiting for you to answer his comment. That's one's actually important to how it can be optimized using SSE.
 
@ThePhD That's what allocators are for.
 
@R.MartinhoFernandes I still don't know how to use the std::allocators :D
 
@Mysticial how do I get these mystical abilities to write SSE?
 
@Mikhail ritual sacrifices
 
@Mikhail Have you done any work with SSE intrinsics before?
 
10:34 AM
Goats.
 
I wish we could edit the contents of messages posted here in the chat as well, it would "bring the community closer".. besides causing mad chaos
I'm however greatful for the lack of down-voting in this channel.. that would probably shut me up forever, kill all trolls and make conversations about null-pointers obsolete. ie. the internet would be broken
 
Well that's tricky... The int16 -> float intrinsic is a composite rather than a direct mapping to an instruction...
 
@refp Yes.
@refp Haha :)
 
> Stack frames are severely limited. For example, on x86 systems the total stack available to a thread is 12K.
Damn. Kernel is srs biznez.
 
@LightnessRacesinOrbit I knew it!
there should be a tag protected by 10k rep
did I tell you guys that I'm currently in the bathroom taking a dump? if not; there's the information, you're more than welcome (not to join me in the bathroom, but for being granted this very important info)
 
10:43 AM
@Mikhail My answer is purely rhetorical, I do not encourage doing that in real code :)
 
ergh... legacy code sucks balls
 
@Mikhail Is SSE4.1 allowed?
It will require a minimum of the 45nm Core 2 generation and one of the last 2 AMD generations to run.
 
@Mysticial yes, it is an i7 960 which is 4.2 and 4.1 I think
 
@refp I thought it was obvious!
 
10:48 AM
@Mikhail That's 4.2. :)
 
it's kinda sad that c++ doesn't allow empty character constants
@LightnessRacesinOrbit this is the internet, nothing is obvious.
1
Q: what is the replacement of long nested if else construct?

SyedI have a nested if else construct like below and i wanted to replace this with the right type of programming statement. if($provider[0][0]=='A' && $provider[1][0]=='B'){ return 'O'; }elseif($provider[0][0]=='B' && $provider[1][0]=='A'){ return 'O'; }elseif($provider[0][0] == 'A' && $provi...

 
@Mikhail Are the 16-bit integers signed or unsigned?
 
why isn't anyone giving the poor fellow knowledge about a structure related to a Dictionary (or std::map as we would put it in here)?
 
@Mysticial They are unsigned, but if we do an short->int does it matter? My camera does 2^16 and 2^32 pixels... Monitor does 2^8
 
@Mikhail I need to know whether to sign-extend or zero-extend.
ah
 
10:52 AM
> Please tell me how can i create a binary tree . I searched over google but every where i found binary search tree.here is my code.
 
@LightnessRacesinOrbit if he gave his code, he probably found out how?
 
user142019
@refp pattern matching.
 
user142019
Døh.
 
@LightnessRacesinOrbit I was actually just helping kids with this. I told my undergraduate students that I will fire them if I see a recursive function.
 
10:53 AM
@Mikhail you were... helping kids with... empty character constants?
 
any rejected for C++14, heading for TS
 
@Mikhail oh, trees
 
@LightnessRacesinOrbit no with a binary node sum..
 
wish I could fire students. like, fire bullets at them.
 
@LightnessRacesinOrbit it would be a funny feature in conjunction with user-defined literals
 
10:54 AM
undergrads are noisy ignorant fuckers
 
How does a tree get on the internet? uo sboן ʇı
3
 
@Mikhail hahaha
@refp hehyes
 
@LightnessRacesinOrbit ''_optional, and _optional would return a structure that has an "empty" flag.. and all would be heavenly
 
@LightnessRacesinOrbit This poor guy spent 3 days debugging a problem caused by wtchar.h fucking up his atl. I fixed it in teamviwer in 10 minutes. Other guy failed at a simple convolution, but thats more math related
 
@Zoidberg ... and?
 
user142019
10:56 AM
That's the solution.
 
@Mikhail hehehe
 
@Zoidberg so is writing code, but thank you for pointing out the obvious.
 
How the fuck does that thing have upvotes.
 
@LightnessRacesinOrbit of course you could just define a user-defined literal that works with "" and does the same thing
 
user142019
10:57 AM
I tagged this language-agnostic because apparently the language isn't important. — Luchian Grigore 14 mins ago
 
Being tagged with a zillion language tags doesn't make it much better.
 
@Zoidberg +1 i'd file an answer if I were you (I wouldn't, or I would have already, but you know)
 

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