« first day (1250 days earlier)      last day (3702 days later) » 

9:00 PM
but index + index it doenst
 
Well, that was just an example about how specifying a strong typedef feature is either lackluster or hard.
 
you can add two ints
you should be able to add to index
 
Xeo
everybody wants something else out of 'strong' type aliases
 
I still claim you have all the tools you need in the current C++, you just need to work out the details in your boilerplate code.
 
if you want to define that adding two indices doesnt make sense, you need something different than strong typedefs
 
9:01 PM
@Xeo Exactly.
@gnzlbg Then strong typedefs are very lackluster.
 
And since what @Xeo noticed is true, this is probably as far as we will ever get - everyone implementing strong typedefs that suit them specifically.
 
Xeo
it's also a question of inheriting traits etc
 
@Griwes github.com/gnzlbg/arithmetic_type give it a try, if you fix all the problems it has, i'll send you cookies
@R.MartinhoFernandes IMO a strong type def creates a type that is identical to this one, but which is not this one, expecting anything else is too much.
 
@gnzlbg I don't need cookies; how much do you pay in $/€/your currency of choice?
 
@Griwes His currency of choice is cookies!
 
9:02 PM
@Griwes Can I have the cookies then?
 
@R.MartinhoFernandes Damn. You got me.
@gnzlbg Define "a type that is identical".
Does "type identity" involve nonmember operators?
 
std::is_same returns false?
for me that would be enough
a type that implements all operations of another given type, but for which std::is_same is false
 
@gnzlbg Does this involve nonmember operators?
 
I see our class Lounge has no function.
 
int has conversions to double. Are you forsaking those operations?
 
9:04 PM
@Borgleader Sure. We will stop making dev kits when the consumer version is out.
:D :D :D
 
@R.MartinhoFernandes all those operations must still be there for me to be consistent with what i just said
just instead of a conversion int -> double, it would be magic_int -> double
 
@gnzlbg Please define it using language terms. You want every free operator to keep working with a given type?
 
@Griwes don't you like cookies? everyone likes cookies
 
Then I fail to see its usefulness.
I already have a type that does everything int does.
 
int -.-
but yeah
new type converts to double, and from there back to int
 
9:06 PM
If so, here comes a question: if you copy operators and stuff, do you also copy all other functions?
 
and you gained nothing
 
Yeah. So here we go: define "a type that is identical to another".
 
@Griwes you copy the class, change its name, and all the occurences of its name within the class, you get a different class, which can do the same stuff as the original, but has a different type
a typedef is an alias for the type, a strong type def is like a typedef, but creates a different type, for things like ints, due to conversion rules, it wouldn't be very useful
 
So everything defined inside continues to work, and that's it?
 
Xeo
@gnzlbg what about free functions?
 
9:09 PM
inb4 "it's simpler in Java, because it doesn't have free functions"
 
this is the moment in the Hitler videos when hitler tells everyone to go out, and starts shouting
 
@Griwes inb4 java is terrible
 
@Xeo what about non-member but friends that are inside the class?
 
@Borgleader inb4 "everything is terrible"
 
i'll better go eat something
 
9:10 PM
@gnzlbg We are asking these questions here. You are asking for a solution to your problem, but keep failing at defining the problem!
 
I think something like Haskell's deriving would work nice.
(Biggest gripe in Haskell is the usual: too coarse typeclasses or generally messed up typeclass hierarchy, especially in the fucking Prelude)
 
Xeo
generalized newtype deriving?
 
can i do struct MyInt : private int {};
probably not
 
Xeo
@R.MartinhoFernandes hah. Isn't there also the problem of overlapping typeclasses? i.e., the reason there's Kleisli
 
9:14 PM
@Griwes i'm not asking for a solution anymore, I desisted
 
@AlexM. Hahaha xD
 
@AlexM. >shitaku article
 
now that I watched that video it kinda make sense
she is sorta cute (IRL)
 
@R.MartinhoFernandes rust traits also work nicely, but you always have to constrain them (unlike C++ where a template can take anything)
 
@AlexM. Ridiculously photogenic attorney?
 
9:16 PM
@gnzlbg Is there a mechanism for selectively propagating them freely?
 
@Borgleader more like ridiculously adorable attorney
 
