« first day (1204 days earlier)      last day (3735 days later) » 

12:00 AM
@JohanLarsson what does btw stand for j/k
 
b/t/w
 
Ell
12:13 AM
Just finished watching its a beautiful life. My feels :'(
 
Hahaha xD
I <3 Louis CK
 
@Mysticial puu.sh/6FrQb.png this is what I meant a while back with the whole UI issue. Pretty silly :s
I have to minimise FF to fix it
 
@Rapptz Oh yeah, i got that a few times recently, I don't recall having that before a few weeks back. Must have been introduced in one of the new updates =/
 
Ell
@rapptz I have been getting that occasional for quite a long time
occasionally*
 
yeah ever since I switched to FF I've been getting them and it's a little annoying
 
12:22 AM
fuck.
XCOM randomly decided that I don't deserve my last 24hours worth of saves.
 
12:40 AM
if anyone wanna add this codepad.org/pxbl9IYB as an answer to stackoverflow.com/q/21382591/1090079 ("how to check if function exists"), do it.
 
user3010322
Alright!
 
user3010322
My new color system works, its' badass, and it incorporates a nice interface as per @DeadMG's suggestion.
 
user3010322
So doing Rgba<byte> woof; Rgba<float>arf{ 1, 1, 0, 1 }; woof = arf;
 
user3010322
Results in woof being { 255, 255, 0, 255 }
 
is anyone going to the c++ meeting in Aachen?
 
12:43 AM
if there's noone who does it I'll probably do it later tonight.. sick and tired of people claiming it's impossible to check if a function exists inside namespace std just because you aren't allowed to introduce names to it.
 
@refp Doesn't matter if you can check if it exists if you can't add it if it doesn't.
you'd have to go through some intermediary wrapper and that's basically just "Define your own make_unique"
 
@DeadMG I never made any such claim
 
@refp Nice strawman btw
No one claimed that
They just said "defining std::make_unique is illegal", which it is.
 
@Rapptz strawman or not, I'm not only referring to that particular question.. it's a discussion that pops up every once in a while, and I stumbled across the previously linked question and found it suitable for a little bit of ranting
 
gdb segfault ._.
 
12:54 AM
rip
 
Who can rename the tags? I want 'multithreaded' renamed as 'cluelessness central'.
 
@Rapptz It’s not a strawman. He can be sick of anything and express as much.
 
he clarified already
 
The ‘strawman or not’ needed support white-knighting :v
It’s amazing, running gdb inside gdb doesn’t seem to help today.
Better file this case in ‘fuck this shit’.
 
1:11 AM
whew
defaulted on my rent for about.. an hour.
 
I've turned my comment into an answer, so I can explain the idea better. I hope you don't mind my answering this question with a wholly different approach. It might just give you some useful ideas, if indeed this what you're trying to achieve. — sehe 6 secs ago
@StackedCrooked ^ Another case of the mesmerizing boost::variant
@LucDanton Erm. Are you okay?
 
23 mins ago, by Luc Danton
gdb segfault ._.
 
And you have a custom built gdb handy?
Dunno why, but I found this stub quite witty:
namespace Controller { namespace QtOpenGL {
    typedef std::ostream cQOpenGLContext;
} }
 
It’s my lazy way to get a stack trace without needing to look up what’s the proper ulimit incantation.
 
oops. Nim is very popular combinatorial game. It's really simple and it's what i'm calling ClassA here. Is it necessary to paste all the code? — WalterCapa 3 mins ago
 
1:20 AM
Sometimes it’s useful enough even without symbols :v
 
NO, JUST KEEP DESCRIBING IT
jesus christ
 
user3010322
@sehe You know, I've always wanted a Window implementation where I could specify a console window as the backbuffer for OpenGL or DirectX rendering calls.
 
user3010322
So when I draw stuff it does software blitting onto the console window.
 
@sehe Out of curiosity, have you ever needed more than binary visitation with boost::variant?
 
user3010322
That'd be kinda cool.
 
1:22 AM
@LucDanton Needed? No. Wondered about: hell yes :)
 
