« first day (1503 days earlier)      last day (3439 days later) » 

10:00 PM
I don't want it to suddenly overflow after 5 hours or so.
Thanks btw.
 
Good night
 
It's unlikely to
 
user1804599
@Jefffrey Int64
 
At 60FPS 5 hours is barely a million frames
 
10:04 PM
2^32 even halved is a big number :v
 
user1804599
How do you search in a specific language on Google?
 
user1804599
In the past there was a button to search only pages written in Dutch but it's gone.
 
They abandoned you.
 
user1804599
Oh the button appears when I add hl=nl.
 
10:07 PM
@Jefffrey I hope you use 64-bit platform. Int has 64 bit there and that won't ever overflow as a frame counter
 
Neither will 32-bit one
 
user1804599
When I first talked about CoD to a friend he thought it was an abbr for "Cock of Destiny"
 
user1804599
@StackedCrooked lol dat video
 
@CatPlusPlus There are 108'000 frames per hour at 30FPS. 2^16 = 65'536. So, apparently it will.
 
10:15 PM
2^16 is not 2^32
 
@Jefffrey uh who said 2^16
 
halved
 
that's 2^31
 
2^32 halved is 2^31
You butt
 
come on Jefff.
 
10:15 PM
shit I'm dumb
 
@CatPlusPlus buttt
 
I'm so sorry
 
user1804599
> yeeheheeee I finally killed somebod … oh
 
user1804599
lol
 
@rightføld 4:55 :D
 
10:15 PM
I'm fucking stupid
 
@Jefffrey pat pat
here's a star to cheer you up
 
jesus christ 2^32 / 2 = 2^16. Seriously jefffrey.
 
user1804599
Bunch of noobs.
 
they are noobs
 
user1804599
OTOH they are better at life than the non-noobs.
 
10:17 PM
and you even studied integer formats FFS so you should know there's 1 bit for the sign
in some interpretations
 
Some of them didn't even do that bad considering they never gamed before.
 
user1804599
@Jefffrey Word64 ftw!
 
hmpfh I should shave
 
Gamepads are a terrible input method for shooters so there's also that
 
user1804599
@BartekBanachewicz lasers
 
user1804599
10:20 PM
Never shave again.
 
@CatPlusPlus true
 
Ok, yeah, Int64 will be enough.
 
I never tried to play with a gamepad though.
 
... for everyone
@rightføld have you done that
 
user1804599
No but I might.
 
10:21 PM
WASD keys aren't great for movement though.
 
4'000'000 millennia seems a long time to play a game for at 60FPS.
 
user1804599
Unless I find a method that's cheaper and at least as safe.
 
uh
I hate myself for doing
 
user1804599
I want to get rid of all hair except eyebrows, eyelashes and head hair.
 
if (x) {
    doStuffWith(x);
}
this code is so terrible
 
10:23 PM
It is?
 
it is if it's JS
every if should be a type reification :|
 
the what fuck?
 
because once it passes the condition, you know more about it's type and or value
 
just say x && doStuffWith(x); then
 
@sehe meh, still
 
10:23 PM
@BartekBanachewicz you mean, just about the state
 
@sehe more like pattern matching extraction
case x of
    Just xVal -> doStuffWith xVal
    Nothing -> blowUp
either doStuffWith should take Maybe, or I should alter x somehow
 
user1804599
doStuffWith (fromJust x)
 
the way it is here is informal
 
user1804599
Assuming blowUp blows up.
 
@rightføld I've banned fromJust from my codebase
 
user1804599
10:25 PM
lol
 
user1804599
So now instead you are duplicating its source everywhere?
 
fromJust is the only function ever that my Haskell programs crashed on.
 
Has your city's water ever been so bad, a majority of people are experiencing hair loss? :v
 
@rightføld No? It's not the only way to extract the Maybe data
and pattern matching on Nothing ensures you handle the Maybe correctly
fromJust is as bad as my JS example; it breaks formal contracts and introduces an informal one
 
user1804599
maybe blowUp doStuffWith x
 
10:27 PM
@rightføld You mean doStuffWith (fromMaybe x)?
 
user1804599
No.
 
user1804599
If I meant fromMaybe I'd have said fromMaybe not fromJust.
 
doStuffWith (fromJust x) is a type error, unless doStuffWith takes a boolean.
 
