« first day (1562 days earlier)      last day (3387 days later) » 

5:00 PM
but I can't remember any atm
 
@Puppy I still can't see why it'd even want to start considering x for the captures.
 
@Griwes Not if U is not type, but int, say.
and T can also be int.
now what do you do?
 
@AlexM. Pokemons in dual battles have such tricks
 
Then you are trying to invoke int{ type }.
 
@PTwr I'll take a look, thx
 
5:00 PM
int probably doesn't have a constructor from type.
 
right, but T can be int too.
so x could be an int (1, let's say)
 
Sure. Depends on the instantiation.
 
right.
so you don't know in advance if you need to capture x or not.
 
Again, why would it capture x?
 
because if U and T are both int then you need to capture x to return a new int constructed from it.
you can't construct a new int from a random object without capturing it.
and bonus points if T is not int but, say, std::unique_ptr<int>, which can't even be captured that way.
 
5:03 PM
Puppy, your lambda syntax is confusing.
My brain hurts at processing lambda := () => U { T };.
 
well it's not my syntax.
the U { T } syntax is Griwes's suggestion.
I'm merely demonstrating that it can't work because the capture behaviour is context-dependent but you don't know the context until too late.
 
What's your current lambda syntax?
 
I have a long form which is JS/Lua like, and a short form which is C# like.
Wide actually used to have a similar problem, which I had to eliminate, FTR.
 
I have no idea what any of those are like.
 
@AlexM. Ninetales with Drought adds 50% to Fire, then you attack your own Growlithe/Arcanine holding Charcoal (+20% fire damage) with any fire move so Flash Fire boosts its Fire damage by another 50%. And then you use area of effect attack. It makes water burn. And if your Ninetales is strong enough, it will sometime survive ;)
 
@Jefffrey JS/Lua have function(args) { blah; } and C#'s short form is () => expr, arg => expr or (args) => expr.
 
Yeah, I was talking about the C# syntax when I said that it's confusing.
 
Wide only uses { } as scope delimiters C-style, and to denote tuples. No other usages.
 
@LightnessRacesinOrbit The urge to C-C-C-C-C-C-OMBO BREAKER
is strong
 
@Borgleader :(
 
5:08 PM
@Jefffrey It's pretty well-known. It works very well for short lambdas I think. Besides, what's really confusing is a) I assigned it to a variable with initializatin syntax which you may not be familiar with, and b), the expr in this case is Griwes's proposed syntax which is hideously ambiguous and I think unimplementable.
 
Jefffrey you muppet
 
@Puppy wat.
x is not mentioned within the lambda, hence it's not captured.
 
so you don't have any implicit captures?
 
U{ T } might be illegal, but similarly U + T or U(T) might be illegal, so whatever.
 
I implicitly captured your heart.
 
5:10 PM
ah cock.
2
well that explains it.
 
Capturing things that are not mentioned doesn't seem sane.
 
I meant to write U { x }.
 
Oh well, that changes things.
 
x := T { ... }; lambda := U => U { x };
let's try this again but where puppy wrote something that might vaguely approximate what he had intended.
 
cheers James May
 
5:11 PM
So, there's an object of type T, and it's used within the lambda. Looks like it should be captured. Doesn't really matter what it is.
 
what if U and T are both type?
 
@LightnessRacesinOrbit ?
 
@Borgleader "ah cock" is a Mayism
 
May I sm?
 
@Puppy Then x is a type and U{ x } invokes type { type }. Now, as I said, I'm trying to invent the syntax here, I don't really have it yet, hence some-uniform-initializer placeholder few screens back.
 
5:14 PM
user image
2
who watches top gear :]
 
