« first day (746 days earlier)      last day (4219 days later) » 

Ell
4:00 PM
is std::pair<T> the same as std::tuple<T, T> ?
 
I'm waiting for "pair is not tuple"
 
@Ell Compatible in most situations
 
@CatPlusPlus Damn.
 
@sehe Wrong!
 
4:00 PM
@Ell No, std::pair<T> is not valid.
 
std::pair is 2-tuple.
 
@R.MartinhoFernandes Well, of course std::pair<t> isn't a thing in the first place
 
Overspecialised like hell, but still.
 
@Ell std::pair<T> ?
 
Ell
@StackedCrooked is that not a thing? o.O
 
4:01 PM
You can construct a std::tuple<T, T> from a std::pair<T, T>.
 
We should suggest tuple<T> the next time someone asks for singletons.
 
@CatPlusPlus isn't that dangling?
 
Ell
ooops damnit yes ofc
 
@DeadMG Great use of tie, too :)
 
@EtiennedeMartel And many other pairs
 
4:01 PM
@bamboon What?
 
@sehe So many pairs.
 
Ell
derp derp derp. I mean is std::pair<T, T> the same as std::tuple<T, T>
 
@CatPlusPlus using std::tie with return parameters?
 
@Ell uDerp
 
Ell
ughh now pair doesn't look like a word. It should be spelled pear for sure.
 
4:01 PM
hwo do iu use singletins with tiuples plz
 
@Ell std::pair has a tuple interface.
 
No, why would it be dangling anything.
 
@bamboon Only if you return lost references in the first place.
 
@Ell compatible enough (inb4 robot pedantry)
 
@Ell pair wont be as annoying to use because it has first and second members where tuple requires the use of the get template
 
Ell
4:02 PM
right kk
 
@bamboon In the example x, y, and z are local variables.
 
@DeadMG unsigned derp.
 
0
Q: How to get different line of .csv File in c++?

Alex GoncalvesHere is a code I made to get from a .csv file, It get itch witch are in beetween to separator and give positon of those separator. But this does make it only for the first line how to continue on the second one for exemple ?? #include <tchar.h> #include <stdio.h> #include <iostrea...

 
Ell
FirePath, y u no support xpath string library!
 
^ French guy cc @Cicada @EtiennedeMartel
 
4:03 PM
@kbok How do you know?
 
@kbok cat /dev/urandom: a different line every time
 
Also, WTF is written there.
 
@R.MartinhoFernandes superfluous whitespace around interpunction ?
 
Oh, TAILLE_MAX_LIGNE.
 
> while (finDelaBoucle == false)
 
4:04 PM
@kbok "It get itch witch" I laughed for a whole minute
 
1203
lol
random constant of the year award
 
Wait...
You guys say "boucle" for "loop"?
WTF.
 
user142019
I want to move to America.
 
I'm laughing really loud now.
 
@R.MartinhoFernandes The french translation of loop is boucle, why are you surprised?
 
4:06 PM
@Borgleader Because it's the wrong translation!
 
user142019
#define pour for
 
@R.MartinhoFernandes ah, thanks. my thinking was mixed up
 
> // INITIALISE SEARCH INTO THE LIGNE
^ derp
 
@Borgleader It's a silly literal translation.
 
Ell
no no no no not french again pweeeese
2
 
4:06 PM
oh god
 
@R.MartinhoFernandes What would be the correct one then?
 
There's SESE as well
 
@Borgleader Dunno. But "boucle" means an entirely different sort of "loop" (translate.google.com/#fr/en/boucle).
 
I'm copying this code as a spot-the-errors assignment
 
@kbok In the code?
 
4:08 PM
Yeah
 
That's what finDelaBoucle is for?
(I have not looked at the code)
 
endOfTheLoop
 
user142019
People who program in non-English are stupid.
 
finDelaSiecle
 
Ell
is there a difference between stacktrace and backtrace?
 
user142019
4:12 PM
@Ell no.
 
Ell
or does one of them not exist
 
@Ell Yes. +st -b.
 
user142019
A stack trace (also called stack backtrace or stack traceback) is a report of the active stack frames at a certain point in time during the execution of a program. It is commonly used during interactive and post-mortem debugging. It can also be displayed to the user of a program as part of an error message, which a user can report to a programmer. A stack trace allows to track the sequence of nested functions called up to the point where the stack trace is generated. In a post-mortem scenario this is up to function where the failure occurred (but not necessarily is caused there). Sibling...
 
user142019
> A stack trace (also called stack backtrace…)
 
@Zoidberg'-- He programs in English! stringLineToAnalyse. Well, Hungarian-infected Engrish
 
Ell
4:12 PM
so many words rhyming with back!
backstrace
 
@R.MartinhoFernandes dictionary.reverso.net/french-english/en%20boucle I think the translation is pretty good.
@Zoidberg'-- backtrace, you dun goofed (+1 internet point to whoever gets the reference)
 
user142019
TRACEBACK
 
dolan
 
fuck
 
4:15 PM
@Borgleader Oh well. I don't regret laughing.
 
I stopped to watch Zero Punctuation and now I've forgotten where I'm going
 
@DeadMG What now?
 
and what I was doing
 
user142019
Complaining about stuff.
 
4:16 PM
I do #2 all the time.
 
What's #2? You mean shit?
 
complaining about stuff
 
@DeadMG: go back to watching zero punctuation then :)
 
