« first day (1602 days earlier)      last day (3346 days later) » 

6:03 PM
u sexist
 
user1804599
Hm, so.
 
user1804599
A conditional jump instruction takes a condition which at runtime is checked for being of type Boolean.
 
user1804599
Should the jump instruction do that check, or should I generate an assertion just before the jump instruction?
 
user1804599
I think the latter is easier to deal with when optimising and analysing.
 
6:19 PM
@BartekBanachewicz Hmm, I was thinking. If I throw two kind of exceptions, one with a ToJSON instance and one that does not have such an instance. And then I have a doSomething `catch` encode, then how is GHC able to check if there exists an instance of ToJSON if exceptions are not checked?
I wonder because I did exactly that, and apparently GHC is not complaining at all.
 
Oh god that pisses me off. Got downvoted by a dude that can't read...
 
@Jefffrey Type inference.
 
afternoon
 
catch :: Exception e => IO a -> (e -> IO a) -> IO a
encode :: ToJSON e => e -> IO a
(`catch` encode) :: (Exception e, ToJSON e) => IO a -> (e -> IO a) -> IO a
 
@райтфолд The latter is clearly superior as it permits cases where you don't need a check.
 
6:31 PM
@Jefffrey It works just like when you do catch(TypeHere) in some C++/Java/C#/whatever, except the TypeHere bit is inferred from the function you pass.
If you want to catch different types you need to chain them, like doSomething `catch` handleToJSONs `catch` handleOthers
(those types above are wrong, sorry)
 
template fun :D le example. So... 'VEC' is actually provided by some other lib (glm) but RAY is my own type... how do I template the return type for the ray.getLengthSquared(). Should I actually template the ray based on the primitive type (ie float), rather than a VEC? so it would have VEC<T> source; and then I know that my 'getLengthSquared' returns T as well...
 
@thecoshman typename V::value_type.
 
@R.MartinhoFernandes I see... hang on... let's see if I can wizard this up :s
 
just use floats.
I don't see why everybody is so eager to template their vectors.
 
> 'VEC' is actually provided by some other lib (glm)
plus I want to learn how to use templates betterer, I want to be in the big boys wanking club
 
user1804599
6:39 PM
@Puppy Yeah.
 
user1804599
Passing a non-Boolean in that case is just UB.
 
then pick something that actually requires meaningful templating
 
LIEK ANYTHING
 
lol nobot
 
You only say otherwise because you're a M$ shill.
 
user1804599
6:41 PM
foldl1 catch!
 
oh, you're drunk again?
 
I'm at work.
 
so... you're drunk again?
 
I don't know where the rum is kept in the new office.
Probably needs fixing.
 
where indeed has the rum gone
 
user1804599
6:43 PM
I know a 20 years old MILF.
 
@thecoshman The choice depends on what it is you are abstracting over: elements, or the type of the member. Convenience isn’t normally a factor.
If vec<T> conforms to some concept, then abstracting over that means you can substitute it with other models of the same concept. Would a ray<some_other_vec> make sense?
 
@R.MartinhoFernandes You neeed to pull a night shift. You can then search the offices to find the rum.
 
user1804599
Alright, time to implement SSA.
 
Ok, packing up for the overnight bushwalk trip ... it's only 5am-ish
 
@LucDanton erm... yes.. well, different types of vector...
wait... I don't think so
 
6:46 PM
hey guys, please validate or propose a new naming for: "configuration changeset", a group of configuration changes to apply at the same time?
 
no
 
user1804599
no
 
'no' is a terrible name.
 
user1804599
no, it's not.
 
oh hey robot, I haven't seen you around in a long time
 
6:48 PM
@R.MartinhoFernandes Japanophobe are we?
 
@vinni_f looks ok
 
so erm... @R.MartinhoFernandes I take it value_type is something that VEC would have to have exposed...
 
user1804599
ListMap is awesome.
 
pizza on the way
 
i should cook a steak
 
6:49 PM
pizza <3
 
@Puppy Was sick, then was on holiday in the Arctic locked out of my phone.
 
@R.MartinhoFernandes Well, I'm glad you're back so I can resume kicking you in the balls
 
