« first day (1393 days earlier)      last day (3547 days later) » 

6:00 PM
@Puppy What? struct t { std::string var; }; f(t().var); does not look illegal to me.
 
So if I use the print command in gdb and press tab twice it start to print all symbols.
 
@Jefffrey Eliding it is.
 
-1
Q: C++11 std::thread vs windows CreateThread

KaMyLuSWhich option is better for creating (and managing) threads under Visual C++: C++11 std::thread or WinAPI functions (such as CreateThread, _beginthreadex, etc.) and why?

 
@Puppy What does your get elided to? f(std.string())?
 
@Jefffrey Yep.
@milleniumbug Your answer is bad and you should feel very bad.
 
6:10 PM
@Puppy Thank you for feedback.
 
cross-platformity is an almost irrelevant benefit compared to RAII/arbitrary function objects.
and frankly, even that isn't that great.
 
wat
 
Xeo
Dat Aldnoah.Zero
 
> /usr/include/c++/4.8/bits/unordered_map.h:106:45: error: ‘value’ is not a member of ‘std::__not_<std::__and_<std::__is_fast_hash<Wide::Semantic::PairTypeHasher>, std::is_default_constructible<Wide::Semantic::PairTypeHasher>, std::is_copy_assignable<Wide::Semantic::PairTypeHasher>, std::__detail::__is_noexcept_hash<std::pair<Wide::Semantic::OverloadSet*, Wide::Semantic::OverloadSet*>, Wide::Semantic::PairTypeHasher> > >’
typedef typename _Hashtable::key_type key_type;
wat.
 
did you write value instead of value_type somewhere?
 
6:16 PM
I didn't write
I think I forgot a const, maybe.
 
I constantly forget them.
 
nope.
 
Xeo
aaaand Mahouka is out /cc @Mysticial
(damn I missed doing this!)
 
@StackedCrooked great success
 
@Xeo Yeah, fuck you and you suck. :)
 
Xeo
6:18 PM
 
@Xeo awesome!
 
Xeo
@Puppy Forgot typedefs in the pair hasher?
 
I thought they were not required in C++11.
my other hashers have none and they're all accepted.
    struct ClangTypeHasher {
        std::size_t operator()(clang::QualType t) const;
    };
    struct PairTypeHasher {
        std::size_t operator()(std::pair<Type*, Type*> types) const {
            return std::hash<Type*>()(types.first) ^ std::hash<Type*>()(types.second);
        }
    };
first one is A-OK, second one rejected.
 
Xeo
hm
 
maybe it's because the actual map type is uses pair<derived*, derived*> as it's key.
 
Xeo
6:21 PM
oh, I just saw that C++14 adds default-hashs for enums
 
I assumed that const pair<derived*, derived*>& would have no problem with pair<base*, base*>.
 
Xeo
@Puppy which of those is the argument, and which the parameter?
 
@Xeo finally. MSVC already offered it, but GCC didn't and it was annoying.
 
Xeo
@Puppy yeah
 
@Xeo Type* is the base.
 
Xeo
6:22 PM
@Puppy Okay, that should be fine
unless the inheritance is private or something
 
n.
it's not but the types are incomplete at the point of declaration.
and MSVC is way more lax w.r.t. incompleteness.
 
Xeo
that might be a problem
 
right, the others are exact matches.
yep, problem solved.
just for sanity check
    struct PairTypeHasher {
        template<typename T> std::size_t operator()(std::pair<T*, T*> types) const {
            return std::hash<T*>()(types.first) ^ std::hash<T*>()(types.second);
        }
    };
    struct PairTypeEquality {
        template<typename T> bool operator()(std::pair<T*, T*> lhs, std::pair<T*, T*> rhs) const {
            return (lhs.first == rhs.first && lhs.second == rhs.second) || (lhs.first == rhs.second && lhs.second == rhs.first);
        }
    };
should be fine if I want order-independent comparison/hash, right?
 
Sorry, I'm clueless.
 