4:17 PM
@DeadMG also thanks, I regularly forget to watch new vids so I have a bunch to catch up on
 
Hi everyone
 
user142019
Hi
 
"Put 5 C++ programmers in a room and you'll probably end up with 6 different styles."
 
// We return our counted_ptr by reference to avoid excessive Copy Constructors
inline const counted_ptr< pthread_mutex_t > & GetMutex() const throw() {
    return this->transmitEventProtector;
}
lol
 
4:23 PM
never heard of RVO and NRVO?
 
Don't tell me counted_ptr is a reference-counting pointer.
 
@R.MartinhoFernandes And 7 flamewar-ish differences in their programming philosophy.
 
@DeadMG Doesn't matter, a pthread_mutex_t is a small object. The refcount increment is likely more expensive.
 
Reference-counting a mutex sounds wrong, somehow.
 
@StackedCrooked Did I get this right, they're returning the smart pointer by reference?
 
4:24 PM
@StackedCrooked And you're supposed to return it by reference, no? AFAIK the identity of a pthread mutex is its address (which is why std::mutex is a brick; not even movable)
 
@Borgleader Yeah , but that's not a problem per se I think.
 
How is everybody doing today?
 
Fine, thanks.
 
user142019
user image
2
 
@R.MartinhoFernandes Why not just implement std::mutex as a shared_ptr<pthread_mutex_t> on Unix?
no need to nerf std::mutex in general
 
4:26 PM
@DeadMG std::unique_lock exists to fix it.
 
@R.MartinhoFernandes Ah, I didn't even consider that. Looking at the code it seems like they want to extend the lifetime of the mutex to work around some bug.
 
Hi all, In a c++ constructor initialization list. can i initialize a variable using a temporary? something like :foo(Bar())
 
Ell
yeah
 
Xeo
@ahenderson As long as foo is not a reference, that's ok.
 
@Xeo thanks
@Ell Thanks
 
4:30 PM
I need to buy myself a local SIM card.
 
@R.MartinhoFernandes deutschlandsim.de
 
Oh, thanks.
 
Ell
lol ya dun goofed
 
lol, Google translates "aktion to "action". I'm already better at this than Google!
 
@R.MartinhoFernandes ^^
 
4:34 PM
Damned CMake...
 
@R.MartinhoFernandes how's the flat search?
 
@TonyTheLion Was just on the phone right now scheduling a viewing for tomorrow.
 
oh cool
 
According to my spam folder, my criminal record was updated.
 
Ell
where do you stay while you're looking for a place to live?
 
4:39 PM
@Ell I rented a room for a few days.
 
Hi
 
Does someone know SOCI?
 
Nope
 
@kbok Yep.
Just sayin'.
 
^ Contrary to the conclusion the author draws:
> The only thing I see here is that Ruby programmers are being killed by the lunch break and c++ programmers slowly fade out with the day, ain’t it? here
I'd suggest that C++ community gets more fired up and more C++ people appear to be night owls than morning persons.
 
4:51 PM
Or, timezones
@EtiennedeMartel What's that ?
 
@kbok Moustache November.
 
@kbok During the month of november, grow a mustache to raise awereness about prostate and testicular cancer.
 
Mmmh and.. when someone refers to libpq of PostgreSQL, it's referring to the entire /lib directory of PostgreSQL, or to a specific file (libpq.dll or libpq.lib)?
 
@unNaturhal Probably the library file.
 
I could do it, but I really look like a tool with a mustache.
 
4:55 PM
@kbok We all do. The trick is to do it with other people.
Then you look like a toolshed. And that's less embarassing.
 
WARNING: Target "soci_postgresql" requests linking to directory "C:/dev/PostgreS
QL9.2.1/lib". Targets may link only to libraries. CMake is dropping the item.

