« first day (1153 days earlier)      last day (3781 days later) » 

10:00 PM
oh isn't this jolly, AMP working so well, my program crashed my GPU driver, thanks catalyst
 
Hmmm, object derives from function? That's weird
 
user1804599
@R.MartinhoFernandes Code that looks like a boomerang. :)
 
user3010322
@kbok It does seem a bit semantically weird.
 
@ThePhD I don't think we need an inheritance tree at all actually
 
you don't
 
user1804599
10:02 PM
@Ell Seems relatively fine.
 
user3010322
We could privately inherit, to protect from inheritance and casting shenanigans.
 
mark the class final and you protect against inheritance quite well :)
 
user1804599
You could also turn it around; template<typename T> class with_orientation : public T { glm::quat orientation; … } but dunno. Prefer composition.
 
@rightfold Right, CPS.
 
Xeo
@rightfold aka "callback hell"
 
user1804599
10:04 PM
In Python it would look like half a boomerang!
 
At work I'm refactoring all our CPS to use boost.coro.
 
googling boost.coro
 
@rightfold Not if you still want to do stuff after setting the callback.
 
@R.MartinhoFernandes You are using that already?
 
@R.MartinhoFernandes What's CPS?
 
10:05 PM
Jan 30 at 10:47, by R. Martinho Fernandes
@BartekBanachewicz You know how you can turn a bag inside out, as people do to pick up dog poo? Imagine that "inside-outing" process, but on a person. Do you see the guts all over? Good. Now turn the guts themselves inside out. Repeat until you cannot turn anything else inside out. That's CPS.
@bamboon Updated to 1.55 this morning.
@kbok (Stands for "Continuation Passing Style")
 
Ell
@rightfold Well, composition just means loads of duplicate code
 
user1804599
How?
 
user1804599
If you privately inherit from your HasOrientation class, that’s composition.
 
@R.MartinhoFernandes cool
 
Ell
Oh right
Or I could just write free functions
 
10:07 PM
I thought nobody uses coroutines anymore ^^
 
@bamboon My boss is even more eager than me about using the latest versions of stuff.
 
Ell
with a public glm::quat orientation
 
user1804599
@Ell quat member would still require duplicate code that way.
 
@ScarletAmaranth Because for Finagle-knows-what-reason people put up with CPS.
 
guise
 
Ell
10:07 PM
@rightfold I'd just need the public member and nothing else though. Idk if I'm restricting myself that way or not
 
@R.MartinhoFernandes That's what I call a cool boss.
 
@R.MartinhoFernandes Like doSomething(() => doSomething(() => doSomething())); ?
 
user1804599
You could have a base class has_orientation and make the move_ functions free functions but that’s not very different.
 
Yeah, coroutines good
 
10:09 PM
nothing, I got it
 
user1804599
Only not very sure how to deal with callbacks that can get called multiple times.
 
user1804599
Such as receive event on a WebSocket.
 
user1804599
If WebSocket does queueing, I could require a while loop and automatically remove the receive event handler once the callback gets called.
 
Ell
@rightfold but then the move_left etc functions aren't visible which is what I want
 
@kbok As a slightly more direct answer: CPS means you encode the flow of control into some sort of data structure, and that data structure gets passed around in the code, so even the control flow is no longer hard-coded.
 
user1804599
@Ell I’m not sure if you can do public inheritance but disallow conversion from the derived class to the base class.
 
user1804599
Or you can do public: using base::a; using base::b; but that’s butt-ugly.
 
> OP what is wrong with you?
OP is a bitcoiner
 
Ell
I could just write free up functions and just template everything with up(t.orientation) or move_forward(t.position, t.orientation)
 
@R.MartinhoFernandes the waitress demanding the tip? WTF?
I give you the tip whenever the fuck I want, biatch
 
10:14 PM
@R.MartinhoFernandes I PM'd you on twitter
 
@R.MartinhoFernandes np link.. I assume you got this from /r/subredditdrama or some twitter bot that cross-posts.
 
@Rapptz thanks
 
?
 
@R.MartinhoFernandes Ahahaha buttcoiners
 
@R.MartinhoFernandes Are you actually still working for that print company?
 
10:18 PM
@Rapptz you are going to be responsible for the next hour of laughs ;)
 
@Jefffrey That.. raises more questions than it answers.
 
Is it really worth mining buttcoins?
 
@Borgleader nope.jpg
 
