« first day (1592 days earlier)      last day (3370 days later) » 

2:00 PM
@BartekBanachewicz I can do it just fine mr high and mighty, I just often find my tolerance for reading through docs doesn't last long enough.
 
@thecoshman ditto
reading and understanding documentation is often more important than writing actual code
 
If CCC extends BBB and BBB extends AAA doesn't CCC get all of AAA's member fields?
nvm
no
 
@DonLarynx not all of them, but it will inherit what was not private
 
/* The size of `struct MD5Context', as computed by sizeof. */
#define SIZEOF_STRUCT_MD5CONTEXT 88
6
 
note that BBB could have made things less restricted
 
2:04 PM
what the actual fuck -.-
 
@BartekBanachewicz o_0 where was that?
 
@thecoshman you don't want to know
 
@BartekBanachewicz sure I do :D
 
@thecoshman it's a part of Haskell's standard base implementation
 
wow
 
Xeo
2:05 PM
lolz
 
@BartekBanachewicz :D
looool
 
I don't think this file gets passed through a C compiler though
it's included via CPP into haskell source
 
Yup, there's no sizeof available
 
Xeo
auto-generated?
 
might be
 
2:06 PM
@thecoshman stackoverflow.com/a/18778307/3602281 this answer annoys me.
 
CBA to check, my goal is to get rid of MD5 here
 
> I tried my best and Hope this will clear your doubts.
 
wait
 
/cc @LightnessRacesinOrbit
 
@DonLarynx because...
 
2:09 PM
I need to study more o.o
 
#ifdef INT8_MIN
#define __INT8_MIN              INT8_MIN
#define __INT16_MIN             INT16_MIN
living on the edge
 
Consider using abstract classes if
> You want to declare non-static or non-final fields. This enables you to define methods that can access and modify the state of the object to which they belong.
 
aargh, only Unity Pro lets you call shit from external dlls
 
@AlexM. did you want to implement logic in nim? :P
 
2:11 PM
@BartekBanachewicz facepalm
 
no I wanted to call Roccat's shit from Unity
 
@thecoshman The question annoyed me more
The user says the following in the interview:
> Main difference is methods of a Java interface are implicitly abstract and cannot have implementations. A Java abstract class can have instance methods that implements a default behavior.
but that's simply not true
 
so
I am not even sure if I need that md5 crap
and, most importantly
I don't see SHA-256 implementation nearby
 
ooh it seems you can use managed .net dlls in the free version
 
@BartekBanachewicz I need to talk to you later about stuff re gldr if you mind (glid and 'bindable' types)
 
2:13 PM
maybe I can compile the lib externally and then import the .net dll
 
> How should I have answered this interview question regarding the difference between an Interface and an Abstract class?
lol can't make that the title
cos it has "question" in it
fuck you shog
 
hmmm
distutils use python's implementation of hashlib
I doubt using python code in internal compiler representation calculations is a good idea though
2:  * This code implements the MD5 message-digest algorithm.
3   * The algorithm is due to Ron Rivest.  This code was
4   * written by Colin Plumb in 1993, no copyright is claimed.
.
 
@thecoshman because if we declared a method like void foo(); in an interface it is implicitly not final. two classes can have their own separate implementations. but that's the same effect as having an abstract class and abstract void foo();
 
@BartekBanachewicz Watchu doin
 
@CatPlusPlus changing the hash function for GHC.Fingerprint
 
2:18 PM
What for
 
I don't think that's a security feature
Oh it is, dumb
 
I wonder if there's someone in the world holding a string like "hhasgfykuga3821tg781tgrbo21hgerfjv12rhjv23rvfvv1"
which collides with unsafeCoerce
a key to Haskell code safety
 
I am now
lol "collision-resistant"
these people have some funny ideas about hashing algorithms
 
you can make a perfect hash algorithm vOv
 
2:21 PM
Only if you know entire data set upfront
 
Which is not relevant
 
> If everything is a priority then nothing is a priority, and we have lots of actionable issues with far more immediate impact.
I love that
Might make it my email sig at work
 
Ewwww
0
A: Why do & behave differently for strings?

Vlad from MoscowPointers do not keep the information whether they point to a single object or the first object of an array. Also take into account that array names in expressions are converted to pointers to their first elements. So if you have for example a pointer of type const char * like this const char *p ...

 
@πάνταῥεῖ ahahaha
 
2:23 PM
fuck
 
@πάνταῥεῖ won the beer @MartinJames
@AndyProwl so close
 
4
A: Setting vector elements in range-based for loop

Vlad from MoscowChange this loop statement for(auto n: *CTdata) to for(auto &n : *CTdata) that is you have to use references to elements of the vector.

ha!
This one came first
 
lol
but he noticed first
I dunno how we gonna go about it
 
So what's special about it
 
I guess @Martin should make a call
 
2:25 PM
@AndyProwl First LINK wins the beer!
 
