« first day (1251 days earlier)      last day (3698 days later) » 

3:00 PM
@rightfold great
 
is it dangerous?
 
user1804599
@ScarletAmaranth Yes.
 
@ScarletAmaranth it should autonormalize on comparison
 
user1804599
@ScarletAmaranth No.
 
user1804599
In fact.
 
3:00 PM
are you sure this won't mess something up, someplace?
 
user1804599
user=> 75/150
1/2
 
user1804599
:P
 
user1804599
@ScarletAmaranth Yes.
 
@ScarletAmaranth Yes? Why do you want the two to be different?
 
I don't want them to
 
user1804599
3:01 PM
operator== doesn’t have to check for memory equality.
 
Are you sure your class should be named "Rational" and not "Pair"?
 
I was just wondering whether something somewhere can't assume that it returns false there
 
user1804599
Two things are equal if they are equal.
 
> ) test passed. (104 subcases)
in your face, geometry shader.
 
so for example, if something in the standard requires a regular type, is the Rational well defined returning true for 1/2 == 75/150?
 
user1804599
3:03 PM
Yes.
 
user1804599
They are exactly the same thing.
 
user1804599
That you don’t store them as (1, 2) is just an implementation detail.
 
mmm
fair enough
 
user1804599
In fact, when you have 75/150 and you ask for the nominator, you should get 1 back.
 
@ScarletAmaranth What is a "regular" type?
 
3:04 PM
@R.MartinhoFernandes Well if it's for singing shaders and some other files... it could be plausible. Otherwise... it's just a fucking crazy idea
 
regular in the context of current C++ standard, pedantry C++
 
@LoïcFaure-Lacroix dude all of this was made up
 
user1804599
Store the numbers as mutable members and divide them by their GCD when somebody calls nominator() and denominator(). Call those functions in operator== to check equality.
 
their talk/presentation is in 2 hours
 
@ScarletAmaranth I'm not familiar with that, and neither seems my PDF of the standard.
 
3:07 PM
I am not sure whether the standard uses that exact term, to be honest, sorry to offend your pedantry sensor
 
@ScarletAmaranth No, that's fine. But do tell what it is!
 
type that has ctor, dtor, copy ctor, probably move ctor in 11, and is equality comparable
 
cell networks are a clusterfuck
 
user1804599
Why?
 
(and I think Stepanov would also say some form of ordering needs to be defined, but Bjarne disagrees from what I understand)
 
3:09 PM
@rightfold one of the biggest pains is that nearly nothing is sensibly named
the data model is stupidly complicated too
there is no consistency
and my lord is legacy a cunt and a half.
 
god I'm so terrible
 
@ScarletAmaranth Doesn't seem like there are any constraints on the comparison.
 
I'm in the "I'm terrible" mood
 
Is std::string a regular type?
 
I would say it is
 
3:11 PM
Does op== not return true even if one side is in SBO and the other not?
 
user1804599
 
SBO == SSO?
 
Yeah, B for "buffer", more general.
 
@R.MartinhoFernandes Should return true if the contents are the same, regardless of if the buffer is on the heap or not. If it didn't, SBO wouldn't fall under as-if and would be illegal by Standard.
 
3:12 PM
from what I understand, semi-regular doesn't require equality comparable
but regular does
 
@ScarletAmaranth How's that relevant? std::string is clearly equality comparable.
 
@R.MartinhoFernandes yes, then what's the problem?
or are you referring back to my Rational question?
oh
 
@rightfold love is in the air
 
you're sneaky
 
Yes, I'm trying to convince you that the representation has no interest.
 
user1804599
3:14 PM
@Jefffrey dat pun
 
@R.MartinhoFernandes yeah you're an asshole, well done! :)
 
user1804599
I once wrote a rational type.
 
user1804599
I divided the nominator and denominator by their GCD on every operation, but you only actually have to do that when they are queried.
 
user1804599
Less expensive.
 
user1804599
Well, and on overflow I guess.
 
user1804599
dat video
 
user1804599
Hmm.
 
user1804599
i^x is a nice function.
 
Good job flagging annoying people, everyone. :-P
 
great
now my code can't tell me what is in the exception
because the exception is too large and it can't print it
it's of course using strcpy so it fails there
and throws another exception
kill me.
 
3:22 PM
@Doorknob lol
@Aaღirkhan, you will be able to apologize in 2 minutes
 
@Doorknob should I admit to that?
 
@Bartek "admit"?
 
user3010322
<__>
 
@Doorknob I was thinking about answering him on mso
 
user3010322
She didn't forget. I had tried to let her work and the things in her life slowly eclipse the discussion of the gift.
 
3:25 PM
fun in 30.. 29.. 28..
 