@Borgleader Ahaha no
 
10:19 PM
@Borgleader Could you stop calling them "buttcoins"?
 
@Rapptz I didn't know about /r/SubredditDrama and I just happened to have some popcorns
 
I'm impressionable, and Cat just called them buttcoins
 
@Jefffrey It's standard fare in the US. If you don't tip, you're making their life harder because their pay is kinda bad without them. Kinda of a dick move to not tip.
 
Never not call them buttcoins
 
@R.MartinhoFernandes Except for he tipped quite a bit.
 
10:21 PM
@Borgleader So?
 
@ScarletAmaranth He didn't. He gave them a piece of paper.
 
Xeo
@R.MartinhoFernandes Their salary is calculated with 20% tips in mind or something, IIRC?
 
@ScarletAmaranth With funmoney you need a lot of effort to cash out
And also no guarantee that tipper won't just get the money back in 7 days because you didn't transfer them asap
 
well, he did say he gave her instructions on how to "retrieve" the moneyz
 
(This is actual thing buttcoin tippers do)
 
10:22 PM
@Rapptz Got it from Twitter.
 
oh yeah, I am not a buttcoin fan, I am just saying he did tip
 
@ScarletAmaranth Cashing this out is not very easy even if you do know what to do
Also you're assuming she gives a fuck
 
personally
the whole tipping thing is totally unnecessary
 
@ScarletAmaranth Like everyone repeated in the comments, he should have tipped with real money plus the paper.
 
just pay them a decent wage in the first place.
3
 
10:24 PM
@DeadMG That would require something in US making sense
 
@R.MartinhoFernandes yeah maybe that's true, oh well :)
I think in Japan you're not expected to tip actually (or is it even rude?)
 
I always saw tips as a way to thank the person serving me.
In that sense, I tend to see people not tipping as selfish assholes.
 
actually, tipping well for good service, and tipping less for bad service makes good game theoretic sense.
 
It's weird
Just put whatever I need to pay on the bill
I don't want to think about this
 
10:31 PM
tipping varies by culture so :v
 
The nash equilibrium corresponds to the waiter being honest.
 
@CatPlusPlus I like how most places allow me to instantly tip 15% at the press of a button.
 
And it's unique, which is nice.
 
haha, with the nash equilibrium, you'd end up tipping nothing :)
 
If you tipped nothing, the waiter has no incentive serve you well^^
 
10:32 PM
From what I've heard, in France, you don't tip, but the service is always atrocious anyway.
 
Ell
@Polymer tipping for good service makes sense
 
@Polymer France has no states.
 
France is solid.
 
Ell
@Polymer yes they do? being paid maybe? doing their job well?
 
misread >_<
totally jumped the france bit :p
sorry <_<
 
10:34 PM
That US thing of not paying your employees if they don't get tips is ridiculous
 
yes
 
user3010322
@Xeo @CatPlusPlus I just killed sooo many things and got like 2 legendary werapons!
 
user3010322
I even got an item that has NO DESCRIPTION
 
what are you playing
 
10:37 PM
@ThePhD wut
 
user3010322
Starbound. :D
 
The weird part is that they announced to the outside world that his uncle was executed.
 
North Korea is just bizarre...
 
11:40pm, time to eat
 
@R.MartinhoFernandes He had his uncle executed o.O
 
10:41 PM
@Borgleader Classic Stalin move. Get rid of anyone who knows enough to overthrow him.
 
Damn...
 
Classic Stalin down to the picture erasure.
 
Are you saying Kim Jong is literally Stalin
 
@R.MartinhoFernandes Dat book.
We've always been at war with Eastasia.
 
10:49 PM
Evening
 
@EtiennedeMartel I wonder if Kim could pull that off.
 
Ell
I don't understand why Kim bothers
 
With what?
 
@EtiennedeMartel Btw, do you think Goldstein's book has any truth in it or is it just more lies to trap Winston?
 
10:53 PM
@Rapptz Wasnt that linked like a few minutes ago?
 
@R.MartinhoFernandes Well, it seems internally consistent. So I really don't know.
On its own, it seems real.
 
@Borgleader yes
 
I could never understand why the Party would bother with the truth for that.
 
Why not? They're incredibly arrogant.
 
What's Kim up to now?
 
10:55 PM
Tell someone the truth, then break him. That's a great show of force.
They don't care about the risks because they know they'll always win in the end.
 
