« first day (1718 days earlier)      last day (3456 days later) » 

13:00
@R.MartinhoFernandes because the motorcycle would not drive at the right part of the lane, the car driver would have better view and would not change lanes.
Not saying filming car driver is the primary felon here, but their driving definitely contributed.
Also for all we know, he's waiting to return to the right lane after overtaking, but there's a crazy motorcyclist about to ram whoever gets in their way.
if I allocate an object dynamically (heap) I know the syntax if I want to declare it first
Possible, it's also possible that the motorcycle is undercover secret agent and the car hit him deliberately as an assassination, just not too likely.
@R.MartinhoFernandes dick lane change is a thing though
@BenjaminGruenbaum The motorcycle has no business overtaking with a car on the left anyway. He didn't force the motorcyclist to do a dangerous overtake, because overtaking is optional.
13:01
that.
the overtake was badly planned on the motorcycle part
@R.MartinhoFernandes yes, just because there is someone whose fault it is more doesn't mean the others were OK.
I have to link to convert a ptime to string
thx boost :<
Bike was overtaking the filming car from the right of its own lane so it was illegal to begin with.
basically what the motorcyclist was trying to do was get in the middle of moving cars
Ven
Ven
@sehe Nice, ty
13:02
@BenjaminGruenbaum that's not illegal.
@BenjaminGruenbaum You're reading way too much.
The car on the right did not verify that the lane is clear before starting the overtake.
The car filming was in the wrong lane.
@BenjaminGruenbaum For all we know the bike was there on the right all along. No overtaking.
@BenjaminGruenbaum the car filming might have been overtaking as well
@R.MartinhoFernandes not according to the video
13:03
@BenjaminGruenbaum not necessarily
we can't see that that's the point
@BenjaminGruenbaum Where do you see the bike?
May be the filming car is letting the other car out to overtake.
We're not seeing the same video, I think.
Good morning!
13:04
@R.MartinhoFernandes in the right section of the left lane.
@BartekBanachewicz that would place more blame on the car.
@BenjaminGruenbaum That's during the stupid overtake.
basically don't overtake in the middle of the road
@R.MartinhoFernandes he bypassed the filming car in its own lane though.
@BenjaminGruenbaum Where do you see that?
right before the crash he's indeed on the left lane robot
13:05
There's no evidence the bike started on the left lane behind the filming car.
@BenjaminGruenbaum That's how lane switches work. You switch lanes.
Ven
Ven
@sehe omg, that "tag<struct X>" is soooo smart. I love it.
well we don't know how early he got there
Exactly my point.
13:06
Meh, I blame @BartekBanachewicz for the accident.
It's a crappy video
it's a gif
Lounge<Drivers>
@Ven me too
@AndyProwl of which none crash
13:10
I PASSED THE SECURITY EXAM
Ven
Ven
gz
congrats
@AlexM. Lounge<Expert<Drivers>>
AMAZING
Bartek, BEng incoming
Don't worry the final exam is the worst
13:11
lounge<Bartek>
@CatPlusPlus Is that the one everyone passes
user1804599
@Ven bz2
I like cat's optimism ... just like a barrel of crude oil on a bush fire
except that one drunk guy
Ven
Ven
@rightfold [
13:14
@BartekBanachewicz AKA "I hacked the results table"
@BartekBanachewicz congrats!
@BartekBanachewicz Seriously the worst
I'll manage
can't be dumber than the sec exam
@BartekBanachewicz Why do you have such a low standard? Everyone else is saying 'I got an A/distinction in XXX', you are screaming 'I passed XXX!'
lol standards for grades
fuck grades
Hitler on Grades 17
Burn grades
@chmod711telkitty I don't really care about grades except whether they are pass or fail
Ooh someone answered my question.
13:17
@BartekBanachewicz They will matter when you apply for masters
Not really
@khajvah they won't
here's gear porn to celebrate
a lot of universities don't even look at you application if your GPA is low
maybe polish universities are different, here you need a credit average to go on to masters
has gears this time
user1804599
13:18
nobody gives a fuck about motorcycles
Maybe if you were applying to different uni
@rightfold you're clearly wrong
But on the same one nobody cares
@rightfold Bartek does. But he also gives a fuck about haskell so I dont know
13:19
@CatPlusPlus his current one sucks(according to him). Why would he apply to the same?
The America Motorcycle Association itself has over 235000 members
@chmod711telkitty 'Pledge' means something unique at polish unis.
@khajvah I could do a MSc in math I suppose
or physics
Building Boost is a Greek tragedy, just use the available prebuilt binaries. — Hans Passant 29 mins ago
lol
user1804599
lol
13:21
@BartekBanachewicz Math is nice
If you can't build Boost then I have some bad news for you
5
@MartinJames I searched for the word 'pledge' in google image & I got this:
@CatPlusPlus Am I gay? What is the bad news?
"You're incompetent"
Xeo
Xeo
std::sort(xs.begin(), xs.end(), [](X const& left, X const& right)
{
    if (left.first > right.first)
        return true;

    return (left.second < right.second);
});
I think my comparator is broken
13:24
@chmod711telkitty who the fuck pledges their cat to a pile of loose change
Xeo
Xeo
not quite sure how, though.
it should compare return false if (first,second)==(first,second)
@sehe but ... but ... that cat looks well fed ...
there's a number of motorcycles from the UK but I am afraid to buy one because it has a steering bar on the wrong side
Does it? I don't think so
13:25
@khajvah Ugh
lol dat flag
what flag?
the impossible flag
also apparently 38% of the year still failed the sec exam
13:27
that's a rock in space
Xeo
Xeo
@sehe Actually, it should. Assuming (10, 2), 10 > 10 == false, 2 < 2 == false, so overall false
the flaw is elsewhere
robot halp
@BartekBanachewicz clearly photoshop, it is floating
3
@Xeo Don't use > :<
@Xeo Requirement-wise it seems ok to me, perhaps you just want a different comparison logic?
@R.MartinhoFernandes Why is it shining?
13:33
@Nooble It's not light, it's dust and ice and stuff like that.
@R.MartinhoFernandes Oh I see.
@R.MartinhoFernandes a PS4 controller in space?
It's 67P/Churyumov–Gerasimenko.
That's an odd name for a PS4 controller
it's probably a PS3 controller
13:34
lol
speaking of controllers, have you guys tries the steam controller?
ESA releases photographs under CC BY-SA :S
My controller has 104 keys.
Xeo
Xeo
@R.MartinhoFernandes But.. I want it ordered by > on the first component :<
@Xeo Irrelevant.
user1804599
13:36
@R.MartinhoFernandes why ":S"?
NASA releases photographs into the public domain.
user1804599
Yes, so?
Xeo
Xeo
@R.MartinhoFernandes Okay, I'm drawing a blank here - what else should I do?
user1804599
ESA isn't obliged to do everything NASA does.
I recommend rum
Xeo
Xeo
13:38
oh, got it
Likely still broken, though.
user1804599
They're both corrupt profit making companies with their own desires and needs.
Xeo
Xeo
in case of left.first < right.first, I still went on to compare .second, although I should've bailed immediately
return right.first < left.first || !(left.first < right.first) && left.second < right.second;
user1804599
error
user1804599
13:40
error: '&&' within '||' [-Werror,-Wlogical-op-parentheses]
That's the worst warning ever.
user1804599
It's a very nice warning.
Don't listen to rightfold.
10
Would this work too?
return (lhs.first == rhs.first)
     ? (lhs.second < rhs.second)
     : rhs.first < lhs.first
-11
A: Is there an elegant way to make every method in a class start with a certain block of code?

Kokou Egbewatttry going around this by creating an extra function which does the test for u. then invoke it at the beginning of each function. class Foo { private void _testfoo(){ if (!fooIsEnabled) System.exit(0); } public void bar() { this_testfoo(); //... } ...

gold
13:43
@AndyProwl Don't use == :<
@Mr.kbok ahahaha
How to write op<: use only <.
@R.MartinhoFernandes Why not?
Violates the first rule of writing comparators: use only <.
But why does that rule exist?
13:44
Can I avoid redownloading software when reinstalling Windows
can you use subtraction?
@AndyProwl Because < is the one that provides the semantics you want.
Like, copy the entire folder beforehand and paste it into the newly installed system
@Columbo Yeah.
== doesn't necessarily do that.
13:44
@Nooble Don't Games do certain registry entries or the like?
@Columbo I was about to say...
And won't that break that pasted bit
Xeo
Xeo
    if (right.first < left.first)
        return true;

    if (left.first < right.first)
        return false;

    return (left.second < right.second);
The test you want there is "is lhs.first incomparable with rhs.first?", which is not the same as "is lhs.first equal to rhs.first?"
Yeah, you'd have to copy your registry.
And path variables.
13:45
I really need to read up more on the technology I'm working with :\
@thecoshman Said no programmer ever
user1804599
return std::make_tuple(left.first, left.second) < std::make_tuple(right.first, right.second);
vOv it's going to start mattering more and more that I know about these shitty phone things
@rightfold Wrong semantics.
@R.MartinhoFernandes I think I still don't get it :(
13:46
did you know they work wirelessly now?
@AndyProwl Ooops, bad copy&paste, sorry.
Fixed.
why not make_tuple(l.first, l.second) < make_tuple(r.first, r.second) ?
@AndyProwl is it super cold?
user1804599
or tie or we
user1804599
:c++:
Xeo
Xeo
13:47
42 secs ago, by R. Martinho Fernandes
@rightfold Wrong semantics.
@rightfold Yeah, still wrong.
@R.MartinhoFernandes I implicitly fixed the typo while reading, I know what you meant - but I still don't get it. How is my snippet broken?
won't the tuple's operator do exactly that?
Xeo
Xeo
return std::tie(right.first, left.second) < std::tie(left.first, right.second);
hahaha
@AndyProwl It checks for equality when it should check for incomparability.
Xeo
Xeo
13:48
that works too
@Xeo lol
@R.MartinhoFernandes But why should I check for incomparability? I don't see how checking for equality breaks things
Ell
Ell
My phone is invincible
user1804599
your fault for writing cryptic code in the first place
Ell
Ell
I dropped it face down onto a marble floor
No damage
Xeo
Xeo
13:48
Is it an old Nokia?
Ell
Ell
Amazing
Its a One Plus One
A Nokia would have cracked the marble :P
@AndyProwl Because equality is simply not relevant here: en.wikipedia.org/wiki/Weak_ordering#Strict_weak_orderings
Xeo
Xeo
@AndyProwl strict-weak ordering is defined by <, nothing else.
not equality, just comparability
user1804599
With SRP violation comes fragility. Example: smartphone.
Xeo
Xeo
@Ell :D
13:50
@rightfold what happened
@Ell oh
Xeo
Xeo
So, the my tie version works, but I'mma go with the written-out version
@Ell to the floor?
user1804599
smartphones typically break easily
user1804599
throw them from the tenth floor: broken
@AndyProwl "neither a < b nor b < a" is not the same as "a == b". Fuck maps.
user1804599
13:51
throw normal phone from the tenth floor: works fine
C++ maps essentially use equivalence classes as keys. (Note how hashmaps use actual equality instead)
@Nooble I really don't want to reinstall Win7, but it got so slow and takes ages to start up
@Columbo Fresh installs are nice though.
So I more or less feel obliged t
@Nooble They definitely are.
I'll start by saving the AppData folder of Thunderbird I guess....
Oh, wait! There's Windows easy transfer?
wtf is that bullshit?
Ell
Ell
@sehe no damage to the phone or floor vOv
13:53
@R.MartinhoFernandes Well, mathematically speaking yes I get it, but if you have types with value semantics in C++ for which < is defined, then == is usually defined as well, isn't it? With a == b holding when !(a < b) && !(b < a)
@AndyProwl No, not necessarily.
You can have elements that are different, but still not comparable.
@R.MartinhoFernandes That's quite rare and doesn't conform to usual Concepts required by associative containers
@Ell just <karma depleted/> then
3 mins ago, by R. Martinho Fernandes
C++ maps essentially use equivalence classes as keys. (Note how hashmaps use actual equality instead)
@Columbo It's not "rare". Essentially any type with a pair of incomparable values works as an example.
13:55
example NaN
Really good one, yeah.
> Locally mined coal provides power for refrigeration units that further cool the seeds
this is real world Factorio guys
@AndyProwl There are even mathematical objects for which that doesn't hold.
@AndyProwl i.e. you can have such an implication, but it's only in one direction.
@R.MartinhoFernandes But then shouldn't == be defined to return false too for that pair of values?
@Mr.kbok I never understood NaN :(
@Griwes "mathematically speaking yes I get it" :D
13:58
@AndyProwl Yes, but it should return true if equality and incomparability are to be the same.
@AndyProwl Okay - so you should get how easily we can have C++ objects modeling those mathematical constructs.
@R.MartinhoFernandes I guess my (likely incorrect?) point was that most of the time they are meant to be the same
If the values are distinct, == returns false. But being distinct is not enough for them to be comparable.
I can't think of a good example where they wouldn't
Ell
Ell
How about colours? vOv

« first day (1718 days earlier)      last day (3456 days later) »