user3010322
And for a whole week, I almost got away scott free.
 
5.. 4.. 3..
 
user1804599
 
user1804599
I think somebody doesn’t like me.
 
@ThePhD didn't forget what again
@rightfold ah great
 
user3010322
3:26 PM
They have such great memories. ;~;
 
^_^
 
@Aaღirkhan so, no bold random shit again, that clear?
especially when I am in the middle of GL|ES rant
 
It is
 
user1804599
@BartekBanachewicz lol
 
a full partiallity
I don't have time lolz
 
3:28 PM
...?
 
having lots of work
 
yeah just gtfo already
 
@rightfold if that's the case, you'll have your rep back
 
@Aaღirkhan bye then
 
while -4 might not be enough to trigger the "mass downvote"
 
3:29 PM
@Ahmad Stay Away,
 
user1804599
I don’t care, really.
 
user1804599
It’s just funny.
 
user1804599
OH NO FOUR REP
 
Who cares about 4 rep?
Yes lol
 
by the way anyone noticed that Jon skeet is in the room
9
 
3:30 PM
yeah, he is
 
bows
 
oh great.
 
oh come on now
he just came back
 
he had like 60 times my rep already last time I've checked
imagine 60 Barteks in a room
 
@LoïcFaure-Lacroix so... SILENCE!?
 
3:31 PM
okey so tesselation stage is borked
 
user3010322
O_O
 
He has more gold badges than I have badges. -.-
 
that's the downside
 
user3010322
He really IS in teh room.
 
upside is that it wasn't me who broke it
 
3:31 PM
@LoïcFaure-Lacroix What.
 
downside x2 is that I will have to fix it
 
shhh don't scare him
 
I wonder if he'll say anything
 
@R.MartinhoFernandes Don't move. He'll lose you if you don't move.
 
he's a mythical creature
of course he won't say anything
 
3:32 PM
He'll just... be
 
It's so ominous
 
ubiquitous
 
Like a sword of Damocles.
 
and I am pretty sure I mispelled that
 
3:34 PM
@EtiennedeMartel or he's one of the 4 horse rider of SO?
 
user1804599
@BartekBanachewicz NSUbiquitousKeyValueStoreDidChangeExternallyNotification
 
@Doorknob and then be lost... like... tears... in rain
 
@rightfold TBH I don't mind names like that
 
user1804599
@BartekBanachewicz Me neither.
 
user1804599
It’s descriptive.
 
3:36 PM
You guys are both nuts.
 
I agree
 
user1804599
You can go too far, though: InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNo‌​tFocusedState.
 
user1804599
But that’s more a result of horrible design.
 
@Doorknob lel
 
@rightfold And a horrible programming language... cough Java cough
 
user1804599
3:39 PM
 
I don't think Java is horrible.
I mean, that depends on the POV. C is way more horrible than Java, for example.
 
@Doorknob I can't tell if this is pretending to be dumb, or actually dumb
Probably both
Somehow
 
@rightfold That's weird.
Is that re(i^x) instead?
 
@Bartek Would you use it in a real project? I wouldn't :-/
@Cat Hence the :-P
 
Because i^x = cos(xπ/2) + isin(xπ/2)
 
3:42 PM
@Doorknob Of course I wouldn't use C in a real project.
 
@BartekBanachewicz he is talking about Java, I believe
 
Then I'd use Scala.
 
user1804599
C has unsigned types and lacks checked exceptions. Hence C > Java.
 
Scala has monads.
 
@Bartek Good point. "Horrible" is a relative term
 
user1804599
3:43 PM
@BartekBanachewicz wooopwoop
 
user1804599
scala> List(1, 2, 3).toSet()
res0: Boolean = false
 
"since we still have no ability to permaban people" If what he said is true, though... MIRACLES HAPPENS WHEN YOU ACTUALLY HAVE A STRONG WILLBoltClock's a Unicorn ♦ 49 secs ago
 
user1804599
Will you still use Scala?
 
Unsigned types, the most useful thing ever
 
@rightfold what
 
user1804599
3:44 PM
@BartekBanachewicz toSet has no parameter lists.
 
@sehe Half life 3 confirmed
7
 
@sehe Brilliant. :-D
 
user1804599
So if you add (), you actually call apply on the result of toSet, with () as the sole argument.
 
@Jefffrey Starring that for potential confusion.
3
 
user1804599
And apply checks whether an element is in the set.
 
3:44 PM
@rightfold whaaat
space is application in Scala?
 
user1804599
Because () and 1 are of distinct types, the Set[Int] gets upcast to Set[Any] and () and then the elements are compared.
 
user1804599
@BartekBanachewicz only for single arguments, AFAIK.
 
for gods sake what the fuck
 