Technically you can form an n-ary visitation into a tree of binary visitations (unless I overlooked something) so I suppose it’s the bare minimum functionality.
Oh um that doesn’t make too much sense actually.
Need a quick break, as well as a breakfast.
 
user3010322
@melak47 Don't think I don't see you lerking!
 
user3010322
And that I'm not going to ask you how things are going. :D
 
:o
 
user3010322
q_q he disappeared. D:
 
1:27 AM
I kid :p
 
anybody here know about machine learning?
 
in theory, yes
 
user3010322
My machine learns how to shut up and run my programs. D:<
 
We know about it, yes
 
Hi all. :3
 
1:29 AM
@LucDanton I keep getting confused about your timezone now
 
does anybody know about it in practice?
 
user3010322
@sehe He has a very early breakfast.
 
I know a little about OCR, if that counts.
 
@AlexT., it's more than me XD
how does it work?
 
I know a little about OCD
 
1:31 AM
Very carefully
 
@LucDanton I think you're technically right, but that doesn't translate very well to non-functional land (you'd have to accumulate params into tuples and dispatch on that. That does get unwieldy, especially since we can't overload on tuple elements). Put simply: C++ isn't Haskell :(
 
@Nathvi very well, thanks for asking!
 
lol
 
Obsessive-compulsive development?
 
Okay. Peeps. Remember about our recent poll? Let's just ignore stuff and not honour the age-old let's-bash-the-foreign-lounge-element-cause-we're-bored reflexen, yes?
 
1:33 AM
@Nathvi you give the computer a reference image and tell it that it corresponds to a certain letter. It uses some image processing operations on that image (Usually something called skeletonization) to compress the image down to thin lines. When you give it a new image, it performs the skeletonization operation and compares it with the original, deciding what letter it could be associated with how 'confident' it is about it.
 
@MartinJames Actually, that works well for me
 
@AlexT. sounds interesting
 
@Nathvi Yeah, it's still a little black magic to me though. :S
 
how does it determine if the two skeletonized letters are close?
its all black magic to me!
 
Lol.
 
user3010322
1:37 AM
Hm. I can't pass doubles or floats as template parameters?
 
To hazard a guess, I think it would track the locations of ends of letters and intersections and stuff, and store the ratios between their distances.
Then regardless of how big the letter has been drawn/slight handwriting differences, the ratios between each point position should be similar.
 
@ThePhD Rhetorics much :)
 
user3010322
Well, I had tried it and failed. I was wondering if I was just doing something wrong.
 
@AlexT., that sounds reasonable
 
user3010322
Turns out it's not allowed at all. =[
 
1:40 AM
Indeed.
@LucDanton I'll hold you up on this!
 
@ThePhD Just trying to understand, what's meant by blitting?
 
user3010322
Block Image Transfer
 
Thanks.
 
user3010322
Block Image Transferring is the action of taking colors from point A and slapping them over to point B, usually in the form of a rectangle of some sort.
 
And using some kind of blitting mode (xor, or, etc.)
 
1:45 AM
0
Q: Why dividing a float by a power of 10 is less accurate than typing the number directly?

MehrdadWhen I run printf("%.8f\n", 971090899.9008999); printf("%.8f\n", 9710908999008999.0 / 10000000.0); I get 971090899.90089989 971090899.90089977 I know why neither is exact, but what I don't understand is why doesn't the second match the first? I thought basic arithmetic operations (+ - * /) ...

 
Me too. But this is Mehrdad
 
That was my exact thought.
 
Erm. How is this not a dupe of our (many) floating point faq items? — sehe 9 secs ago
 
@Borgleader Why don't you? :3
 
Giving him a few moment's gracetime before decapitation
 
1:47 AM
@AlexT. I have a hard time describing him, so let's just say he's a difficult customer.
 
@Borgleader Haha, okay. I'll take your word for it.
 
I posted it >.>
puts on flame retardant suit
 
