« first day (860 days earlier)      last day (4314 days later) » 

Xeo
Xeo
13:00
Here's a prototype. Note that it requires the argument to be of type std::function, so that you can have a definite signature. — Xeo 1 min ago
:P
yaay, exam time. later guys
Haaave fun!
certainly~
@Xeo looks great! you should post it as an answer, so other people use your code (and so I can throw you some points)...
Xeo
Xeo
@kfmfe04 Sorry, that thing uses implementation-internal stuff, I have no plans to support that. :3
13:03
@Xeo lol - ok...
Ell
Ell
TMP is so magical
@Xeo Just write your own placeholder<N> with specialisations.
Xeo
Xeo
@R.MartinhoFernandes Eh, the placeholder amount is implementation defined, IIRC...
TMP is still mind-boggling to me (at the very least, hypnotic...)
13:06
it could be the variadics, the recursion, or the syntax - I can't tell which...
is_placeholder<T>::value!
Xeo
Xeo
@R.MartinhoFernandes Whut?
That thing exists?
Oh, wait, is_placeholder.
of course it does
Xeo
Xeo
Meeeh
Okay, I'll write an answer...
Anyway, assuming 10 is fine.
13:07
@Xeo coolios
Nevermind, now I see what you want.
is_placeholder<>::value does the reverse.
Xeo
Xeo
Yeah, but you can specialize is_placeholder.
so !is_placeholder<>::value.
lol
@Xeo Oh, you mean use your own placeholders?
Oh god.
This feels so dirty.
... I love it~
Xeo
Xeo
13:09
@R.MartinhoFernandes Yea
@ThePhD I'm too sexy for my shirt.
I was thinking of placeholder<N> being an alias to _N, but that's better.
Xeo
Xeo
@R.MartinhoFernandes Done.
user1357851
13:12
@ThePhD are you too sexy for malloc too?
@Telkitty Every C++ programmer is- even the ape.
user1357851
@DeadMG ! poor ape :p
@Telkitty I'd use malloc, but only if you promise to free me~
btw robot
What's the silly destructor for?
13:13
I fixed my type inference
Main() {
    Help() << "Hello, World!";
}
Help() {
    return cpp("<iostream>").std.cout;
}
winner
@DeadMG the calling a function and then calling '<<' on it looks odd, threw me at first
user1357851
@ThePhD if I can malloc you, I can sizeof you before I free you ;)
@R.MartinhoFernandes I'm... not sure. I should probably get rid of it, now that I think about it.
I just realised that you cannot pass function templates as template arguments, only class templates … why is that?
@ThePhD Wait, isn't that struct in the union exactly like DXGI_MODE_DESC? What's it for then?
13:17
i.e. the following is wrong: template <template <typename U> void (*F)(U)> void g();
@R.MartinhoFernandes The main goal was abstraction. So that when I move to OpenGL, I just chop out the DXGI_MODE_DESC and suddenly I have a perfectly working version for OpenGL.
@ThePhD Why not simply have a function that returns a DXGI_MODE_DESC for an instance of that struct?
Xeo
Xeo
@KonradRudolph Function pointers can't be templates.
I'm not seeing the point of the union in this regard
@Xeo … makes sense
@Xeo but it also doesn’t work with a function template
Xeo
Xeo
13:19
I'm still pondering if I should submit a proposal to allowed identifiers to be passed as template arguments.
@KonradRudolph There are no objects of function type.
@Xeo There's still the []id-expression thread on std-proposals.
Xeo
Xeo
@DeadMG Yeah, but that's another thing
simple fact is, there are lots of proposals which could be worth having, but few people who write up actually submittable proposals.
@Xeo I didn’t say there were
@DeadMG This... ... would actually work nicely.
13:21
@Xeo ignore me, I’m just a sonfused coul
Xeo
Xeo
:)
1
A: How to implement an easy_bind() that automagically inserts implied placeholders?

XeoWith the indices trick and the ability to tell std::bind about your own placeholder types, here's what I came up with: #include <functional> #include <type_traits> #include <utility> template<int I> struct placeholder{}; namespace std{ template<int I> struct is_pl...

