« first day (1150 days earlier)      last day (3813 days later) » 

user3010322
12:00 AM
@R.MartinhoFernandes Thanks for the tip about is_convertible, I knew the standardese for that but my approach was pretty far off. Now, I can take stateless lambdas and commit them just fine without demanding. I'm going to test with some empty, non-lambda structs and see what works.
 
It doesn't. There's no fixing those without thunking.
Empty != stateless.
 
user3010322
Empty structs are similar to stateless lambdas.
 
@Rapptz What the fuck.
 
Nope.
See example above.
 
user3010322
Albeit there's no standardese for their operator() being convertible to function pointers.
 
12:03 AM
So, just because an asshole supports a concept, it means the whole concept is shit?
 
user3010322
@R.MartinhoFernandes The goal was to use is_convertible on selfie_taker, not is_empty.
 
@ThePhD It doesn't work.
 
user3010322
I've already gotten rid of is_empty.
 
You cannot make a function pointer out of selfie_taker.
 
user3010322
12:06 AM
So I've found out. In those cases, it defaults to drumming up additional memory and attempting to store it somewhere (which doesn't work, because of the way sol is set up).
 
Well, you can make a void const*(*)(selfie_taker const*) pointer, but you want a void const*(*)() one.
 
user3010322
The hope was to at least support stateless lambdas.
 
user3010322
There's special functions for member function pointers.
 
user3010322
(And if it's a member function pointer + an lvalue reference (T&), it will optimize that out as well as it assumes the user is going to keep the T alive. In the case of T and T&&, it will default again to making extra memory, which will break the system because, again, sol isn't designed to handle it).
 
@R.MartinhoFernandes stop the horrible cdecl please lol
@ThePhD Stateless lambdas can be implicitly converted to function pointers, right?
 
user3010322
12:08 AM
@FredOverflow Yes. Thats' why the above sample is working.
 
user3010322
@R.MartinhoFernandes Hey, doesn't that mean when you were saying "Lambdas are no different", you were fudging the truth because they were inherently different from plain empty structs with functions? :P
 
@ThePhD Neat.
 
lol, I have to thank apple, my app is indeed not working on iphone5s - in fact it is full of bugs. Amazing why it is working on my old iphone, lol
 
@ThePhD No?
The only difference is that you cannot use the lambda's this directly.
But that's a limitation on the caller's side.
They're also no different from callables that work with a conversion operator.
 
user3010322
Yeah, but that's special glue you have to add yourself. Still, I suppose you're right that they're not special.
 
12:13 AM
Erm, if you're writing your own, everything is glue.
 
user3010322
Shrug.
 
user3010322
Oh well. Now I just need to do member function optimizations.
 
(A conversion operator to a function pointer makes an object callable by itself; it's not extra, it's only a different way of doing it)
I can totally see a thunk class working that way.
 
user3010322
thunk ?
 
user1804599
Who would have thunk?
3
 
user3010322
12:20 AM
T // rvalue
T&& // rvalue
T& // lvalue
 
user3010322
^ right?
 
T  prvalue();
T&  lvalue();
T&& xvalue();
 
user3010322
I don't think std::is_prvalue exists.
 
So what? It's important to note that prvalues and xvalues are not the same thing. For example, when it comes to lifetime extension.
 
user3010322
I need to identify these by using type_traits, so while is_prvalue is nice, I can't really use it anywhere except in my head.
 
