« first day (772 days earlier)      last day (4166 days later) » 

sbi
2:00 PM
Given a tuple type tuple<T1,T2> and some type T3, how do I figure out the type tuple<T1,T2,T3>?
I mean, generally.
 
@Xeo Ewwww, null terminated lists.
@sbi tuple_element.
I suppose there is one for TR1.
 
Xeo
@sbi tuple_cat?
 
@R.MartinhoFernandes erm. he wants to synthesize a new tuyple by appending a new element, I think
 
I misread that.
 
2:01 PM
@Xeo I remember that flying by once
 
Xeo
@sehe lol
 
Without variadic templates, there is nothing in the standard.
 
sbi
@Xeo I had hoped for that, but it doesn't seem to be in my TR1 implementation.
 
(To use tuple_cat for that you would need decltype)
 
Xeo
@R.MartinhoFernandes Only if you actually wanted the type. Maybe you don't!
 
sbi
2:02 PM
@sehe Still, that seems to be the only way to get at that stuff.
Darn. Is the nil type used by std::tuple at least standardized?
 
Xeo
no
 
sbi
Oh, right. I can use tuple_size for recursion.
That is going to be one ugly piece of template hackery.
 
Xeo
But working with tuples in a non-variadic environment must suck hard.
 
@Xeo +1. Supposingly there is a service pack to VS being prepared.
 
Xeo
@BartekBanachewicz Not for VS2010 :P
 
2:04 PM
@Xeo 2010 was 2 years ago, IIRC
 
Xeo
@sbi Why do you need to dick around with TR1?
 
@Xeo Old GCC.
 
Xeo
Ew
My condolences.
 
sbi
@Xeo I have written such beasts myself at least twice. When you know where everything is, it's not hard. Also, those where strictly recursive templates (working with head and tail), rather than hiding this behind a seemingly linear interface, as std::tuple does.
 
Anyway, now I am having flashbacks about tuple_cat. Why did you have to trigger my PTSD.
 
Xeo
2:05 PM
@sbi IIRC, boost::tuple is based on head/tail
@R.MartinhoFernandes What?
 
by the way, if you are bored (and using newest Chrome), we've created this in 3 days. Just don't call me a JS traitor.
 
Sep 1 at 15:06, by R. Martinho Fernandes
user image
 
sbi
@R.MartinhoFernandes What do you mean, "old"? The old one is 2.95. We use the new one. 4.1.2, that is, IIRC.
 
sbi
@Xeo Yeah, but how do I get at this?
 
2:07 PM
I've found a templated function that can only take a long as it's template argument. What is the point of template then?
 
Xeo
@R.MartinhoFernandes Wtf is that even. Ordering the types in a tuple for best size?
@TonyTheLion compile-time integer? (like, array size)
 
@Xeo Ordering the types for best size when tuple_catting. I will write a blog post about this one day.
 
sbi
@TonyTheLion You found a function template, dammit!
 
Xeo
@R.MartinhoFernandes And I guess the grey ones are empty types?
 
@Xeo No, the grey ones are padding.
 
2:08 PM
@BartekBanachewicz I don't get it, it's a javascript thing, but we have to download it ?
 
Delicious pudding.
 
@Xeo runtime only
 
Xeo
Oh
 
@BartekBanachewicz JS traitor!
 
@kbok umm, nope? Just click on the 04 link
 
2:08 PM
Both libc++ and libstdc++ do EBCO to get rid of the empties already.
 
@sbi yea that.
 
@BartekBanachewicz Oh, I thought it was a blog article.
 
@StackedCrooked in my defence : JS does suck. Oh, so terribly.
@kbok It's github pages.
 
@TonyTheLion What?
You are not making sense.
 
@TonyTheLion How is the restriction implemented?
 
2:10 PM
@R.MartinhoFernandes the operation being done by the function with the template arg is done at runtime, not compile time
is what I meant
 
@TonyTheLion typeid(T) == typeid(long), or something like that?
 
wtf
 