no :[
 
@Pris at least me @LightnessRacesinOrbit and you
 
user1804599
I watch top kek.
 
Hey OCD people, look: (...
 
user784668
5:15 PM
Bloody Nora.
 
@Griwes Right, I'm just trying to work out what you're suggesting. So what you're saying in this case is that x is always captured?
 
@PTwr magicka had something similar, I remembered now
 
it allowed you to cast water stuff then lightning stuff for extra damage
I'll implement it as an effect-on-status atm and see where I get
 
if i ever visit the uk im gonna buy a bunch of official top gear swag
 
5:16 PM
@Puppy Yes.
Although w.r.t. captures, I think I like C++'s explicit captures better. :P
 
e.g. lightning does 2x damage against targets that are wet, and water splash causes targets to become wet unless they're already on fire, in which case they become normal
 
@AlexM. what kind of game are you trying to create? Card? a'la Pokemon? MTG?
 
might and magic/wizardry-like
 
@Griwes So what you're saying is that you have to be able to search the { ... } bit for captures, and this must function the same regardless of what U is.
 
it's in fact a single level that I try to get as finished up as possible
so it's not exactly a game
 
5:18 PM
@Puppy Yes. :P
 
ok.
 
@AlexM. Pkmn had also moves like Mud Sport, reduces effect of electricity on whole battlefield (affects foes, allies and self)
 
Hey stop posting things I can't understand the jokes of.
I feel excluded.
 
so basically an aura
 
@Puppy Well, it should be doable by analyzing all the expressions inside {} and looking at the identifiers used.
 
5:20 PM
I'm not sure how you intend on analyzing them when you don't know whether they are function arguments, effectively, or type member definitions.
also if you have lambdas, then they're not limited to expressions, since you could have a full function body inside a lambda.
 
@Jefffrey Which ones? Top Gear jokes? How about you watch the damn show instead ;)
 
How about no. :[
 
can't believe people actually flagged those comments
lol
 
How about you open a Lounge<TopGear> and post top gear stuff there?
 
5:24 PM
@Jefffrey The room topic has been changed to: Lounge<TopGear>
HTH
If we have to put up with your Haskell bullshit you have to put up with a bit of light hearted Top Gear. Cheers.
 
wait, I don't remember jefff outputting haskell bullshit
 
man, that image totally doesn't need to be in a zoomable container
web 3.0 for no reason
 
@AlexM. ikr
 
@AlexM. i do...
 
did jefff ever talk about haskell
 
5:27 PM
nope
 
I thought it was a bartek thing
 
I have no idea what Haskell is.
 
and someone else
I forgot who
 
you're right
 
5:27 PM
Jan 15 at 16:19, by Jefffrey
damn you haskell programmers
 
jeff... is a haskellite
 
I'm against haskell programmers.
 
I feel betrayed
how can you like pizza and haskell at the same time
4
YOU MONSTER
 
Jan 17 at 19:20, by Jefffrey
why are you evaluating these IO actions lazily you stupid fucking ass haskell
 
PERVERT!
 
5:28 PM
you are not a true italian
 
lol
 
@AlexM. jeff has haskellitus FTFY
 
@Stacked are you going to the unconference?
 
How's your ear noise robot.
 
It was a bit annoying yesterday but usually tolerable.
 
5:30 PM
What did the doctor say?
 
I'm hungry but also too lazy to fry this meat
ugh
 
Doc couldn't figure out the cause, which is not unusual.
There's no cure. There is therapy that can reduce it to tolerable levels, but since it is already as such, I'm not doing anything.
Help. I can't find my Forbidden Planet T-shirt.
 
did you check your shoe
 
"Hey let's try this new beer" is a dangerous proposition when half the fridge is filled with alcohol
Also mornin
 
5:45 PM
Hangover Plus Plus
 
user1804599
The worst pizza I ever had was in Italy.
 
> 18:45
> mornin
 
Today, Griwes learnt about time zones and hangovers.
 
I still don't know if getting up that early was a good idea
 
inb4 we're in the same timezone
don't care
 
5:47 PM
We're even in the same city
 
@LightnessRacesinOrbit 7: error: fun was not declared in this scope. — bolov 17 mins ago
 
@CatPlusPlus Why get up at all? Just stay in bed for the whole day. :P
 
user1804599
I want to go back to Spain.
 
user1804599
I want to live in southern Europe during fall, winter and spring, in the Netherlands during summer except in northern Finland during August because fuck wasps.
 
user1804599
But I speak neither Finnish nor Spanish nor Italian nor Greek nor Portuguese.
 
5:54 PM
But you speak Javascript Python Perl Haskell and Lisp. Shouldn't be a problem to learn those other languages
 
@рытфолд you've got your work cut out for you then
 
user1804599
@AndyProwl Those languages are much simpler than Finnish, Spanish, Italian, Greek and Portuguese.
 
user1804599
And have much smaller vocabularies.
 
@рытфолд for basic communication, Italian is not hard and neither is Spanish. Not sure about Greek and Portuguese. Finnish is hard as fuck though.
 
user1804599
FINNISH HIM
2
 
user1804599
5:57 PM
Haha HIM is from Finland.
 
@R.MartinhoFernandes Have you tried turning it off and on again? :/
 
Mind if I ask a question?

I have a class hierarchy in my C++ program:
```
class DEObject {
public:
virtual double distance(vec3) = 0;
};

class Sphere : public DEObject {
private: ...
public:
Sphere(...) {...}
...
double distance(vec3 p) {...}
};
class XZPlane : public DEObject {
...
public:
XZPlane(...) {...}
...
double distance(vec3 p) {...}
}
...```

I want to pass any object deriving from `DEObject` into a function.
```
void addObject(Base o) {...}```
However, that does not work. I get an error message saying `error: cannot declare parameter 'o' to be of abstract type 'DEObject'`
 
user1804599
I don't get it.
 
user1804599
You ask whether we mind and then you proceed before we answer you.
 
user1804599
And then what you proceed with is a wall of unformatted crap.
 
6:01 PM
@Mateon1 Ask on stackoverflow please.
 
I did format it, I guess chat doesn't support formatting when you use multiple lines
 
@рытфолд he tried formatting it, but murked it up. :p
 
@Mateon1 wtf
 
user1804599
Then you didn't read the rules, which clearly state so.
 
@Mateon1 new Sphere(...) returns a Sphere*, i.e. Sphere pointer...
 
6:02 PM
@Mateon1 Not your fault. That's not stated in the documentation.
 
@рытфолд There's no link to the rules on the starboard
 
user1804599
That doesn't change the fact they didn't read the rules.
 
you don't need rules
when you have rightfold's something-or-other
 
They didn't because they couldn't
not their fault
 
user1804599
Never said it was.
 
6:03 PM
@Mateon1 don't you know the rules about new and delete? You gotta delete all the news
 
user1804599
Why are the rules not linked in the topic.
 
user1804599
Much more people would click it.
 
user1804599
And it never disappears automatically.
 
Because we're childish
 
@melak47 No, I don't know the rules about delete and new, could I have a link to some resource, if that's important?
 
6:04 PM
@Mateon1 sorry, it was a pun.
 
Not knowing the law is not an excuse for not following it!
 
in this case though
 
@рытфолд I don't see why
 
asking "Can I dump shit here" and then proceeding to dump shit without receiving an answer
 
Not having the law tends to be an excuse for not following it though
 
6:05 PM
mmm. speak for thyselves :)
 
is more of a lack of common sense
rather than a lack of rule reading
 
Hi! This room is bound by some rules; if you're new here, please read through them before chatting. Thanks!
 
@AlexM. I'm trying to make my kid aware of this kind of common sense :)
One of them, actually, at the moment
 
I'm sorry, I thought I would be typing that question a long time (I was) and I didn't cut it into my clipboard, sorry :<
 
@LightnessRacesinOrbit inb4 nobody stars
 
6:06 PM
Use HTTP link so that idiots don't complain about ~~~broken~~~ cert
 
PRIVACY ERROR!!1! FISHING ATTACK!
 
user1804599
@LightnessRacesinOrbit because it's much more visible.
 
@Mateon1 It completely depends. This is not a question about polymorphism; it is a question about object ownership and about how you intend to construct your objects.
Right now your biggest problem is that you're trying to pass a pointer (or, in your nonsensical latter example, a pointer to a pointer!) when the function does not expect one. Remember, references are not pointers.
It does kind of seem like accepting pointers into that function would make a bit more sense. Consider making it some kind of C++11 smart pointer.
But, again, this has absolutely nothing to do with inheritance or polymorphism (besides the fact that using it prevents you from taking the new objects by value).
 
@CatPlusPlus idiots don't complain. There might be good arguments for the cert situation now, but "complaining" about broken certs is not stupid
 
Cheers & hth.
 
6:09 PM
@AlexM. I agree with that, just saying part of the fault is on our side
 
Hi! This room is bound by some rules; if you're new here, please read through them before chatting. Thanks!
14
@CatPlusPlus ok
 
@LightnessRacesinOrbit Well done, Lightness. I hope that helps
 
@melak47 "You attempt to catch a fish."
"You catch a lobster."
 
user1804599
@LightnessRacesinOrbit Nice web design.
 
@рытфолд Um, thanks?
 
6:09 PM
@AlexM. well, crap.
 
user1804599
@LightnessRacesinOrbit It wasn't a compliment towards you.
 
@рытфолд I don't know what the hell it was.
@рытфолд Since I have nothing to do with the web design.
so my salmon was supposed to be cooked after 16 minutes. Opened up the parcel and it's not close. dno what to do now sigh
could be a label misprint I suppose; I'm used to cuts that large taking 35 mins
 
ask the salmon
 
but now my veg is sitting there soaking
 
he should know
 
6:11 PM
When going onto the Asking Questions page, I get presented this:
 
inb4 pun
@Mateon1 yeah it's a bit of a mess atm :(
Stick to the links on the actual linked page
 
user1804599
That's because the website is broken.
 
the-law/the-law/the-law lol
Wiki is Very Well Coded™ gg @Cat
 
It's not a wiki
 
it's a kiwi
 
6:12 PM
Then what are those "edit" links for?
 
Ask the idiot who wrote wikitext renderer for rubby
They don't do anything
 
user1804599
lol
 
hey there's a quick answer thing on stackoverflow
has that always been there?
 
are loops expressions in Rust?
 
user1804599
Yes.
 
user1804599
6:20 PM
No.
 
user1804599
Maybe.
 
is your rust....rusty?
 
Hardly. I started to learn it today
It's more like... non-existing
Since if conditionals are expressions, I tried something like let x = for i in 0..10 { i }; to see if loops were expressions too. That doesn't compile
Could be the wrong syntax though. Quick googling didn't help
 
user1804599
Yeah they are.
 
user1804599
You can say let xs = for i in 0..10 { }; and xs will be of type ().
 
6:24 PM
I see, so they always evaluate to ()
 
user1804599
But I think the body must have type ().
 
user1804599
So i; should work, but not i.
 
user1804599
CoffeeScript constructs an array of all values if you do this.
 
yeah
 
user1804599
coffee> console.log(for i in [1..10] then i)
[ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ]
 
6:25 PM
interesting
 
user1804599
Except when the result is unused, of course. That'd be silly.
 
Hah! This is interesting: N4295
 
The URL is interesting.
 
indeed
was linked here some time ago
 
user1804599
Which reminds me.
 
user1804599
6:28 PM
I don't know whether I need some sort of looping construct in LasagnaScript.
 
user1804599
TCO is impossible because ECMAScript 5 is designed by idiots.
 
Hi there!
 
user1804599
I think having while loops is enough.
 
user1804599
They make it trivial to implement map and foreach.
 
@Rerito Hey.
 
6:31 PM
Planning on getting tattoos with the GF
 
Grandfather?
 
Girlfriend!
 
What are those?
 
@Rerito You call your grandfather your girlfriend. Nasty.
 
@Nooble Very lovely creatures
 
6:32 PM
Also, tattoos, I hope you get her name tattoed.
 
user1804599
I want to play Carmaggedon II.
 
user1804599
Is it fun?
 
@wilx Arrrgh please...
 
And once you break up, you like get strike through over the name.
 
@wilx And I cover the name with another tattoo... Like a Darth Vader helmet?
 
6:33 PM
@рытфолд The story escalades quickly.
Oh GF!
 
@Rerito No. Like keeping it there, so that everybody who sees the tattoo knows how promiscuous you are. :)
 
