« first day (1657 days earlier)      last day (3307 days later) » 

Ven
2:00 PM
adderssof(r)->bind(p); wow, noticed a typo in a paper, yay
 
is there anything you can't do with templates
holy shit these are like a separate language on top of everything esle
 
Ven
@AlexM. are you new to c++?
 
yes
 
Ven
templates are like a shitty pure language on top of a shitty impure language :P
 
Well, you can't do networking with templates.
 
Ven
2:03 PM
@AlexM. welcome! I learned c++ just for the template craziness.
 
And string manipulation is pain.
 
what are the limits of what you can do at compile time and how crazy can things get
 
Ven
@AlexM. not much. it's not even pure anymore, as said in that filip blog post you read a few days ago
 
I think that compile time counter filip posted is great
 
Ven
2:04 PM
I don't think you can make it into a "counter". just a switch :).
 
@AlexM. Turing tarpit.
@Ven So... a boolean variable.
 
Ven
@AlexM. they're turing complete, if that's the question
@milleniumbug yes
 
@milleniumbug TIL
yes they sorta do look that way
 
@Ven So you can create 32 such switches and make a counter
 
Ven
You can have variables through using. You can have if, loops. You can have...
@milleniumbug well, I want to see that :P
@AlexM. You can look at boost.spirit, boost.phoenix, mpl, hana, cats, etc, for examples of how far this can go
 
2:07 PM
I need to try and simplify things a bit after I'm done
 
@Ven Me too.
 
things look great on the client side but at this pace it's pretty certain that whatever colleague dropped an eye on the implementation, would auto get scared
or maybe I'll write a doc
 
Ven
hahahaa
 
(there are no other traces of template metaprogramming here atm)
except the other parts of my lib but yeah
 
@LightningRacisinObrit I didn't
 
2:10 PM
23 mins ago, by sehe
Dat question title. He/she forgot private final override defaulted.
did too
 
I typed she first.
 
user1804599
SHE?!
 
user image
8
Fuck. My. Life.
 
lol
 
Xeo
lol
 
2:15 PM
@BartekBanachewicz Should be IsReelySpinning instead
 
@BartekBanachewicz nice
 
@BartekBanachewicz lol, I hope it is not originally your own code. :D
 
spinning can be either true, false or FILE_NOT_FOUND
right?
 
@AlexM. lol
@wilx I didn't write those functions no
 
@rightfold I would have sworn that you typed "sehe" first... :-)
 
2:17 PM
From now on I'm going to make my getters in two versions, e.g. IsEnabled and IsReallyEnabled
 
what about IsProbablyEnabled?
 
bool IsEnabled() { return IsReallyEnabled() * (std::rand() % 2); }
 
why not add a third, IsPossiblyEnabled
 
IsJustMaybeSpinning
 
Ven
IsTooShyToAnswerIfSpinning
 
2:18 PM
@BartekBanachewicz Nice try, but if a getter (or setter) is your starting point, it's hard to do much more harm.
 
Ven
CheckSpinningPrivilege
 
if(UB) return -1;
 
k time to unveil the mystery
    bool IsSpinning() const { return m_state != RS_STOPPED; }
    bool IsReallySpinning() const { return m_state == RS_SPINNING; }
 
is it a totem from inception?
 
@sehe LMAO. That really sounds bad.
 
Ven
2:21 PM
@BartekBanachewicz any reason it's auto and not auto& or smth?
 
@BartekBanachewicz lol I guess my FILE_NOT_FOUND thing wasn't too far off
assuming there's a third state there
 
Xeo
@BartekBanachewicz Is RS_REVVING_UP the other state?
 
IsSpinning returns true if either spinning or FILE_NOT_FOUND
 
stopped, stopping, spinning?
 
is really spinning only returns true if spinning
 
2:22 PM
ahem. "go to definition" on auto goes to the definition of shared_ptr, not the T it wraps
 
@BartekBanachewicz o_0 how did any one be so bad at naming functions?
 