That's what deriving does.
 
am I being sexist here? I think it's in a good way, even if I am
 
And you can write your own deriving logic with TH. (And even post-hoc at that)
 
can you be sexist in a good way? lol
 
Xeo
9:17 PM
@R.MartinhoFernandes after reading up on TH, it's weird
with the phases of translation, and type-safety
 
@R.MartinhoFernandes AFAIK no, you can build upon them, <strike>but you cannot deal with them as values</strike> yes you can
 
@AlexM. yes. by respecting the sexes (that's impossible without discriminating)
 
Xeo
that reminds me of a game we played during our christmas party. very fun, but takes some getting used to
 
I played one of the Catan expansions (explorers and pirates) took so long to set up xD
+ we had to read all the rules because it was our first time playing it
 
9:27 PM
Was it any better than the base game?
 
user3010322
Question.
 
@jalf I'm not a big fan of the base game. Cities & Knights or I'm not playing.
 
user3010322
I have an array of 40,000 doubles
 
@ThePhD Answer
 
@jalf It was interesting, it has no action cards, instead you get boats, ports, there are islands to discover you can make settlers, there are a few additional rules we didnt try (involving pirates and other stuff)
 
9:28 PM
@R.MartinhoFernandes Yeah, hence my question. The base Catan game is pretty mediocre :)
 
@R.MartinhoFernandes How many expansion are there total, 3?
 
user3010322
I want to modify each one of those doubles with a single function. Should that function be returning by value, or just taking a non-const reference and working with that?
 
Any of you played Risk Legacy btw?
 
user3010322
@jalf I still love the base game, but I've never played anything else. vOv
 
@jalf let me check
 
Xeo
9:29 PM
damn, I can't remember the name of the game :(
 
user3010322
Ascension?
 
user1804599
@ThePhD Return a value. Duh.
 
@Borgleader According to this boardgamegeek.com/boardgame/13/the-settlers-of-catan, more than I will bother counting.
 
user1804599
Non-const reference arguments are cancer in 99% of cases.
 
user3010322
9:30 PM
... Awwh, shit.
 
user1804599
And now you have the added benefit of being able to use std::transform!
 
@R.MartinhoFernandes I've only played it once. It's a pretty interesting concept though
 
user1804599
For free!
 
user3010322
dynamic dispatch once for each of the 40,000 doubles ;~;
 
@jalf What does it change?
 
9:31 PM
@R.MartinhoFernandes Its four apparently, although for each you can buy an addon that allows you to play with 2 extra people
 
user3010322
Maybe I should make it take a buffer_view instead and modify things on a buffer basis, to avoid the dynamic dispatch entirely....
 
erm
I'm not sure how I feel about operator/ in boost.filesystem
 
C++/cli is really not so bad stackoverflow.com/a/22518470/85371
 
@jalf is that also known as risk evolution?
 
user1804599
@Jefffrey division by concatenation!
 
9:32 PM
Wow... This is the worst kind of SSE abomination I've ever seen: stackoverflow.com/questions/22518451/…
 
Xeo
the gane consisted of a hexagonal board piece, and you had to lay animal cards around it, making the noise of the card before yours. goal was to get rid of all hand cards. if you screwed up, you got all cards already on the table
 
I mean, it's cool to do something/else and mean something + '/' + else
 
it doesn't mean that
 
kinda
 
it does a smart join
 
9:33 PM
> I don't know if I have done it in the right way
/facepalm, y u no test?
 
user3010322
@Jefffrey It doesn't make much sense for literals but it provides an easy shortcut for when you're combining two paths.
 
user1804599
@Jefffrey That is not portable.
 
anyway operator/ in Boost.FS is fine
 
@R.MartinhoFernandes Making the board and the rules modifiable. During and after each game you get to make permanent modifications to the board, like adding defensive bonuses to individual countries, or giving the winning player a bonus whenever he controls a specific continent
 
if you don't like it you can use += or append
 
9:33 PM
@rightfold yeah, I know, it's an example
 
user3010322
@Rapptz Did it make it into the standard?
 
And it comes with a bunch of sealed compartments in the box, with cards you can only open once certain conditions have been fulfilled
 
user1804599
Some inferior operating systems do not use forward slashes to separate directories.
 