@StackedCrooked no, it's in the function name
 
10 mins ago, by sehe
@Xeo I remember that flying by once
^ What I meant
 
the function is called LongSomething
 
2:12 PM
@R.MartinhoFernandes What's the complexity of doing that btw?
 
@BartekBanachewicz Can we move the camera ?
 
and I almost used it with a std::string
which the compiler accepts
 
@LucDanton Coming from the guy who enters the room saying "Delicious Pudding"
 
I'd be interested in graphs totally serious benchmarks, too.
 
cause it's not checked
 
2:12 PM
@kbok W/S/A/D + mousewheel. Sorry, it's in very dev-ish state right now.
 
@sehe That was on topic!
 
@BartekBanachewicz heh :) fun.
 
@TonyTheLion Maybe it's written by a proponent of dynamic typing.
 
@kbok Well, I hope for it to be playable in about 2 months. Depends on how much time I will have for it, but it's definitely worth looking into. Much more convenient than desktop clients.
 
@StackedCrooked I have no idea
 
2:14 PM
@LucDanton Asymptotic or masochistic complexity?
 
anyway, I almost got tricked.
 
@R.MartinhoFernandes I only know of the first kind.
 
what is this treachery?
 
@Xeo btw, for extra masochism I made it work with all tuple likes, including arrays.
 
Xeo
heh
 
2:15 PM
@LucDanton The second kind is the complexity of implementation.
I will try to graph something when I get home.
 
@R.MartinhoFernandes Well I'm interested in what you wrote, yeah :v
 
I still need to get around to cleaning up the code one day.
 
Like how my reordering is linear. ish.
 
How can it be? Sorting will be at best Ω(n log n), no?
 
@R.MartinhoFernandes Yep, assuming horseshoe means O
 
2:18 PM
@sbi Wait. I thought your previous trouble with buffers and stuff was because you had no rvalue refs?
 
I don't sort. It's two scans IIRC.
 
sbi
@DeadMG I don't have rvalue refs.
 
VC10 has rvalue refs
 
Possibly three actually.
 
Xeo
14 mins ago, by R. Martinho Fernandes
@Xeo Old GCC.
 
2:19 PM
@Neil No, omega means omega (lower bound).
 
sbi
@DeadMG I'm just using VC because I can write a test program there. Writing a test program that's running on an embedded device has severe drawbacks.
 
ah, OK
 
@LucDanton You are talking about your mapping thing, right?
 
confusion cleared up
 
You have the target order as a given, IIRC.
But I need to sort to find that order.
 
2:20 PM
@R.MartinhoFernandes Yes. I'm not comparing our unrelated things of course, but I'm amused by all the metacomputing going on.
 
@R.MartinhoFernandes Omega for sorting is n
Which is to say, best case scenario is you don't have to do anything
 
Omega does not mean "best case scenario".
 
@R.MartinhoFernandes "lower bound", my pardon, sir
 
But using "lower bound" makes no sense in your sentence.
 
private:
		//Soldiers go here.
	};
funny or not?
 
2:24 PM
FWIW, Ω(n log n) is a subset of Ω(n), which is a subset of Ω(1), which makes them all correct answers. The difference is that the latter two don't give as much useful information.
 
@R.MartinhoFernandes If you're dealing with only integers, you could do an O(n) radix/bucket/pigeonhole sort.
 
@TonyTheLion Only if the commit message says "Author: Ryan"
 
@DeadMG I am dealing with types.
 
Shady types, I might add
 
how are you sorting types?
 
Xeo
2:26 PM
@R.MartinhoFernandes And with their size and alignment, which are integers
 
sbi
@sehe Oh the guy from that Spielberg movie, right? Whatsname? Ah, Shaving Ryan's Privates.
3
 
@Xeo I am sorting (integer, type) pairs if you want.
 
Xeo
Sure, but the soring criteria is just the integer
Right?
 
@sehe lol
 
@sbi That sounds more like gay porn.
 