enum ReelState
{
    RS_STOPPED,
    RS_WAITING,
    RS_STARTING,
    RS_SPINNING,
    RS_FINISHING,
    RS_OVERSPIN
};
 
user1804599
use enum class instead of prefix
 
@BartekBanachewicz WTH is overspin?
 
why are you asking me
 
2:22 PM
what's an overspin
because you're working on this?
 
Multiball!!!
 
v. t. 1. To spin out to too great length; to protract unduly.
 
ITT plebs don't know what 'overspin' is
 
do I look like someone who has a clue on what's going on in this codebase
 
no
 
2:23 PM
@BartekBanachewicz s/ in*// :D
 
I still don't remember what does ITT mean.
 
fuck
 
I Think That?
 
@wilx In This Thread
 
in this thread
 
2:23 PM
@wilx ITT wilx doesn't know what ITT means
 
Oh.
 
ITT the lounge is a thread
 
lol, yes.
 
@Mr.kbok yes
 
turns out qsort and std::sort are totally separate things
 
2:24 PM
...
 
@Mr.kbok You don't say
 
Someone replaced one with the other and messed up the values
 
Did I mention this album sounds pretty good?
 
I think the best /thread moment in the lounge was this
Feb 28 at 23:29, by edition
@ThePhD is your qualification real? edition is my name because i started to learn programming through editing.
 
Poor you
 
2:26 PM
you really can't find a comeback for that
 
Ven
@FilipRoséen-refp "Implementing f() to make the following snippet compile without the static_assert being fired looks impossible, doesn't it?" <- "without" should be "with", right?
 
@AlexM. I think I just did. But you got :23020333. So there's that
 
user1804599
poop
 
@wilx more like crock of shit! lol lol lol
 
@sehe I meant a comeback for what edition said
 
2:27 PM
@thecoshman lol
It paints nice landscapes.
 
Ven
:23020354 "without it being fired" it seems like the default for "true" is not to trigger static_assert?
 
@thecoshman I read that as "Mystic Cock".
 
@Ven Oh, he does static_assert(a != b). I see your point now.
Too many negatives.
 
Ven
@milleniumbug a friend's point. It totally flew past me when I read it :). shouldn't be much to change
 
Is there a version of qsort that takes a range, like std::sort?
 
2:31 PM
@Mr.kbok std::sort
:P
 
@BartekBanachewicz :D
 
@milleniumbug No, its behavior is a tiny wee different and I can't have that
 
@AlexM. ...
 
I have to revert to qsort for the time begin but I don't want to directly use the shitty void-star interface
 
@Mr.kbok what does qsort take if not a range?
 
2:34 PM
@sehe He meant a pair of iterators.
 
@sehe pointer and a size
 
@sehe A pointer, a count, and a size.
 
So, write a 4-line wrapper?
 
@sehe Sure. Just wondering if it existed somewhere already
 
Awwwww yeah, they put our intro cutscene up on the AppStore's Facebook page.
 
2:35 PM
@Ven Too many negatives. What I think should be said instead is "You see, static_assert(a == b, "fail");. I bet you think you can't make this fail. But I can"
 
there are answers that I think are horrible but that people really like
 
Ven
@milleniumbug "how? magic!"
well.
 
expression must have pointer type
WTF VS
 
@MarcoA. So edit it and make it better.
 
@JerryCoffin I accept suggestions
 
2:39 PM
@MarcoA. Well, correcting it to say that signed magnitude and 1's complement both have representations for negative zero, but that concept simply doesn't exist in 2's complement would be a reasonable start.
 
@JerryCoffin I might add a "2's complement doesn't have a representation for negative zero"
 
@MarcoA. My highest voted answer is a two line piece of shit that answers a duplicate.
 