yea, it's heading for a separate TS
 
user3010322
Kinky!
 
9:34 PM
which might contain stickers with new rules to insert into the manual, or new abilities you can use during the game
 
@jalf ah yeah, then it's evolution in Germany. Most awesome thing ever!
 
> (it's my first program in SSE).
^ 'nuff said. You don't write programs in SSE
 
@ThePhD what? they are bringing a filesystem library to the standard?
 
user1804599
@sehe Indeed; you write them in Git.
 
In the sand
 
user1804599
9:35 PM
So I have this pattern.
 
user1804599
And I need to implement it in C++.
 
user3010322
@Jefffrey Yes, t's been on the table forever.
 
user3010322
When I visited STL he was working on it.
 
And from time to time the game instructs you to permanently destroy cards too. Lots of fun and weird ideas in it
 
Xeo
meh, I'll have to ask my cow-worker for the name
 
user3010322
9:35 PM
That reminds me. I promised STL that I would surpass his text implementation.
 
(also, at the bottom of the box it has a hidden compartment labelled "do not open ever")
No clue what's inside that. We didn't open it :D
 
@rightfold wut. tell me yo jokin'
 
@jalf haha same
 
user1804599
@sehe It’s a secret.
 
Carry on
 
user1804599
9:37 PM
The pattern is pretty … complex. (Pun intended.)
 
user1804599
(It describes multiplication of hypercomplex numbers.)
 
Oh god. That's not a pun. That's just a vector.
@LightnessRacesinOrbit ... :)
 
@rightfold And if it contains 2048 in the title, it will be instantly popular.
 
Did someone say 2018?
2048*
 
@rubious_dan you can edit your messages
 
user1804599
9:39 PM
In thirty years there will be a movie called 2048 and it will be about the zombie apocalypse.
 
user1804599
@rubious_dan No.
 
user1804599
@rubious_dan Yes.
 
@rubious_dan No.
@rubious_dan *Yes.
 
user1804599
> I'm a Rubyist and neuroscience student living in Santa Barbara, CA.
 
user1804599
9:40 PM
Ruby must be getting on your nerves.
 
Hmm?
 
@rightfold Yes, I've already run background checks on him. He is fine.
 
Ruby is rad.
 
@rightfold lol
 
Oh my God, this is how off I am today. Your joke just hit me.
 
user1804599
9:41 PM
@Jefffrey answer count > question count so indeed; he’s fine.
 
It's been a firey morning.
 
> Hey dickface, I saw the early version of this blog post where you had bolded several paragraphs of text by accident. Also, you still have "...Twitter unless you want them do." as an error above. Why don't you learn to type.

JK LOL ETC.
lolzing - nice and meta
 
user1804599
@sehe Really?
 
user1804599
I do not know very much about vectors.
 
That's because there's not a lot to know. Well. In principle.
Applications...
 
user1804599
9:43 PM
Basically, I want to do this but generalised to N dimensions, not just 16.
 
user1804599
So I need to derive the table mechanically.
 
> I must say that your post made me bang my fist on the desk and say YES! YES! (It woke the cat. I blame you.)
 
user1804599
@sehe That’s what the NSA said.
 
@rightfold That should be easier than copying it off some ADHD web page
 
user1804599
@sehe What do you mean by ADHD?
 
user1804599
9:45 PM
I didn’t read anywhere the author had ADHD.
 
user1804599
@Jefffrey mijn dank.
 
Email: dank@invoca.com
Work: http://www.invoca.com/
Linkedin: http://www.linkedin.com/in/dankozlowski
Twitter: https://twitter.com/rubious_dan
Github: https://github.com/dankozlowski
 
^ no shit
 
user1804599
Anal Dash best pony.
 
@rightfold the page has it
 
user1804599
9:47 PM
@sehe What page?
 
user1804599
You don’t even know what page the image came from.
 
...
 
user1804599
 
@rightfold wait wat. It was an image even?
 
user image
9
 
user1804599
9:48 PM
@sehe Yes, it was an image.
 
user1804599
 
Oh and
G+: https://plus.google.com/+DanKozlowski42/posts
 
 
user1804599
@sehe spoiler
 
user1804599
@Jefffrey A suit; I don’t trust him anymore.
 