Wai~
@KonradRudolph plonk!
Upboats, all the upboats
@R.MartinhoFernandes (I stole that from Munchkin)
Oh look - an outbreak of code in the lounge. No flag fight!
13:23
Hiya peeps! :D
Whats shakin?
@Xeo ty - I'll let it stew a few days before accepting it (to attract more views/pts for you)
@DeadMG : How you doin now, after the scan that is?
@GamesBrainiac @melak47 house - a madman with a chainsaw is after him.
@GamesBrainiac Exactly as before.
it doesn't treat anything :P
ITT: gallblader scans don't kill people.
13:25
@DeadMG: lol, how we wish it did. Just so you know, I hope you get well soon! :D
@MartinJames Say wat now?
@DeadMG
@KonradRudolph epic game, very epic game
@R.MartinhoFernandes didn't kill this time FTFY
@thecoshman Which time? I don't remember any people from the Lounge having a gallbladder scan lately.
:P
@thecoshman I concur. We fought many a valiant battle in it. Sometimes I won, sometimes others lost. :p
Thinking I might let the face fluff grow... mostly down to being too lazy to hack it back
@KonradRudolph and oh man, so many doors kicked down
user1357851
Does anybody here know Qt?
Picked up Cthuluhu Gloom the other day. It's actualyl a rather good spin off, probably even better then the core game
¬_¬ fucking one boxes
@thecoshman THANK YOU! Finally somebody who also says that. Most people just go “I take a card” – no, motherfucker! You kick in the door, or you take a treasure.
huh
I'm sitting here watching Community
isn't munchkin a pretty lousy game mechanically?
13:30
and Tricia Helfer walks in
and I'm like, "Wat".
@jalf well, it's not got a huge epic rule book, if that's what you mean?
@jalf No, I find it rather good.
user142019
Okay.
@thecoshman no, I mean the rules it's got aren't very good, they don't lead to a good game experience
I think what make Munchin so great is that the rules are simple, you can focus on having fun
13:31
Oh I've almost forgot that Community aired yesterday
user142019
I added syntax for templates and for pattern matching to Zoidlang spec.
@jalf really? then you are playing with the wrong people IMO
@Zoidberg Wat.
take the endgame, it's one of those endless "keep trying until everyone else runs out of cards to stop you", rather than an epic "I won because I played well"
Can anyone tell me what this exactly means : __PURE_APPDOMAIN_GLOBAL extern _CRTDATA2 ostream cout
13:32
@KonradRudolph what sick people you play with
why the fuck would you add templates to a dynamically typed language?
user142019
@DeadMG I added syntax for templates and for pattern matching to Zoidlang spec.
not to mention that templates are terrible.
user142019
It's not dynamically typed.
@jalf that's not the end game at all, oh you mean every one else ran out of ways to stop you?
13:32
@thecoshman no, I think it's more that I play a number of other games with the same people. I'm not saying you can't have fun playing Munchkin, just that when you do, it's because of the people you play with, rather than the game
@thecoshman yes
@jalf oh I guess, but I have often had games where it's a bitter claw to the finish that lasts for many turns in a row
It's like Monopoly in that respect. I've had fun playing Monopoly because I played it with fun people. But the game itself doesn't really lend itself to an awesome time
I think it breaks down if people are not mean enough with people from the start, letting them get ahead
@jalf care to give examples of games you think do?
user142019
@DeadMG Why?
13:34
@thecoshman any particular kind? Lightweight easy-to-play ones, I'm guessing?
@jalf Monopoly mechanics by themselves are quite crappy.
@R.MartinhoFernandes Because she overwhelmingly tends towards sci-fi action roles?
@R.MartinhoFernandes yup, which is my point. So are Munchkin's mechanics. But you can still have fun if you play with the right people
@Zoidberg They're horrifically restricted, terrible syntax, and incredibly inefficient.
@DeadMG Zoidlang is dinamically typed?
13:35
@jalf anything really, curious to see what you think makes a good game
user142019
@DeadMG yes my syntax is really the same as C++'.
@R.MartinhoFernandes Yep.
@R.MartinhoFernandes I think it's because it's a last man standing game, rather then a race
@Zoidberg That's the least important part.
user142019
@DeadMG Nope.
13:36
@Zoidberg, is there a specification somewhere I can read?
@Zoidberg Huh. You musta changed that since I last looked.
user142019
user142019
@DeadMG yup.
anyway, templates are still suck.
@Zoidberg as told by Light : "What a fuckwit language"
user142019
13:37
brb
if you want Turing-Complete compile-time function evaluation, then write a proper function system
@thecoshman I think it's still a race. A race to whomever gets to own the most expensive side of board first.
if you just want parametric polymorphism then stick to C#-style generics.
@Zoidberg and with that opening, I stop reading
The late game of Monopoly is terrible.
13:37
@thecoshman ok, of the ones I've recently played Galaxy Trucker is just brilliant. Slightly heavier in terms of rules, but not much, and still hysterically funny and comical. I recently played one called Escape from the Cursed Temple or something like that (very Indiana Jones), which was ridiculously simple and lightweight, even more so than Munchkin, but still a ton of fun to play
@R.MartinhoFernandes perhaps, but then perhaps the 'goal' should be changed.
@jalf yeah, not played either of those :P
Throw dice, hope you will land in between those places that will ruin you, hope someone will land in the places you own that will ruin them.
@thecoshman You should. Trust me, you won't regret it :)
@jalf perhaps I will :P
Perhaps it's a good thing that the late game of Monopoly doesn't lend itself to stretching out.
13:39
The latter game is absurd in that the main mechanic is literally just "each player repeatedly rolls 5 dice as fast as possible", and yet, it actually works as a game
one sec though, let me find something you need to see :)
@Zoidberg, what about some code samples?
@thecoshman Watch this when you have 40 minutes :)
@R.MartinhoFernandes it doesn't? you have to slowly whittle every other player down?
@jalf at work, so off I go to watch :P
@thecoshman Slowly?
user142019
@thecoshman not my problem.
13:41
@R.MartinhoFernandes unless one player is able to get a significant amount of the board first, it tends to swing back and forth for a while
user142019
// @Jeffrey
import IO