is IMAX awesome?
going to watch a movie in IMAX when I go to bucharest next week
 
6:35 PM
It's nice for a brief while.
And it keeps trying really hard to impress you.
 
@AlexM. Depends on which IMAX theater you're talking about.
 
hey stacked
 
@Insilico well 2 years ago this was the only one in Romania
 
could we think about a means of deploying binaries that does not involve SVN commits?
 
6:37 PM
didn't notice any others opening up
but I didn't look very hard
 
I'm just looking at the size of the repo on my SSD and it's like, 700MB.
 
@Puppy yeah
 
If the theater is not at least 6 or 7 stories high it isn't the "huge dome that covers your FOV" IMAX thing.
 
Constructor delegation in C++ ≫ Constructor delegation in C#
 
plus I'd like to auto-deploy from TeamCity on successful build if possible.
not that I'm complaining about your free service
 
6:38 PM
Just send me public key.
 
SSH key?
 
Yeah. Then I can authorize it.
 
sure
 
@Insilico I think it looked like this when it was being built
 
6:39 PM
@AlexM. I remember watching some nature documentary in the IMAX in the Science Museum in London before 3D was in every cinema - people were taking their glasses off in bits when things appears to go near your face
@PolymorphicPotato You disagree?
 
I don't even know what you were trying to say.
Please be less cryptic.
 
E.g.
 
right
 
   A(): num1(0), num2(0) {average=(num1+num2)/2;}
   A(int i): num1(i), num2(0) {average=(num1+num2)/2;}
   A(int i, int j): num1(i), num2(j) {average=(num1+num2)/2;}
 
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4cpDKDBhG+6nFbS1RG7jvR+mxnSXAbhJxqNNb/RgQ+5mZihy8LeT‌​JnBTFrgvg+0DTpsJQV8qbpkjQ8M6my52My5rUPHL86iOpYn2ekhWmELwZdLMh3iekDLjeaIPOb0wgMFfi‌​epgLrj4En43ry1WpXfsx12NA4rg1rkYj8td/8FqqJp6ZJvTy/MY046E+0A5tFSdJkezPR7eGzjwbINt5k‌​QpxgDHbmOCw8GFYMsfFN0Nk062xd9/i0oyduaeGwrT3NsPspjPQBHmhtjjQjWwWPZqcZH2LKxae3A5A57‌​gg6FjQaoYI/6kzKoWznb3/f1bzHL8sD98bq0DsGXxExOjVw
I didn't realize they were so big.
 
6:41 PM
@AlexM. Can't tell from that. It probably is an IMAX theater. Generally if the screen covers your entire field of vision, then it's an actual IMAX setup.
 
@Puppy thats what she said
 
Guardians of the Galaxy seems to be the latest IMAX movie playing here
 
Confusingly there are also other things branded as "IMAX" but it's not the "giant screen" kind.
 
@AlexM. s/here/everywhere/
 
@Puppy There seem to be some funny characters in there according to vim.
 
6:43 PM
@AlexM. Marvel just keep putting out more hitters.
 
@Insilico looked at the cinema thingy online, apparently the IMAX in AFI Palace Bucharest is the only IMAX theater in Romania still
 
But I'll try anyway.
 
@StackedCrooked Personally, I don't know shit about SSH keys. I just followed the github guide and did what they told me to and that was what came out :P
 
@Puppy You have \r or newline something?
 
I am on Windows.
the utility came with the github client, so maybe it does use \r\n for newlines on Windows machines.
 