@sehe Oh I wasn’t blathering about the implementation (mine does exactly that though). I had things like f(a, g(b, c)) in mind which you can achieve with just binary visitation. Obviously for some things you have to branch on more than two variant values though. Also case-of-cases in functional languages look nasty — and unlike as with variants, you do end up mixing some of the plumbing with some of the logic.
 
user3010322
@Borgleader You dun goofed; he's already posted the link and read the article (somewhat).
 
Clause sugar looks okay though.
 
1:54 AM
@ThePhD Yeah I noticed after I posted. Oh well too late now.
Honestly though, he has 60k rep, he has seen the many dupes, he should have put that in the question itself.
 
@LucDanton Oh aha.
You variant has n-ary visitation? Cool.
And it also allows reference types?
 
Yes.
 
I always wonder what line of business you're in with skills like that vOv
@Borgleader That's what I felt. Also, he's blithely claiming "it should be rounded correctly" without showing where it is incorrect
 
I'm actually reading through it to see if it actually says that
 
It used to support the recursive_variant stuff but the coupling that required was crazy, I axed it. I’m fairly sure it’s a gross violation of separation of concerns and I’m in fact investigating something.
@sehe I’m still figuring out what it is I want to do.
 
user3010322
2:00 AM
1
A: Why dividing a float by a power of 10 is less accurate than typing the number directly?

ThePhDJudging from the numbers you're using and based on the standard IEEE 754 floating point standard, it seems the left hand side of the division is too large to be completely encompassed in the mantissa (significand) of a 64-bit double. You've got 52 bits worth of pure integer representation before...

 
user3010322
Problem solved, I guess.
 
user3010322
@sehe So mean q_q
 
@ThePhD Nah. It was rubbish. I can see where your thinking came from, but compilers are smarter and there's always as-if
 
user3010322
WEll, to be fair, that math should have been done at compile time on any compiler and the numbers should have been shown as the same.
 
"something"
Dunno if enticing... or turn-off :)
@ThePhD Nope.
 
user3010322
2:03 AM
Arrrgggh
 
@ThePhD you pwned him. I <3 you
 
user3010322
I'm getting upvoootes. u.u
 
ahahahah, guise, take a look at this bio
 
user3010322
I've broken 100. =[
 
user3010322
RIP Low-Rep Ghetto, I knew thee well.
 
2:04 AM
Least fixed-points of a functor but that’s a fancy way of saying ‘non-intrusive recursive_variant for more than variants’.
 
Haha my comment to the article got an upvote even if he posted it xD that article is like the standard, you quote it and you get upvotes for sure
 
@LucDanton Very very interesting. I predict that explaining this will be the new monad tutorial, right when lense tutorials go out of style :)
 
Kinda struggling for a name (of course). Something like data/recursive jumps immediately to the mind but I’m not entirely satisfied with it.
 
@LucDanton I didn't know that recursive_variant was 'intrusive'. It's not intrusive for me as a library user.
> of course
lol
I reckon by intrusive you mean that the implementation has to keep special precautions in mind at all times if there is a recursive variant "element"
(Btw. what is proper naming there: variant element type? variant member?)
 
@sehe I make a point of properly constraining operations, which is ‘interesting’ when the type is incomplete. Although IIRC the Boost interface is mostly via make_variant, not variant itself, right? That’s saner than what I did.
@sehe Yes.
 
2:12 AM
@Borgleader what article
 
@LucDanton There's two ways. The more power one is indeed the meta function make_recursive_variant. But simple "incomplete type flagging" can be had using just recurse_wrapper so variant does the magic. Oh, and the two can be combined
@Jefffrey ... follow the links
@Jefffrey what of it?
 
> C++ > all
 
recursive_wrapper has merits on its own though! So putting one in some variant, tuple or whatever is cromulent.
re: intrusiveness at least
 
yeah. I suppose it would transparently DoTheRightThing even when feeding element types from a typelist (with make_variant_over IIRC)
@Jefffrey oh. that's hardly news :)
 
hehe
 
2:18 AM
On that note, time for bed!
Night all
 
user3010322
LIES
 
user3010322
There is no bed.
 