such a lovely guy
 
@LightnessRacesinOrbit thanks
 
6:52 PM
oooh right yeah. @R.MartinhoFernandes I don't think glm offers value_type... might do though...
 
@R.MartinhoFernandes lol - I got locked out just for visiting Portugal for a week on holiday. I had to call up my provider on those old 'wireline' things where you continually feed cash while on hold. Yes, I was hugely pissed off.
 
didn't turn your roaming on? :p
 
user1804599
I tied the knot!
 
@chmod711telkitty Yes, it was on. I spend 0.01$ more than I usually did, so the bastards chopped me without warning. When I got home, I chopped them without warning - just cancelled the DD.
@райтфолд Oh.... I'm so sorry :(
 
user1804599
def outgoingBlockIDs(block: Block): Set[BlockID] =
  block.insts.values.flatMap(blockIDOperands).toSet
 
user1804599
7:02 PM
So beautiful!
 
@thecoshman Yes, it does.
@MartinJames I just went out into the snow.
 
@LightnessRacesinOrbit My balls are now liquified.
 
Xeo
wtf. VS suddenly decided to not accept Edit.GoToPrevLocation / GoToNextLocation anymore. :<
 
@R.MartinhoFernandes oh, that's sweet :D
 
Xeo
7:04 PM
okay, it doesn't seem to like alt+left / alt+right in general anymore. wtf.
 
@R.MartinhoFernandes o_0 how do you know that then?
 
Xeo
argh whyyyy
this makes no sense
ffs
 
Once I was on post paid & cropped up $80+ in one day (got lost in the new zealand mountains and intensively used calls and data to find my way out). Now I think about it, my ISP back then probably ripped me off ...
 
@FredOverflow They passed Committee in Bristol.
 
@thecoshman I... looked at it?
 
7:12 PM
@R.MartinhoFernandes oh, le actual source... the docs didn't seem to say... I guess if you know what to look for :P
 
Xeo
sigh
I don't get it
it just doesn't work anymore.
doesn't accept alt left / alt right in any form for anything
 
VS is broken. More at eleven.
 
user1804599
My code is wonderful.
 
@Xeo Restart?
 
Xeo
7:13 PM
and my neighbour is getting on my nerves again. with music, not fucking, this time.
I can hear their damn music through my headphones.
 
COOPER! THIS IS NO TIME FOR CAUTION!
 
Xeo
@R.MartinhoFernandes restarted vs, restarted pc, rebound keys left, right and center.
doesn't work.
 
user1804599
Should I allow empty unions? I don't see why not.
 
user1804599
You could never create a value of said type.
 
@R.MartinhoFernandes The docs tell you that e.g. vec2 is an alias for an alias for a template specialization. Then it tells you that the templates are an implementation detail, and redirect you to the GLM spec.
meaning that even template<typename T> struct foo { vec2<T> v; }; is unsupported, strictly speaking.
 
7:23 PM
@Xeo Try goat
 
user1804599
Aaa
 
user1804599
Z3 Java API isn't in any Maven repo.
 
user1804599
The only thing available is the source files and a makefile.
 
7:35 PM
@Xeo another program stealing those keybindings?
 
@райтфолд who is the lucky guy?
 
user1804599
???
 
@райтфолд "tying the knot" is a colloquial phrase for getting married.
 
@райтфолд doesn't count :)
 
user1804599
Oh.
 
user1804599
7:42 PM
I meant the lazy variable thing.
 
@caps thank you
@райтфолд oh. /that/
 
user1804599
I don't marry people since first of all, I consider marriage retarded, and secondly, people don't want to marry me.
 
user1804599
let x = 1;
let x = 2; // shadows first x
 
user1804599
Should I allow the same thing for subroutines in modules?
 
user1804599
I think not.
 