Hmm, that makes sense.
But I kinda prefer the idea that Eastasia and Eurasia don't exist :(
 
Ell
At all?
 
Yeah. That they're just tools.
 
That said, maybe there's only Airstrip One and everything else is dead.
 
10:58 PM
You know, without Internet, how can you know what lies outside of your borders?
 
Especially if the borders are the sea.
 
And the State controls the entire airspace.
 
And you don't have money to move.
Even if you did, the Party would probably just unperson you if you tried.
 
So maybe the entire world of 1984 is identical to ours, except for the UK.
 
Ell
I hate the idea of a surveillance state
It makes me uneasy.
 
10:59 PM
It's actually 2014 and David Cameron is in charge
 
Ell
Yeah
 
> Of course the Blink-182 fans aka "middle class white kids who had their angsty middle school phase and hated their parents because nothing was ever fair" are the ones downvoting me. Because those are the only kind of people I've EVER heard say they enjoy Blink-182's music...
I wish some people with decent music taste would get in this thread and even out the one-sidedness here. How about listen to Led Zeppelin, Pink Floyd, Jimi Hendrix, Queen, The Doors? Rush? THE ALLMAN BROTHERS? I could fucking go on and on... THOSE are old school AND cool and for one, ACTUALLY fucking sound good.
 
Ell
But everyone is being watched :o
 
lol
 
@Rapptz Right, only old stuff.
 
11:02 PM
@EtiennedeMartel I also considered the idea of everything else being fine, but Airstrip One being an NWS that keeps itself shut out from the world, kinda like the DPRK these days but to an extreme.
 
DPRK are pretty extreme
 
@Rapptz blink-182, I know the name but I don't remember any of their songs
 
I only like one song by them and that's "I Miss You"
 
@DeadMG Agree, but Airstrip One is several steps further.
 
I never read anything by Orwell
 
11:04 PM
oh, the what's my age again
 
so I don't actually know what you're talking about
 
that's not too bad
 
:P
 
@DeadMG DPRK to an extreme!
 
the message interleaving is confusing
 
11:05 PM
rightyo
 
Xeo
@Xeo: for the experiments on an entirely new algorithms library I'm implementing the algorithms as function objects: this allows some neat approach to do things like Currying, e.g., it could use auto const rsort = kuhllib::sort[std::greater<>()] to create a function object which will sort in deceding order (I'm not using parenthesis to bind argument, primarily to avoid surprises about algorithms being bound but not executed). No ready proposol but certainly something which should be discussed at some point in the Ranges SG. — Dietmar Kühl 4 hours ago
2
 
Since the narrative is from the point of view of the main character, who is just a citizen in Airstrip One, we don't really know much for sure, especially about the outside world.
 
@Xeo not sure if awesome of horrible
 
Xeo
He should totally rename it to "kuhlib"
 
kühl::vector
 
11:08 PM
#include <kuhl>
 
So kuhl.
 
user1804599
cuel
 
I suspect that expression templates will become more dominant now that we have auto.
auto const rsort = kuhllib::sort[std::greater<>()]
Supports my claim :)
 
Xeo
That's just std::bind in disguise
 
the disguise part is not to be taken lightly @Xeo
 
11:10 PM
@Xeo I stopped at proposol :P
 
Xeo
haha
 
@Borgleader Yea that also brought me to a grinding halt
 
Xeo
Damn, now I have Kinder Schokolade here. This is bad.
 
@Borgleader that sounds like a brand name for cans of compressed air
 
11:11 PM
@TonyTheLion Btw, your wife is cheating on you wimp.com/lionesstrust
 
> Proposol is a natural Spray made of propolis, glycerin, alcohol; it is a natural antiseptic and biostimulant with anti-inflammatory, antimicrobial, analgesic and antiviral properties
 
@Xeo What would kuhllib::sort exactly be? An object?
 
@Xeo wow, I had that too when I was a kid
but can hardly remember
 
Xeo
@Jefffrey yea
@StackedCrooked This stuff's way too tasty. I'm much better off if it's not in my vicinity.
 
I don't care if you want to make some characters black, Fluttershy doesn't deserve to be a muslim. For god's sake, have some humanity
 
11:12 PM
@Xeo Why did you buy it?
 
In other news, 4chan.
 
@Xeo Don't go shopping while hungry.
 