user1804599
No.
 
user1804599
fromJust (Just x) = x
fromJust _ = undefined
 
10:28 PM
@Jefffrey you're mistaking it with isJust
@rightføld precisely
 
jesus christ
 
user1804599
It's a partial function.
 
why don't you got to sleep Jeff.
 
I should just shut up today.
 
user1804599
You can use maybe blowUp doStuffWith x.
 
10:29 PM
The more I talk the more I compromise myself.
 
I should go to sleep too
waking up at 6 tomorrow :/
 
user1804599
Or doStuffWith (fromMaybe blowUp x) if blowUp :: a.
 
user1804599
But that's just obscure.
 
user1804599
I love Korpiklaani.
 
user1804599
Kipakka is so happy and nice.
 
10:33 PM
@rightføld yeah it's a cool band
 
user1804599
Seen em live it was awesome.
 
git v2.2 released btw
 
user1804599
I even have talked to band member just before he was sent out of the building because he was smoking and that wasn't allowed.
 
user1804599
He seemed very drunk or stoned.
 
user1804599
But that may just be his usual state of mind.
 
user1804599
10:37 PM
wat
 
user1804599
EMP does Black Friday.
 
user1804599
In the Netherlands.
 
user1804599
Pretty awesome stuff though.
 
user1804599
@Rapptz What's new?
 
10:44 PM
If I use operator>> with on a stringstream to an int, how can I specify the base of the number as represented? (16, if it makes a difference)
 
std::hex
in >> std::hex >> number
 
@Rapptz Oh, bah, thanks!
 
user1804599
Worst API ever.
 
user1804599
Stupid unnecessary state.
 
user1646075
@rightføld :-) of course it seemed like a good idea at the time
 
10:48 PM
@rightføld Write a better one.
I think I asked you to provide your version of a similar thing some time ago. I don't think you replied. :D
 
@rightføld ungrokkable
 
user1646075
@Griwes Gosh. Challenge accepted. Let me just spend a month or six
3
 
@Griwes uh ffs
are you really implying that a hack over lack of variadics and/or typechecked interpolation from C++03 is good?
Just because it's been there for 11 years? (or more)
 
Did I say it's good?
I hate the API.
It's just I haven't seen a truly better one yet :/
 
user1646075
@Griwes Write a better one.
 
10:51 PM
@Griwes telling rightfold to write a better one is even dumber.
@Griwes then you've seen surprisingly little.
 
hey kids, don't fight
 
when people hate on iostreams they forget a key part of iostreams is UDTs.
 
no, they don't
 
so whatever solution people have to come up with has to work with UDTs.
 
10:52 PM
the UDT part is the only remotely decent part of iostreams
and nobody wants a new solution that does not work with UDTs.
 
user1646075
text formatting has always been fugly. Chekkit on most languages going right back to way back.
 
it's just that literally every other aspect is about as bad as could be imagined.
 
@Puppy Uh yeah they do. I've argued this countless times and people always forget about the UDT aspect.
Good job on you remembering but remember that you != everyone else.
 
ok
UDTs in what exact context?
 
Providing a better alternative to iostreams.
 
10:54 PM
no, I meant, what exact part of iostreams is good w.r.t. UDTs?
 
Despite people bitching about format flags being part of the state, it works well with UDTs.
Like, e.g. I can make std::hex work with my UDT if I wanted it to.
 
er
so goddamn what?
you're taking one of the most terrible features and making it work for your own type?
 
So it god damn works.
 
hardly a big deal.
 
Yes because it works.
People like things that work.
 
10:55 PM
so does writing programs in assembler but I ain't gonna do that.
 
so does C# formatting jesus
 
or writing web apps in PHP.
 
There are many things that work.
They are not necessarily good.
 
just because it's technically possible to produce a program that compiles and produces the expected output does not make it a workable solution.
 
PHP works too.
 
10:55 PM
seriously streams are a fucking hack
 
Pretty damn fine.
 
I'm not defending iostreams BTW.
 
for example, you can make std::hex work with your UDTs, but making it unwork is another matter.
 
I have used iomanip stuff several times and with sufficient effort you can make it align a column.
 
@StackedCrooked Just wrap it into a format string facility (like I did) and it becomes trivial.
 