12:23 AM
T&& lifetime_extended = std::string("hello");
T&& dangling_reference = std::move(std::string("world));
 
user3010322
 
user1804599
@ThePhD how would that even work.
 
user1804599
T can be an lvalue.
 
user3010322
It doesn't. Hencewhy is can only exist in my head.
 
user3010322
@rightfold It's ambigious, right. So I can only rely upon is_lvalue_reference for 100% assurance that the function that received T& is non-owning.
 
12:25 AM
static_assert(!std::is_reference<T>::value);
 
user1804599
Syntax error.
 
user1804599
@ThePhD It’s C++. Of course it’s ambiguous.
 
user1804599
xDDDDD omgg thanks a lot :p — Alfred 11 secs ago
 
user1804599
Alfred is being enthusiastic.
 
user1227304
Anyone here?
 
12:35 AM
whooshing sound
 
user1804599
@AnalyticalInsanity No.
 
user1227304
tumbeweed rolls on by
 
Ell
Tumbleseed falls to side
Wow
Much wind
Such rolling
look that circle!
Wow very light
 
user1227304
if (Purrfection.likes(Cats))
{
cout << "I like Cats." << endl;
} else
{
cout << "Fuck you." << endl;
}
 
@AnalyticalInsanity variable name starting with capital.no.
 
user1804599
 
user1227304
@Ell *such light FTFY
 
user1804599
I bet you like to use new and delete.
 
@rightfold Java doesn't have delete runs
 
user1227304
if (Purrfection.likes(iCats))
{
cout << "I like Cats." << endl;
} else
{
cout << "Fuck you." << endl;
}
 
12:38 AM
@AnalyticalInsanity std::cout << ((std::rand()%2==0)? "Fuck you" : "Derp") << "\n";
 
user1227304
cats is an integer now
 
hungarian notation
omg
 
user1227304
haha
 
user1804599
All the unformatted code.
 
@AnalyticalInsanity Ewww, cout and endl
 
user1227304
12:39 AM
@rightfold What's wrong with Java? I use it for Processing.
 
std:: matters!
 
@AnalyticalInsanity } else? That's worse than if (foo) {...
 
> "Processing"
 
@AnalyticalInsanity Everything.
 
I bet you have a ProcessingManager
 
Ell
12:40 AM
Man I need to get my life together
5
Maybe I should leave here and return in 6 months
 
@Ell Trust me; it doesn't work
 
@Ell It sounded like a smart plan. Until you mentioned returning.
 
user1227304
I see:
try
{
} catch ( Exception e )
{
 
user1227304
}
 
user1804599
@AnalyticalInsanity It is annoying and cumbersome to use and makes DRY code difficult to write.
 
user1227304
12:40 AM
a lot
 
Ell
This place is evil :(
 
@AnalyticalInsanity Not only that, you use it! And you fail to use code formatting here, go away.
 
user1227304
@sehe What the heck is a ProcessingManager?
 
@AnalyticalInsanity Java Rule #1: Whatever it is, it has a Manager.
 
Ell
@lightness why not?
 
12:41 AM
@AnalyticalInsanity Good question. What is "Processing" though?
 
@Ell I have no idea
 
@Ell I wasn't joking. And I wasn't trying to be harsh. Remember, I stepped outside the lounge for a while too :/
 
user1227304
@Griwes Good lord is that what matters to you?
 
@sehe It's a scripting language for rendering basic visualisations
 
user1804599
3
Q: constexpr error at compile-time, but no overhead at run-time

David StoneThere is a well-known trick to cause a compile-time error in the evaluation of a constexpr function by doing something like this: constexpr int f(int x) { return (x != 0) ? x : throw std::logic_error("Oh no!"); } And if the function is used in a constexpr context you will get a compile-tim...

 
user1804599
12:42 AM
On a scale from Java to interesting, this is pretty interesting.
 
user1227304
Stop bashing Java
 
@AnalyticalInsanity Well. Derp. This is a chat room. Code being flung around is quickly annoying. Especially if it's ugly, unreadable and unnecessary
 
user1227304
It is on equal terms with C++
 
Ell
@sehe Yeah :/ I think it Will be okay for me to return after my exams, if I do leave
 
12:43 AM
@AnalyticalInsanity haha. I'm not bashing Java. But it's not on equal terms (otherwise, one would be utterly redundant)
 
user1227304
@sehe You couldn't read it? Come back when you can read basic C++
 
@sehe Much like @rightfold!
 
user1804599
@AnalyticalInsanity Except C++ is more expressive, less annoying and cumbersome to use and makes writing DRY code easy.
 
@Ell I think that's a good idea :)
 
@LightnessRacesinOrbit Oh, aha. TIL. Thanks
 
12:43 AM
You can't write AnalyticalInsanity without AnalInsanity
 
user1227304
@rightfold I think that Java and C++ are equally relevant, but good for different things.
 
@sehe Np. It's surprisingly Googleable, but if their SEO weren't so good I'd say "that's a stupid name because it's so un-Googleable"
 
@AnalyticalInsanity You may want to stop right now.
 
Ell
And maybe giving up programming for that duration is wise too
 
user1227304
@sehe Stop what?
 
12:44 AM
@AnalyticalInsanity Talking...
 
user1227304
@sehe Java is a good language.
 
user1804599
I think Java is good for one thing.
 
@AnalyticalInsanity I never debated that. Maybe you should try engaging your reading comprehension?
 
user1227304
And so is C++
 
user1804599
It shows how not to design programming languages.
 
12:44 AM
@rightfold comparisons
 
user1227304
I prefer C++ myself
 
@Ell What exams do you have to give?
 
Ell
I have A level and AS levels next year
 
user1804599
I’d love a C++ job, by the way.
 
user1227304
You wont get one like this
 
12:44 AM
@rightfold Yeah you're likely to get one here
 
user1804599
PHP is getting boring.
 
user1227304
No one gets a programming job be bashing the most common language
 
user1804599
But soon Pythonn!!1
 
@AnalyticalInsanity I told you to stop. Please leave do so. You're starting to insult people for no reason. There's erm... no reason for that.
 
12:45 AM
@rightfold gasp
@sehe I beg to differ
 
@AnalyticalInsanity wat
 
@sehe Are you kidding? That's this room's pasttime
 
@Purrfection :)
@LightnessRacesinOrbit Oh well. Then I'm off. Bye peeps. Have fun with the mud and the rolling.
 
user1227304
@sehe Are you kidding me? You attacked me for forgetting a carriage return
 
12:46 AM
@AnalyticalInsanity You know, having to "work" with it this semester, I am all for bashing it.
 
@AnalyticalInsanity Prove it. Good day.
 
drama drama drama
 
user1804599
@AnalyticalInsanity The fact that X is very popular does not mean that I have to use X to do something in a field where a less popular alternative Y is available.
 
Who is starring shit for no reasons?
 
Ell
@sehe goodnight :)
And goodnight all others
 