Xeo
@R.MartinhoFernandes Impulse :(
 
When I'm waiting at the grocery checkout I still stare at the Kinder surprise eggs though.
 
Xeo
@R.MartinhoFernandes Then I'd never go shopping!
 
11:13 PM
@Borgleader That guy is awesome. Check him out on Wikipedia, his website and Youtube
 
@StackedCrooked Don't fall for it! That's the reason they put them there.
 
I know.
I know all too well.
 
user1804599
Me too.
 
I know I still wanted to do something before going to sleep, but I forgot.
 
user1804599
You wanted to close your web browser.
 
11:14 PM
You want us to say goodnight?
 
You want to masturbate?
I'm off to bed now. Goodnight :)
 
That smiley is disturbing.
 
g'nighty naughty night
 
he he eh
 
Will windows get pissy at me and have a seizure if I swap out the current motherboard and CPU (ASUS M4A87TD/USB3 AND AMD ATHLON II, AM3 SOCKET TYPE) with a newer ASUS M5A97 LE R.20 and AMD FX 8350 AM3+ socket?
 
11:24 PM
You used to need to install new chipset drivers before changing the hardware, if it's different
That was XP era though
Other than that it might need reactivation
 
Do I need to back up my files if I'm running a complex raid setup? 4x 500GB HDDs running as 2 1000TB HDDs, one mirroring the other resulting in one 1000TB HDD
 
@Alec For a while there I thought you were Alec Teal
 
I don't know who that is.
 
Regardless you should just get two 1TB drives and do RAID 1
 
That's implying I have money lol
 
11:26 PM
Hell, you probably don't even need RAID 1, just make backups of important shit
 
Debating on just backing up my projects and stuff to a external HDD and just reinstalling
I have a lot of useless junk on my PC anyways, it hasn't been cleaned out in 2 years
 
If it's software RAID then it should just work
Hardware dunno
 
The problem with that approach is forgetting something important.
 
If you forgot about it, it wasn't that important
 
I don't remember how it was done, my dad did it. brb
 
11:29 PM
@CatPlusPlus May not have been important at the time of backing it up, but may become in the future.
 
It's really crappy setup for a desktop machine
@elusive RAID won't help with that
 
True.
 
You need to backup important stuff regardless of RAID
 
And it better be off-site.
 
11:32 PM
It needs to be off-drive, not necessarily off-site
If your flat goes with flames, you'll have more important problems than the data :v
 
Probably, yeah. Though I remember one particular case where a lot of stuff was stolen from a freelancer friend of mine. Including the backup drives sitting next to the stolen machine.
 
I'm running in hardware RAID 10, my new motherboard supports it too.
 
It's all just a question of how important your data really is.
 
Well I have several projects for online products which are pretty much my only source of income
So relatively important
I also have backups for games which would take forever to download again
 
38
Q: Why aren't my balls shrinking/disappearing?

user2125191http://jsfiddle.net/goldrunt/jGL84/42/ this is from line 84 in this JS fiddle. There are 3 different effects which can be applied to the balls by uncommenting lines 141-146. The 'bounce' effect works as it should, but the 'asplode' effect does nothing. Should I include the 'shrink' function insid...

lol @ the title
 
11:38 PM
The project stuff should definitely backed up off-site then. Losing the games would be more of an inconvenience than an actual problem.
 
@Griwes lol
 
@Griwes balls.splice()
ouch
 
I like percent-encoding as a general escaping algorithm. The neat thing is that it actually removes the violating characters from your string instead of merely escaping them with a backslash or something. ('%' being the only exception)
 
@Alec Also, I've had some problems migrating a hardware RAID to a new controller in the past. Software raid is definitely easier to restore on new hardware.
 
0
A: Why does typeof return "string1" or "number1"

kamituelMore or less: typeof ([(0==0)+(0==0)]+[0])+((0==0)<<0) = typeof ([ 1 + 1 ]+[0])+(1<<0) = typeof ( [2] +[0])+(1) = typeof ("20") + 1 = "string" + 1 = "string1"

lol..
[2] + [0] is "20" in JavaScript? Yikes.
 
11:41 PM
@Rapptz [2, 0].join('')
auto-cast
 
([2] + [0]) + ""
 
where's the + "" though?
 
Implicit typing is like gambling.
 
I can't see where it's being casted.
 
11:42 PM
@Rapptz It was just my interpretation of how it could have happened.
 
@StackedCrooked more like russian roulette with a nearly full barrel
 
@Rapptz Holy crap I just tried it in Chrome's console. [2] + [0] actually yields "20".
 
@JerryCoffin That talk is damn funny. Although he does say 16 commas, where it is just 15: separators between empty strings. The same goes for the NaN thing at the end.
@StackedCrooked Wait, that actually makes sense
 
JavaScript Array has a toString method which implicitly converts to String… more or less like C++
 
@elusive How does that make sense?
 
11:45 PM
It only makes sense if you remember coercion rules by heart
 
@elusive yeah, for a WEIRDO
 
There is nothing like array concat operator, so they are both converted to a string
 
@Potatoswatter C++'s implicit conversions may be dumb.. but.. they make more sense. Integral promotions aren't as bad.
 
@elusive oh, it totally makes sense now
 
11:45 PM
weird
 
Not that I think it should be that way, but that is how it works.
 
@Rapptz Yeah, I just mean if the standard library designers were idiots this would be supported by the core language.
 
[1, 2] + [3, 4] is funnier
 
> [1234] + [5,6,7,8]
> "12345,6,7,8"
 
[2] + [0] should be [2, 0, FileNotFound]
 
11:46 PM
Arrays are stringified with a comma separator.
 
Welcome to weak type systems
They're all shit
 
so that becomes [1, 2].join(',') + [3, 4].join(',')
 
It surely makes sense if you don't question the language rules.
 
It makes no sense to include commas but not [] in the string representation of an array
 
11:48 PM
@elusive Heh, sadly I'd bet JavaScript is actually far more complicated. Chock full o corner cases designed only to support some legacy program.
 
@Rapptz Try [,,,].join() (wtfjs.com/2013/07/18/array-ruse).
 
It makes sense because that's how it works.
 
If I say "It makes sense", what I am trying to say is: "This is how it is evaluated"
I am not saying that I like it that way.
 
like an earthquake keeps repeating in my head
 
I do find it impressive that people still use JavaScript though.
 
11:49 PM
@CatPlusPlus Yeah, that is all ugly legacy shit.
 
I don't really dislike JavaScript.
I can do horrible things with it.
 
@JerryCoffin You made my day.
 
You can do horrible things in most languages. Doesn't mean you should, though.
 
@CatPlusPlus I guess it's time for this again too:
 
When I first learned it I thought == and === were dumb and it really only got worse from there apparently.
 
11:50 PM
And JavaScript allows for high granularity in your design. (Contrary to Java.)
 
Wait -- where'd my Venn diagram go...
 
@Rapptz == becomes === and before you know it you have this?
 
@Rapptz Pretty much every single computer owner has a JavaScript interpreter installed, so it is pretty obvious why many people would choose it over other languages.
 
Ell
@stacked what does granularity mean here?
 
@StackedCrooked You mean fine or coarse?
 
11:53 PM
I don't know. Leave me alone.
 
You can have a very granular bad design
 
@elusive It should have changed.
 
The design was granularily bad.
 
@Rapptz Maybe, but how do you switch to another language without breaking pretty much all of the existing infrastructure?
 
Ah, here it is.
 
11:55 PM
I said weak though :v
 
You can have one "template" function, and generate "template instantations" by using eval(function.toString().replace/some regex/).
 
@elusive I didn't say remove JavaScript. Deprecate it and make a better alternative.
 
Crazy shit like that.
 
@CatPlusPlus Yeah, comes out about the same in the end though.
 
11:56 PM
@Rapptz Which language would you choose for browser scripting?
 
@JerryCoffin Is type theory that hard to understand?
 
iunno
 
No, people are just dumb
 
@elusive lisp-like
 
@elusive Python, Lua, whatever
 
Ell
11:57 PM
Ruby <3
 
Yes, let's replace JS with something even worse
 
@elusive Although they screwed up everything else involved, this in the one thing Sun had right with Java: should just have a standard VM in the browser, and it's up to programmers to choose whatever language they prefer that produces code for that VM.
 
Lua would probably be nice. Lightweight.
 
@elusive C++ runs
 
Yeah, it should've been just a spec for browser-ran bytecode
3
 
Ell
11:59 PM
@catplusplus sorry I didn't realise that was a universally held opinion :s
 
Browser scripting does have to be functional because so much is oriented around asynchronous I/O.
 
Reactive, not necessarily functional
 

« first day (1153 days earlier)      last day (3781 days later) »