2:28 PM
finally, with a lot of weird tricks, I made that invoke thingy - ideone.com/asMxsn . It even works in VC++
 
sbi
@JerryCoffin See here.
 
@sbi ...or should I say: "Hi all, and good night sbi"?
 
Xeo
Ahaha
 
sbi
@JerryCoffin I was just wondering whatcha doin here.
 
2:29 PM
I noticed this naked_xml_oarchive
 
@Xeo Yes, and?
 
in boost serialization
 
sbi
@TonyTheLion Really, "oarchive"? Must have been written by a Bavarian.
 
Xeo
@sbi lol
 
@R.MartinhoFernandes Then you're sorting integers- the types just happen to be associated with them.
 
2:30 PM
@sbi I fail to get the joke
 
Xeo
@sbi, you in a punny mood today?
 
you could still use a bucket/radix/pigeonhole sort.
 
@sbi A little new snow, so I needed to check that there was school today.
 
(actually, no, it is not just integers; but that's not relevant)
 
sbi
@Xeo Sadly, you'd be the only one around here getting this.
@TonyTheLion A Bavarian would pronounce "archive" as if it was written "oarchive".
 
Xeo
2:31 PM
@TonyTheLion Pronounciation in Bavaria for "a" is "oa" as in "woah"
@sbi "oa schiff"
@Abyx That looks like it's way more complicated than needs to be.
 
oah right
 
sbi
@Xeo And there's always the one of the Saxonian on the Londoner Xmas market, asking for "äh tännschen, please"... Groan.
 
@DeadMG Can you write a swap for type lists that works in constant time?
 
@Xeo it can be simpler? but how?
 
@Abyx Yay, no std::function!
 
sbi
2:34 PM
@Xeo is now lying under the table, holding his sides.
 
a swap for type lists?
as in, the head<item<item<item<item<item<item<tail>>>>... thingies?
 
typelist<T...> is fine.
I use tuple, btw.
 
careers.stackoverflow.com/jobs/26962/… - i wonder if those guys actually know what Hard-coding means...
2
 
well, logically, if you have two typelists, then just create a struct that typedefs them in the reverse order of it's arguments
but I think I'm missing something here... do you mean the items in the typelists or what?
 
@DeadMG Yes, the items in the typelists.
Something like swap<0, 1, typelist<T...>> would swap the first two elements
 
2:38 PM
right, now I actually understand the task
 
sbi
"If you are excited about solving problems no one ever solved in tech industry before..." When I read that, my attention wanders, and I simply can't keep my eyes focused.
If you are able to write a job ad that no one ever wrote in the tech industry before, come back bothering me with it.
 
I think I can do it without swap, but it will still be messy.
 
Xeo
@sbi oh boy
 
@Ivan0x32 lol
 
offhand, probably not
 
sbi
2:39 PM
@Xeo Still gasping? :-/
 
Xeo
(I was afc for a bit)
 
but you don't need swap to write a bucket sort, I'm fairly sure
 
sbi
@Xeo We know.
 
> learn exciting new programming languages and platforms every month
This may be too much.
 
i should probably apply, they're job title actually perfectly describes me :)
 
Xeo
2:40 PM
"afc" as in "away for cake"
(Oder "afk" - "Abwesend für Kuchen")
 
sbi
I thought that was "away for chuckling".
 
@R.MartinhoFernandes You must be running out of languages after some time
 
Xeo
lol
 
sbi
@R.MartinhoFernandes "Seven languages in seven weeks."
 
Xeo
@kbok "new programming languages" might imply that you will create them
 
2:42 PM
What? Don't look at me.
@kbok There's a large supply of esoteric languages.
 
sbi
@R.MartinhoFernandes Why would we want to look at you? You're a robot. Essentially, a piece of technical furniture. We're not looking at our fridges either, while chatting here.
 
Xeo
Seriously, that job offer looks like every buzzword ever was thrown into it
 
Xeo
Yeah, we got us a punape today
 
they all do i guess
 
2:44 PM
@sbi Y U SO MEAN today?
 
@Ivan0x32 put aside their ad, their actual product is prtty cool :-) although a bit too flashy for my taste..
 
