« first day (478 days earlier)      last day (4474 days later) » 

6:04 AM
@Xeo perhaps he wants to store in the set of fruits apples and cherries
i want fosdem to upload their videos NOW xD
 
Xeo
@RMartinho: Turns out that libc++ can be fixed by adding a little U at one specific position in <ratio>
 
do these email addresses really belong to the Syrian government?
 
@Xeo Yeah, my fixes the other day were also very minor.
 
Xeo
You mean the scoped enum thingy?
 
Yeah.
That and a couple narrowing conversions to size_t.
 
6:14 AM
12 hours ago, by IntermediateHacker
It'll probably get 5-6 stars in the next 10 hours.
Guess I was wrong.
It only got 4 stars.
 
@IntermediateHacker Seems legit, judging from the number of "12345"s as passwords.
 
Xeo
Ahh. D: Seems there's a discrepancy of nearly 300 rep for me...
> ** total rep 27852 :)
> Xeo 28,122
:(
How the hell can 300 rep just vanish?
 
You've been cheating!
 
Ok, now the heating stopped working in my building.
 
The system owes me 3 rep.
Guess three people deleted answers I downvoted.
 
Xeo
6:26 AM
I really want to know where those 270 rep went
I mean, 30 vanished because I deleted an answer with +3 just now
 
Something got cwed?
 
Xeo
But I can't remember deleting any other answer in the last months
@RMartinhoFernandes The rep gained prior to that still counts as normal
 
Some frauds were reverted?
 
6:41 AM
@RMartinhoFernandes Welp, I don't know why but I forgot that using indices I can use return std::make_tuple(some_transformation(get<Indices>(some_tuple))...); which is transform/map for std::tuple.
 
Missing expansion.
But yeah, map is dead easy.
 
I'll probably end up writing a transform for std::tuple altogether since that's just a matter of making the above generic.
 
Can you make that pretty?
I think I tried once, and then gave up.
 
Well, I find that using indices is pretty enough for my needs. It costs one overload still.
What do you or would you object to?
 
Ah, that's what I have then.
 
Xeo
6:45 AM
All I want for std::tuple is for(auto& e : a_tuple). :(
 
Trivially use transform but ignore the results!
 
Well, I believe that indices can emulate any kind of loop.
But yeah, it'd be nice.
D can do that, btw.
 
On the other hand, if you don't have an appropriate polymorphic functor available, you're sorta hosed.
You can write a polymorphic functor inline using make_overload but holy verbosity Batman.
 
> Using underscores conflicts with user-defined literals. Appropriate disambiguation is already provided for in the current wording, see 2.14.8 lex.ext paragraph 1, but the example can be improved for the new situation. In effect, that means a user-defined literal may not start with underscore-digit.
 
Xeo
I wonder if ignored results are actually optimized out?
 
6:48 AM
Oh, note to self: read everything.
 
Xeo
@RMartinhoFernandes That proposal is dead stupid.
 
@Xeo They can. It depends on the compiler, obviously.
 
Xeo
All they need is literal-like concatenation when writing int x = 1234 5678;
and presto, no ambiguities with UDLs
 
@Xeo That complicates lexing.
@Xeo I don't see that as a big problem, really. Who the heck would write a UDL that starts with a digit?
That person needs to be fed high-speed bullets directly through the skull.
 
Xeo
6:51 AM
@RMartinhoFernandes I don't see why. Literal strings undergo the same transformation
The question is which value a UDL would be applied to, though. 1111 2222_udl -> operator""_udl(11112222) or operator""_udl(2222)
 
Everything.
 
Xeo
But I think #1 is a sane choice
 
The other does not make sense.
 
which port of gcc do you prefer, djgpp or mingw?
 
DJGPP still exists?
 
7:04 AM
I saw some people use it! but I don't know what it is good for?
 
> DJGPP Stable release: 2.0.3p2 / June 10, 2002; 9 years ago
> MinGW Stable release: 4.6.2 / December 22, 2011; 26 days ago
 
Xeo
Hrhr
 
I think it's obvious which one people should use.
Hmm, wikipedia's page on MinGW is outdated as heck.
December 22, 2011 is not 26 days ago
 
Yes, good reason, thanks
 
Xeo
@RMartinhoFernandes Needs macros that automatically calc the diff
 
haha
 
7:25 AM
All hail the singleton...
 
sbi
@Abyx Believe me, I'm not fond of that idea at all. But first, it's been Arabian countries requesting exactly this, supported by just about everyone (except Syria, Iran, Russia, and China — what an absurd alliance!). Second, almost anything is better than what happens there now. And finally, Syrians people took to the streets en mass yesterday (despite mortars having been fired into those masses the day before) to protest Russia's and China's veto, and request exactly what has been vetoed.
@DeadMG We shall see whether what happened in Libya actually turn out to have been for the best. Currently, torture is almost as common in Libyan jails as it has been before the "kicking of Gaddafi's ass". And I doubt the current results of Egypt's revolution (military clinging in power, Islamics having won the election) are satisfying to you.
 
@RMartinhoFernandes good one :)
 
sbi
@RMartinhoFernandes Was this triggered by my tweet?
 
I didn't see that.
Because so many people in the US get it wrong, here a picture of the country I came from. http://t.co/Klx7fiZ5
I love how New Zealand is a city. (And to a certain extent, the fact that the capital is not there at all)
 
@sbi What's wrong with Egypt's revolution? They successfully managed to dislodge an old, corrupt, military dictatorship, and install a fresh, functional, energetic new leadership consisting of people with strong strategic skills and nice uniforms.
 
7:31 AM
> In copy-list-initialization, if an explicit constructor is chosen, the initialization is ill-formed.
 
sbi
@RMartinhoFernandes Epic.
 
Anyone knows if this is preventing some actual badness?
 
sbi
@KerrekSB "...consisting of totally different people..."
 
@KerrekSB FTR the OP probably meant 'pseudo' instead of that 'sudo' typo (I'm being generous in calling that a typo).
 
7:49 AM
> Helper functions cannot be used.
This has got to be the single most stupid homework restriction ever invented.
Also, I made a question.
1
Q: What could go wrong if copy-list-initialization allowed explicit constructors?

R. Martinho FernandesIn the C++ standard, §13.3.1.7 [over.match.list], the following is stated: In copy-list-initialization, if an explicit constructor is chosen, the initialization is ill-formed. This is the reason why we can't do, for example, something like this: struct foo { // explicit because it can ...

 
Does anyone know some board dedicated to Boost, where I can ask for help on a difficult problem?
I asked the question on SO as well, but did get any answer (and the bounty expires in 24 h).
9
Q: How to define a Python metaclass with Boost.Python?

Paul MantaThe Python C API has the PyObject *PyType_Type object, which is equivalent to type in the interpreter. If I want to define a metaclass in C++, how can I set type as one of its bases in Boost.Python? Also, what other things should I take into consideration when defining a Python metaclass in C++? ...

 
There's the boost mailing list.
 
One of the mailing list is dedicated to user help.
 
sbi
room topic changed to Lounge<C++>: Have you tried attaching a debugger to her? [c++] [c++11] [c++-faq]
 
8:18 AM
Should I throw all caution to the wind and use std::tuple_cat just like I'd cons to a list?
I mean, even if I did write a tuple_cons utility, realistically it'd use std::tuple_cat behind the covers.
 
Refresh my memory. Are those TMP, or runtime?
 
Function templates, runtime.
 
Ah.
tuple_cat has a horrid syntax for that then.
std::tuple_cast(std::make_tuple(x), tup);?
 
I'm hacking with std::tuple_cat(std::make_tuple(head), tail); right now and it feels icky.
 
If only we could do std::tuple_cat({ x }, tup);...
 
8:21 AM
(Ickiness that comes from a pavlovian reaction to avoid concatenating lists I guess.)
 
Freaking s keeps sneaking in.
 
Perhaps try writing std::tuple_cats instead. :3
 
My vimrc is full of abbrs for my typos.
Things like tempalte.
 
Doesn't that encourage the problem in the first place?
 
It fixes it.
whistles
 
8:23 AM
I'm not sure what to think of any potential answers/alternatives you'd give me to my hack then!
But more seriously, the only drawback I can think of is that computing the result type at compile-time is a bit roundabout.
 
Of course. I'm just looking for any bad repercussions.
Again, it's just a reflex I have any time I write list concatenation. "What should I be doing instead."
Seems silly when it comes to std::tuple really.
 
I'd write the cons thing.
 
8:46 AM
Oh yeah, SFINAE failure on decltype-signature'd operator() const that recurses to a non-const operator().
 
9:02 AM
started using Doxygen recently on my C++ code - I'm finding its graphviz-based dependency graphs extremely useful for refactoring (the generated html files containing the graphs have live links to the underlying classes/dependencies)
 
@LucDanton +1 I hate abbreviations. With a vengeance. I want a computer to mutilate my typing, I'll use winword.exe
 
it's becoming easier to distinguish which parts of the code are clean and which parts are unnecessarily entangled
 
@RMartinhoFernandes That said, I have one abbreviation that doesn't annoy me enough to remove it: :mka will get corrected to :mak. Not that I type that much (@: or F10 are quicker). But no insertion mode abbreviations, no
 
But I can't write tempalte right at the first try.
 
@kfmfe04 have a look at cppdepend
 
9:07 AM
morning
 
@RMartinhoFernandes Yeah, I have the same problem. So, I type it twice. There is more gain in using snippets to get things done - positively. Not that I use them much already.
There is something soothing about letting your fingers get the gratification of typing while your brain scurries on.
 
@sehe nice - but a bit expensive - thx for the suggestion
 
@kfmfe04 for a one-off expedition into legacy code, the trial can be quite ok. I used that once.
 
9:34 AM
Hallucinating fire in my brain :(
is it allowed to another user to put bounty on my fresh question?
 
Not before it's 48 hours old.
 
@RMartinhoFernandes ehh :( , Now I think chose wrong GUI to learn , FLTK and it's all manuals sucks :(
But I will not loose , I will learn it now what ever it takes :/
Am I sounding like I am crying? :)
 
@MrAnubis That's the spirit. But it's also important to know when to quit. (hint: it's when you're ahead).
 
mawning
 
9:50 AM
mornin
 
10:10 AM
Welp, guess I can announce the first successful unit test of my list comprehension syntax thingy >.>
 
I'm scared.
 
As long as you don't look the internals, it's okay.
 
But I know I will.
 
@TonyTheLion @Xeo This is for you.
 
Morning all!
 
10:15 AM
That's wrong!
 
:O
that's not a very warm welcome
 
Wow, the errors I get.
 
@RMartinhoFernandes Back to the drawing board!
 
@thecoshman Sorry, not meant for you :S
Hi.
 
10:16 AM
More seriously though, I'm using a zipped range where I guess a cardinal product is expected.
 
Exactly.
"cartesian"
 
Sorry. I needs food badly, so cold.
I can't even fathom if a cartesian product iterator/range makes any sense. Because if it doesn't, I might as well bin my design.
 
Making it a cartesian product allows things like this: ideone.com/5BpaW
 
Is [0..a] the same as 0:a?
 
It's [0, 1, 2, ... , a-2, a-1, a]. Not sure what your notation means.
Ah, your "notation" is cons.
I need food too.
 
10:22 AM
Oh I get it.
 
Basically, you can have one range depend on the values from another.
 
For some reason I thought [0..a] was [0..range1].
Well the reason being that the placeholder is bound to range1 I guess.
 
That's useful to do stuff similar to SQL joins.
 
Welp, I'll write a cartesian product iterator another day.
 
10:24 AM
It's seriously aggravatingly cold in my flat. I'm struggling to think, I'm even struggling to not make typos right now.
Still, the core of the logic so far fits on less than a dozen lines.
 
Did you close the doors/windows?
Gotta love {{{}}}.
 
@RMartinhoFernandes Oh yes. But again, the only nice thing I can say about my flat is that the window is well-insulated.
There's a lot more walls, floor, ceiling, and door than window.
Also my avowed goal was to further my understanding of Boost.Proto really. This has worked very well.
Come to think of it, with a bit of luck all this new knowledge will be completely useless for Proto 3.
@RMartinhoFernandes Were you seriously looking at the code or just caught that at a glance?
 
@LucDanton I scrolled and that caught my eye. I'm not in a mindset to look at that kind of code right now.
 
I suggest you don't, unless you're curious about Boost.Proto.
 
10:43 AM
In that case, I guess I won't.
Arrrgh. Johannes knew a case where implicit explicit list initialization fucks up.
 
@RMartinhoFernandes oh that's nice to know, saves me having to re-install you :P
 
@LucDanton wow, list comprehensions
jeez, impressive
 
But wrong! That's just a zip in disguise. Don't let him fool you.
 
@sbi with out trying to sound creepy about commenting ona 2hour old tweet about your teenage daughter... why would any one horde shower products in their bedroom? very strange indeed
 
10:55 AM
It's map (uncurry (*)) $ zip range1 range2, not [a * b | a <- range1, b <- range2].
 
mmmm curry
 
sbi
@thecoshman It's not her bedroom, but her room. And it wasn't shower products. Lately I have found hand cream (needed for a younger sibling), and today I was in need of the blow dryer. (I hadn't used those in two decades, so I can't really blame her, but I still see a pattern there.)
Really, after twenty years, I needed a hair dryer this morning. I really, really, really did not want to leave the house with wet hair when it was -17°C (at 10am, on the fourth floor, right at my window).
 
I can't wait to fix that zip/cartesian product thing (if possible), so that I can move that code into a branch and never mention it again. Since I'd get a zip_range and possible a cartesian product iterator/range out of the deal, it will still be nice.
 
this is a silly level of cold recently isn't it
 
user784668
@RMartinhoFernandes That's concatMap in disguise!
 
11:05 AM
@Fanael No, his implementation is not concatMap, it's zip.
 
It really is. Filters the ranges, zips them, feed them to the expression.
Better read up on cartesian products before I even attempt to write anything this time.
 
user784668
@RMartinhoFernandes Ah. Dunno about his implementation.
 
11:23 AM
@thecoshman how's the UK rail holding up in this weather?
 
@TonyTheLion from what I here, like a bunch of pansies.
FYI, I don't live in the UK anymore :P
 
ah ok
 
it's not bad enough
it's cold, but not that much snow fell in many places, and it's been sunny and warm during the day so a lot of it melted
 
ah ok
cause I'm going to the UK soon and I want to know if I should expect delays when leaving London by train
 
10 flags. wtf
 
11:34 AM
lol
 
I don't have much problem with it
depends on what route you're taking, really
and at what time
 
hmmm I'll check closer to the day I'm leaving
 
Strange... I'm heading back on the 16th as well ¬_¬
 
just for a visit?
 
This cold must suck for someone used to the savannah climate.
 
11:36 AM
who's used to savannah climate?
 
sbi
@TonyTheLion Lions.
 
oh ghosh, I didn't even think that far
 
sbi
@thecoshman Indeed. Very silly.
 
what, that it's ridiculously cold up here right now?
yeah
 
only -0.3 celsius here
 
11:37 AM
haha
 
so it's warming up
 
we're down to -10 or so here, I think
 
unfortunately
 
user784668
@TonyTheLion Where?
 
11:38 AM
but you're up north no?
 
the university is within walking distance for me
 
@Fanael Belgium
 
so even if the weather was terribad, it'd still be no excuse for me to drop my exam
@TonyTheLion No, midlands.
 
sbi
@RMartinhoFernandes Before humans made them extinct almost everywhere, lions were quite far-spread across Eurasia. There used to be lions on the Balkan peninsula, where there's many areas with snow. And I bet some of the highlands in western Asia get pretty cold, too.
 
11:39 AM
besides, the cold front is actually from mainland Europe right now
the weather is better the further north you go
 
I don't know how you guys can handle it. I'm complaining and I don't need to use minus signs to tell the temperature here.
 
sbi
@TonyTheLion Ha! According to the forecast, we won't get above -5°C, but according to the temperature when I left the house, I doubt we'll get above -10°C.
 
simple
hide inside, and turn the heating on :P
 
user784668
@RMartinhoFernandes Neither do I need to use minus sings. Nor anybody, for that matter.
 
sbi
@Fanael Where are you living?
 
11:40 AM
if you measure in Fahrenheit, I don't need minus signs either
 
lol
 
@sbi brrrrrr cold
 
user784668
@TonyTheLion I measure in Kelvins. It's 260 K here.
 
thank god the heating works again here
was broken a few days ago.
 
lol, owch!
 
11:42 AM
@TonyTheLion Indeed, a week with the parents
 
I can't even stay in bed without a healthy dose from the heating before hand
 
yea, and if it wasn't for my insistence on getting it fixed, it wouldn't have got fixed
people are strange here
 
By strange you mean stupid, right?
 
I hate getting out of bed when it's cold, the cosy warmth of the duvet is just too tempting to stay inside
@RMartinhoFernandes basically, yes
 
sbi
@Fanael While I consider measuring in Fahrenheit really silly, I don't see much practicability in using Kelvin outside of physicist circles either.
 
user784668
11:43 AM
@sbi Southern Poland.
 
sbi
@Fanael Ah, you've been hit really hard, too, right?
 
Really smart people use scales adequate for the situation.
 
I use a different scale when doing it comes to my advantage :P
 
sbi
@RMartinhoFernandes Which situation is Fahrenheit adequate for? (I'm not mocking, I really want to know.)
 
Celcius is the most useful for temperature, realstically
@sbi None.
 
11:44 AM
@sbi when you go to the US
 
sbi
@DeadMG Not for measuring the temp of the vacuum between earth and moon.
 
@sbi Interacting with Merkins.
 
@sbi Probably best using Kelvin for that.
I meant Earth temperature, for Celcius
Fahrenheit and Celcius are the same concept, but one is for blood and the other is for water
 
however, the boiling and freezing points of blood are not especially relevant to anything
 
11:46 AM
Fahrenheit is used when you want to proclaim how hot it is, Celsius is when you want to get excited about how cold it is.
 
@RMartinhoFernandes Cehlvinheit
 
whereas when you go into the negatives for Celsius, then it means frost, snow, etc
 
110 Fahrenheit is meaningless to most any European
 
@TonyTheLion Yup
 
in the US when you say 50 Celcius, they look at you strangely
 
11:47 AM
@DeadMG Er, it's not about the boiling and freezing points of blood.
 
@DeadMG what? is that a funny, or are you genuinely being a bit mistaken?
 
It's about the temperature of brine and the temperature of Farhenheit's feverish wife.
 
oh well
 
user784668
@sbi Kind of. I've seen worse winters.
 
@DeadMG do you mostly think in miles when talking distance or kilometers?
 
11:48 AM
" The third point, 96 degrees, was approximately the human body temperature, then called "blood-heat"
guess that I just didn't quite read it correctly
 
@TonyTheLion Everything here is measured in miles.
 
Yeah, thankfully, blood doesn't boil at that temperature.
 
I personally would use kilometers, but I'd never get anywhere
 
@DeadMG yea I know
 
11:50 AM
What about furlongs?
 
no
 
@DeadMG I live in silly Ireland with silly Km. "Oh, It's about 80Km away" -le person. "oh... so, is that far?" - le me
 
user784668
@RMartinhoFernandes Per fortnight?
 
11:50 AM
@thecoshman 8km -> 5miles
 
a fortnight is not so uncommon
 
I think, anyway
 
@Fanael furlongs are a strange an archaic unit of distance used in the country
 
1 mile -> 1.6km approx
 
> 1 attoparsec/microfortnight is nearly 1 inch/second.
 
11:51 AM
microfortnight? wtf
 
> One microfortnight is equal to 1.2096 seconds
it's a measure of time
 
@DeadMG probably, but I bet you would struggle to appreciate if if €7.50 is a lot to pay for two pints. sure you could work it out, but you would have to sit around like and idiot thinking it out
 
user784668
@thecoshman Yeah, I know. Haven't you ever heard of furlongs per fortnight?
 
@DeadMG It's one millionth of two weeks.
 
It's the same problem for me with Km rather the miles
 
11:52 AM
@thecoshman Probably because I have never bought a pint and have no idea if £7.50 would be appropriate.
 
@Fanael no I haven;t :P
 
> U.S. customary units equal to one-eighth of a mile, equivalent to 220 yards, 660 feet, 40 rods, or 10 chains.
 
let alone €7.50
 
@DeadMG :O
 
furlong
 
11:52 AM
I thought you where in Uni?
 
I am
 
lol, Uni = beer.
 
he's chatting instead of studying
 
@TonyTheLion I chain is a unit of length :O
 
11:53 AM
oh yeah
 
@DeadMG then do the right thing and get to the pub god damn it
 
technically, I'm at uni, but in reality, I do my own shit instead of studying
 
Gunter's chain is a measuring device used for land survey. It was designed and introduced in 1620 by English clergyman and mathematician Edmund Gunter (1581–1626) long before the development of the theodolite and other more sophisticated equipment, enabling plots of land to be accurately surveyed and plotted, for legal and commercial purposes. A 1675 description states of the Gunter's Chain, "Dimensurator or Measuring Instrument whereof the mosts usual has been the Chain, and the common length for English Measures 4 Poles, as answering indifferently to the Englishs Mile and Acre, 10 such...
 
or corner shop :P
 
@thecoshman Why would I want to do that?
there's nobody at the pub that I want to see
 
11:54 AM
@DeadMG a pint?
 
you're really the most social individual around, aren't you @Dead
 
@thecoshman What about a pint?
 
drink it
enjoy it
 
@DeadMG get some
 
11:54 AM
why would I want to do that?
 
@thecoshman that could be misinterpreted to mean something else by the pervy minds amongst us :P
 
Beer sucks.
 
oh I LOVE beer
 
@TonyTheLion pun intended... honest :D
 
but I'm Belgian
lol
 
11:55 AM
Beer is great
 
it's horrifically expensive
 
stout is even better!
 
and the only purpose is to put me into a state that I don't want to be in
 
Beer is cheap here.
 
so I'd pay for a negative effect
 
11:55 AM
hehe
 
@DeadMG so's crack
 
not really what I'd call a good deal
@thecoshman Funny, I don't buy that either.
 
@DeadMG huh... again, I thought you where at uni
 
user784668
11:56 AM
Does anyone know how expensive a pint is in the UK?
 
@Fanael last I checked, about £3.50 ish
depending on what you have
 
it's a like a fiver if you want anything decent in London
but then again, London is expensive
 
@thecoshman I am
 
I'm really worried
 
Twitter will answer me soon :D
 
11:57 AM
he's furiously preparing for an exam, NOT
 
@DeadMG surely a bit of pot?
 
@thecoshman No.
why would I want to do that?
 
smack?
 
no
 
11:58 AM
hi Guys
 
are you promoting drugs?
 
sup?
 
roofies?
 
I don't consume any mind-altering substances
 
cough syrup?
 
11:58 AM
Sugar?
 
drugs isn't healthy for you
 
@TonyTheLion debatable
 
lol
 
user784668
@DeadMG You write C++, that's nearly the same.
 
@thecoshman let's not have that debate
 
11:59 AM
the important thing is
 
C++ is a mind altering substance
prone to abuse :P
 
more precisely, it very much depends on the drug
 
But you don't consume C++. C++ consumes you.
 
my excellently sharp mind and uncontestable brilliance are my primary assets and I'm not gonna pay money to throw them down the pan
 

« first day (478 days earlier)      last day (4474 days later) »