« first day (1850 days earlier)      last day (3101 days later) » 

2:00 PM
We need The Gif
 
The Git? Whos The Git?
 
@Lalaland That's one small sentence from the EU, and one massive leap to killing Google.
 
remember that insult?
 
2:01 PM
lots of one-starrers on starboard today
 
shall I clean up?
 
dunno, up to you. I don't mind it particularly
 
@TonyTheLion test
It works :D
 
@l0oky :)
 
user1804599
@l0oky icle
 
2:02 PM
@TonyTheLion owner Andy and let him clean
 
starboard: the fittest survive
let it be, let it be
 
Andy for owner?
 
user1804599
no
 
I don't think it's necessary
also I don't know if I'd be a good owner
 
@TonyTheLion yeah, can you think of a better fit on this planet?
 
user1804599
2:03 PM
We need fewer owners so that I can onebox more animations.
 
I'll leave the stars
cba
 
I think the Lounge is working fine atm
 
@JohanLarsson yes :P
 
Bjarne?
 
@TonyTheLion I like my keyboard better, maus is for tha newbs
 
2:04 PM
@Elyse If this was a dictatorship and I was a dictator, I would ban you :P
 
@JohanLarsson Cat!
 
@l0oky unlucky
 
@AndyProwl I dunno--the situation's getting pretty desperate. We're down to only 10 owners...
 
@AndyProwl was last year yes
 
user406009
@TonyTheLion but it is a dictatorship.
 
2:04 PM
There's no IRC version of this room is there?
 
user406009
None of us plebs have any powers.
 
@JerryCoffin Seems a reasonable number to me
 
@JerryCoffin and half of them don't do anything
ie bin stuff or kick people etc
 
@AndyProwl It was 12 for a long time.
 
user406009
@l0oky no, but there is a mumble.
 
2:05 PM
@TonyTheLion Some are certainly more...activist than others.
 
Did Bjarne ever join this room?
 
I hope not
 
@l0oky no, because he has a life
 
user406009
Don't worry, we will announce in the chat when we switch to mumble.
 
@l0oky No.
 
2:06 PM
unlike the rest of us
 
@TonyTheLion With great power comes great responsibility. We apparently have the most responsible owners possible! :)
 
user406009
@l0oky No
 
I don't think when you head a department at JP Morgan that you have much time to chat in Lounge<C++>
 
@TonyTheLion Or does he? muhahah
 
@l0oky what do want to happen in the first place? You must block because your client class is gonna hold a reference to the io_service that is a local in OnGameModeInit
 
