« first day (474 days earlier)      last day (4466 days later) » 

11:00 AM
@Abyx references, lifetimes, UB in the context of expression templates and TMP
 
but anyways
right now, I'm more concerned with how incredibly depressing I find university
 
@DeadMG what code? Do you know exactly how Boost Proto and the Spirit terminals are implemented?
 
@sehe It doesn't matter.
the code as specified does not invoke UB
whether or not the Proto or Spirit stuff does is their problem, not mine
 
I believe there is a temporary object with can't be catched with auto&&. It's OK when while parser is an argument to parse or rule ctor, but something temporary destructs after attempt to assign parser to a local variable (or reference)
 
@Abyx Impossible.
the object is not, and can never be, aware of it's own lifetime
 
11:03 AM
well... foo(string("...").c_str()) is OK, right ?
 
yes
unless foo caches the result, of course
 
but auto&& x = string("...").c_str(); is not
 
but you haven't actually taken a reference to the object at all
you've taken a reference to a reference to the object
 
I think there is something like that
 
the lifetime extension works exactly as you expect- it extends the lifetime of the result of the expression
 
11:05 AM
they create temporary object and catch reference to it's member
well...
what about auto&& x = string(string("...").c_str()) ?
 
I guess that actually, there's nothing stopping them implementing it that way
I mean, colossally stupid, but nothing stopping it
in any case, you can trivially use a lambda to achieve the same effect
 
why stupid? spirit was invented before auto era
 
@DeadMG i never disagreed. See: in principle, yes
11 mins ago, by sehe
@DeadMG depending on the amount of actual UB in the classes under test, but in principle, yes
 
@Abyx Because C++ expressions should be value typed.
that's how the language is designed to operate
@sehe fair enough
and if they are going to use internal references and pointers, they should be to dynamically allocated memory
 
no, it hits performance
 
11:10 AM
hahahahaha, yeah
 
anyway you can't meet that issue in C++03
 
because LL(k) backtracking parsers are so performance-aware
 
btw, rule with type-erasure probably uses dynamically allocated memory and can catch parsers
 
inline parser expressions have no need of such things anyway
my own expression template library can construct such things without any need for any references
 
@DeadMG +1
 
11:14 AM
hm... why do I advocate spirit if I don't use it?)
 
@Abyx did you (advocate it)?
@DeadMG +1 again. I'm sure Spirit parsers don't use references except to support the .alias feature and recursive rules.
 
don't know what alias is, but you don't need it for recursive rules
 
@DeadMG how'd you do rule expr; expr = (expr >> '+' >> expr) | expr without?
 
in the syntax of my own library (which is pretty similar)
it's a little less pretty than Spirit right now, but it accomplishes roughly the same goal in this case- a recursive rule with completely static strong value typing
of course, your example is left-recursive, so no LL library can handle it
 
@DeadMG dang. I always do that when writing a rule too quick. I know how to fix it but it always takes me two takes !
 
11:24 AM
lol
doesn't matter
it can handle recursive LL-able rules just fine
 
@DeadMG automagically?
 
well, you have to write a struct, as I showed, which is not the most fun thing ever
 
and even in C++11 I believe that local structs cannot have templated member functions, which sucks balls
 
can C create programs that signup for online accounts?
 
11:27 AM
all user-mode languages which can import C functions have equal powers
 
@LearningC watch it with that. This could (should) get you flagged pretty quickly
And, very few programs have been created by C in the past
 
@sehe flagged here? why?
 
why would it be flagged?
 
can C create programs that take you to Mars?
 
@LearningC Ignoring the dubious nature of the question, it (once again) boils down to: "Can a program be written to do what a user can do, but in automated fashion".
It is not a real question. The answer is always yes. Even if you count passing captchas. It will just take a bit more effort
 
11:31 AM
really?
 
automatic creation online accounts is closely associated with spamming.
just sayin'
 
so I could write a program that could think intelligently and write all the programs I ever want written automatically?
 
Now I wanted to make a free robot form
 
because I'm thinking that that's not really on the cards
 