fn main() ->
    print("Hello, world!").
Xeo
Xeo
"fn"... seriously?
@Zoidberg, wat is .? What's wrong with ;?
@Xeo Agreed. It looks stupid.
you know
this is a really strange feeling, but
nyahahaha, my language has an implementation and yours doesn't
user142019
13:45
@Jeffrey see spec.
@thecoshman IME there is not real swinging back and forth. Unless you have a dominating board position you can very abruptly go bankrupt in two or three rounds anyway. You may spend a few rounds earning some money, losing some money, but that doesn't change the fact that if the dice land you in a couple of hard places in sucession you are screwed. It's very hard to regain position in the late game.
@DeadMG lol
@thecoshman there's some nice inspiration there for really genuinely good games :)
@R.MartinhoFernandes oh sure
user142019
@DeadMG you started much earlier so stfu. :P
13:46
And by very hard, I mean impossible.
@R.MartinhoFernandes Monopoly is at its "best" when someone abruptly goes bankrupt. It is at its most painful when it just drags out forever
@Zoidberg, right
why are we talking about that game anyway? I should never have mentioned it
user142019
Function body starts with -> and ends with ..
@jalf @R.MartinhoFernandes have you watch Wheatons video series every two weeks on youtube?
13:48
@thecoshman I watched one or two episodes
@Zoidberg, what do you use to call the method sample on the object a then?
But I like Shut up & Sit Down better. :)
@jalf yeah seems nice
is it on youtube?
Seemed like the Wheaton thing was more "watch us play" than actually talking about games
@DeadMG lol, "I can do hello world and you cannot"
13:49
@thecoshman On Vimeo
@jalf : What language do you like the most?
@jalf yeah, not so much detail on the game, but I like the 'what it's like to play' vibe
Danish, I bet.
@R.MartinhoFernandes Indeed.
user142019
@Jeffrey a~sample
13:49
Would it be possible to write a unique_ptr wrapper for using custom deleters without template aliasing and without a lot of headache?
@GamesBrainiac uhhh...?
@Zoidberg Really? Really? Really?
user142019
@R.MartinhoFernandes Really! Really! Really!
@jalf What programming language?
I thought most languages had figured out that '.' is the best way to access members...
user142019
13:50
Or maybe :.
user142019
I'll see.
@GamesBrainiac C++, Javascript or SML :)
@jalf JavaScript? Really?
user142019
s/Javascript/JavaScript/
13:51
@AndreiTita ... you mean how unique_ptr already has a custom deleter parameter?
@thecoshman by the way, the video I linked to isn't anything like what they usually do. This was just one of them doing a talk at some games festival/conference thing as an one-off thing. Their regular episodes are different (but very entertaining and interesting)
@ThePhD No, it's just C inheritance. There's nothing special about ..
My JS usually has so much indentation, it gets scary to look at. Especially with jQuery in it
@GamesBrainiac Yeah, I think so. With the caveat that I had to come up with this list in something like 30 seconds. :)
@DeadMG No, he means not having to type the deleter type all over.
13:52
@R.MartinhoFernandes Oh, that.
Inheritance I guess.
but JavaScript is a cool language, as long as you don't have to mess with the browser DOM, which sucks and is evil and horrible
Slicing isn't even a problem.
@R.MartinhoFernandes But I need to rewrite the constructors right?
@AndreiTita Inherited ctors!
@DeadMG What.
No.
@Xeo Again? That was the only time it was reddited. (twice actually in two subreddits - about a day apart about two weeks ago)
@R.MartinhoFernandes Why not? That's exactly what I did for my COMDeleter.
@R.MartinhoFernandes VS2010 though, this is why I can't alias templates either.
Xeo
Xeo
@Mysticial Huh, I thought it was reddited earlier aswell - seems I was mistaken.
13:54
@jalf yeah so I see :P
@DeadMG, have you seriously created a language called
nyahahaha?
@Jeffrey No, and I don't see how you could possibly have that interpretation.
@jalf Yes, DOM is annoying. Recently, I discovered this language en.wikipedia.org/wiki/LOLCODE
Funniest language I've seen in a while.
@thecoshman I think it's great as a kind of whirlwind tour/introduction though. Just a kind of "here are a bunch of games we're super excited about and they're awesome and you should check them out"
@DeadMG, well there's LOLCODE, everything is possible
13:56
@GamesBrainiac Do you know Whitespace or Brainfuck?
@jalf I do know what you mean by "whitespace", but I am ashamed to admit that I have no idea what you mean by Brainfuck.
:P
@jalf indeed. Have you ever play Twilight Imperium?
@GamesBrainiac they're both silly toy languages kind of like LOLCODE
> I really wanted to end this post with an example of something at least believably useful, but that was almost impossible.
in whitespace, only whitespace is significant. Everything else is considered a comment
13:57
@jalf Oh, nope, haven't seen then. But I do get a kick out of seeing funny languages.
@jalf esoteric
@R.MartinhoFernandes That quote is familiar.
@thecoshman No, I'd like to try it, but it seems kind of overwhelming. Would have to convince my friends to dedicate an entire day to it :)
I actually tried lolcode. Its super fine to write! XD
13:58
@R.MartinhoFernandes Ah, yes.
and we'd probably only ever get around to playing it once or twice. We've already got a big backlog of games we want to play more
Like Space Alert. We haven't even played it with all the rules yet, so one day, we really need to pick up on that because it's a hilarious game
@jalf What games you play? I just finished AC 3. Hated it.
> Multiplication of two numbers WITHOUT using array
Where the fuck do these titles come from.
@jalf yeah, Only played it once. It seems like it is complex, but isn't once you have spent a round or two. Really does need a night dedicated to it though
I really need to try to push for more gaming
@thecoshman I am currently trying to get myself addicted to code.
14:01
@GamesBrainiac some code, I want fun
@R.MartinhoFernandes Argh, typename ...Args.
why do people still do that
it's typename... Args.
lol
Cue @Xeo with "no, it's class... Args"
@GamesBrainiac Getting addicted to coke is easier
Xeo
Xeo
@R.MartinhoFernandes ♥
14:02
Yeah, finally got TF2 to work on Linux.
@MartinJames Dunno. Code is a lot of fun, especially when it works.
I prefer typename because, well, the arguments don't actually have to be classes at all.
so using class is kinda dumb, since they might well not be classes.
'especially when it works' - yeah, always a downside :(
Hi
@GamesBrainiac try coke, never fails
14:03
Which one is faster : std::vector<> or a shared_ptr<> ? [DISCLAIMER: INTENDED AS A JOKE]
@thecoshman Don't think I will! :P
wat?
epic fail.
I'm so starring that.
Haha, I love how people react to dumb questions.
(I was kidding, obviously...)
14:04
@jalf tell you what 'Zombie Fluxx' has really impressed me. As far as gate way games go, it really is one of the best I have ever seen
I'm almost inclined to create a userxxxxx account just to ask that.
user142019
Oh a disclaimer. Unstar!
Well, enough people do it already.
@Zoidberg: As you wish. But without the disclaimer, I would look really really dumb.
user142019
I can't unstar it.
Xeo
Xeo
@DeadMG And I prefer class because everybody knows it can match any type, and it's shorter.
14:06
typ<Tab>
Xeo
Xeo
typedef, typename, nope. Saves nothing.
user142019
Yes typedef is really valid there (your autocomplete sucks).
Xeo
Xeo
@Zoidberg So your autocomplete does full lexical and semantical analysis and is still usable?
There's no typedef in my autocomplete because there's no typedef in my code.
It does zero analysis, btw.
Xeo
Xeo
14:08
@R.MartinhoFernandes Wut.
I chose to not install the clang stuff.
user142019
I don't use autocomplete at all except in C#.
@Xeo It uses the currently open buffers for completion.
If there's no typedef in sight, it doesn't suggest it.
Xeo
Xeo
@R.MartinhoFernandes Aha
I am quite happy with that. I think smart completion is more useful when you're exploring an API. Dumb completion works fine when that isn't the case.
Xeo
Xeo
14:11
Well, too bad I work with code that uses typedef.
Sadly, VsVim only uses the current file for that. I filed a bug a while back, but Jared has not fixed it yet.
So, I have to do with whatever IntelliSense manages to give.
@Xeo Well, actually, the plugin I use in vim does not use only prefix completion (that is actually available out of the box). So tnm<Tab> would probably work better in that case
Do you have VAX?
Xeo
Xeo
Nope
@R.MartinhoFernandes Do you use VS2010 or 2012?
Xeo
Xeo
Damn, I want to know how I can get VsVim in 2012 :/
@Xeo Tweet to JaredPar about it. I've found him quite responsive.
Xeo
Xeo
14:16
Hm, k
user142019
gist.io y u cache you piece of junk.
Xeo
Xeo
Maybe the problem is that I use the Desktop Express version? :s
maybe the problem is (╯°□°)╯︵ ┻━┻
Hmm. In 2010 Express versions did not support plugins, AFAIK.
Maybe it's the same for 2012.
Xeo
Xeo
Hm.. I do have the NuGet plugin, though (if only I'd remember what that does...)
Oh, package manager for VS packages.
And I can search for other extensions
14:25
hmmm
variable assignment is a statement in LLVM IR
user142019
I want LINQ in R.
@Xeo you know, you have 57 votes on this question stackoverflow.com/q/6242768/46642, but the answer of mine it refers to has only 28 :(
user142019
Oh hey Stack Overflow has a new stylesheet.
user142019
Tags are differently styled now.
Xeo
Xeo
@R.MartinhoFernandes That means we got about equal rep out of it! :)
14:28
You got more!
Xeo
Xeo
5
Also, I can't do more than link it first thing in the question, without blatantly promoting it.
6
Q: Who stole the tag shadows?

XeoJust an hour ago, they were still there! Now, it seems, somebody took 'em far away. Luckily, a buddy of mine had a unicorn-powered time machine in the backyard, so I can deliver proof of the evil deeds: Before: After: On a personal note, I liked those shadows. Good buddies. Can haz back?

I'll take a look at it, but could you please explain what lines of my code I should modify to get gluLookAt() to work? — pipsqueaker117 43 mins ago
@BartekBanachewicz That's quite a neat introduction to boost, btw.
@jalf that was indeed a good talk
The old edition (covers boost 1.42) is available for free online.
I wouldn't pay the price they ask for though.
Xeo
Xeo
14:39
global.parse("__global", pt.get_child("__global"), global);
Too much "global"?
The heck's that.
hmm, fuck.
in the LLVM type system, all variables are referred to by pointer.
Xeo
Xeo
global is a struct holding some config stuff, and pt is a boost::property_tree::ptree.
14:40
@Xeo ¬_¬ why is global being parsed itself?
@DeadMG I'm still struggling to setup my Lexer -> Parser -> LLVM "pipeline". I've been toying with QUEX & boost::spirit but I have't gotten very far.
Xeo
Xeo
@thecoshman That part is a bit ugly -- parse takes the name, the ptree to parse from, and the "global" options, since every user needs those (global is of type user_config).
And I think I can actually refactor that.
Yeah, refactored.
That was quick.
Xeo
Xeo
Move global option insertion out of parse, stuff it into the loop where all users get parsed. :P
@Xeo We're even now!
Xeo
Xeo
14:44
I noticed
@Borgleader The trouble comes when your own type system and LLVM's type system disagree.
if you do x := 1; in Wide, then I say that x is an int, but LLVM wants int*
does wide allow custom operators?
of course it does.
@DeadMG so I can have operatorSUCKIT!()
user142019
Do you mean real custom operators or only overloading of existing operators?
14:47
@Zoidberg At least #2 and #1 if I can be arsed.
@Zoidberg I mean custom operators, which of course is not just operator overloads
user142019
In Zoidlang overloading is though pattern matching.
Not sure I'd like that, seems like it would get awfully confusing
eewwww
@Zoidberg how exactly?
14:53
Standard question: I cannot convert a local variable to a non const reference, eg when calling a function which takes a non const reference with a local variable. At least that is what I remember from C++03, but where can I find that in the standard?
@R.MartinhoFernandes it took my attention because of the price
Xeo
Xeo
@Nils Wat.
user142019
fn print[class T](T x) -> undefined.
fn print[match Int](Int x) -> print(toString(x)).
fn print[match Array[_]](Array[_] x) -> print("(" ++ join(", ", toString(x)) ++ ")").
fn print[match String](String x) -> it's magic.
Xeo
Xeo
Code, please.
@Zoidberg That's some mighty redundancy there.
Well I am just looking where I can find this in the standard.
user142019
14:54
@Xeo may not be all in the same place.
@Nils Can you show an example of what you mean? I don't understand.
Xeo
Xeo
@Zoidberg I meant the [match TYPE](TYPE ...) part.
user142019
Oh.
user142019
Well maybe you don't use the template parameter in the function parameter list at all.
@R.MartinhoFernandes should I buy it?
user142019
14:57
fn random[class T]() -> undefined.
fn random[match Int]() -> /* some magic to return a random integer */.
fn random[match Double]() -> /* some magic to return a random double */.
@BartekBanachewicz For that price? No. The first edition is free here: en.highscore.de/cpp/boost
Xeo
Xeo
@Zoidberg Mhm, that was a template parameter. And how exactly does that relate to overloading? Are all of those just specializations?
user142019
@Xeo yes.
Xeo
Xeo
I see.
@R.MartinhoFernandes neat
14:58
that's not the same thing as overloading at all.
Who cares. Zoidlang sucks.
12
Whoa, that was really effective starbait.
Anyway, my day was terrible
user142019
Idem.
14:59
@R.MartinhoFernandes I think something like this: stackoverflow.com/questions/2530624/…

« first day (860 days earlier)      last day (4314 days later) »