2:07 PM
ooh
:(
 
@JerryCoffin do it
 
@wilx Not sure if sarcasm, esp the second sentence
 
@sehe you're right
I have to make it global
 
@l0oky also "Thanks" - so I can complete discard the advice? "I ran my io_service as a worker" - no you don't. You just register a worker and proceed to not run the service. The more sensible order would be
	  boost::asio::io_service::work work(io_service);
      boost::thread thread(boost::bind(&boost::asio::io_service::run, &io_service));
Nut now you have the problem of UB due to io_service not existing long enough
 
Why does the lounge need more than 5 owners again? I am a bit slow ...
 
2:09 PM
IMO it makes more sense to have the thread away from the client class (because you don't want a thread per client)
@l0oky ...
> I have to make it global
No one. Ever.
 
@sehe You are way above my level. That's cool stuff
 
Must be going. Kids from school again
 
@chmod666telkitty Different time zones, different presence patterns, etc.
 
@TonyTheLion Half and half. If I were an op, I would pretty much kick only consistent high volume spammers and that is already handled by the system itself.
 
@wilx Then we're lucky you aren't an RO. (active trolls that come in here for the sole purpose of trolling, need kicking)
 
2:10 PM
I suspect most ops here restrain themselves as well.
 
Ven
hey lounge
 
@sehe Why would It not exist the whole runtime?
 
hey ven
 
rule of thumb for the internet: if you don't frequent a place and you did not make that place yourself, you should not be an owner
 
@sehe Oh cya.
 
user406009
2:11 PM
Well, we have a couple of owners who don't show up that much anymore.
 
the point of having them?
 
@TonyTheLion I have hight threshold for this. :)
 
I'd make Alex an owner
and Cat
 
user406009
@chmod666telkitty no reason to not have them. And they often provide different perspectives.
 
@AndyProwl He removed himself from the list, because he doesn't want to be an owner
 
2:12 PM
@TonyTheLion Yeah, I know - I'd like him to change his mind
 
he gave up after the last major Lounge Drama
 
@AndyProwl nah that would be a bad idea, I'm the guy who autoplonks all varieties of trolls
 
but yeah, I know he won't
 
too likely for me to kick trolls you can live with/want around
 
cat has me plonked
it's pretty obvious
 
Ven
2:13 PM
mmh, just how slow is boost::split compared to a manual strtok-like thing?
 
@AlexM. I think trolls should be kicked - that's the policy
 
user406009
Cat plonks people?
 
"don't be confrontational" etc.
 
user1804599
@Ven It's fast.
 
user1804599
And, unlike strtok, thread-safe.
 
Ven
2:14 PM
@Elyse I know, but I don't care for thread-safety here, so that's no issue
 
I only know of one person that has me plonked
I wonder if there's more
 
user406009
@AndyProwl "don't be confrontation" would result in a lot of people getting kicked.
 
user1804599
I wish it took an output iterator instead of a container though.
 
user1804599
The current API is needlessly limited.
 
user406009
I would probably have to be kicked eventually.
 
2:15 PM
@Lalaland I think that's the encouraged policy - just to be clear, wrt trolls
 
@AndyProwl it is
 
confronting them just causes more noise and trouble
 
don't give them reasons to troll more
 
@Lalaland either that or he subconsciously blocks all my messages & I think I know why
 
kick and done
 
2:16 PM
yeah
 
1/3 of today's messages consist of trolling
 
user406009
Depends on how you define trolling.
 
user406009
Are jokes and puns considered trolling?
 
there were 2 trolls trolling each other for a good whole hour (and I was not one of them)
 
user1804599
2:18 PM
@Ven bunchmark it a bench
 
Ven
@Elyse I probably will
 
humor is orthogonal to trolling
you can make jokes and puns all the time without trolling
 
Ven
if I take a T&& foo in my ctor, I still need to std::move it, right?
 
GFSDK_GodraysLib.x64.lib, Fallout 4... So, Todd Howard's "volumetric lighting" during the keynote is courtesy of Nvidia. Also, msvcr110.dll, lol.
 
Ven
because the name itself won't be an xvalue then
 
2:19 PM
@Ven or std::forward it
but yes, foo is an lvalue
 
msvcr110.dll ... wow
 
I use the lose term for trolling - irrelevancy is trolling
 
Ven
@AndyProwl ty
 
Ven
@chmod666telkitty you're lose.
 
2:20 PM
ITT using lose = loose
 
Ven
> explaining the joke
 
@Ven what does that mean
 
andy trowll
5
 
Ven
I decremented my star count on github to 665 not to be counfused with telkitty. -- true story
6
@chmod666telkitty it means you loost.
 
Man, I am going to miss you guys... But the Wasteland is calling to me. What should I name my character? Andy?
 
2:22 PM
are you disappearing again?
oh
 
Nah, but I am going to be playing Fallout 4 for way too much! I'll be here, with my stars ready. But I must save androids and what's left of MIT in FO4.
 
lol, ok, good to know
 
no one disappears into a game for a few month at a time
wtf, 2 dumb 2day ... must sleep into tomorrow 2 undumb
 
@AndyProwl Btw. how is the break up going? Is she calling you at 5 am after coming from a party drunk?
 
@ElimGarak No. She took it very maturely, which surprised me. Ironically, maturity is one thing I missed in our relationship. I'm confused now, it feels quite bad.
 
2:26 PM
say that it was a test
 
Ah, yeah, the sudden reversals.
 
an send an mms with a green checkmark
 
Like, I know the issues are all the same, but now I'm just thinking about how I miss the things that worked
Also, I told the stalker I don't want a relationship
I'm really good at fucking up
 
But if she'd like to forward::std, you'd be open to it.
 
what stalker?
 
2:28 PM
@JohanLarsson This and this and this
 
@JohanLarsson The shadow of Chernobyl one.
 
> Italian programmer speaking Slovak
That is pretty hot imo.
She did nothing wrong.
 
She didn't
 
Ven
mmh, seems like boost's algorithm can use boost::is_any_of if I want to "one of"... but what about boost::split()ing on multiple characters...
 
I was kidding
 
2:30 PM
She's probably trying to get Andy's pizza recipes.
 
that's a nice metaphor yes
 
( ͡° ͜ʖ ͡°)
 
user406009
Or his Hitler video production secrets.
 
lol, Fallout 4 generates Low, Medium, High, Ultra .inis.
 
is that bad?
 
2:32 PM
@AndyProwl So, any new adventures with the stalker? ^_-
 
@wilx Sort of, but I don't want a relationship
 
user406009
@ScarletAmaranth Elim doesn't believe in anything other than the absolute highest graphics settings.
 
@ScarletAmaranth It's kinda nice, usually these are dropped into an archive and not really exposed. Probably preparing the field for modders and stuff.
 
I decided to break up with my girlfriend because I wanted to date her. Then I dated her and ended it with her too. And now it sucks because I'm alone. So basically I maximized the unhappiness of three people. I'm good at this
 
Data is also nicely organized, although they seem to have upgraded their archive format (.ba2, probably similar to the old one, but with enough changes to make existing tools have a headache).
 
2:34 PM
@AndyProwl lol, dude...
 
guys what do you eat when you're hungry late in the evening
 
Ven
urgh, I forgot what I needed to parse could have quoted portions as well... Guess I can't just split or use a regexp...
 
I mean those of you who don't eat pizza and burgers like me
 
@AndyProwl You're good to go with a brazzers membership then
 
Ven
/me probably wouldn't be allowed to write a boost.spirit parser, so won't
 
user406009
2:35 PM
@AlexM. Apples
 
is there something that doesn't make you fatter but still stops you from killing yourself
 
@Rerito What's that?
 
@AlexM. Yogurt
 
because hunger
 
user1804599
@Ven spawn a process that uses strtok.
 
2:35 PM
Kabanos /ˌkæbæˈnɒs/ (plural: kabanosy) is a Polish long thin dry sausage made of pork. They are smoky in flavour, and can be soft or very dry in texture depending on freshness. Typically, they are quite long, 60 cm (24 in) but very thin, with a diameter of around 1 cm (0.39 in), and folded in two, giving them a characteristic appearance. Their staging process, and the resulting exceptional taste and aroma are the features which set kabanosy apart from other sausages. Kabanos is the most popular sausage in Poland. == Etymology and historyEdit == The name comes from word kaban, an old term used in...
 
@AlexM. Vegetables
 
@AlexM. Almonds
 
user1804599
That way it's thread-safe, since "global" actually means "process-local".
 
Usually that kills hunger quite fast
 
Almonds make you very fat
 
Ven
2:35 PM
@Elyse I got the idea, but: "pls"
 
Just a handful of them is enough to stop eating
 
user1804599
@milleniumbug that's supernice
 
@ElimGarak ok you said "lol @ something" so I thought it was like a bad practice or some such
 
user406009
@Elyse or you could just use strtok_r :P
 
@Lalaland I'd go with apples but for some reason some fruits (incl apples, excl bananas) when hungry mess with my stomach and I find myself on the toilet an hour later
 
2:36 PM
@AndyProwl But almonds are so good.
 
IMO if you've eaten reasonably during the day, late evening hunger is not real hunger
 
IGN gave it a 9.5/10 with the only con listed as: "Bugs". I am not even sure are they legitimate bugs or are they just cashing in on the meme.
 
so I wouldn't treat it with real food
@Morwenn They are
 
@ElimGarak rite, there's that activia thing with some cereals inside
 
user1804599
@milleniumbug "klabanus" is Dutch for dick
 
2:37 PM
Just drink water
 
@AndyProwl I'm kinda used to eating a lot both in the middle of the day and at the end so I'm trying to get rid of that
 
Water is sometimes really delicious.
 
Oh and just a thing, replace every soda/sweet beverage with water
 
but srsly it's 4:38PM
and already hungree
aaaa
 
That does change things
 
user406009
2:38 PM
@Rerito tea is also good.
 
Ven
heh, I can just use boost::tokenizer
 
@AlexM. You're one hour closer to end of working day than me - I'm envious
 
@Lalaland You need to drink it at least 1hr from your meals though
 
(as if I was actually working)
 
@AndyProwl (Yeah me too)
Listening to Beethoven 5th symphony (cc @sehe )
 
2:39 PM
I'm in a Requiem mood
 
Ven
Googling for C++ stuff and finding @sehe answers if fun :P.
 
user1804599
No, it's boring.
 
Ven
@AlexM. oh, new anime grill?
 
@AlexM. What did you eat so far today?
 
user1804599
@milleniumbug Kabanos and oszczypek are my favourite Polish foods.
 
Ven
2:42 PM
@Elyse well, I'm writing a CSV parser in C++, so of course it's boring
 
user1804599
why
 
user1804599
use a library
 
user1804599
use Python or Ruby or Perl
 
Ven
can't
 
@Elyse Kabanos is nice, but I'm not too keen on oscypek. It's too salty for my taste (on the other hand, the texture of the cheese is very nice)
 
user1804599
2:44 PM
salt <3
 
user1804599
Pierce osczcypek with kabanos.
 
user1804599
@Ven rest in pieces
 
@AndyProwl if it makes you feel better, we're both still so far away from the next weekend :<
 
Ven
@AlexM. wednesday is off in france :D
 
user1804599
A roulade is a dish of filled rolled meat or pastry. Traditionally found in various European cuisines, the term roulade originates from the French word "rouler", meaning "to roll". However, the term may be used in its generic sense to describe any filled rolled dish, such as those found in maki sushi. == MeatEdit == A meat-based roulade typically consists of a slice of steak rolled around a filling such as cheese, vegetables, or other meats. A roulade, like a braised dish, is often browned then covered with wine or stock and cooked. Such a roulade is commonly secured with a toothpick, metal skewer...
 
user1804599
2:46 PM
I'm having this tonight.
 
@Ven oui, I'll convert myself to camembert
 
Ven
@AlexM. tu es le bienvenue !
 
<3
 
@Ven Good it's in sync with the last 007 release:p
 
@Ven Haha, thanks for reminding me :D
 
user1804599
2:48 PM
Jesus died for my sins? Your cat died for my hunger.
 
@JerryCoffin This too "The objective will be that the value is fairly allocated to the players that contribute to generating it, and that the use of copyright-protected content is adequately remunerated for online uses."
 
Ven
@Morwenn yepp, my boss forgot about that as well... I quickly reminded him :)))
 