7:48 PM
@Rapptz The 5.0 branch doesn’t seem to enhance -fextended-identifiers :(
 
It's experimental!
 
It could be experimentaler.
 
Xeo
@SamDeHaan Dunno. Works fine in FF, for example.
Already lost my motivation again, though. It's the little things.
 
FUEL, COULD NOT FINE FUEL. WEIRD I BOUGHT SOME LAST NIGHT!!
also ... late, could not find fuel
 
user1804599
8:20 PM
Coool.
 
user1804599
You can use someSequence.flatMap(functionReturningAnOption).
 
user1804599
You don't have to turn the option into a sequence first!
 
user3010322
@BartekBanachewicz You know what that thing's going to do?
 
user3010322
Melt, because it like it only has that cheap side ventilation bullshit and doesn't have any elevating pegs beneath it to give the bottom any air.
 
user3010322
MMMM, CAN'T WAIT TO FRY MY OWN THIGHS.
 
8:25 PM
here's an idea
instead of sitting listening to Uplink's soundtrack, I could just play Uplink.
 
Re. "How about simply pointing out the failure point in the code snippet below? Or, even better, providing a snippet that does work?" - How about you realize that people might not have the time? I pointed you at the existing answer assuming that you read it for what it means, and hoping you'd appreciate having an answer 4 hours earlier. You're not entitled to an answer. I was trying to be helpful. — sehe 50 secs ago
> First, consider the specification. Inside the belly of this beast, MSI has shoehorned a quad-core, hyper-threaded Intel Core i7-4980HQ processor capable of hitting up to 4.0GHz and outfitted with integrated Iris Pro 5200 graphics. The CPU is joined by a full 32GB of DDR3-1600 memory (4x8GB), and dedicated graphics come courtesy of not one, but two, GeForce GTX 980M GPUs configured in SLI.
wth
@LightnessRacesinOrbit That may seem to be out of proportion but really:
> "For the past month [Fifty Shades of Grey] is all that you've seen on TV."
seems out of perspective too.
 
I think the most annoying things about segways, is when people make a point of having just made them
 
8:42 PM
"making segways"? Did you mean "segues"?
 
Nah, he prefers bikes.
 
I mean, I've never met a single person who "made a point of having just made a segway"
 
Segway manufacturers are a proud people.
 
So we learn.
 
> Battery life, clearly, isn't the GT80 Titan SLI's strong suit. The laptop's high-end array of components chew through a fair amount of power, and that, coupled with a small, 75Wh battery, leads to disappointing longevity.
I was under the impression that laptops were meant to be portable.
Oh well, seems like these days, "high performance laptop" is basically just a desktop PC with a monitor glued on it.
 
8:49 PM
@BartekBanachewicz is that a touch keypad? wtf
 
Which, unsurprisingly, makes it portable
 
user1804599
Yay hello world now compiles to SSA!
 
user1804599
Now I can implement code generation!
 
@EtiennedeMartel portable != mobile :p
 
8:50 PM
IRTA SGA
 
@sehe Yeah, but in my opinion, portability implies you can carry it easily and use it nearly anywhere.
Or at least that's what I look for in portable devices.
 
@EtiennedeMartel you can carry it easily, with a wheelbarrow. and use it nearly anywhere....with a power outlet
 
@melak47 that, I think
Linode... What kind of CPU upgrade is that o.O
 
user3010322
Uh.
 
user1804599
@sehe for free?
 
user3010322
8:53 PM
Is anyone here really good with stats / machine learning stuff? Because some of this terminology has thrown me right off the bus.
 
I think I'll still do it, because the storage mean more to me
@райтфолд The upgrade, yes
 
user1804599
Nice.
 
@ThePhD stas and machine learning?
 
user1804599
I think I already have that configuration.
 
user1804599
I have two CPUs and 2GB RAM.
 
8:54 PM
I hope you pay more since I'm a long-running customer. Have seen at least 4 free upgrades in the past :)
 
user3010322
@sehe Yeah. I've got a matrix that tells me what "cluster" the original points map to, and I'm getting a bit confused because I'm supposed to make a one-hot matrix, and...
 
@sehe free cpu downgrade? neat
 
user3010322
... Ergh, it just all doesn't make sense.
 
@ThePhD you lost me :)
 
@sehe Depends on the arch, clock speed, and how many people you're sharing it with
 
8:56 PM
@melak47 I guess they mean it as a "you might prefer this" mix. And I do. But it's unorthodox, yes
 
