« first day (870 days earlier)      last day (4303 days later) » 

20:00
@ThePhD Go with Cockbucket!
Do you think my reputation for a master linguist will ever fade?
Xeo
Xeo
Unless you invent time-travel.
Anyway, a game with a penis analogy for a final boss is not for children.
Xeo
Xeo
No objection to that. :)
user142019
subjection!
Xeo
Xeo
20:00
@EtiennedeMartel Pah, they won't understand.
I don't want to invent time travel
because I don't want to travel in time
Xeo
Xeo
Do you know that "perversion" test with the dolphin image?
user142019
@TonyTheLion it's already possible and done.
@Zoidberg link?
@Xeo "Games are for kids!"
20:01
Yeah, the only people who understand will be adults, and they'll in turn freak out over it and hide it from their children.
@TonyTheLion I travelled here from 1987 just to tell you that it is possible.
Because Parents, 90% of the time when ti comes to raising kids, are fucking retarded.
@ThePhD Isn't that what porn is all about?
user142019
In the theory of relativity, time dilation is an actual difference of elapsed time between two events as measured by observers either moving relative to each other or differently situated from gravitational masses. An accurate clock at rest with respect to one observer may be measured to tick at a different rate when compared to a second observer's own equally accurate clocks. This effect arises neither from technical aspects of the clocks nor from the fact that signals need time to propagate, but from the nature of spacetime itself. Overview A case of time dilation in action is that a...
@TonyTheLion Uh... Porn is a little to explicit for a Kid to see it and not... be really fucked up by it...? o_O;
You know, usually because there's actual cocks and fucking and such going on...?
20:02
@ThePhD Hopefully I'll be in the 10%... since I actually care about raising children.
Ell
Ell
@ThePhD It's okay, it just looks like wrestling to them
@ThePhD There's a bunch of hairs on that statistic. Probably because you pulled it right out of your ass.
@EtiennedeMartel Must have hurt.
@EtiennedeMartel But my ass is smooth. ;~;
@ThePhD Now it is.
20:02
@ThePhD I was referencing the fact you said "only adults will understand and hide it from their kids"
Hah, that's actually good.
1/16th of software developers have trouble with fractions?
Ell
Ell
...why? o.O
I don't get it
20:03
Because it's a joke.
@doug65536 said the one who failed statistics in school
Ell
Ell
I don't see the joke o.O
bad joke is bad
Ell
Ell
1/16 is a valid fraction
I am under impression that you all are bored since today
20:04
so is 4/3
Hi.
oh no
dafuq
even I got the joke :(
@BartekBanachewicz Why?
@EtiennedeMartel Obviously I'm exxagerating, but there's obviously parental retards and assholes swimming around, so I won't directly market the game for children anyhow.
Ell
Ell
20:04
@BartekBanachewicz okay srs I don't get it
I am depressed
if you want it explained: developers probably do understand fractions so it's only 1/16th :|
@R.MartinhoFernandes I dunno, just got this impression
Anyway, being bored isn't that bad.
But yeah, King Cock as the final badguy is awesome. :D
2
20:05
Ask the ape.
How many times can I vote on the primary?
by the way Andrew Barber is clearly winning
@ThePhD They probably voted for Romney, so it's alright.
(POLITICAL JOKE!)
I thought about Neal but I concluded that I don't like him that much after all
20:06
@Xeo that was my thought as well (sorry, keep rebooting. uninstalling/reinstalling stuff)
Zing!
Whoa.
My teammember is dead serious about the name we picked.
He's ready to trademark, copyright, and fight for it.
Xeo
Xeo
lol
@Xeo I wonder if was something using a C interface, or like COM or something
Xeo
Xeo
20:07
What did you guys pick? :P
@MooingDuck See what the robot wrote.
I'll... just see if I can make a new name before he gets too slap-happy over it.
@ThePhD It also has a degree of plausible deniability. I mean, chickens like bread.
(Or at least I think they do)
@EtiennedeMartel Indeed.
If by any chance, anyone knows an answer to: http://stackoverflow.com/questions/15210138/is-it-possible-to-generate-an-automatic-switch-directive-from-several-templa

That'd be nice :)
@ThePhD Post it here. We'll trademark it, thus saving your ass.
20:08
And burning it. D:
@R.MartinhoFernandes oh! Yeah, that's the message I saw! And it was while closing Diablo3, so probably a destructor...
Xeo
Xeo
@R.MartinhoFernandes I was thinking about function annotations with restrictions or something, but hm...
(Not for current C++, obviously.)
@ereOn I've seen and done a few things like this, but I don't have time to sit and explain them. Write a support class, which stores and enumerates each value, then make some macros which simplify the process of using the class.
text<utf16> a { U"foo" }; // any text<?> can constructed from char32_t literals
text<utf16> b { u"foo" }; // what about making text<utf16> from char16_t literals?
//text<utf16> b { u8"foo" }; // never gonna work, forget it
text<utf32> a { U"foo" }; // any text<?> can constructed from char32_t literals
text<utf32> b { u"foo" }; // what about making text<utf32> from char16_t literals?
//text<utf32> b { u8"foo" }; // never gonna work, forget it
text<utf8> a { U"foo" }; // any text<?> can constructed from char32_t literals
K, got more design issues.
I think it's ok to always assume char16_ts will have UTF-16 code units in them. Who the fucks stores another encoding there? I don't care about them.
@R.MartinhoFernandes can the underlying buffer be a stringref type? do you have a textref type?
@R.MartinhoFernandes which UTF16?
20:14
SO elections are stupid.
@R.MartinhoFernandes Hell++ implementers.
@R.MartinhoFernandes why the // never gonna work, forget its?
They shouldn't show the overall score
@MooingDuck The encoding form.
That's bandwagon bias :(
20:15
@R.MartinhoFernandes what if someone stores UTF16BE in a LE system?
@ShotgunNinja Which stores and enumerates the values how ? Specializations ?
@NikiC Because u8"" is indistinguishable from "" on the type system (they fucked up).
Xeo
Xeo
@R.MartinhoFernandes The basic question behind that is... do you want to provide easy and implicit encoding conversion, or do you want it to be explicit?
user142019
@R.MartinhoFernandes one might not use std::string as container. :v
@MooingDuck That's an encoding scheme. (small difference, but I make it in the concepts, exactly for that reason)
Xeo
Xeo
20:16
I'm implementing typeclasses in C++. (I know this has been done before, sorta, but nothing I've found is quite what I want.) In particular, if I want to write a generic typeclass that supports mapping, I need something like Scala's CanBuildFrom (scala-lang.org/api/current/…). Doing this nicely seems to require virtual types. — emchristiansen 7 mins ago
Wuap wuap wuaaaah
@R.MartinhoFernandes ah, okay
user142019
@Xeo concepts. :(
@R.MartinhoFernandes no I mean, if you get a const char16_t(&)[N], you don't know for certain what the encoding is. Also, if you can't convert from utf8 to anything, I don't see why utf16 to anything should be supported.
@MooingDuck I know. It's UTF-16.
20:17
@R.MartinhoFernandes BE or LE?
Xeo
Xeo
Btw robot, what about the constructor thingy now? With some kind of string_ref to reduce overload count?
@MooingDuck UTF-16. Code units are 16-bit sized integers.
wait, duh.
nevermind me
second point holds, if you can't convert from utf8 to anything, then supporting utf16 to anything is confusing. It's a very weak point, but that's the only reasoning for or against I can think of.
Alrigh, team name set!
LET'S DO THIS SHIIIT
Xeo
Xeo
@ThePhD JUST TELL US THE FUCKING NAME ALREADY! :|
user142019
20:19
Mann gegen Mann is a great song.
But...
But but but.... I don't want to ruin the surprise. ;~;
@R.MartinhoFernandes DeadMG lectured me for my utf8 class assuming the encoding of const char*. I kinda agree, such a conversion is too easy to use incorrectly.
I take my second point back, if you can convert from UTF32 to anything, why not UTF16? char is the only one that's ambiguous.
@ThePhD SAY IT.
"Doughland"
q_q it doesn't maatterrr
20:21
@MooingDuck Right, that's my main motivation. Both char32_t and char16_t are unambiguous unless you decide to be stupid and misuse them.
@Rapptz The overarching repo is actually called "Doughland" :D
user142019
Oh I already said that back then. :L
I want to be as inclusive as possible.
Xeo
Xeo
@MooingDuck What's the problem with assuming utf8 for char again?
@ThePhD You royal piece of cocktease.
20:21
@Xeo Erm. Windows-1252?
@EtiennedeMartel But I don't want to give the name prematurely if we change it again or if we run into troubles. :c
I'd rather wait until it's a sure thing.
(That's just the major annoyance)
Xeo
Xeo
@R.MartinhoFernandes I'll just assume that that's a good enough reason.
@Xeo Because it isn't.
I find it weird that you try to trademark a name before you even got something to sell with it.
20:22
that's the problem- the whole Unix (and Mac) I think world went off and basically said char == utf8 and we won't deal with any code that isn't that way.
@Xeo Most common Windows codepage.
but it's not.
now we either fuck them or we fuck Windows.
Xeo
Xeo
#ifdef. :D
@DeadMG Fuck Windows.
@Xeo Nope, because IIRC cl.exe assumes the current codepage for narrow string literals or something.
20:23
@EtiennedeMartel Hencewhy waiting until it's a sure thing.
Gotta make the game, and then I'll stick the logo and shit on it.
(can someone confirm or test that for me?)
@ShotgunNinja even you know why that's a bad idea
@R.MartinhoFernandes Pretty sure.
@MooingDuck Is Windows the kind of girl who pulls off the condom and wraps her legs around you pre-coitus, shouting "WRITE MY PROGRAMS!" ...?
@R.MartinhoFernandes I know visual studio lets me put unicode characters in string literals in UTF8 encoded files, not sure what happens after that.
@ShotgunNinja Windows is 80%+ of the girls.
20:25
@Xeo Plus, you have people doing "\xF0\x9F\x8D\x8C" and assuming it's UTF-8 (because with that the compiler won't screw you over; it will always be a banana).
@MooingDuck 90%+, I thought.
@EtiennedeMartel So yeah, I'm starting with Deferred SHading now. It seems like a lot of fun to use.
user142019
@DeadMG 90%+ is 80%+
@DeadMG probably more, but I was going to round way down to be safe and not look it up
@ThePhD It's relatively easy to make, but it brings a bunch of issues along for the ride.
20:26
It's irrelevant. Even if it was just 50%, I would have to consider it.
@EtiennedeMartel Such as? :O
@ThePhD Transparency.
user142019
I don't even know what is meant by “Windows is 80%+ of the girls.”
Oh.
user142019
80%+ of girls use Windows?
20:27
Can't you save yourself by doing pre-multiplied alpha and shi oh, wait.
No you can't. D:
Hm.
it's wierd that so many people still think Windows uses UCS-2. They fixed it so it uses UTF16 for Windows2000, it was only broken in the NT releases before that. I don't even know what those were.
user142019
@ShotgunNinja relevant (NSFW, maybe) :L
@R.MartinhoFernandes Here's the simple fact about char*: you can only assume basic character execution set (i.e. ASCII), and nothing else.
user142019
char* is bad.
not even codepage encoding because fuck you it might be UTF-8
20:28
@DeadMG No, not even ASCII. The basic character set is a set of characters, not an encoding.
@Zoidberg utf8 literals have exactly all the same issues.
@R.MartinhoFernandes Yeah, but basically all the character sets in use now are ASCII supersets.
@DeadMG Except for the GSM one.
anyways, the point is, you can't really do jack shit with a char*.
what even is GSM?
In mobile telephony GSM 03.38 or 3GPP 23.038 is a character set used in the Short Message Service of GSM based cell phones. It is defined in GSM recommendation 03.38. Messages sent via this encoding can be encoded in the default GSM 7-bit alphabet, the 8-bit data alphabet, and the 16-bit UTF-16 alphabet. Support of the GSM 7-bit alphabet is mandatory for GSM handsets and network elements, but characters in languages such as Arabic, Chinese, Korean or Japanese languages must be encoded using the 16-bit UTF-16 character encoding or an extended national language shift table. GSM 7 bit defaul...
@DeadMG Character set used in SMSes.
user142019
20:30
@MooingDuck aren't those also char*?
bit of a special case don't you think?
user142019
Or well, char const[N] but whatever.
@Zoidberg yes
but anyway
@DeadMG Well, it's in use now...
20:30
in that case you can't even assume ASCII
user142019
#pragma execution_character_set("utf-8") :v
the Standard broke char* thoroughly
@Zoidberg Doesn't help a bit.
wait, I have a general purpose shell now on coliru.stacked-crooked.com?
user142019
@Collin yes.
20:32
that seems.. dangerous
user142019
You can even do sh main.cpp! :3
The thing is, char means "byte", not "UTF-8 code unit".
user142019
@Collin why would it be any more dangerous than C++.
Things like "\xFF" // ÿ in cp1252 can always trip you up.
@Zoidberg I suppose
user142019
20:33
All tools you can use from shell, you can rewrite in C++. Including the shell itself.
Because char[N] is "a bunch of bytes", not "a bunch of UTF-8 code units".
You can store the latter in the former, but the former is not the latter.
user142019
> Invariants or GTFO
That's why char8_t is sorely missed.
@R.MartinhoFernandes except IO treats them funny
@MooingDuck Yeah, but not all programs interpret all byte buffers they use the same way that C++ IO does.
@ScottW It is guaranteed able to store an UTF-8 code unit, so it's at least 8 bits.
20:37
@ScottW at least 8 bits
user142019
They're allowed to be any number greater than seven of bits wide.
@Zoidberg right
user142019
:P
user142019
Yes.
user142019
But I'll hate you as an architecture architect.
20:38
i've heard stories of systems with 32-bit bytes
like, embedded stuff
user142019
@ScottW it's not even a power of two.
I wish they'd alter the C++ spec to make it easier to compiler performant N-ary code. (Sans N-ary equivalents to binary ops: ~&|^)
user142019
Not related, but I like Erlang integer literals where you can use any radix you want (up to 36 probably); 16#abcdef, 2#01010110, 3#012210012 etc.
user142019
@MooingDuck maybe you need a little sleep.
@Zoidberg :/
20:42
Ok, so, I think I'll go with: 1) assume encodings for char32_t and char16_t, as that's the intent of the standard; allow initializing any kind of text with those; 2) require explicitness for UTF-8; since I allow construction from a container, I need a way to prevent std::string's char const* implict ctor from kicking in.
user142019
@ScottW did you spawn some new processes?
I guess text(char const*) = delete; won't be enough (i.e. template-y overloads may be picked first, no?).
@R.MartinhoFernandes require constructor with std::string to also provide an encoding
Xeo
Xeo
@R.MartinhoFernandes Wait, do you inherit std::string and use inherited ctors?
@Xeo No.
But explicit text(std::string const&) allows text{"foo"}.
Xeo
Xeo
20:43
Ah
user142019
@MooingDuck Encoding is template argument of text. Oh wait, I get it.
Xeo
Xeo
The = delete thing will probably work. SCS vs UCS
@MooingDuck But the way to tag an encoding to a string is to initialize an instance of text...
i.e., this is the point where I need to accept the unknown bits.
text(std::string const&, encoding_type source_encoding)
Xeo
Xeo
No need for explicit here, unless you plan on having a default argument
20:45
@MooingDuck I don't want you to type text<utf8>(s, utf8{}).
user142019
@R.MartinhoFernandes maybe the string is in a different encoding.
@R.MartinhoFernandes That's what I ended up proposing.
@R.MartinhoFernandes only other option is to ` = delete` an additional const char* overload to "override" the string's.
@Zoidberg That is already supported. This is the point where you tag the encoding.
user142019
Oh. xD
20:46
or rather, delete it.
@MooingDuck Yeah, that's what I'll test.
Xeo
Xeo
3 mins ago, by Xeo
The = delete thing will probably work. SCS vs UCS
SCS?
... UCS? o_O
Xeo
Xeo
standard conversion sequence, user-defined conversion sequence
The first is a proper subset of the latter, so it's preferred.
Wow, the rest of my team is almost lethargically passive.
20:48
@Xeo I have template <typename T> text(T&&) btw, so... I think not.
"Guys I'm deleting everything..."
"ok"
I need to SFINAE that one.
@ThePhD that's trust.
user142019
Look it up in the 19000 pages of the standard that talk about name lookup and overload resolution!
Xeo
Xeo
@R.MartinhoFernandes Welp, can't do much about a greedy ctor, I guess.
20:48
@MooingDuck :O They trust me?
... I never thought of it like that.
@ThePhD inorite?
Wow, holy shit, they trust me.
user142019
“Inorite” sounds like some kind of mineral.
Jesus fuck, that's a lot of responsibility. @___@
that's it, I'm going through the windows filetypes and making lots of them open by default with notepad.
20:49
@MooingDuck Or Notepad++ !
every time I freaking click a file it launches another visual studio instance :/
user142019
Vim.
Xeo
Xeo
@R.MartinhoFernandes Psst: stacked-crooked.com/…
user142019
Visual Studio opens in three seconds.
@MooingDuck I had to do the exact opposite, so that they would open with VS instead of shitpad
user142019
20:50
On my machine.
@MooingDuck I don't know how to make it only open in the current instance of VS
@Xeo Hmm, really?
@Xeo interesting
But I need to SFINAE it anyway for efficiency.
aw man
20:50
If I could make it open with the current instance of VS all the time, I'd like it.
I drank all my beer.
Xeo
Xeo
@R.MartinhoFernandes Huh?
@ThePhD That's what I use. I hate it when VS or other fucks up associations without asking.
o_O
user142019
ITT: drunk dogs.
20:50
You've been drinking a lot lately.
@Zoidberg I am not drunk.
@Xeo That ctor can do copies fine (I'm thinking text&), but it always performs validation. I don't want validation on copies.
@DeadMG Get more beer!
@ThePhD Life's depressing.
2
Xeo
Xeo
20:51
@R.MartinhoFernandes Oh, right, the usual problem.
@MartinJames I have more beer in the fridge, but I'll get sick if I drink it.
@DeadMG Life is fun and happy and FULL OF SURPRISES! /cc @EtiennedeMartel (Back me up here!)
@DeadMG If you throw up, you'll feel better, and you can start drinking again.
user142019
@DeadMG agree.
user142019
It's depressing and pointless.
Xeo
Xeo
20:52
@R.MartinhoFernandes I think I know why - char const (&)[3] vs char const* (with "hi") is ambiguous. As such, when T&& deduces to the former, the latter is picked (preferred non-templates etc).
@R.MartinhoFernandes stacked-crooked.com/… need a non-const version too, but seems to work
@MartinJames Not that kind of sick.
user142019
You'll die anyway, so why not now? No more pain and suffering.
the "HOLY SHIT MY STOMACH FOR HOURS AND HOURS AND HOURS" kind of sick.
20:53
@DeadMG OK - a bad plan :(
@Xeo It's not ambiguous- the first is a better match.
user142019
I'm drinking too right now.
@DeadMG the second is being picked. try again.
user142019
Fanta Lemon. Very good stuff.
array-to-pointer-decay is a "free" conversion, but I'm pretty sure it's still less than no conversion at all.
20:54
I'm not, but I have a plan. I intend to execute it in ~5 min.
4 mins ago, by Xeo
@R.MartinhoFernandes Psst: http://stacked-crooked.com/view?id=ea1d1847e0bdf335d619e73726bd4f6a-18aa934a8d82d638dde2147aa94cac94
@MooingDuck The code samples place it against a template, not a char const(&).
Xeo
Xeo
@DeadMG No it's not.
@DeadMG ah
@Xeo Huh, apparently it's not.
oh well, I only have a fairly general recollection of overload resolution rules.
Xeo
Xeo
20:56
Well, you'd think "identity conversion" is better than "array-to-pointer conversion", even when both have "Exact match" rank.
user142019
Best is no conversion.
Xeo
Xeo
@Zoidberg That's identity conversion
Or "direct binding" for references.
user142019
Hmm.
user142019
class T {
    operator T(); // allowed? :P
};
user142019
Hmm it is. Will it ever be invoked if you don't do .operator T()?
20:58
@Zoidberg I think not.
Btw, should be const.
user142019
Why?
user142019
Maybe it modifies the object and the modifications are observable from outside the object.

« first day (870 days earlier)      last day (4303 days later) »