@AlexM. Tuesday is off in Czech Republic
 
user1804599
Next week is off in my vacation.
 
my next day off is during xmas
feels bad man
 
2:55 PM
oops wrong window
 
user1804599
haha moron!
 
user1804599
@Nils What is SPH?
 
user1804599
Small Penis Humiliation?
 
I would love to post it as answer, but I can't since this is protected. When I was a child and wanted to check my mom (or who ever else) was in my room checking stuff, I placed some of my Lego buildings or other stuff that would fall over if getting touched by a door, when leaving close behind the door. so if someone gets in it will all fall over. Worked the first few times untill mom figured out. After that I started placing like 5 items and just stand up lets say 2 of them. the funny point was, the next time I checked it, all 5 of them where staying again. So catched again! :D — Zaibis 1 hour ago
 
user1804599
Author of the library mentioned here... I'm sorry! I wrote this a couple of years ago as an excercise. I wouldn't implement it in a live website as it's completely insecure. I'll remove it from GitHub ASAP. — Dirk de Man 4 hours ago
 
user1804599
 
user1804599
I like how he misspelled "exercise".
 
Exorcism
 
user1804599
sillycisscum.
 
@AlexM. How much leave days do you have per year?
 
Is Canada really a part of USA?
 
user1804599
3:08 PM
Yes.
 