This could be a coherent error about this problem?
 
Ah. Well, there's only one day left.
 
Yeah, it's a pretty short notice.
@unNaturhal You're linking to the lib directory, but you should instead link to a libray file (libpq.lib on Windows).
 
@EtiennedeMartel Ok thank you, I try :)
 
@EtiennedeMartel That would involve shaving tomorrow.
 
5:00 PM
@R.MartinhoFernandes Yeah. It's gonna be difficult. I've been having this beard for a year now.
 
@R.MartinhoFernandes Yeah, my main reason to not join.
 
Ell
well you can just shave the area connecting your beard to your moustache
 
@Ell No. You have to start clean shaven.
 
Maybe next year, i.e. I'll never do it.
 
is yahoo.com timing out for anyone?
 
5:02 PM
@EtiennedeMartel What? Your face looks clean.
 
@Mysticial yahoo.com exists?
 
@VinayakGarg "Look"?
 
www.yahoo.com
 
@Mysticial It's just you: isup.me/yahoo.com
 
@EtiennedeMartel In the avatar :p
 
5:03 PM
> It's not just you! yahoo.com looks down from here.
 
> “i++ is atomic (thread-safe) for int but not for long”
 
@VinayakGarg It's an old picture.
 
^ Ah so, next year it will be just chemical
 
I used to almost look like that.
 
@EtiennedeMartel Got it :) Thanks!
 
5:04 PM
> It's not just you! yahoo.com looks down from here.
 
@Mysticial I could swear it just said the opposite seconds ago.
 
Yahoo is up from my end, though.
 
@EtiennedeMartel OIC
 
I've come to think that isup.me is a load of frog crap.
 
What's special about frogs?
Afk, cooking.
 
5:06 PM
Well, they shit.
 
I just found, I am 7 posts short of 1000 posts on Lounge!
Oh its 6 now, wait 5 :)
 
-3
Q: Sample HTTP packets C++ Testing

Test TestI have a c++ that reads HTTP packets from a file, and I would like some examples to test my program on. Any help?

^ win
 
> I have a c++
I always found that weird, for some reason.
 
because its incredibly incorrect?
 
5:12 PM
No, I mean, why do so many people say that?
 
perhaps well-formed in some other language
much like "Why do so many people use new every'fuckin'where?"
 
Xeo
Hm. Anybody here played around with Boost.PP before?
 
"J'ai un C++" sounds wrong in French as well.
 
Ell
is c++ "say ploose ploose"?
 
C plus plus.
 
5:13 PM
I have a C++ and it's bigger than yours.
Lol that guy on reddit
"Maybe you should post an answer to the question." "No, your question sucks, fuck you"
 
sbi
Hi.
 
YAAAAAAAY
 
Hi
 
IT'S EVERYONE'S FAVORITE APE!
4
 
not saying much when we only have one
 
user142019
5:16 PM
lol
 
sbi
@kbok "I really look like a tool with a mustache" <== I see at least two meanings in this, one of which you probably didn't intent.
 
TIL Kaki.
{| | |- |} Le kaki, appelé aussi plaquemine du Japon, plaquemine de Chine, ou anciennement figue caque, est le fruit du plaqueminier du Japon (Diospyros kaki), de la famille des Ébénacées L'arbre mesure de 5 à 10 mètres de haut. Ses feuilles sont simples, larges, ovales et alternes, de couleur verte rougissante à l'automne. Ses fleurs, blanches, jaunâtres ou verdâtres, sont en bouquet pour les mâles et solitaires pour les femelles. Histoire La première description botanique de l'arbre est l'œuvre d'un collaborateur et ancien élève de Linné, Carl Peter Thunberg, qui séjourna au Jap...
 
Persimmons are the edible fruit of a number of species of trees in the genus Diospyros. Diospyros is in the family Ebenaceae, and certain species of Diospyros are the sources of most kinds of ebony wood, and not all species bear edible fruit. In color the ripe fruit of the cultivated strains range from light yellow-orange to dark red-orange depending on the species and variety. They similarly vary in size from 1.5 to 9 cm (0.5 to 4 in) in diameter, and in shape the varieties may be spherical, acorn-, or pumpkin-shaped. The calyx generally remains attached to the fruit after harvest...
 
@sbi I can say now that the last 2 days have been much better at work. I went to make some complaints and they seem to have been picked up on well.
 
Uh yeah, sorry
 