Scala syntax is all kinds of weird and dumb
 
that can't be possibly true
 
3:45 PM
e^(ixπ/2), I guess.
 
user1804599
foo() can mean two things depending on whether foo has zero or one parameter list(s).
 
okay I guess I wouldn't use scala
 
Lol
 
please everyone switch to Haskell already.
 
user1804599
CLOJURE
 
3:46 PM
I don't lisps.
 
user1804599
YOU SCUK
 
lol
 
what's a scuk?
 
@melak47 have you figured out yet how to watch GDC stuff :P?
 
I honestly tried lisps multiple times.
Nope.
 
3:47 PM
@BartekBanachewicz Swiss Connection UK
 
user1804599
@BartekBanachewicz What did you not like about them?
 
(I (don't (like (Lisps (at (all))))))
 
@rightfold ' and # IIRC
 
UPDATE Recovered one of a group of message that I flagged as spam i.stack.imgur.com/9uFZ1.png on monday chat. He was already only coming in to drop the spam then. — sehe 10 secs ago
 
user1804599
3:48 PM
@Doorknob Not very different from I(don't(like(Lisps(at(all))))).
 
parens were kind of annoying too
 
Better Lisp than C++
 
@CatPlusPlus won't argue with that
 
@Doorknob You mean... (I (don 't (like (Lisps (at (all))))))
 
user1804599
Parens are not an issue with decent tools IME.
 
3:49 PM
@LoïcFaure-Lacroix error, not enough parens
 
user1804599
Where decent tools is rainbow parentheses and ParEdit.
 
@BartekBanachewicz I had a lisp, until I got logopedic treatment
 
IMHO if a language prioritizes parsing ease for a computer to parsing ease for a human then something is wrong
 
^
 
user1804599
Well-written Lisp code is perfectly readable for humans.
 
3:50 PM
@ScarletAmaranth no really parens are right... he wrote "don't" where ' isn't a valid char for a symbol as far as I know
 
@rightfold ($)
 
Fine, (do (not (. :-P
 
user1804599
Where “well-written” is not different from other languages; i.e. inter alia short functions focussed on one thing and well-formatted code.
 
not that []()->T{}(); looks any good : - /
 
user1804599
@Doorknob You don’t need do very often.
 
3:51 PM
@rightfold That's true and there is the T-Expression in Scheme yet I haven't seen any implementation of it
 
@rightfold forget these plebs, they don't understand the power of Perl :D
 
@ScarletAmaranth λx → x+1
 
user1804599
@BartekBanachewicz inc :D
 
succ! :D
 
@thecoshman I've forgotten.
 
3:52 PM
Oh, are we golfing now? ).
 
user1804599
(fn [x] (+ x (/ 2 2)))
 
Sorry, my code golf side is coming out :-P
 
Pet peeve #138: People who post SO questions with titles of the form "<X> is the same"
 
@BartekBanachewicz C++ prioritises none!
 
user1804599
Or even better: #(+ % 1).
 
3:53 PM
@LightnessRacesinOrbit ¬_¬ and now there are TWO things I remember I forgot @R.MartinhoFernandes
 
user1804599
Screw (fn [x] …).
 
@R.MartinhoFernandes equally bad at both :F
BTW
I need help with PGP
 
user1804599
@BartekBanachewicz You almost never use ' in Clojure (IOW you only use it when writing macros, which is rare). What is #?
 
@rightfold CLISP had someshit with those IIRC. It was long ago
 
@thecoshman I tried fixing it when I was doing it but I couldn't for some reason.
 
3:54 PM
@BoltClock'saUnicorn It's taking all of the strength of my willpower to not flag that comment. — Servy 2 mins ago
 
lol
 
It's taking all of the strength of my willpower to not flag @BoltClock's message.
 
@jalf Yes it is! It's the same as <X>, all the time
@BartekBanachewicz luz though
 
@Rapptz you and/or wiki suck.
 
3:57 PM
wiki markup sucks
 
uh
gl_TessLevelOuter[0] = 1.0;
gl_TessLevelOuter[1] = 1.0;
gl_TessLevelOuter[2] = 1.0;
gl_TessLevelOuter[3] = 1.0;
gl_TessLevelInner[0] = 1.0;
gl_TessLevelInner[1] = 1.0;
 
(just look at the source of the page)
 
does that ^ make any sense?
because it looks like it fucking doesn't
 
one is outer and one is inner
 
C++ sux so much
 
3:59 PM
Cool
 
@PandaWoll true enough. now what.
 
only .NET
 
meh, get out.
@Rapptz hmmm
 
user1804599
@PandaWoll Indeed.
 

« first day (1251 days earlier)      last day (3698 days later) »