Xeo
@R.MartinhoFernandes That would imply he isn't exactly that way every other day aswell - just worse, occasionally.
 
They act on me as demotivation-pictures, i look at requiriemnts and begin to understand what i biowaste i am :)
 
sbi
@R.MartinhoFernandes I'm The Grumpy Old Ape. What did you expect?
 
@R.MartinhoFernandes I'm not sure I want to learn that as a day job.
 
2:46 PM
@sbi It should really say I'm The Trolling Grumpy Old Ape.
 
sbi
@Xeo If I am occasionally worse, then how could I be exactly the same every day?
 
@sbi Is that a link to the pic the pirate (?) posted earlier? You might add [NSFW] there then
 
sbi
@TonyTheLion Why? You're a lion, not an ape.
@sehe What?
 
@sbi I'm talking what your thing should say.
not mine
man, I slept really badly last night
 
sbi
@TonyTheLion My thing doesn't say a word. It's got a mouth, but no vocal chords.
 
2:48 PM
"Hardcoder for multiplatform" <--- Dafuq does that even mean?!
 
-.-''
 
@sbi oh go back to being grumpy somewhere else.
 
sbi
@TonyTheLion Why?
 
@sbi cause you're annoying
 
sbi
@TonyTheLion oh go back to being annoyed somewhere else.
 
2:50 PM
I would, but got nowhere else to go atm
lol
but then, you could say the same
anyway, I'm tired, so your argument is invalid
 
sbi
@TonyTheLion oh go back to being tired somewhere else.
 
hey guys, does anyone know of an online draw stuff service? I need to quickly make some float charts.... I can't install any softwares on this machine right now.
 
@sbi You are not sounding very old now.
 
@BeyondSora What's a float chart ?
 
@sbi did I bring out the child in you?
 
2:52 PM
UK govt announce no more bananas will be imported after Christmas this year- to save shipping space for war material. Shops already sold out
 
sbi
@R.MartinhoFernandes That's because, actually, I am a 18yo girl.
3
 
OMG, shortage of bananas.
@sbi If that is true, you are one ugly girl.
I don't think they can fix that with makeup.
3
 
sbi
@TonyTheLion Nah, I'm just a mirror for your inner child.
@R.MartinhoFernandes I Get over it. I grew up with a shortage of bananas.
 
he's also the FBI
 
sbi
@R.MartinhoFernandes For a piece of technical furniture, this might be true.
 
2:53 PM
@sbi nor are you living in the UK
 
@kbok well squares and rectangles... I guess MS Paint ll do for now
 
@sbi oh interesting
I'm learning all the time
 
fuck
my brother's going away for six months in three days
 
@BeyondSora diagram.ly
 
2:55 PM
@DeadMG that bothers you?
 
sbi
@TonyTheLion It brothers him.
 
@kbok oh wow AWESOME. Thanks :)
 
@TonyTheLion It bothers me that he hasn't gone already ^^
 
@DeadMG and...
 
@DeadMG You don't like your brother?
@sbi I am not sure what you are trying to say now.
 
2:57 PM
not so much that
more so much that I'm a loner by nature
can't sing loudly, and he uses up the few interwebs we have
 
Can you actually sing at any level of loudness?
 
@sbi dat pun
 
hah
 
sbi
2:58 PM
@R.MartinhoFernandes I am saying that, as a robot, your aesthetic preferences are irrelevant.
 
I can't sing well, but I can sure sing loudly
helps me focus
 
That might explain why he does not like it.
 
indeed
 
sbi
I do have to remember that. Not that one day I'd offer the guy a job, and then he sits next to me all day, singing wrongly, but loudly, claiming he can't focus otherwise.
 
2:59 PM
Singing is sooo mainstream.
 
plus, it's usually family-friendly joys like Eminem and Marilyn Manson
 

« first day (772 days earlier)      last day (4166 days later) »