5:19 PM
For places in Iran, see Khaki, Iran. Khaki (, , in Canada ) is a color, a light shade of yellow-brown similar to tan or beige. Khaki is a loanword incorporated from Hindustani ख़ाकी and Urdu خاکی (both meaning "soil-colored") and is originally derived from the Persian: خاکی (khâk, literally meaning "soil"), which came to English from British India via the British Indian Army. It has been used by many armies around the world for uniforms, including camouflage. It has been used as a color name in English since 1848. In Western fashion, it is a standard color for smart casual dress trouse...
 
user142019
@kbok I’ve had them once and they tasted TERRIBLE.
 
In order to cut ebony wood you need to use Occam's razor, which is known as the Law of Persimmony:
Occam's razor (also written as Ockham's razor, Latin lex parsimoniae) is the law of parsimony, economy, or succinctness. It is a principle stating that among competing hypotheses, the one that makes the fewest assumptions should be selected. Overview The principle is often incorrectly summarized as "other things being equal, a simpler explanation is better than a more complex one." In practice, the application of the principle often shifts the burden of proof in a discussion. The razor states that one should proceed to simpler theories until simplicity can be traded for greater explan...
 
Incidentally, the French version of that article, "Kaki", describes a different color.
@Cheersandhth.-Alf Law of parsimony. Nice pun, though.
 
sbi
@R.MartinhoFernandes There's a T-Com store at S+U Schönhauser Allee. I dunno about speaking English, but I have been there four time, and they have been extremely helpful and competent. I find that rare in mobile phone shops. They found a pretty decent deal, too.
@TonyTheLion That's great to hear! Sometimes it just doesn't payoff to keep your mouth shut when something is grating you.
 
@sbi :)
 
sbi
5:22 PM
@StackedCrooked I have seen a problem with passing around std::shared_ptr per copy, because the locking took too much time in a multi-threaded application.
You around, @R.Martinho? Feel like having a beer with me tonight?
 
@sbi Er.. I'm having difficulty understanding that sentence.
 
sbi
@kbok Yeah, that's pretty much what I thought of when you wrote that.
 
Cool.
Well, I don't look like that.
 
@kbok Poirot's wrench?
 
5:28 PM
Is @R.MartinhoFernandes staying long time in Berlin?
 
@sbi Sure.
@StackedCrooked Forever!
 
@Cheersandhth.-Alf lol
 
sbi
@StackedCrooked I have seen a MT app where copying around std::shared_ptr was too expensive, because there is a mutex around the share counter, and locking this took too much time. Basically, we had to go in and change a few hot spots to pass the pointers per reference instead.
 
@StackedCrooked Well, for indetermined amount of time.
 
sbi
@kbok So you say.
 
5:29 PM
@sbi Thanks, I'll check that out tomorrow.
 
@sbi Ah.
 
@StackedCrooked As long as Germany remains Europe's strongest economy.
 
sbi
@R.MartinhoFernandes Cool. I would need about an hour to get to Schönhauser Allee. Shall we meet there?
 
@EtiennedeMartel Such an opportunist.
 
@sbi At 19:30? Ok. I should be done with the dishes by then.
 
sbi
5:31 PM
@R.MartinhoFernandes Um, let's say 20:00, that gives me some time to wrap things up here. Would that be Ok with you?
 
Yeah, that's fine too.
 
@sbi I remember Herb Sutter recommending to always pass them by reference if possible. I imagine that even if it an atomic increment it will still hinder the optimizer.
 
@sbi The thing is, if you want to share the ownership, you need to copy eventually. If you don't need to share the ownership, why is the smart pointer involved at all?
 
Have you guys met before?
 
sbi
@StackedCrooked Yeah, there's no code reordering across such locks. That hurts.
 
5:32 PM
@StackedCrooked Yes, I spent two nights at his place when I came here for the interview, about a month ago.
 
Cool.
 
Xeo
Last time I was also part of the meeting
 
sbi
@R.MartinhoFernandes Valid question. We're talking a several 100kLoC lib here, that was fully done when I arrived. I found their own counted pointer to be faulty, and that got me the job of incorporating boost. With boost::shared_ptr, however, some applications using that lib got too slow.
 
Xeo
Today I have to babysit my brother again. :|
 
sbi
@Xeo You feel like coming to town?
 
Xeo
5:34 PM
@sbi Sure feel like it, but no dice. :/
 
You should all meet at @Xeo's place then.
 
Xeo
lol
But it's the suburbs here that sbi seems to dislike.
 
sbi
@Xeo Ah. Well. I got the evening off suddenly, as the kids I was supposed to herd have decided to go for trick and treat and stay with friends for the night.
 
Xeo
Anyways, dinner. Hf guys.
 
5:35 PM
@sbi They trick and treat in Germany?
 