12:46 AM
I want to make a racist joke but I'll get suspended again
 
@Jefffrey I can star whatever I want, biatch
 
@Purrfection Ready to invalidate.
 
@AnalyticalInsanity To be fair, I think that was @Griwes.
 
user1804599
@Purrfection suspension level: Korean/10.
 
@sehe Good night my cuddly bear
 
12:47 AM
@LightnessRacesinOrbit Yep, confirmed. Although calling that "attacking" is a bit weird.
 
@Griwes shrug fussed
 
@LightnessRacesinOrbit Ok. :(
 
user1804599
@sehe He did not insult anyone.
 
lol dat edit
 
user1227304
@rightfold I never said you have to use anything, but the truth of the matter is that X is good at what it does.
 
user1804599
12:48 AM
It’s not.
 
user1227304
Is sehe gone?
 
user1804599
That’s the problem.
 
Haha sehe removing stars on posts that he doesn't like
Wonderful
 
user1227304
No offense againsed him, but he seems a bit... immature.
 
Well, it's 00.50 — goodnight little children!
 
user1804599
12:49 AM
inb4 bandwagon
 
user1227304
Although this is the internet...
 
@AnalyticalInsanity "Againsed"? That's a first.
 
user1227304
@Griwes It's a habit. *Against
 
Are we serious now?
 
user1227304
@Jefffrey I hope.
 
user1804599
12:51 AM
On a scale from Java to C++, how good are you at C++?
 
user1227304
@rightfold Just shut up. Java is an excellent language, very similar to C++>
 
user1227304
*.
 
You'll have a long and successful career in this field. — Jefffrey 35 secs ago
hahahah
@AnalyticalInsanity No, not really...
 
user1804599
I will shut up once people stop using Java.
 
user1227304
@rightfold I don't code much in it myself, but it works.
 
user1227304
12:52 AM
@rightfold I would like to see you make an "Applet" out of C++
 
user1804599
2003 called; they want their applets back.
 
user1227304
are excellent
 
Jesus, 1820 called...
 
what is an "Applet"?
 
user1227304
Little programs that run in your browser.
 
user1227304
12:53 AM
They let you not have to download something...
 
people still use java in the browser?
 
user1227304
Pieces of JavaScript..
 
Um, you have to download the applet, dumbfuck
 
user3010322
Security Risks that run in your Browser
 
user1804599
They let you have to download the fucking applet.
 
user3010322
12:53 AM
FTFY.
 
user1227304
Oh FFS it's not all FLASH!
 
I disabled Java in my browser like 3 years ago.
 
user1804599
HTML5 is superior in every way.
 
no one mentioned flash
 
Nothing > Java applets > Flash
 
12:54 AM
but flash sucks too
 
user1804599
I like flesh.
 
@AnalyticalInsanity What does JavaScript have to do with it?
 
user1227304
@LightnessRacesinOrbit Only in the same way you have to "download" the images on the page
 
@rightfold I know what Java/10 is, but Korean/10?
 
user1227304
12:54 AM
@rightfold HTML5 is in fact superior in every way
 
@sehe good spot with the noun
what is that flag for?
 
user1804599
Hmm, speaking of applets.
 
user1804599
I replaced an applet with a WebSocket server a few days ago.
 
user1804599
It was quite fun.
 
12:56 AM
^ An applet.
 
Did you know that levenshtein("applet", "fagget") = 4
 
user1227304
You guys are something else... Java is good, applets are good, HTML 5 is better, and C++ is the best. Got it?
 
I thought that would be interesting
 
user1804599
In F#; job security. :F
 
Bizarre troll is bizarre
 
user3010322
12:57 AM
wdwahjdkwhdwd
 
user1227304
Long cat is, in fact, long.
 
user1804599
@AnalyticalInsanity replace the first two “good”s with “terrible” and we agree.
 
user3010322
MEMBER FUNCTION POINTERS NOT CONVERTIBLE TO VOID* table-flip!!!
 
user3010322
y dey do dis 2 me
 
user1227304
@ThePhD Well it makes sense...
 
12:58 AM
that's the laziest table flip in history fuck you
 
user3010322
All mai optimization out da window q___________q
 
user1804599
@Purrfection No, it’s 1.
 
user3010322
@LightnessRacesinOrbit (╯°□°)╯︵ ┻━┻ !!!!!
 
@ThePhD there you go
 
user1804599
@ThePhD Of course not.
 
user1804599
12:58 AM
What the hell.
 
user1804599
What are you doing.
 
user1804599
Stop writing ThePhD code.
 
user3010322
I'm writing lovely code.
 
@ThePhD D'oh. Think pointers to virtuals.
 
user1804599
Use templates instead of void*.
 

« first day (1150 days earlier)      last day (3813 days later) »