user3010322
@sehe Yeah, see, I'm lost too, and I can't really come to grips with much else about these data matrices.
 
user3010322
Blargh.
 
user3010322
Maybe if I could find a few Google Preview book pages to learn, since everything else isn't making much sense.
 
'Outlook hangs for several minutes' - lol, dog bites man...
http://meta.stackexchange.com/questions/250761/outlook-hangs-for-several-minutes-when-viewing-stack-exchange-newsletter
 
@MartinJames Oooh they can migrate meta.so -> meta.se now
finally
 
9:04 PM
@райтфолд zoidberg, ahead of his time
 
Also this idea that you start a sentence without knowing how you're going to end it is, well, maybe you do that, but anyone with sense has learnt to think before they speak, and wouldn't dream of such messy habits. — Lightness Races in Orbit 12 secs ago
yeah
 
Well, yes - if you knew everything you want to say before you start, there would be no... not any ...

Is the pub open yet?
 
:)
I'm basically waiting for my next bus which, conveniently, gives me time to finish this large glass of wine.
I'll be hammered before I even get there...
 
When is the next bus?
 
about 30 minutes
inb4 you drink slowly
shut up there's half a bottle in this glass
Tonight I had the most perfectly-cooked ribeye steak in the world, and the Châteauneuf-du-Pape I've had waiting to be drank for a few months...
 
9:10 PM
@LightnessRacesinOrbit If I waited that long to drink wine, I would find it corked.
 
I was hoping to have you here all evening. You are thoroughly entertaining.
 
Aww thanks girlfriend
Busted - Thunderbirds Are Go
yeaahhhhhh
 
kisses
I'm starting on a fresh chateau de caravan.
 
@CaptainGiraffe Round here, 'chateau de caravan' is coffee at the greasy-spoon roach-coach on the A50 lay-by.
 
@MartinJames Not coffee but still pretty close.
 
user1804599
 
huh? How did I end up in c++??
 
@PeeHaa Destiny.
 
Probably :)
Well while I am here. Morning fine people
 
@PeeHaa Sod off, fine sir.
 
0
A: What should I say if someone from the opposite side of the earth says “good morning”?

Lightness Races in OrbitLiterally nobody cares! Just say "hi" or "good <anything>". If your coworker knows you are from some other place on the planet, they will not care about a discrepancy in greeting. The only way you could feasibly get this wrong is if you were to say something totally random that didn't apply to e...

 
9:21 PM
@CaptainGiraffe Sorry. No can do
 
Good timing (no pun intended)
 
> A space sim utilising four dimensions — coming [not] soon!
Jesus @LightnessRacesinOrbit
 
Yeah that's been there for a while :(
But that's the nature of four dimensional existence
 
Fair enough :)
 
Hey, do you want to by whatsmy.pw and forgotmy.pw for £1,200?
That's a discount of £100 total off the list price!!
 
9:24 PM
Elite was for me the last space sim in three dimensions.
 
@LightnessRacesinOrbit ?
 
What is confusing
 
@LightnessRacesinOrbit Damn that is proper way back
 
fuck only got time for one more song
@PeeHaa oh yeah baby
loving it
having an old school playlist night
 
9:29 PM
@LightnessRacesinOrbit play elite with you? or a song?
 
and since I have just one very very long playlist, all I need to do is Home, Page Down Page Down :D
 
and I magically go back to 2005
@melak47 the song I posted
 
@LightnessRacesinOrbit :P
 
too late now
 
9:30 PM
;_;
 
inb4 fifth element was 1997
yes I know but I only got the soundtrack in 2005
so I get transported to 2005 in my mind when listening to it
wow my fingers are just flying over the keyboard cos i'm so gonna miss my bus
right gtg nn
 
@LightnessRacesinOrbit nn
 
youtube.com/watch?v=5GgZ6PBDCGQ at 7:27 Usain Bolt running for the Olympic gold while munching on a Gyro.
 
9:53 PM
@CaptainGiraffe Wow.
Boost 1.39 Range library doesn't offer a way to make an iterator_range from a single iterator by default constructing the end iterator. :(
 