10:57 PM
making std::hex work for a UDT would be useful if std::hex was useful.
but since that shit is crazy, it's not.
 
I appreciate your outlandish opinion.
 
statically checked format literals are prolly the most sane way you can do string formatting
 
personally I prefer to just write code to format my text.
if I ever actually need to format it.
 
but then again last time I've seen such an implementation it used dependent types so there you go
 
Actually I remember the hex one:
for (auto byte : bytes)
    std::cout << std::setfill('0') << std::setw(2) << std::hex << static_cast<int>(byte);
 
10:58 PM
@Puppy yes people actually need to format text.
 
just use std::showbase
std::cout << std::hex << std::showbase << +byte
 
@BartekBanachewicz Sure, but "A string with some spacing" is hardly great formatting.
 
It's very annoying that uint8_t are treated as char by iostream.
 
typedefs
 
can't change that.
 
11:00 PM
@Rapptz TIL about std::showbase.
 
Anyway if anyone can make an iostream alternative that works with UDTs and isn't a PITA (see C#) then by all means write about it.
 
I don't know what to think of the steam game platform. A friend asked me for some help to download a game (6.6 gb) and after that download, the updates have started being downloaded (other 3 gb)... why can't they just install those into an image, more or less as we used to do with Windows ISOs? Darn..
 
Xeo
@MarcoA. That... has nothing to do with Steam itself?
 
dunno :/
 
@Rapptz "is a PITA" is such a well-defined concept when it comes to formatting yes
 
user1646075
11:03 PM
but they could check-point builds on a regular basis, and make fresh installs from B = A + A' + A''.
 
because it doesn't use the same ABI and it's not the same object you are supposed to run as an user . — user2485710 6 mins ago
 
user1646075
always starting with A and patching is sucky
 
Can anyone hit me with a clue stick here ^
 
@Rapptz Defining operator<< on UDT is not hard to do.
 
@StackedCrooked I know.
 
11:04 PM
Is it true that specifying -g changes the ABI? I don't believe it
 
So UDTs aren't a big challenge I'd think.
 
> "$1,234.56 2.22 USD 3.33" parsed as: 123456, 222, 333
waaaat
(in std::get_money)
 
@StackedCrooked I'm talking about how other languages do it in comparison to C++.
 
that's not how you parse money
unless you want to lose them
 
@sehe would a normal one work as well?
 
11:07 PM
nope
 
@sehe Pretty sure this isn't right.
Maybe he used the wrong word?
Hm.
 
That's what I think. But I wasn't ready to keep telling him
@Rapptz Nah. Any other word means his point is irrelevant
 
@Rapptz C++ is kind of great in that regard. Implementing a pretty printer for stl containers is a fun thing to do.
One thing that is currently lacking is the ability to detect a container.
 
I didn't know boost::variant was that much faster than polymorphism.
@StackedCrooked Tedious to write but possible
 
@Jefffrey You got cents out of it. What else should that do? :D
 
11:11 PM
Sure, by simply adding overloads for all STL containers. It's a finite set.
 
Well no
You can just write a type trait for it
 
I use has_begin_end because it's easier than defining the is_container trait
 
There's no is_container trait is there?
 
roll your own
 
11:12 PM
@Griwes right
 
Then you'd need to specialize the trait for each STL container.
 
No
Just use the table given for general container requirements.
@StackedCrooked has_begin_end (or.. well is_container)
 
@Rapptz Obviously it depends. But here it's locality of reference with the small values. Now it's a linear scan with condition on the first int and add 1 on the next, pronto. Compare that with virtual invocation through heap-pointers (non-local). I'm surprised the dynamic version performs so well. I think it could be devirtualized
Anyways, I'm too tired to keep looking at assembly listings. I'm off to bed
 
@sehe because Intel
Variant is great if you have a closed solution space.
And the solution space isn't bigger than 10 :D
 
Ell
evening
 
user1646075
11:21 PM
@Ell Morning squire.
 
user1646075
how's tricks?
 
Ell
tricks? :)
is there anything besides good error messages that we can't do now without concepts lite?
 
@sehe It definitely does use the same ABI (Itanium)
MSVC has the same binary ABI but the library ABI is different, I believe.
 
Will you guys tell him if I undelete that comment thread?
 