I have one too.
GeForce GTX 970 right?
 
@Nooble I bet she renders greeeeaaat curves
@wilx Creepy lol
 
She struggle in 4K, which is why I have two. Never saw the problem in having two GF's.
 
user1804599
 
user1804599
6:35 PM
Looks pretty fun.
 
@Nooble Polygraphicardmy is alright. We must stop being so backwards!
 
so
torrenting another game I bought in the late 90s
 
which one?
 
Black and White
 
@Puppy Nostalgy?
 
6:40 PM
that game was fun
esp throwing stuff with your giant beasts
like their poop
 
I broke the disc trying to get it out the box the first time
 
@Puppy That's unfortunate. And you never bothered torrenting it until now?
 
the publisher sent us a replacement for some very small sum.
so I did play it on original release
 
Was it worth it?
 
I thought it was pretty fun, but my 10-year-old brain failed to get to grips with how to actually get my Creature to do the shit I wanted it to do
 
6:44 PM
sounds a lot like conker's bad fur day
 
user1804599
 
user1804599
Another game on my can't-wait list.
 
user1804599
And Portal II.
 
You want Portal for single or multi player?
 
@R.MartinhoFernandes Nah..
 
6:52 PM
@PTwr Yes.
 
user1804599
@PTwr single player.
 