9:51 PM
@rightfold and apparently he had a talk on something ruby related this month, congrats @rubious_dan
 
user1804599
So yeah I’m gonna figure out a function that generates that table.
 
room topic changed to Lounge<T>: Room of a Thousand Languages. loungecpp.net [my-code-is-compiling] [no-really] [no-stalking]
 
@sehe ??? :<
 
[tag:no-explanation]
required
 
I was going to bring up some photos of dan
I guess my work is done here
time for a glass of wine
 
user1804599
 
user1804599
Ah, well.
 
user1804599
I will implement hypercomplex multiplication tomorrow.
 
Don't fall asleep now
that would be a waste of time
 
user1804599
I think I will use boost::multiprecision::cpp_dec_float_50 for representing the coefficients of numbers in Styx, though.
 
9:56 PM
@sehe apparently you've done some good choices in life
 
user1804599
It’s gonna be so slow. :D
 
I'm proud of you
 
@Jefffrey wooo, pinched it
 
@rightfold what the fuck is that shit?
 
user1804599
@Jefffrey What the fuck is what shit?
 
9:57 PM
boost::cpp_dec_float_50
sweet jesus
 
Boost Multiprecision
Get with the times yo
 
user1804599
boost::multiprecision::cpp_dec_float_50 is not shit. It is a decimal data type.
 
user1804599
Like decimal in C#.
 
Not at all like CLR System.Decimal since 50>>28 IIRC
 
@rightfold It sounds like var_1_float and var_2_float instead of std::array<float, 2>
 
9:58 PM
@Jefffrey that's because it is. But using fixed sizes is way less wasteful than using dynamic (arbitrary) precision all over the place
 
@sehe but why?
 
It is. Get over it. It's not "good" in the sense of "customer's always right" and "user friendly"
40 secs ago, by Jefffrey
I mean, boost is supposed to be a good library
Yeah yeah. Bit late to crawl back now
 
it's a typedef
 
this "I'll reply to a future message" kind of actions make me dizzy
 
user1804599
@Jefffrey it is a typedef.
 
10:00 PM
it is a typedef
 
user1804599
You can specify custom sizes as template arguments to boost::multiprecision::cpp_dec_float.
 
is it a typedef by any chance?
 
possibly
 
@EtiennedeMartel People are getting creative
 
user1804599
But I want it so that if you write down 2.444 + 2.666 in your source file, you get exactly 5.11 and not some silly approximation.
 
10:01 PM
@Borgleader dat movie
 
@rightfold wrong language. Just 2.444_m + 2.666_m perhaps
 
I wasn't joking about that glass of wine, bbl
 
user1804599
@sehe No.
 
user1804599
Decimal is the default.
 
user1804599
I am considering adding float, but with an f suffix.
 
10:02 PM
@rightfold Gosh. The density. It's killing me
 
user1804599
It’s the only sane thing to do.
 
user1804599
The default should be intuitive.
 
Turns out I misread s/But I want it so that if/But what if you want it so that if/
 
user1804599
@sehe Oh, I am talking about Styx, not C++.
 
user1804599
2.444 + 2.666 is Styx code.
 
user1804599
10:03 PM
And isa? Rational (2.444 + 2.666) is true.
 
@rightfold trololololololol. And intuitive is entirely unsubjective. After decades of IEE FP pervading computing systems and languages
 
user1804599
Actually.
 
user1804599
I think there will never be a value that is of type Real but not a proper subtype of Real.
 
user1804599
Because you cannot represent that without infinite memory.
 
@rightfold Like 1.0/3.0 + 1.0/3.0 + 1.0/3.0?
Decimal floating point is still floating point.
 
user1804599
10:08 PM
No.
 
@Enumerator see your GP
Quick scan reveals , and
This can't be good
 
user1804599
No salutation is no help (and now is too late).
 
3 messages moved to bin
Sorry gotta be consistent
 
user1804599
> And no PHP or Java questions, no matter what. They will be binned and you will be deemed annoying. See #2.
 
user1804599
10:10 PM
Get out.
 
8 hours ago, by sehe
:15367777 You're welcome. Drive by linking is very much not OOP against the rules
 
user1623923
Not really a thousand languages then.
 
user1804599
Yes, but Java just isn’t part of them.
 