Second point: where you say: "Using other representations is definitely feasible...", I think "possible" would be a better word than "feasible". It's certainly true that it's possible, but feasible implies that it's reasonable as well, and that's a lot more questionable.
@MarcoA. I don't really like that. It would be one thing if the concept of "negative zero" existed in (for example) mathematics, and you were saying that two's complement has no way to represent that concept. What we have here, however, is pretty much the opposite: the concept of negative zero only exists at all as a side effect of the fact that some representations have two different ways of representing zero, and one of them resembles the representation of other negative numbers.
 
sigh
i'm too lazy to change the url
it's almost five GOD I WANT TO GO HOME ALREADY
I'm stuck in a limbo
reels keep spinning
 
spinning or really spinning?
 
2:48 PM
@JerryCoffin thanks Jerry, did some minor editing to make it more precise
 
@AlexM. Reals spinning.
 
dat pun
 
Xeo
@BartekBanachewicz me too
 
I wish I realized it earlier and said something like "reely spinning"
 
Xeo
I've had a weird day
I don't feel like I was quite... attentive today.
 
2:51 PM
Ok. That sounds relatively normal
 
I've been ultra-productive these days
 
Lies
 
because it was all experimentation and successful attempts at things
 
Ven
I've been doing nothing these days! felt good
 
I've not been in the office for a week. And have been half productive today. I blame you. The lounge
 
2:55 PM
@MarcoA. It might also be worth mentioning that although one's complement is mostly historical, signed magnitude representations are still fairly common (e.g., for floating point), and can also have separate representations for positive and negative zero.
 
@Xeo I asked for taking my overtime back today and got denied :(
 
Xeo
aww
 
so I was like "oooh going home" and then nope 2 hours more
 
user1804599
I want pancakes.
 
user1804599
2:57 PM
With shitloads of syrup and icing sugar.
 
user1804599
It's so healthy.
 
@wilx what is it?
 
@sehe The GG side.
 
user1804599
GayGate?
 
@rightfold Probably, too.
 
2:58 PM
I don't get what gamergate is
and I don't think I want to know either
 
@BartekBanachewicz I have noticed it only recently as well.
 
going home time for a move
 
user1804599
I need a bunch of supermassive black holes.
 
user1804599
Please give me your mother.
 
here she is
 
user1804599
3:00 PM
One of the current Twitter trends is literally Adolf Hitler.
 
@BartekBanachewicz Gamers pissed off about women in the industry
 
Twtitter trends are literally hitler
 
user1804599
why is adolf hitler trending? did he release an album?
 
@wilx Oh boy. That old chestnut.
 
user1804599
3:01 PM
@sehe Hitler was literally Hitler.
 
user1804599
I'm at a client and I have hiccup
 
user1804599
fuck hiccup
 
@wilx gosh. I see you're all making good use of your time
 
@sehe I am waiting for test runs to finish. :)
 
user1804599
3:02 PM
@orlp aww
 
user1804599
@wilx use the time to speed up your goddamn tests.
 
@BartekBanachewicz Although it started from a fairly specific incident, it's basically turned into some people who are convinced that the games industry needs to change in various ways, and others who either think it doesn't need to change, or at least don't think it needs to change in those ways.
 
@rightfold I am waiting for resource manager to assign VMs to test on. It is automated.
 
user1804599
Speed it up.
 
user1804599
Buy more VMs.
 
3:04 PM
@rightfold Yeah, well...
 
@JerryCoffin credits must be credited thanks
 
@MarcoA. Surely--except it can now be read as saying that I'm the one who invented signed-magnitude representations. I'm old, but not quite that old...
 
@JerryCoffin lol sorry
 
user1804599
When you need it, you need it. — rightfold 23 secs ago
 
user1804599
Questions like these are so moronic.
 
Ven
3:09 PM
@rightfold to be fair, this warrants a newtype
 
user1804599
What would you write a technical specification in?
 
user1804599
LaTeX is terrible.
 
user1804599
Markdown is also terrible.
 
user1804599
How about reStructuredText?
 
Ven
In code.
 
user1804599
3:11 PM
Not all specifications are expressible by code.
 