Tschüß.
 
@sehe I guess I shouldn't tell you a spirit question just came in :P
 
@ThePhD I'm just gonna pretend there is. And as long as my wife is also there, my feet will get warmer than they are now :)
@Borgleader hmmm?
 
2:19 AM
@sehe this one ?
 
@Borgleader Closed as dupe
 
Well done :)
 
Not really. Just noticed he already had those :) But he's failing at iostreams...
0
A: How do I suppress skipping in boost::spirit for parsing a quoted string?

seheI think your problem is the input stream skipping whitespace See http://en.cppreference.com/w/cpp/io/manip/skipws Adding fs.unsetf(std::ios::skipws); fixes things See it Live on Coliru

 
Ok I give up. Apparently a complexity linear in the size of part of the container is way more inefficient than something linear in the size of the whole container now.
 
3:03 AM
in Sandbox, Jan 28 at 19:49, by R. Martinho Fernandes
!!/420
^^ lol
 
3:16 AM
0
Q: Icicle with rotated text

abaziCan I see your code you talked about it here: How to get the rotation of a text label in the Zoomable Icicle Layout in D3? are you rotating the text element or the g element? mine doesn't show the rotated texts!

wtf is the question here?
 
it's trying to reply to a post
I flagged it
 
I voted to close it
but yah, it definitely belongs as a comment to the linked Q
 
user406009
Darn, I hate broken PDFs. I wonder which will be less painful in the long run, OCR or spell check.
 
3:40 AM
@Lalaland s/broken//. And "both".
 
user3010322
4:03 AM
@ScarletAmaranth This BRDF stuff is making me cry. ;~;
 
4:30 AM
@ThePhD Xeo is only on on Sunday. /cc @Dead
 
user3010322
Oh.
 
user3010322
Alrighty then.
 
user3010322
Also, some guy working with OpenGL @ AMD is putting together a GL Bytecode.
 
Also, fuck this shit. I was once again caught arguing against someone whose general idea I agree with.
 
user3010322
IP Protection, fast load times! Woo!
 
user3010322
4:31 AM
@R.MartinhoFernandes What? How'd that happen?
 
Solar energy fanboi.
 
@ThePhD bleh
 
user3010322
@R.MartinhoFernandes Hah. Solar energy is really bad.
 
user3010322
The actual yield of solar radiation from solar panels is really low.
 
I don't fucking care. Propagandism annoys the hell out of me.
 