Can you build from two iterators?
 
@caps {}
 
@LucDanton Yes. I'm trying to avoid typing out the second iterator, though.
@sehe make_iterator_range(my_iterator, {}) ?
 
Yeah, , {});.
 
@caps :D
 
10:05 PM
btw it’s the same for all versions of Boost that I know of. Not a reason not to upgrade though…
 
@LucDanton I wish I could upgrade.
The range version of the algorithms would be nice to have.
@LucDanton [bcc32 Error] : E2188 Expression syntax :(
 
> bcc32
YOU LOSE
 
@sehe I know.
 
Well, it works on a conforming C++11 compiler.
 
template<typedef Iterator_t>
make_iterator_range(Iterator_t itr)
{
return boost::iterator_range<Iterator_t>(itr, Iterator_t());
}
 
10:07 PM
Not typedef.
 
@caps You don't know enough... Use template <typename It> boost::iterator_range<It> mir(It f) { return boost::make_iterator_range(f, It()); }
 
Any thoughts on the performance of my suggestion copy_if, vs. erase ? stackoverflow.com/questions/28899556/…
Another funny feature is the answer saying "Accept Captains answer" has more upvotes than The Giraffes.
 
user1804599
So hardcore.
 
@sehe Thanks. That's about what I had (minus my typos) but calling boost::make_iterator_range is an improvement.
 
My gut tells me that modify to a copy is the way to go. But maybe std::remove, erase uses magic that my intuition is unaware of.
 
user3010322
10:19 PM
Why is is so hard to remove empty entries from a list in R.
 
user3010322
Shit.
 
"This library was deprecated in favor of the Bind or Lambda libraries and has been removed from Boost." Awesome. Why not let me read about the deprecated library anyway, just in case, maybe, I don't know, I'm stuck using it?
 
@райтфолд Can you help me with a little device endianness puzzle?
 
@FatalSleep What would be puzzling about little-endianness?
 
No little puzzle for endianness was what I was implying. :P
 
user1804599
10:27 PM
No. Leave me alone.
 
I found this preprocessor for endian-ness checking:
#define ENDIANNESS (*(uint16_t*)"\0\xff" < 0x100)
What I am wondering is how it works.
 
Argh
Why isn't the return type of boost::bind() default-constructible?
 
sigh I want to slap the g++ maintainers right now
they seem to think that it's valid to warn for missing field initializers on an empty braced init
 
My thoughts are that the 0x100 value's endianness is determined by the processor handling the program, while the string literal conversion is not handled that way. However the question is, why does this happen?
 
because in theory the string is two bytes
0x00 and 0xff
 
10:39 PM
Yes.
 
@Mgetz It's been a while since I've compiled any of my stuff with -Wextra on GCC.
 
so it either comes in as 0xFF00 or 0x00FF
 
I'll probably only start doing that again once I start using GCC 5, lol.
There's quite some things that are fixed there, apparently, including stuff related to what you linked to.
 
@Griwes I could see warning on {0} if the first field is convertible to intor if you actually doing aggregate and are missing fields. but {} should not be warned on
 
Yes.
 
10:41 PM
yet more proof that gcc is getting obsolete
VC++ will be obsolete when clang makes it to windows
 
I don't think VC++ and Clang have the same target audience
VC++ is used for the IDE
 
clang is integrating with VS
so you can set it as a target toolset
just like VC++
 
oh, VS allows that?
 
no. VS allows that
 
@Mgetz Well, as far as I've read, GCC 5 managed to catch up with Clang, at least a bit.
 
10:44 PM
wow, the flag count is really 'in yer face' on ChatSEy
 
@Griwes And that is not coming from a GCC fanboy, we can assuredly say
 
@sehe Yeah. Still, I didn't try to use 5.x branch yet, so can't say anything first-hand.
 
@Griwes well gcc has seemed to have realized that they were becoming obsolete but their politics are still slow as fudge
 
ugh this topic again
 
WTF is js trash?
 
10:46 PM
GCC is not becoming "obsolete".
Stop repeating this garbage.
 
user3010322
@Mgetz I don't like the target toolset approach because in the end it's still VC++ options being translated to g++/clang++ ones again.
 
@Rapptz Please reread.
 
@Rapptz never said it was obsolete
 
Same shit.
 
user3010322
I would rather it be a different project type entirely.
 
10:46 PM
Stop spreading this nonsense.
 
Argh, I tweeted something to WotC, they replied, and now I'm getting a massive notification spam. lol
 
@Rapptz I will not refrain from my opinion simply because it discomfits you, the fact of the matter is that gcc has lagged significantly on library and implementation
 
@Mgetz The best example here is stream movability. lol
 
@Griwes or std::put_time or movable streams etc
 
erm
Why did I write "string".
That's how it was supposed to look like.
 
10:48 PM
@Mgetz erm. did the reporter just forget about aggregate initialization? I mean, that bug seems obvious invalid to me coliru.stacked-crooked.com/a/af179474e6c71fbd
 
I got too hyped by the MtG panel to write sanely.
 
@sehe sehe they were reporting that it was warning on {} which is valid
as the intent of that is value initialization
not {0}
 
@Mgetz you didn't read the bug or what I said
 
@Mgetz GCC 5.0.
 
@Mgetz and not my counter example... sigh
 
10:50 PM
I like Uplink
 
@Rapptz In case you didn't notice, I already said that.
 
I did notice. Thanks.
 
Which is specifically what I meant by "please reread".
 
It was a backhanded compliment.
 
The time it took them to get streams right is just a joke.
 
10:50 PM
Like that.
Good job.
 
The time it took them to get strings right (yeah, yeah, binary compatibility blah blah blah) is just a joke.
 
Not really convincing me of anything.
 
@sehe what counter example?
 
Bye now.
 
@Griwes Actually, they waited to get everything right, so they could save it up for just one breakage.
 
10:52 PM
Exactly.
 
if they hadn't had binary compat they could have shipped C++11 string a lot sooner.
it's not an issue you can blah away.
 
@Puppy How is adding movability to streams a breaking change?
 
I'm so confused now
 
well, one simple example is that if they need to change any of the members of the stream, it will break binary compatibility.
 
No, seriously, the only breaking change I'm really seeing here is std::string, because it gets vastly different.
 
10:53 PM
because I did read that bug quite thoroughly, the closer very incorrectly makes assumptions that are not supported by the standard
 
The rest is just either a) better core language support or b) adding a member or two.
 