Xeo
Sure do.
 
@Xeo Have fun.
 
sbi
@StackedCrooked That would mean for the robot and me to ride an hour back into the city tonight. He lives way out.
 
German women can be scary. Esp if they are named Helga.
 
sbi
@Xeo Actually I like Friedrichshagen, I just don't like the distance it is from the city.
 
user142019
5:36 PM
@StackedCrooked Or Angela Merkel.
 
Heh, I remember Schönhauser Allee from when I visited Berlin.
 
I visited Berlin for the love parade once.
 
sbi
@R.MartinhoFernandes That's something that only developed in the last decade.
 
D:
I forgot it was halloween
now I have no candy to give to kids :S
 
sbi
@StackedCrooked I tried to leave the city for that.
 
5:38 PM
Well, you no longer have to worry about it now.
 
sbi
@melak47 Where do you live?
 
@sbi berlin :p
 
sbi
@melak47 I remembered that. I wondered where in Berlin you are living, where you couldn't walk around the corner and buy some sweets.
 
@sbi Wannsee
 
We Berliners are taking over the Lounge.
 
sbi
5:41 PM
@melak47 Uh. That's way out, too.
 
@sbi almost Potsdam, yeah :p
 
@R.MartinhoFernandes Are you going to annex other rooms? (Too soon?)
 
@R.MartinhoFernandes It's "We Berliners" already? You adapted quickly :)
 
closest corner with a store is ~2-3 km away
 
sbi
@StackedCrooked This city is likable. (I didn't grow up here, either. I arrived >20 years ago, though.)
 
5:42 PM
@StackedCrooked I don't have a return ticket.
 
I liked the city when I visited it.
 
sbi
@R.MartinhoFernandes Wow, burned all the bridges, did you?
 
@R.MartinhoFernandes are you learning German?
 
@StackedCrooked Ja.
 
@R.MartinhoFernandes Mein Beileid :)
 
sbi
5:43 PM
Well, if I am to meet @R.Martinho, I should wrap up my stuff now, so I can leave in time. Do you still have that same mobile number, robot?
 
I still can't form sentences of my own, and I don't understand much.
@sbi Yes. That's why I mentioned getting a local one.
 
sbi
@R.MartinhoFernandes That's not a problem, "much" isn't a German word anyway.
 
Knowing numbers was enough to get by at the supermarket.
 
sbi
Ok, I'm off now. See you guys!
 
bye
 
5:44 PM
@sbi See you.
 
@R.MartinhoFernandes how do you like 51 being pronounced "one-and-fifty" ? :p
 
That's also in Dutch.
 
@melak47 All three-and-a-half (I'm counting Spanish as half) languages I know are "normal", so it's a bit awkward.
 
@R.MartinhoFernandes hehe
 
user142019
@StackedCrooked most vexing. Especially when people say phone numbers that way.
 
5:49 PM
afk, dishes
 
TBH I find the English way more sensible as well.
 
@Zoidberg'-- like, every pair of numbers? I suppose that would sound weird if you're new to that, yea
 
user142019
@melak47 yeah; it’s terrible.
 
user142019
I always enter them backwards when people do it that way.
 
TIL that, according to Wikipedia, "parsing" is best translated as "décomposition analytique" in French.
 
user142019
5:52 PM
In Dutch it’s just “parsen”.
 
That's why we say "parsing" in French.
 
user142019
Ik parse een XML-document.
 
@kbok Yeah, and you guys say it "pare-sin-gue"
 
@EtiennedeMartel Cest pour ca que mon prof de compilateur préfèrait dire "arbre de parsage"
 
lol parsage
 
5:54 PM
You can Frenchify anything by appending "age" to it.
2
Also, the verb "parser".
 
@EtiennedeMartel Singletonage
3
 
Je parse, tu parses, il parse, nous parsons, vous parsez, ils parsent.
 
Etienne de Martelage
 
It's already French.
 
du verbe Marteler
 
5:56 PM
I thought you were Canadian.
 
@EtiennedeMartel so, there is such a thing as being too French?
 
@kbok My ancestors were French.
 
But you're not, are you ? Though Etienne de Martelage is French. :p
 
Captain Obvious: Most french canadian have french ancestors
 
@EtiennedeMartel It's "-agem" in Portuguese, or "-amento" in Brazilian.
 
5:59 PM
See you guys, gotta go, it's the weekend.
 
@R.MartinhoFernandes Both dialects are that different from each other?
 
@EtiennedeMartel Yes, Brazilian sucks.
 

« first day (746 days earlier)      last day (4219 days later) »