6:44 PM
Derp wrong example
A(): A(0){}
A(int i): A(i, 0){}
A(int i, int j) {
   num1=i;
   num2=j;
   average=(num1+num2)/2;
}
vs public MyClass(MyOtherClass inputObject) : this(inputObject.ID, GetHelperText(inputObject) {}
 
yes, we've all seen delegating constructors.
 
@Kian y u no init list on the last one =/
 
@Borgleader Huh?
 
A(int i, int j) : num1(i), num2(j), average((i + j)/2) {}
 
doesn't look exactly like the IMAX dome thingies I found in other places
 
6:47 PM
default-construction is a sin.
 
@Borgleader Oh right it's not my example - I expect it was for clarity
 
Xeo
@Puppy eh
 
delegating constructors is something I should implement in Wide.
shouldn't be too difficult.
 
@Puppy ssh deadmg@stacked-crooked.com
Let me know if it works.
I'm not a sysadmin so I probably fucked up.
 
@Puppy o_0
 
Xeo
6:56 PM
@StackedCrooked allowing SSH should be hard to fuck up
 
hmm
 
@StackedCrooked amd puppy is not a linux user, so he'll probably fuck it up too
 
You'll need to use putty or something.'
 
@thecoshman intel puppy > amd puppy
 
@Puppy oh, I forgot to add you key to your home dir. fixed it.
 
6:58 PM
yeah, I'm using the ssh utility that came with github for windows, and it keeps asking me for a password.
maybe it's because my Windows user is my real name and the coliru user there is my handle, so it doesn't recognize that I need to use the SSH key I've got.
 
@Puppy sent you the password by mail
 
that works too.
 
but ssh key should work
except that there were funny characters in them
 
yeah not sure about that.
but the only thing the local clients asked me for was a password
seems to be functioning though
 
you can upload the key with ssh-copy-id deadmg@stacked-crooked.com
that is, if you are on Linux.
Never used ssh with Windows.
You might want to change that password though :P
A little too short.
 
7:07 PM
I can stick one in my pw db
 
I don't know how you plain to use this. Upload your builds via scp or something?
Keep in mind that the vps server will reboot frequently.
So logging in and trying to do work in your home dir might lead to frustrating experiences.
 
right
which script was the update script?
 
I'll try to reduce the reboot frequency though.
sec
 
@StackedCrooked Hopefully, I can program TC to deploy automatically on successful build.
 
That should be doable.
 
7:10 PM
the pain for me isn't doing the process manually, it's that the binaries are pretty big compared to Swamp Internet.
so ideally, I would never have to handle them on my own machine here.
but as long as I have ssh access here, then it'll just be a question of tweaking the TC build.
 
**** y'all, i just got Qt 5.3.1
 
lol qt
 
Qt is obviously the best framework for everything imaginable out there
It's so modern and its API-Design cannot be beaten
 
lol
@Arcoth I only used it for a short while, but it uses too much new
new sucks
 
speaking of which
how do I change the password?
 
7:16 PM
@milleniumbug Didn't you hear the news? Scientists have discovered that C++ is Java with a hat on
 
it's an Official Fact™
hmm
if you export a function, and you don't explicitly state a return type, do I automatically assume that you meant to return the same type as the declaration you're implementing?
 
@StackedCrooked but up time!
@Puppy you shouldn't need the password, @StackedCrooked should disable password login and set up a public key you give him.
 
sure, but neither of us actually has any experience with SSH it seems.
 
I've only ever used putty to SHH from windows
and you need to use 'p-agent' I think it is to allow you use keys
did you generate a key-pair?
 
7:23 PM
@Puppy seems like that would get you in trouble during refactoring
 
@Arcoth It is C with classes throughout. There is literally nothing modern about its API. It's useful because C++ is so library-deficient, but that doesn't make it "modern" or "unbeatable API design"
also, their socket classes are broken.
 
jalf da master
 
@jalf dude i was being sarcastic
 
Xeo
@jalf I think you missed the invisible </sarcasm>
 
@Xeo yep, sounds likely :)
 
7:29 PM
- @CMStormPolt is only $5.1K away from the $300K benchmark in prize money earnings. http://aligulac.com/earnings/
/cc @ThePhD
 
user3010322
@Borgleader Well maybe if he WON MOREGODDAMN TOURNAMENTS AND STOPPED LOSING IN THE FINAL BRACKET.
 