user1804599
But if other people have it I'll be happy to play multiplayer.
 
@Nooble I am not sure what question you answered ;p
 
user1804599
Same goes for The Phantom Pain and potentially Carmageddon.
 
@рытфолд Multi in Portal II in split screen is awesome :)
 
user1804599
6:54 PM
I want online or LAN, not split-screen.
 
I think he's a console gamer.
 
user1804599
I'll buy the games for PC.
 
user1804599
I need a more advanced PC anyway soon, so I might just as well put a sufficiently powerful graphics card and CPU in it.
 
user1804599
And many games I want to play come out this year.
 
user1804599
Or are out already.
 
6:55 PM
How much is your budget?
 
You can run split screen on PC as well
 
user1804599
@Nooble €1400 max.
 
I'm looking to replace my (nearly) 4 year old desktop as well.
 
user1804599
@PTwr I don't want split-screen.
 
@Nooble In my room I have play station, xboxes, Wii and Commodore 128 along with PC
 
6:56 PM
@рытфолд That's a decent budget.
 
user1804599
Including monitor.
 
user1804599
But monitors are cheap.
 
Still decent. What kind of monitor though?
 
user1804599
I have one monitor. It'd be ideal if I could get an identical one.
 
Fully new or reusing some old components? (case, disk)
 
user1804599
6:57 PM
@Nooble Flatscreen.
 
user1804599
@PTwr everything new.
 
Of course, but what resolution and size?
 
user1804599
Full HD.
 
user1804599
I don't know the size.
 
user1804599
For gaming I'll use my TV anyway.
 
6:58 PM
24 inches is pretty standard.
 
Size depends on your distance from screen mostly
 
user1804599
Except for games which require mouse and keyboard, such as Minecraft and Factorio.
 
When screen is on your lap then 15'' is good enough, on few meters 32 will be small ;p
 
Cheapest 60Hz 1080p and good GTG monitor I could find.
Response time is minimal.
 

« first day (1562 days earlier)      last day (3387 days later) »