adding a member is breaking binary compatibility.
 
@Griwes puppy is right
because of the stream inheritance structure
 
it's not about inheritance structure.
 
completely forgot about the v-table issue
 
10:54 PM
it's about the fact that streams are full templates where the full binary structure is baked into every using program
and every function called on them is inlined and ODR'd.
 
I am pretty sure that this particular issue is not nearly as important as you are trying to make it.
 
I am pretty sure that it is exactly the entire motivation for their library strategy.
and they are entirely correct that even very small changes can completely break binary compatibility.
 
Also the binary compatibility is half-solved now, with inline namespaces.
 
and libstdc++ makes use of quite a bit of extern template IIRC too
so yeah that would break shit
 
too late, the programs you need to be compat with were compiled before inline namespace.
 
10:57 PM
They could've provided valid implementations in std::__v2 or anything.
 
I think, I don't actually remember quite how far back it goes.
anyway all I'm saying is that the libstdc++ folks take binary compatibility very seriously and even trivial changes like adding a member can break it very badly.
and their approach does validly reduce the impact of binary compatibility issues very significantly.
 
Yeah, instead of doing that, let's stay 3 years behind the standard.
 
@Griwes There was an implementation of SSO'd std::string in libstdc++ somewhere in an implementation namespace as far as I know.
@Griwes You mean, instead of repeatedly breaking binary compatibility en masse?
on Linux I believe that binary compatibility is a very serious thing.
 
user3010322
Indeed.
 
oh yes... I'm reminded of Linus blasting someone for breaking userspace
 
user3010322
10:59 PM
VC++ breaks binary compatibility every release
 

« first day (1602 days earlier)      last day (3346 days later) »