user3010322
Fucking hell.
 
That's still mighty impressive
I mean, nearly 300k in what <4 years?
also i think for at least the last year he's been attending university?
dem koreans so smart =/
 
oh balls.
another "Type mysteriously changes between analysis and codegen time" bug.
 
@DeadMG you can always try adding your public key to ~/.ssh/authorized_keys again.
Passwordless login will be needed for tool automation.
 
Xeo
7:39 PM
@StackedCrooked just put the password in the tool script!
 
@Xeo many tools don't allow that anymore
but yeah that surely is easiest :P
 
I'll give it a crack when I'm not currently cracking on Wide
 
or on crack
(we all know you take drugs)
 
couldn't live without em
 
@Puppy I've heard of quite a few people taking drugs to lose weight, but you're the only one I know who takes drugs to keep from starving to death.
 
@Borgleader silly poll
depends what you want from a distro
 
i dont know what i want, I cant even 'nix
 
@Puppy sent you mail
 
@Borgleader is it a first distro?
 
Well I've used Ubuntu/Mint in the past. But it's for a VM.
I wanna try something else
 
7:56 PM
Debian is similar
 
> public class Pair { private Object first, second, third;
ಠ_ಠ
 
Xeo
For when you thought two were enough, but then found out you actually need a third and don't want to break the API!
 
lol
 
@Xeo I mean why Object instead of making it use generics!
 
Strings-based identifiers can always be added. And they are self-describing. I.e their value is also their meaning. Just a pity that they aren't typesafe.
 
8:01 PM
@PolymorphicPotato Object is generic silly :P
 
Where's the robot? D:
 
Portugal.
 
@StackedCrooked since when o_0
 
user3010322
@Xeo The more strange thing is why they didn't just add Triple<>
 
user3010322
8:07 PM
or just use ..NET's built-in Tuple<....>
 
@thecoshman a week or so
Two years ago he left for two weeks without telling us. Sbi was worried for death.
 
yeah, normally he can't go an hour without checking in on us
 
I wrote a class with a Manager suffix in its name the other day.
 
@PolymorphicPotato keep your dirty deeds to yourself
 
@Borgleader None of the above
Also FreeBSD is not a Linux distro :cripes:
Pledge your life to One True Linux, Gentoo
 
8:11 PM
@Borgleader It represents an account manager. :D
 
@CatPlusPlus i found a list titled "top 10 distros" and picked 5 of them
=/
 
We should write a letter of appreciation to Linus for giving us Linux.
It might go down in history as the third great flamewar.
 
or it might just inflate his ego even more (if thats even possible)
 
I don't think a letter from a group of strangers will inflate him a lot.
His main pride comes from the fact that Android (aka Linux) is #1 OS on the planet.
 
FreeBSD is only tangentially related to Linux by being a POSIX system
 
8:15 PM
@StackedCrooked Which has a lot more to do with Google's money than anything =/
 
It was bound to happen though.
The only alternative would be .. Hurd? (Any others..?)
 
Hurd is not an alternative to anything
 
Right.
 
Also there's plenty of BSD derivatives to use
 
I'm fairly sure rightfold has made a more working kernal than Hurd
 
8:18 PM
@CatPlusPlus So why is Gentoo better than all of the ones I listed?
 
Because Portage is the fucking best package manager in all of Linux
disgrace to murkdownkind
 
If a device exists, then somebody once wrote a Linux driver for it.
Albeit crappy.
 
Not really
 
... theres a vibrator driver for linux?
 
8:19 PM
Windows driver, maybe
It depends
 
Hmm, I checked Gentoo's website recently (probably when Robot mentioned it, or was it rightfold). Their website looks like its from 1999
 
It probably is
Who cares
It's not a Facebook game for idiots made by a hipster startup
 
Ell
pacman is a good package manager
 
The chat needs the markdown preview.
 
It's really not
Plus Arch packages and constant breaking of shit is extremely annoying
 
Ell
8:24 PM
but looking at the wiki page portage looks good
 
It's like using only Ubuntu's universe/multiverse
 
> unknownchicken - Obviously he changed it you retard
Oh no...
 
Also been on Guardians of the Galaxy today, it's p great
 
it is indeed
 
so I heard.
by the way guise, the film industry is dying, piracy is killing it stone dead.
must arrest all pirates today or bankrupt.
 
8:31 PM
@Puppy oh :(
 
@Puppy ok, but after my download has finished
 
> like chess or Super Mario Kart
 
wooh, gathered up with 6 mates and plated quake 3
fun stuff
 
@AlexM. i thought you only had like 2 D:
 
8:35 PM
welp, forum mates
 
> I would so put this in more room. Just to attract the ladies.
 
@LightnessRacesinOrbit needs more JPEG.
 
@PolymorphicPotato I disagree
 
@PolymorphicPotato nothing needs more jpeg
 
8:36 PM
@LightnessRacesinOrbit Yes, it's clearly already jpeged to death.
 
When building boost do you use runtime-link static or shared?
 
wtf lib is on linux :P
 
I don't build Boost. I download binaries.
 
I prefer static linking
 
@PolymorphicPotato D:
 
8:40 PM
Less effort, less time, same result.
 
Ell
Hmm. I'm not entirely understanding the difference between LR(0) and LR(1) parsers
 
-1
Q: Xcode Main Declaration Error

SofteyThis is my first time using Xcode and I seem to be getting a error with the parameters of my main argument. int main(char *args[]) { char *filename = "Data.txt"; I get the following error: First parameter of 'main' (argument count) must be of type 'int' I don't have this issue with o...

 
@Ell Everybody uses LALR(1) so don't bother
 
Ell
@Puppy still, I'd like to understand
For academic purposes
 
Not everyone can be an academic, @Eli
:P
 
8:50 PM
what I'll never understand is why people spend their time learning things they don't need to achieve their goal
 
As a kid you go to school from 6 to 18 learning things you don't need. (Apart from reading and writing.)
 
which is why it's so amazing that a bunch of supposedly rational, serious men charged to look after a shitload of money waste it on that
 
@Puppy Watching tutorials is the ultimate lazy imo. Does not mean I learn much though.
 
GRSec kills Java :allears:
 
So at age 18 most students don't have trouble to proceed to a college.
It's much harder to return to college after having worked for a few years.
 
Ell
8:53 PM
@Puppy Because they are interested in it?
I think learning is fun (certain things)
 
@Ell School was mostly about performing the daily routine.
 
interested in not having achieved their goal?
 
And on a rare day I learned something interesting.
 
Ell
@Puppy Why do you play computer games?
 
learning everything you can get your hands on is for children, and even then I'd say it's dubious.
 
Ell
8:54 PM
Do they help you achieve your goal?
 
not even I can program for sixteen hours a day seven days a week
 
Ell
So, because it's fun?
or interesting?
 
NO FUN MUST WORK EFFICIENT BEEP BOOP
 
Help vampires wonder why other people do things that don't help achieve their goals. :D
 
Bah serves me right for trying to be clever and enabling xattr for PaX instead of using ELF header marks
 
8:56 PM
neither of those things really.
it's just a time filler.
 
hello
 
Ell
@Puppy But it doesn't help you achieve your goal right
So you lied when you said you don't understand why people do things that don't help them achieve their goal
 
Never experiment
 
@PolymorphicPotato oh god no
@PolymorphicPotato I just escaped cookie clicker's grasp a few weeks ago
 
8:58 PM
@Ell he is a LIAR!
 
nah, there's a difference.
the time I spent playing, I couldn't really have spent working on Wide.
 
You should join Alf as a liar spotter.
 
if I spent it learning something, then that's time I could have spent working on Wide.
 
Implementing a compiler is quite an educative experience I read.
I think even Steve Yegge wrote a post about it.
 

« first day (1393 days earlier)      last day (3547 days later) »