user3010322
4:33 AM
Even with a fat laptop, you could slap a solar panel on the back and leave the thing out in the sun, off, for years, and the laptop would never charge. =[
 
That's not true.
Also, I didn't come here to continue the discussion.
 
user3010322
True enough.
 
user3010322
So how did the discussion end?
 
we just need to put a huge lens at say, L1, and build a couple collectors in earth orbit which then send it down as microwaves or something :D
 
He asked me what I studied; I said I'm a software engineer; he proceeded to dismiss everything I had said in the previous hour on that basis. I asked him if he would think different of my arguments if someone else had put them forward. While he reflected deeply on that for about a minute, I said goodbye and left.
 
4:36 AM
:/
 
user3010322
Blech.
 
user3010322
Sounds lame.
 
At least you didn’t go nuclear.
3
 
user3010322
... Dat... dat pun hnnnngh must not star must not star....!
 
@LucDanton Had to correct someone else that was arguing on my side about some facts on that too! (He's a cool guy though and actually thought about it like a rational human being)
 
4:37 AM
@LucDanton liquid thorium!!1!
 
@R.MartinhoFernandes Did it involve deaths per megawatts?
 
@LucDanton Nah, I wouldn't dare bring that forth. Solar guy would go crazy.
 
Oh that was definitively civil then.
 
(Also, I prefer to withhold my arguments if I don't recall the correct numbers)
 
@ThePhD Maybe in 1998.
 
user3010322
4:41 AM
@Rapptz Well then, color me surprised.
 
user3010322
The paper I read was kinda old, though.
 
user3010322
Maybe I should make sure to read updated shit.
 
user3010322
So wait, if that is the case,
 
user3010322
I should totally fit my laptop with a solar panel.
 
Solar Energy isn't the most efficient atm
It'll get there one day I guess
Just not today
Then again the negative component of solar energy isn't really efficiency, it's just that it's too damn expensive iirc.
 
user3010322
4:45 AM
Lol
 
user3010322
10K to get solar panels on the back of my laptop.
 
user3010322
Would rather buy 3 expensive laptops.
 
user3010322
Why am I still awake.
 
user3010322
What is this why am I here what I am doing with my life.
 
it's only 11:46 PM
 
user3010322
4:46 AM
Oh, right I was trying to understand BRDFs.
 
@Rapptz It's cheap as fuck.
 
Really? Last time I checked it wasn't (6 months ago)
 
Cost of materials crashed.
 
Is that PV solar?
 
4:48 AM
Anyway in terms of efficiency they're already more efficient than photosynthesis.
iirc it's ~35% efficiency to convert solar energy to electric energy
 
user3010322
So then my idea to make a bracelet that powers itself and recharges a small NiMH battery on board using solar power isn't lost?
 
user3010322
@Rapptz But how much solar radiation is actually there to begin with?
 
@Rapptz Terrible energetic ROI, though.
@ThePhD Enough. Everything in this damn planet runs on the sun. Oil is just concentrated sunlight.
 
@ThePhD A lot?
I'm not sure if that question was serious tbh
 
@ThePhD But you still have to consider things like the time it will be actually exposed to direct sunlight.
 
user3010322
4:51 AM
I mean, how much solar radiation does the thing capture in like, a day, if it's eternally facing the sun?
 
@R.MartinhoFernandes Hey. You said they were cheap!
 
Panels are p smart about getting as much sun as possible
 
@R.MartinhoFernandes Nuclear runs on more stars than just the Sun, no? :)
 
iirc there was a house that only uses solar energy
 
user3010322
@R.MartinhoFernandes Concentrated over hundreds of years, if I'm not mistaken, so that's not a very fast turnover rate.
 
4:51 AM
lemme find it
 
@ThePhD It's not a lot of energy either.
 
@Rapptz Fossil energy is cheap, relatively (and economically) speaking.
 
@LucDanton In the future, we could also make our own little suns. ;)
 
@Rapptz Solar panels are cheap. That doesn't mean solar energy is.
 
user3010322
@R.MartinhoFernandes Well, if you don't consider that you're paying for all the previous years and you just mine that shit.... while it is finite, it's cheaper, I suppose?
 
user3010322
4:53 AM
Also, the other things we use fossil fuels' byproducts for. I.E. every-fucking-thing.
 
@ThePhD Duh. Why do you think it became so important?
 
@Rapptz Actually theyre reached 45%
IIRC
 
@Borgleader Q-Cells, probably the biggest manufacturer, sells them with 20%.
They went from biggest to bankrupt when the silicon price crashed.
 
@Borgleader Probably non-commercial.
 
@MarkGarcia How little? Are you willing to drop Saturn into Jupiter? I could use some light for those coding nights.
 
4:57 AM
@LucDanton Far from enough. You need a few jupiters.
 
Anyway.
 
I blame science-fiction :(
 
I don't see why solar energy is bad.
 
user3010322
I want Hydrogen powa.
 
4:57 AM
> A German-French research team has created a solar cell that can convert 44.7% of the sunlight it receives into energy.
 
@Rapptz It’s a well known carcinogen.
 
@LucDanton And since Jupiter is more massive than the rest of the system without the Sun...
 
forgive me ;_;
 
@LucDanton Funny.
 
user3010322
> That technology was originally used in space applications.
 
user3010322
4:58 AM
space applications > dis gon b cheap fucking expensive!
 
Hey I didn't say cheap, I said efficient
Oh god, the comment
> Well the catch is that these are made by Germans and the French so until the Chinese can steal the technology we won't see it in action.
 
user3010322
Lol.
 

« first day (1204 days earlier)      last day (3735 days later) »