shite
:(
 
/cc @LightnessRacesinOrbit
 
/cc @LightnessRacesinOrbit
 
FUCK
fuck fuck fuck fuck fuck
fuck sticks
wanker wanker wank
 
no
 
2:26 PM
if he keeps that pace he's gonna detronize me as a person who said "fuck" on SO chat the most times
 
pizza or bust
/cc @LightnessRacesinOrbit
 
wait
> and attends Unconference 2.0!
@πάνταῥεῖ are you going to attend? :D
 
@AlexM. lol
/cc @LightnessRacesinOrbit
 
I don't care about the beer folks, already have one :)
 
@AndyProwl Yes, the beer has to be delivered personally, by me:)
 
2:27 PM
I'm so pissed off
haha wtf
 
@MartinJames So if Panta doesn't come do I get the beer?
 
@LightnessRacesinOrbit About what?
 
Or nobody gets the beer?
 
@LightnessRacesinOrbit edit war?
 
@AndyProwl No probably not. As mentioned earlier I would attend if you make it up to the Oktoberfest 2015 :)
 
2:28 PM
@Jefffrey that I lost
 
That should be normal, no?
 
I wonder if I should roll back
 
@πάνταῥεῖ I'm afraid that's unlikely. Date and time have already been fixed
 
Fuck. Remember the headhunter fellow?
 
he hunted your head?
 
2:29 PM
Who was told by a friend of mine that I was great at C++?
 
@AndyProwl IIRC, first link AND attending unconference. Both must be true.
 
And didn't want to disclose the name?
 
ssshit
 
Well, he left the headhunting company.
 
Thank you @πάνταῥεῖ you made everybody lose :D
 
2:30 PM
Fucker. Now I spent the full 10 minutes re-LaTeXing my CV.
ffs
 
sublime text is the best thing that has happened in my life
 
@LightnessRacesinOrbit you could have written a program or sth
to constantly scan for changes in Vlad's profile
 
/sarcasm
just for clarity. I don't mean to insult the guy... He can't help it that he might have been fired for lying to potential clients about their friends.
 
@AlexM. in C++ that's 6 to 8 weeks
you have to create an UML diagram
 
@AndyProwl Well, I still could consider to attend the unconference :)
 
2:31 PM
OTOH, I feel bad for winning my Vladspotter 2014. So.. I will award the beer to the first link from the set of Loungers attending Unconference 2015 :)
 
and use cases
 
I did a program like that back in my first year of college
I wanted to see if I passed so much
 
@πάνταῥεῖ Ah, all right then :P
 
that I wrote a program set to tell me when the prof's page changed w/ the new results
lol
I did this at work IIRC
 
Last time I've managed to provide someone a proposed beer was this guy
I met him in Munich at the EA User Group conference :)
 
2:34 PM
@AndyProwl You coming? As I see it, you get the beer.
 
@Jefffrey Yes, you may ask.:) I did not roll back edits. It seems that we were editing simultaneously and when I was saving my edits your edits were discarded.:) — Vlad from Moscow 12 secs ago
woah
new and improved
 
what, he's smiling now
 
give it time
 
@MartinJames I plan to
Can't say with 100% certainty yet
It's 70/30
 
:)​​​​​​​​​​​​​ — Lightness Races in Orbit 5 secs ago
 
2:35 PM
@AndyProwl In uderstand, it's early yet. I suppose I should look at the post to see if it's bad enough to warrant the award of two beers.
 
lol
 
/cc @LightnessRacesinOrbit
 
Unfortunately I posted the one with +4
 
I like how LRiO uses few words to say so much
/cc @LightnessRacesinOrbit
 
My comment is already gone.
Mods got nowt better to do huh, than to remove smiles from SO
 
2:37 PM
Maybe Vlad flagged it
 
@Jefffrey he does not react
do you think we should up our game?
 
@AlexM. so much
 
@AlexM. Nah
 
@AlexM. Not until he starts deserving it.
 
2:37 PM
So far he's quiet
 
I like that C++'s new features are generally available in proposal paper form. You can see all the rationales
 
@AndyProwl LRiO deserves everything we do to him.
/cc @LightnessRacesinOrbit
 
@Jefffrey I thought we were talking about Vlad
 
@AndyProwl I flagged it as non constructive.
 
@AndyProwl He's joking
 
2:39 PM
I don't see why other people should express their happiness if I'm not happy this week.
 
@Jefffrey Tosser.
 
<3
 
@LightnessRacesinOrbit Ah. My trollability strikes again
 
@AndyProwl yesh
 
Just as soon as I clicked the "Flag" button, the comment disappeared. I'm not sure if it disappeared only for me or for everyone else because it was too short or something.
 
user3010322
2:42 PM
@BartekBanachewicz This is done in many places because I believe sizeof can't be used in some contexts with the preprocessor, so if you need to define it you need to have a meta-program (like autoconf) generate it on the outside and then pass it down.
 
@Jefffrey You ruin me.
 