user1804599
It's a state of Alaska.
 
3:20 PM
I thought Alaska was the capital of Your Mom. But I'll ask her
 
ba-dum tsss
(needs gif)
 
user1804599
The womb is my favourite integrated development environment.
 
@Elyse the compile times are so long though. worse than MSVC!
 
user1804599
Daily dose of womb-induced love.
 
@TheForestAndTheTrees now, now, let's not exaggerate
 
3:27 PM
@TheForestAndTheTrees And there are at least as many ICEs.
 
wow dat text dump
 
that's a heap of questions
 
or a stack of them
 
try to put them on the stack...overflow
 
user1804599
@thecoshman what I end up doing is sending rendering commands to all clients.
 
3:35 PM
invoke bin
 
I think you wrote into a wrong textbox, questions go there
 
user1804599
Using a ZeroMQ PUB socket.
 
yep. It seemed opinionated, so I thought would ask here.
 
1 message moved to bin
 
Ven
3:36 PM
cusses at std::forward not infering template arguments
 
82
Q: Proper stack and heap usage in C++?

AlexanderI've been programming for a while but It's been mostly Java and C#. I've never actually had to manage memory on my own. I recently began programming in C++ and I'm a little confused as to when I should store things on the stack and when to store them on the heap. My understanding is that variabl...

 
thanks
 