the only difference between debug and release is that in debug, you don't run opt passes and you do generate debug symbols.
 
11:26 PM
@Puppy Except with gcc or clang where you do run the opt passes. Clearly, as you can see from the assembly.
 
Opening a file dialog triggers a wakeup of external HD which takes ages and this blocks the file explorer. And I just wanted to load something from my desktop :(
 
well I believe that in Clang you can command it to run whatever opt passes you want.
 
Optimization is orthogonal to debug symbols even in MSVC. AFAIR the VC++ team made quite bit of noise about their debugger being better equipped to show the debug information in optimized builds in a recent version
 
and that -O is just effectively pre-sets.
 
@Puppy indeed.
 
11:27 PM
ah, yes
I didn't mean to imply that opt passes and debug symbols were linked as features- they're not (except that opt passes can degrade debug info)
only that those are the usual pre-sets you get.
 
> A security researcher just reverse-engineered the code of Uber’s Android app and made a startling discovery: It’s “literally malware.”
http://www.cultofmac.com/304401/ubers-android-app-literally-malware/#XqeWStT8tsPGMwJZ.99
They misspelt "Hilter"
@Puppy indeed :)
 
user1646075
@Ell life, funz, etc
 
Ell
@GuruAdrian it's alright ta, and you?
 
user1646075
not bad, waiting out the end of this friday. We have a pub-lunch for someone leaving to squeeze out a baby, so there's at least a light beer in that. Maybe a nice juicy steak.
 
user1646075
warm weather, fresh breeze. Nice.
 
Ell
11:42 PM
Nice
it's pretty nippy this side of the globe
but I have this weekend off work which is good
 
user1646075
Nice. I'd guess around xmas will be hectic in that game. Wonder if delivery folk get xmas gifts like the postman used to ;-)
 
user1646075
might at least score some eggnog
 
user1646075
hmmm speaking of eggnog, might make some this year. I made it once with OP rum, and I doubled the recipe because 2 litres didn't seem like enough. Talk about struggling to finish by the end of it. Combination of too much richness and getting buzzed again just to finish it off before it went off.
 
wtf is eggnog
 
user1646075
11:49 PM
so many recipes to choose from
 
so basically a custard/cream hybrid
that you... drink?
that seems odd.
 
user1646075
yup - nutmeg and stuff.
 
user1646075
and alcohol.
 
so... Baileys.
 
user1646075
should be creamy not custardy
 
11:50 PM
we just drink that all year round here.
 
user1646075
similar
 
user1646075
a bit different. and it can be fluffy too
 
@Ell Concept based overloading
you could probably hack it in
but it won't be pretty
 
Ell
@GuruAdrian Not sure really. People might order pizza for a new years party
 
iow sfinae
 
Ell
11:52 PM
@Rapptz isn't that just enable_if though?
 
officially my place offers 24h support to some of our customers but I'm too juniour to be called up
@Ell Yes, and it's a fucking bitch.
 
@Ell You have to negate the other condition(s).
Easy to get wrong.
and not very manageable.
 
@Rapptz Or do the @Xeo (IIRC) thing :P
 
Is it possible to redeclare private variables of a base class as private variables of a derived class? e.g.
class base {private: int x;}
class derived : public base { private: int x; }
?
 
Xeo
@Griwes wut
 
11:54 PM
no.
 
@Xeo Beating overload resolution into submission, that was you, right? :P
 
@Xeo I think it might actually have been robot.
 
Xeo
ah, yeah
 
the rank<1>, rank<2> thing
 
Not sure how that's not "hacky" lol
I think it's worse than negating actually
 
11:55 PM
How is it hacky? lol
 
Surely you're joking right?
 
Ell
@Griwes yah
 
It's at most as hacky as enable_if. :P
 
Ell
I read it the other day
 
no
 
Ell
11:56 PM
but it was early morning so I didn't retain much
 
@Ell :D
 
Xeo
@Puppy nope, 'twas me
 
@Ell It's just SFINAE + a choice<N> derived chain in the arguments
 
@Rapptz See? Not that hacky. hides
 
it's as hacky as it's gonna get bub.
though I've seen worse so iunno
pfultz2 tends to make everything look hacky
 
Xeo
11:59 PM
@Rapptz :<
 

« first day (1503 days earlier)      last day (3439 days later) »