Okay a question:
I'm making a learning AI for a game of naughts and crosses.
Should the AI make a move that it knows has a chance of leading it to a win or a move that it doesn't know the outcome of?
 
user3010322
IMHO (sizeof) should have been an available thing in the preprocessor.
 
no it really should not have been
 
Then the preprocessor would need to be multi-pass and also would need to know the target language
 
user3010322
2:44 PM
@Elvisjames So your two choices are "do random shit" and "be intelligent". I think the former hardly qualifies as AI.
 
And be able to calculate layouts
It doesn't belong anywhere near the preprocessor
 
user3010322
@CatPlusPlus Oh, you're right.
 
user3010322
That would complicate things.
 
#include in Haskell looks funny anyway
 
2:45 PM
@ThePhD But it's a learning AI so it can learn from doing random moves. Curiosity counts.
 
@Elvisjames for that you can just write a perfect algorithm
@Elvisjames why random moves? You can simply pregenerate every possible game, there's not so many of them
and use as a training set :P
at most it's 9!
 
I hate shopping so much.
 
@BartekBanachewicz I'm actually training the AI by making it play games. So it learns from the games.
 
but then you can flip both axes so it's effectively divided by 4
@Elvisjames there's really no difference between training it on a fixed set and training it "playing" games
 
I've been avoiding going to buy a couple of pant belts for almost a week now.
 
2:47 PM
it's all data
except you can't actually incrementally train something like an SVM
 
In my mind I'm planning the fastest route to the shop and the most efficient hour to go and so on.
I might have a problem.
 
@BartekBanachewicz Logically there is a difference. It's either to learn by actually doing it or by seeing someone do it.
 
@Elvisjames no, there's not.
 
At least now I can close that annoying 'User Vlad from Moscow' tab.
 
you have a set of moves and outcome of the game
that's all that matters there
"playing" games means you are only picking random samples as a training set (from the set of all games)
 
2:49 PM
AI doesn't "see" anyone doing it
 
Also installing GHC on linux is just such a fucking pain in the ass.
 
@Jefffrey ironically, building it from sources on windows wasn't that hard
 
1. Install package
2. Installed
Really hard
 
lol
Yeah, you do that.
 
But what if you want to see it transition from a dumb player to a more intelligent player?
 
2:50 PM
@Elvisjames then you need an AI that can learn incrementally. OR you can simply train N classifiers, each with a bigger training sample
 
For that you have see it play the game at periodic instances of its learning course.
 
With a trivial game like TTT you can just search the entire state space
 
apt-get install ghc // installs GHC 7.4.1, the latest version for apt-get
apt-get install ghc6 // installs GHC 7.6.*, the latest possible version for apt-get
 
lol "for apt-get"
 
Okay I'll look into it.
 
2:51 PM
No sane way to install GHC 7.8.* whatsoever, except manually downloading dependencies, hope that everything works, then download and build from source.
 
@Elvisjames no
you don't have to see it play at any point
unless you want to visualize it for whatever reason
but most of the AIs don't really work that way
you feed it a training set, you get a better AI
 
Then how can we make others see that it learned
 
why do you want to do that?
 
They play against it, they lose miserably
 
what's the point?
 
2:53 PM
To prove that it's a learning AI?
 
@CatPlusPlus Yes, "for apt-get", because they are slow as fuck to update anything. They are basically 1 year behind on this shit.
 
@Elvisjames sigh.
 
Keep not mentioning the distribution
 
"learning" is such a dumb term
 
You're not very good at Linux
Also I'd use a VM/container anyway
 
2:54 PM
Ubuntu, Debian makes no difference wrt to this.
 
Esp for things that aren't in the main repo
 
@Elvisjames if you train a classifier on a set, it technically "learns"
 
I love these thug life shits lol
 
but in reality, it's just rather simple math
 
Takes entire 10 seconds to find
 
2:55 PM
What about for the purpose of fascinating people who don't know how it works?
 
@Elvisjames really, if you want an illustrative example, create a full data set, and then show the classifier trained on 0-100% of the full set
@Elvisjames apparently you don't know how it works either
 
Okay
 
I mean you can add the games you play dynamically
 
I know how i works, because I made it??
 
but a) in this case it's simply a meh way to solve the problem
b) most of the time it's a meh way to solve the problem
 
2:56 PM
I know I can, that's what I've been doing.
 
@Elvisjames made what? a program that linearizes tic-tac-toe board to feed it to an SVM?
 
@BartekBanachewicz Yes
 
well then, there's ~90k possible games
you can either show it trained at different samples of that
or retrain after every game
 
but I have mapped the symmetrically equivalent moves together which drastically reduces the number of possible moves
 
Or you can pick more interesting game
 
2:59 PM
@Elvisjames yeah by 4
drastically.
well, by 8 actually I suppose
 
Best book for learning C#?
 
Yes 8
 
C# in Depth?
 

« first day (1592 days earlier)      last day (3370 days later) »