Xeo
@Ven it can't
 
@Ven it would be pointless if it inferred them
 
Xeo
not as a library function, anyways
 
Ven
@Xeo I had great faith.
 
4317
Q: What and where are the stack and heap?

mattshaneProgramming language books explain that value types are created on the stack, and reference types are created on the heap, without explaining what these two things are. I haven't read a clear explanation of this. I understand what a stack is, but where and what are they (physically in a real com...

 
it can, but it would always infer lvalue ref type
 
Morning
 
Xeo
#define FORWARD(arg) std::forward<decltype(arg)>(arg)
that's the best worst you can do
 
Ven
3:37 PM
lol
 
std::forward and std::move should have been called std::forward_cast and std::move_cast
 
well, no
too annoying
 
You're annoying
 
also std::move_cast is misleading since it's not called with the angle brackets
 
@milleniumbug Well put
 
3:41 PM
Thanks
 
static_cast<whatever>(lulz)
std::dynamic_pointer_cast<whatever>(lulz)
cowboy_cast<whatever>(lulz)
std::move_cast(what) // ???
 
@milleniumbug insightful. In fact specifying them would lead people to likely get it wrong
 
Ven
Would it? I know I finally started groking it after I really realized it was just a cast, to get the correct move ctor/copy
 
user1804599
I don't like this. :(
 
Xeo
std::as_movable
 
user1804599
3:44 PM
mole :: Int -> Int -> Int -> Entity
mole x y health = Entity update attack needsRemoval draw
    where update dt world = mole x y health
          attack hits = mole x y (health - hits)
          needsRemoval = health < 0
          draw = drawSprite x y MoleSprite
 
@Elyse Don't do it, then
 
user1804599
I don't think draw should be here.
 
Ven
@Elyse ew Int Int :))
 
> If I put stack objects into STL containers
Well. What was that about putting it on the stack again? You have to organize custom allocators and a whole lot of will power to get it that way
 
Ven
@Elyse also, why is 0 health a valid number? you should be dead at 0. not under it.
 
user1804599
3:46 PM
@Ven Right. :) Bug.
 
@Ven It is a cast, but you'd still want a function like "as_rvalue" or "make_movable" that would then make sure you end up with the rvalue-reference qualified type
 
user1804599
I'll leave draw there for now.
 
Ven
@sehe right
 
user1804599
or maybe not
 
@Nooble Meh, still uses the console
 
user1804599
3:47 PM
I don't know. :(
 
If you made it just a cast, then it would be synonymous to static_cast<T&&> but with a confusing name. And therefore people would get it wrong
 
user1804599
How do you separate updating and drawing in a video game.
 
user1804599
Maybe I should make Entity an ADT of all entity types instead of a record of functions.
 
user1804599
Although that makes adding new entities harder.
 
yawn
can't wait to be home
 
3:49 PM
Am I the only one who thinks std::move is a fine name?
 
user1804599
I have a fixed set of operations though.
 
user1804599
std::prepare_for_move
 
std::declare_movable :P
 
user1804599
yeah I'll just leave it there
 
user1804599
also have to add something with sound effect emission
 
3:50 PM
@R.MartinhoFernandes It's short and makes sense on a consumer-level, not on language-lawyer-level
 
@R.MartinhoFernandes The good part is that it expresses intention. However, it's really misleading about what it does. So I'm not a huge fan
 
user1804599
 
Xeo
We're also getting std::as_const, IIRC? So, consistent with as_movable :D
 
I'd call it as_rvalue
 
Xeo
nah
specifically not that
 
3:55 PM
I'd still call it as_rvalue
:P
 
rvalues are magic
 
rvalues rmagic
 
Xeo
rwizard
 
user1804599
I'd call it InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNo‌​tFocusedState.
 
InternalFrame is repeated thrice
 
3:57 PM
just to be sure
it's about expressing intention and being really clear about it
 
user1804599
Convenient proxy factory bean superclass for proxy factory beans that create only singletons.
 
I'm a singleton
I don't like it
 
user1804599
You're an NSUbiquitousKeyValueStoreDidChangeExternallyNotification.
 

« first day (1850 days earlier)      last day (3101 days later) »