@DeadMG who said that? I didn't. I just mentioned that passing captchas is feasible most of the time. It is not reasonably feasible. Just like cracking MD5 is feasible using brute force, just seldom reasonably
 
11:32 AM
@DeadMG You? Haha, no. You need someone smarter.
 
No I wanted to make a free robot form
 
@sehe You said that a program could be written to do what a user can do in an automated fashion.
@RMartinhoFernandes Shush you.
 
There's a lot of research going into AI. Ask @RMartinhoFernandes, he ought to know, being a robot and all
 
static member functions, defined outside the class are never inlined, unless you specify so? Correct?
 
Would switching to C++ be more beneficial?
 
11:32 AM
template static functions
 
@AzzA No? static functions are no different to any other function
 
Any product of AI research that gets a practical application stops being AI.
 
@LearningC Yes.
 
@RMartinhoFernandes lol, what does it become?
 
@rubenvb Something practical.
 
11:33 AM
@AzzA a static member function is no different to any other function in terms of inlining.
inlining is an implementation detail and not something the language ever specifies anything about
 
@DeadMG it's possible. check this out. A friend of mine's in that program.
 
@LearningC much easier to create online accounts using libcurlpp than with libcurl, yep
 
The AI effect occurs when onlookers discount the behavior of an artificial intelligence program by arguing that it is not real intelligence. Pamela McCorduck writes: "It's part of the history of the field of artificial intelligence that every time somebody figured out how to make a computer do something—play good checkers, solve simple but relatively informal problems—there was chorus of critics to say, 'that's not thinking'." AI researcher Rodney Brooks complains "Every time we figure out a piece of it, it stops being magical; we say, Oh, that's just a computation." AI is whatever hasn'...
 
that's going to stop at one point, IMHO
 
@DeadMG I think @AzzA might be more interested in whether the function will still be emitted with external linkage? That is guaranteed for a static class member. Static (namespace) global are never externally visible
 
11:36 AM
he never said anything about linkage
 
I know that? (Sigh, stop trolling?)
Quote: I think @AzzA might be more interested
 
@sehe: One acronym: LTO
 
you made up a meaning out of thin air (commonly known as the Ass Pull ) and then accuse me of trolling?
 
Phew, that was close.
 
@DeadMG I guess what a person really wanted to ask, and you tell me 'that's not what he asked'. That's not very helpful
 
11:39 AM
except what you suggest he wanted to ask has absolutely nothing at all to do with what he actually asked
 
It's just that I recognize some of the confusion frequently associated with the use of static
 
@LearningC switch to python, ruby or something
 
@DeadMG He mentioned 'static', and 'outside a class'. Without context it makes sense to say 'local to TU, no external linkage'. The confusion is seen more often, see SO search
@Abyx +1
 
@Abyx I can't in the middle of the semester. Also I'm not computer science major. I'm in electrical engineering major. After this c class I want to put my learning to the test.
 
@rubenvb Which doesn't actually have anything to with linkage/visibility. You probably mean that external functions might still be inlined. But they need to be visible for that to happen in the first place
 
11:42 AM
@sehe He specifically referred to inlining. Inlining and linkage have little or nothing to do with each other.
 