user1804599
We only program in high-level languages, namely.
 
Trust him. He knows 1673 of them
 
user1623923
10:12 PM
Lol
 
user1804599
Yeah, I know 1673 out of the 1000 languages.
 
You do
In other news, lvm2 snapshot support is a serious joke. This stopper of a problem still exists since april 2009 bugs.launchpad.net/lvm2/+bug/360237
 
Sorry. Gotta stay consistent.
 
man, I love SMAC.
I just won the game by declaring myself the winner.
 
10:17 PM
Wait. You're confusing the game with your life strategy now
 
user1804599
Yay.
 
Thanks for that ninja period. It really rebalanced me.
 
> We are not household names and we're from Romania, a country in Eastern Europe mostly known as the home of Dracula. We're not vampires. (No, really, we're not.) You'll meet us on the forums if you decide to join up.
lel
 
user1804599
Labour party is losing and Democrats ’66 is winning.
 
@sehe Nah, you can have yourself elected Supreme Leader, and it's a vote based on population, so if you have a much bigger faction than everyone else, you can essentially vote yourself to become Supreme Leader.
 
10:19 PM
Stumped. He appears to have no open questions on the main site. There must be something else. Well ok then
@sid.ghodke Hi :)
 
@rightfold Ahaaaaaaah. That's true. I had someone cast a vote for me
> Krijgen we ook allemaal een Volkswagen zeker
 
user1804599
@sehe lol
 
I'd say it's a zinger
 
user1804599
It's a danser
 
10:21 PM
It's a huiler
 
@DeadMG for good reason
 
user1804599
No, that’s Samsom.
 
Missed the reference
 
@jalf The interface is a bit frustrating, but it's an old game and that's to be expected, really.
 
user1804599
Tunnel to the other side.
 
10:24 PM
@DeadMG True. I keep hoping for a remake
I actually tried playing a play-by-email game of it with some friends not too long ago. Apparently the game does not handle that very robustly
 
user1804599
Yay, Leefbaar Rotterdam.
 
Was buggy as shit and became completely unplayable within 50 turns or so. :(
 
user3010322
Mmm.
 
user3010322
Opus, Vorbis, FLAC
 
user3010322
Derishious.
 
10:39 PM
getting this SSD was probably the best decision I took for my PC in the past years
even Eclipse is fast whoa
 
user1804599
Don’t use Eclipse.
 
user1804599
I don’t usually complain about the tools that people use, but Eclipse is an exception.
 
I like it better than android studio
at least it doesn't push that Gradle bullshit
what the fuck is Gradle anyway, last time I spent like 3 mins for the Gradle project to build
 
@jalf Play... by email?
how.. what.. how?
 
Why is the room of a thousand languages named in C#?
 
10:53 PM
er, I'm pretty sure that Lounge<T> is a valid thing in many languages.
including C++
 
user1804599
@sehe please change back the title and the topic.
 
user1804599
It’s attracting all kinds of confused people.
 
@rightfold tdd still hot?
 
room topic changed to Lounge<C++>: A hangout for the dedicated loungecpp.net [my-code-is-compiling] [no-really] [no-stalking]
 
user1804599
@JohanLarsson Yes!
 
10:54 PM
I only joined because it looked like C#. Gonna have to leave now.
 
:D
 
@DeadMG you start a game, select the PBEM game mode, and then after each turn you email the savegame to the next guy
 
Oh I was kidding, I like C++ too, just so long as it's VC++ building my code :p
 
user3010322
Lounge<Trap>: luring the unwary
 
you can password protect your faction so no one else can play through your turns
 
10:55 PM
lol
 
but it was really buggy and got out of sync very quickly
 
@jalf Interesting tactic.
 
Wow, pups didn't know PBEM.
 
I've never seen that acronym before.
 
Public Beta Environment M?
 
10:58 PM
well, I initially didn't use the acronym, just said "play by email" ;)
 
ah, I didn't expect that because when you say, "Select PBEM game mode", then I'm looking through the list of rules for one which might conceivably shorten to PBEM.
but didn't find one
 
1 message moved to bin
 
so other potential expansions didn't occur to me
 
Keep it classy Derpy
 

« first day (1250 days earlier)      last day (3702 days later) »