user1804599
Unless you construct a DSL for it which may be silly.
 
@Mr.kbok ...except that he got things backwards. At least in the Usenet days, the person who brought up anything related to Hitler or Nazi's automatically lost the argument.
 
I think we can agree that it ends the argument :)
 
Ven
It's funny how simply adding a dot to my sentence makes it look like one of @rightfold's opinion :P
(sorry, sorry.)
 
-4
Q: C++; invalid conversion from 'char' to 'const char*'

Sayre PrecureHow do I need to fix this, and could you explain the reasoning as to why my current code doesn't work? Thanks. string alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string initial_1 = alphabet[0], initial_2 = alphabet[0], initial_3 = alphabet[0]; Using this to iterate through the alph...

lol
google much
 
3:26 PM
yay I made a nice stuff today pastebin.com/Cat6frQh
now I gotta see where it can fail and where it doesn't work as well as I think it does
the highlight that I'm happy with the most is how improper arguments passed to function calls trigger compile time errors
the original jni stuff didn't do that
 
Ven
looks much better. the JNI is pretty ugly
 
I'm in a Tesla.
 
I thought the guy just copy pasted a part of your question and made it the answer
 
no matter how many times I watch this video, it's still awesome
 
3:42 PM
I'm in a Tesla driving next to another Tesla. The Netherlands is full of these things.
 
Never seen one yet
 
@R.MartinhoFernandes really. Maybe they're ubiquitous which is why i don't even notice them?
are you sure it's not Toyota Priuses? Because /they/ are ubiquitous here
 
Re stackoverflow.com/questions/29971901/… ... thanks for the answer, that works, but sheesh. Is this a language specifically built to make no logical sense in order to trip people up?
 
You got it!
Any further questions?
 
3:50 PM
@RobertAtkins Yes, why are you asking?
 
I've been programming for about 25 years, 15 professionally, and every time I go to do something seemingly simple in C++ (by way of the Arduino environment) it makes me feel like a complete idiot.
 
Yeah, C++ is particularly bad at consistency
 
@AndyProwl Wrong, it's consistent at being inconsistent.
 
@RobertAtkins Welcome to the club
 
3:53 PM
 
Ever heard of "the exception that proves the rule"?
(Also, Goedel would like to have a word with you)
 
"Oh no, you can't declare that precisely same thing the same way in this marginally different situation! It's slightly, meaninglessly different! And the compiler error message is as useful as a chocolate teapot!"
4
I just wanted validation that I'm not the only one.
 
@RobertAtkins It's also not too complicated. Just learn to read the code as the compiler does. o.O
 
@sehe
 
That's me
 
3:55 PM
@RobertAtkins You're not
 
@RobertAtkins Starred for humout by the way
 
Just look at auto i{5}, auto i = {5}, auto i = 5
They (will) even behave differently in different versions of the Standard
 
Oh. Here come the bidders with their worst war stories
 
 
and in none of them they will do the exact same things
 
3:56 PM
star that
 
@sehe I'm reading Stross right now, and you're giving me visions of brain melting lovecraftian horror.
 
there's probably a lot of people that want to know about it
 
8 hours ago, by Bartek Banachewicz
> We took one of the most shitty parts of Visual Studio, namely the text editor, slapped it on a web app platform and called it a day - says Microsoft executive.
 
@orlp Is it not on the board for about the whole day?
 
@sehe not for me
 
3:56 PM
@RobertAtkins Stay around. You have taste
@orlp Oh well. Lazy star then
 
@sehe Ha, thanks.
 
Disclaimer. i still have to start reading Stross. But the room has a number of hist fans
 
I just noticed the new "Apparently, this user prefers to keep an air of mystery about them." description that SO gives for empty "about me" fields
 
@RobertAtkins You're gonna love it here!
 
3:59 PM
@rightfold Make it like Scala and don't write any specs. Let the compiler be the spec.
 

« first day (1657 days earlier)      last day (3307 days later) »