Suit yourself. Asker is long gone
I'm not interested in what you or I think the asker wanted to know.
(It's just not true that I pulled it from my ass. If you can't follow my associations, it just proves you're not me.)
 
you've gone from A to B when there is no link whatsoever
 
@sehe but if it's not visible, it can't be linked in, hence the question becomes moot in that case?
 
@rubenvb At this point it is unclear to me what question you're talking about.
@DeadMG And you can state that as a fact because: ...... ?
 
because they don't!
inlining is an implementation detail at the assembly level, effectively
and internal/external linkage is about visibility between TUs
 
11:46 AM
@DeadMG I know that!
 
and one does not affect the other
 
I'm not saying I'm confused. I'm guessing that the asker might have been confused at that. It happened before
Sheez. I'll rather have lunch right now :)
 
well, he might also have been confused and meant to ask where the nearest toilet is
also
fuck, why did I have to link myself to TVTropes? :(
 
Happy dance! I get to keep my job now hat my probation is basically over :D
 
11:54 AM
troll time
@DeadMG you didn't
@DeadMG true. I have implemented my own heuristics for evaulating the probability of that
@DeadMG you didn't link yourself. You didn't have to link. And there isn't any implied cause/goal as to why you would have done it even so
 
Sorry for the confusion, fellas. Didn't mean to cause such uproar. I was just being paranoid there for a second...
 
I like it when @RMartinhoFernandes is paranoid
every likes a paranoid android :D
 
@AzzA It's ok. Apparently, I caused the uproar. But DeadMG is depressed about university right now, so let's give him a (trope) break
 
:)
 
@thecoshman Zing!
 
11:59 AM
@sehe I feel like the master of English because I rhymed faster than I could wish
 
@thecoshman shame about the typing disorder
 
sbi
@thecoshman The ones you fixed!
 
ಠ_ಠ what typo
fuck sake
 
fuck red wine?
 
12:00 PM
@sbi > "every likes" [sic] " a paranoid android :D"
 
yes yes, we all know oatmeal has explained it many a time; but if people could just learn basic things there would be no need for SO
any way, lunch time :D
 
sbi
@sehe Yeah, I had seen that, too, but had chosen to ignore it.
 
@sbi if it had been 'correct' (and thus had a wholeness and rhythm), I'd have starred it.
 
sbi
Actually, vomiting panda bears aren't all that cute.
 
But they still have linkage
 
sbi
12:03 PM
@sehe Vomiting panda bears should have had less drinkage.
 
(decided to not-plink)
 
sbi
Harhar!
 
in-cage age-linked drinkage in Pandae
 
sbi
@sehe What? (You might want to consider drinking less, too.)
Eve to arrive Real Soon Now™. (Sorry, @Adam, I couldn't resist.)
 
What are you talking about?
 
sbi
12:07 PM
@RMartinhoFernandes Many things. What are you referring to?
 
@RMartinhoFernandes Adam's spare rib
 
sbi
@sehe Yum!
 
What about my spare rib?
 
Oh.
Now it makes sense.
Somewhat.
 
sbi
@Adam You got one to spare?
 
12:08 PM
I might have one or two....
 
sbi
@Alex, are you Eve in disguise?
 
@sbi No, I am Alex in work clothes!
Thinking how to word a question that is frustrating me - trying to port some C code into PHP
 
sbi
@Adam They should be of your own, though. (You wouldn't want to mate with a cow, would you?)
@AlexHolsgrove Damn. According to the lore, Adam is straight.
 
@sbi Alex can be a girl's name.
 
sbi
@RMartinhoFernandes Only a robot would bring this up. Have you looked at the avatar?!
 
12:10 PM
I wouldn't want to but if needs must..
 
sbi
@AlexHolsgrove Oh, so you're not in disguise, but in frustration?
 
Indeed! I'll throw it out there in the hope of an answer!
 
@AlexHolsgrove that's like choosing what leg to amputate
 
sbi
@Adam There's no need to look at the avatar, but it isn't that bad either. Just have a look.
 
@sbi
 
12:12 PM
I have a database (pervasive) that stores a float as 6 bytes across 2 fields (2byte + 4 byte). I need to combine those back into a usable value (eventually in PHP)
 
oops. I meant the cow.
 
sbi
@Adam ?
 
@sbi "You wouldn't want to mate with a cow, would you?"
 
sbi
@sehe I'd give my right hand to be ambidextrous.
@Adam You might want to learn how to refer to specific messages.
And this might be a good moment to point out the newbie hints, linked from the right-hand panel.
They explain this and many other stuff.
 
Trivia: Orson Scott Card wrote the “You fight like a dairy farmer.” - “How appropriate. You fight like a cow.” swordfighting insult for Secret of Monkey Island.
 
12:20 PM
rofl
apparently, Orson Scott Card is a bible-thumping homophobic nut
which is a pity, cause he writes great sci-fi
 
there is a lot of great programs, but if you'd look at its code - it's complete crap.
(IMO.) Every code I look at, looks as a crap. I don't know why %) I makes me sad =\
I heard there is a lot of beautiful code written in Java. Maybe I use wrong language...
 
12:36 PM
hahaha
you can't write beautiful code in Java because it's such a restricted language that it's physically impossible to write beautiful code
 
dunno. I never used Java
 
it's the pinnacle of crap
Java says "For all problems, use garbage-collected inheritance."
 
@Abyx that's because every programming language is crap ;)
 
mine isn't!
 
sbi
@Abyx I've seen a lot of open source code that's utterly bad, and very little I did not consider crap. I have seen some code in the industry that's not all that bad, though.
 
12:44 PM
hi all!
hola muchachos! vamos paragir.
I need help.
Do you know some opengl game engine that is awesome to use?
 
ogre3d ?
 
more like 2d
 
@DzekTrek Don't know about awesomeness, but Irrlicht and Ogre are two OpenSource Graphics Engines that use OpenGL
 
ogre3D? you mean "How much of our code is composed of Singletons? Only 90%? Damnit man, work harder!"
3
 
:D
 
12:47 PM
You're forgetting the managers.
 
@DeadMG all opengl is about hidden global state
 
I was thinking strictly about 2d? Anything like that?
 
@Abyx In that case, the answer to his question is provably "no".
 
Ah, forever alone :(
I will now have to write even ducking 2d engine
 
ah, they're not that hard
even I cracked out a simple one in a short period
 
12:51 PM
yes, but I have so much work to do, I don't want to spend time on some engine now.
Because of my laziness I now have tons of submissions to apply in order to finish the year.
All in one day. Challenge accepted. :troll:
 
in one day?
 
Actually, two days. :D
 
holy cow
at least I simply admit that I am not going to complete such submissions in time
 
I know. :D
 
which is a rare dose of realistic thinking for me, now that I come to think of it
 
12:54 PM
I like challenges, but to be honest it's one of the times I truly enjoy programming.
 
sbi
I don't know anything about OpenGL, but I think this employs it, and I think they do 2D, too. ICBWT.
 
hey @sbi, what's up?
 
THANK YOU @sbi This is exactly what I needed.
8 hours saved, I can do it.
 
sbi
@DeadMG Up is the direction on your monitor where your browser's title bar is more likely to end up.
@DzekTrek Huh? You found this out within 1min?
 
12:59 PM
@DzekTrek translate.google.nl/… what does that mean?
 
sbi
@RMartinhoFernandes What?
 
@Abyx your smileys confound me
 
@sehe why?
 
paragir ( localism used in Central America ) denotes lit. meaning, in it's full contest with a word vamos paragir, lets make something good.
 
@Abyx huh. It's just that they %:) do -D) ? #- @}
@DzekTrek aha 'let's make love'. Thanks
 
1:03 PM
:D
Yes, you can say it that.
 
omg! 7z don't compiles without PCH because there is a lot of different stdafx.h in it's folders. When PCH are enabled, the one stdafx.h is included in every .cpp file, with disabled PCH some of .cpp files includes wrong stdafx.h %)
 
@Abyx that's about the (evil) point of PCH in MSVC. It is like #include <everything> // dammit like someone suggested yesterday
@Abyx however, just compile with mingw and be happy
 
@sehe 7z doesn't like MinGW
 
there is nothing wrong with PCH. The issue is that some folders contains its own stdafx.h.
it's C\C++ #include system, where there are multiple include directories with files with same names
 
@Abyx I've come to another conclusion after a decade of it. I still use it, but it is pretty easy to abuse it or f*ck up dependencies and so on
 
sbi
1:14 PM
@sehe Yep. I hate PCHs. They are just there for those who are too lazy to think enough about their app's architecture, and end up including everything everywhere.
 
@Abyx no, that's actually well defined. Which implies mean it is laziness/incompetence on the part of the 7z devs. Just saying
 
PCH exist solely as a speedup. VS messes them up by making them manual
 
@rubenvb What compiler does them auto?
 
@sehe IIRC Clang has command to generate a PCH.
 
user784668
@rubenvb So does GCC.
 
1:16 PM
but I guess you still need to add the includes
 
@sbi I use PCH because it speeds up compilation. And I don't include everything there.
 
$ g++ stdafx.h
 
user784668
@RMartinhoFernandes Yeah.
 
sbi
@Abyx I found distributed compilation a lot less hassle.
 
@rubenvb my experience with .gch is that you very much have to specify them manually. MSVC 'gives' ("no thanks") them much more auto
 
1:20 PM
@sehe gcc pch != clang pch
 
@sbi I don't see how PCH can affect on #includes structure. You just take you code, put #include "pch.hpp" at start of every .cpp file, put stl and boost in that pch.hpp and your code compiles faster. (you still #include <string> in every file which uses strings, you can do it even with PCH)
 
user784668
@sehe I have no experience with GCC PCH at all, you know.
 
@sbi ccache + distcc FTW. On debian, sudo apt-get install ccontrol ccache distcc && ccontrol-init (I usually create a few symlinks too, but you could do with updating the PATH setting)
 
user784668
@sehe I just know that they exist and how to create one.
 
@Fanael Well, I have to tweak my make files for that. Not auto. Then again, I have to tweak the vcproj if I want to fix PCH settings for VS without going through a dozen dialogs
 
1:23 PM
@DeadMG as the good robot said, you forgot the managers. not to mention the envelopes. etc. :-) how did exam go?
 
fuck
I keep getting negative age]
 
I did a Mensa workout thing
and I keep proving that some hypothetical person has an age of -20
 
sbi
@Abyx While I can still include <string> everywhere it's needed, there's nothing to remind me of it. Also, on other platforms, including the whole std lib plus boost in every file makes compilation crawl.
 
sbi
1:36 PM
@DeadMG ((Jane + 4) * 3/4)
 
yeah
I just noticed that as written, it's wrong, although in the next line, I expand it correctly anyway
 
@sbi #if HAS_PCH will help for that platforms. Also, it something included <string> before, you still won't get an error.
 
(j - 4) = 2 (s - 4)
(s + 4) = 3 (j + 4) / 4
 
sbi
@DeadMG Of course, I saw this the moment I had posted this message.
 
ahaha
Martinho has the winner
I forgot to account for the time difference when substituting for Sam's age
now I got the correct answer
 
sbi
1:39 PM
@Abyx But by now this is getting more and more complicated. — And I was presenting you a few readily analyzed problems. When the thing fucks up, you will first have to hunt for a few hours to understand what's going on. And then you hit the next problem... Did I mention I found distributed compilation a lot less troublesome?
 
apparently, you actually have to pay to take Mensa tests, which is unfortunate as I was curious
paying for regular membership is one thing and paying for testing is another
 
sbi
@DeadMG That just means that Jane's parents will have sex at least once, in about 19 years.
 
you know, it would be sweet to be a member of Mensa
 
Why?
What do they offer?
 
apart from a huge "I'm a genius!" badge?
do I need a reason apart from that?
 
1:44 PM
Ah.
 
sbi
@DeadMG What is wrong with you that your are so desperately after others recognizing the genius in you?
 
eh
who doesn't appreciate confidence boosts?
and let's face it, in the current era, it's hardly an employee's market for jobs
especially so for young people
 
sbi
@DeadMG Why do you expect a confidence boost to come from other people's beliefs about you (which you are constantly trying to "influence"), rather than from your own achievements?
 
because those beliefs result in me getting hired or not
and being employed is, understandably, of high value to me
 
@DeadMG nope. Your presentation and enthusiasm are the major factors, as far as I know. And after the initial period (2 months, legally, in Holland?) simply the work that you did: if you're smart & get things done, you are hired.
 
sbi
1:50 PM
@DeadMG I don't know. A friend of mine, who was told in December that his last day at work will be this month, wrote me an email this morning that he had just signed a new contract as a C++ developer beginning in March, 1st. That went quite smooth. And if you think finding a job is hard for you young folks, you should know that it is much harder to find a job as a developer when you are around 50.
 
@DeadMG i have become too dumb for mensa. i used to have an iq of about 136 to 142 (just barely enough), but last i checked i was down to 121, same as George Bush. i'm getting stupider all the time. :-( should i try to think as much as possible while i still have marbles, or should i just relax?
 
If you're less than that, you may still be hired (because of shortage)
@AlfPSteinbach Just relax. But I second the motion: the sharpness decreases when experience increases
 
I discovered that Visual C++ std::basic_ostringstream does not like user-defined character types. "inconsistent DLL linkage" in some of their own code. Argh!
 
> "you should know that it is much harder to find a job as a developer when you are around 50."
indeed ^^ since employers will pretty much assume you want to do things in DB-III or Borland C++ and can't learn 'new stuffs'
 
@sbi As far as I know, it's a general trend, but specifically, right now, youth unemployment, even amongst the very educated, e.g. Master's graduates in strong fields, is really high.
 
1:53 PM
@DeadMG I'd say, the young have to be more flexible/patient to get into proper jobs.
 
@sehe DB-III?
 
sbi
@DeadMG I think it's worse in the UK than here. Have you thought of moving to Berlin? :)
 
The way I remember it it was 3 years of wiggling to get from lousy spot A to slightly less lousy spot B
 
@AlfPSteinbach I'd expect that you still have just as many marbles as before, and the national average amount of ... marbles ... has probably just gone up.
 
@RMartinhoFernandes I'm too young too know the proper names.
 
1:54 PM
@sbi Heh. Oh yeah, times are much tougher here than in Germany, as well.
I wouldn't mind moving to Berlin at all, except for the fact that I can't speak a lick of German
 
@sehe Maybe you meant dB-II?
 
@RMartinhoFernandes Maybe I did. Just s//Fortran/, s//COBOL/, s//MSACCESS/ or soemthing
 
sbi
@DeadMG Didn't you see the ad for jobs at Ableton I posted the other day? The whole thing in English. You can get by pretty well with only English here for quite a while. Sitting in a café in some areas in Berlin, I hear almost as much English as I hear German.
 
that reminds me
going to fix up (briefly) and upload the newest version of my specification
 
1:58 PM
so I see
well, those Ableton guys are seriously going to an effort to recruit, huh
 
@Abyx: just observed with your snippet chat.stackoverflow.com/messages/2522786/history that indeed it crashes in Release mode with VS2010SP1 and boost 1_47_0
Installed boost and VS2010 at work just for the purpose (well, and other future purposes)
@Abyx was a bug reported at MSVC?
 
@sehe I don't think it's VC++ bug
 
@Abyx You don't. What do you think it is?
 
and I don't think that it's a bug. It looks like a lack of feature - parsers can't be used with auto. (they weren't designed to be used with auto, so it's not a bug)
 
@Abyx do you have a source on that claim? ('they weren't designed to be used with auto')
 
2:13 PM
@sehe it's obvious. spirit was designed before C++11 was appeared
you just can't write-down the type of expression template in C++03
so const auto& parser = .. wasn't a use-case when spirit was designed
 
how did anyone live without auto
 
anyway I don't know actual reason of that behavior, so can't say if it's a bug, or if it's spirit\VC++\C++ bug
btw, spirits' developers already know about that issue
 
sbi
@DeadMG Without auto, people walked, rode on horses, or on horse-drawn carts.
 
lol
 
2:30 PM
does anyone know any good programming books (free online) that explain programming very basically? Like history and such? I need for senior project
And yes I've been looking everywhere for stuff on google, I'm just wondering if any of you have used any books that might be useful...
 
your subject matter is incredibly vague
at best
 
@Abyx That just means there is no convenient shorthand. It is only a short fiddle to find the actual type T for a parser expression and you can simply const T& bind_const_ref = (temporary parser expression);
@Abyx Yeah, I think it should be reported with Microsoft
@sbi Wir leben lambdas!
 
@DeadMG it is vague... I need to write a research paper explaining what programming is to people who have no clue what it is... And finding books in my local library for it is impossible....
 
Actually rolls of the tongue a lot nice than Wir leben rvalue references
 
sbi
@sehe Actually, that sounds bananas.
 
2:37 PM
I don't like bug reports like there is something wrong with that 10K LOC third-party code.
 
@sbi It sounds nuts. Nuts and bananas, the ape's diet
 
@Abyx Good luck, have fun.
 
@Abyx Are you Microsoft? Let them work that answer out? Who says we/they can't reduce the test case. If you are arguing that compiler bugs can't be reported for complicated libraries (in practice it is hard to get minimal testcases, yes), you're saying Boost is doomed to workarounds
 
@sehe I'm not MS, but as a developer I respect other developers and don't like vague bug reports.
 
@Abyx I'm reasoning from design. There is no particular reason why proto expressions would depend on external temporaries. The internals ones are non-issues since they will stay around due to const& lifetime extension. If not, that is a compiler bug
@Abyx I love them? You must be kidding. You respect Microsoft devs enough to tell me you don't like my hunch? That's selective respect IMO
 
2:41 PM
I'm reasoning that you did nothing to prove that it's compiler bug.
 
Also, remember, I'm **not** reporting a bug. Yet.
I asked you whether one *had* been reporting, different things
@Abyx Why don't you say that instead. "I think you need to ascertain that it is a compiler bug first".
At least then I could have fumed my favourite line-of-the-day "I know that!" in reply :)
For the record. Im on the receiving end of bug reports 99% of the time. In my life I only reported bugs in software or libraries a total of <10 times (outside work). It seems to me you assumed to much
 
as you see, I didn't reported that, because before reporting I should find out were is the actual bug. I'm not interested in spirit's bugs, so I won't do it.
 
35 mins ago, by sehe
@Abyx was a bug reported at MSVC?
@Abyx ^^ note: I didn't ask "Did you report a bug". I asked whether you knew a bug had been reported
If you don't know, fine. If you know it wasn't, fine. Just information you know.
 
I don't watch bugs reported to MS %)
 
nobody does, MS never fixes them
 
2:47 PM
I know for sure that Microsoft Connect is probably the worst bug reporting system ever made.
Actually, it's not a problem with the system itself, it's a problem with the people who are behind it.
 
@Abyx Also, I doubt the vailidity of this line of reasoning it's obvious. spirit was designed before C++11 was appeared. In my humble opinion, if refs to temporaries 'vanish' at the end of the full-expression containing the auto-initializer, that means (by definition) that the expression had UB in c++03 as well. It would mean the expressions depended on lifetimes on non-local temporaries
 
@sehe No, because they were only ever designed to be created as temporaries and then immediately assigned to rule or passed into a function.
 
:2526215 I fail to see the call to the 'std::crash_with_a_segfault()` function (nevermind, you removed your line :))
 
@sehe Now I would love something like that.
 
+1 to @DeadMG
f(Foo().member); is not UB.
 
2:52 PM
@EtiennedeMartel isn't it easy to write? At least easy to spec. On linux, roughly kill(getpid(), -9)
@Abyx Well duh. So isn't const auto& x = f(Foo().member); unless f() is a constructor that keeps an external reference to the innards of it's param. In which case it was ever UB, also in C++03 and even when evaluating the expression in void context?
 
@sehe Or just kill(getpid(), SIGSEGV).
 
@EtiennedeMartel oops. Yeah 9 11. I didn't want to look up the name for SIGSEGV. Busy :)
 
Unaceptable.
 
@DeadMG Can you come up with a sample of an expression that doesn't involve UB in c++03, yet cannot be bound to a const& to extend it's lifetime (without UB)?
 
std::string("ohai").c_str()
 
2:58 PM
ok looking at that
 
the problem is that the c_str() is a reference to the std::string's data, which is immediately dusted
 
Well damn.
 
Care for a usage in which it is defined behaviour?
 
it's the pointer's lifetime which is extended
well, you could probably output the pointer's value or something ridiculously useless like that
 
That's why pointers are a pain.
 

« first day (474 days earlier)      last day (4466 days later) »