« first day (919 days earlier)      last day (4024 days later) » 

4:00 AM
@CatPlusPlus no you're gonna suck because the game is hard
 
I am converting a refence to a std::unique_ptr by creating a new object and using copy constructor
not sure it's the best idea
 
@CatPlusPlus I once did, and look, I now have a job and I don't need to deal with those fucking classes!
 
@Shog9 I have to say that Telkitty's behavior here has improved significantly ever since she got question banned. Before, it was so bad and was such a problem for us, that I started to bookmark all the problematic episodes as evidence. But I think that's not necessary anymore. (I assume you saw that meta post about it.)
 
@EtiennedeMartel Right
 
so (const A& aref) to std::unique_ptr<A>(new A(aref));;
 
4:01 AM
@CatPlusPlus It even was for an exam.
Hardest exam I ever had.
 
I'm trying to develop a function_trait for lambas.
It's not working out. =/
 
@Grapes The primary point of using a unique_ptr is dealing with something you can't or don't want to copy (thus the "unique"). this seems to mostly defeat the purpose.
 
Well, i am taking a variable from luabridge as const A&
and then converting it into C++ variable so lua doesn't garbage collect it
works well but they already have their own shared pointers
so I could just use those instead
 
Copy it. And nothing more.
 
I am
i have a copy constructor right there std::unique_ptr<A>(new A(aref));;
 
4:05 AM
That's not a copy constructor.
 
And why do you need unique_ptr?
 
it's a unique_ptr because it's stored in vector of unique_ptrs
 
Just copy it as a value
 
inheritance
 
Listen to the Cat.
He's usually wrong, but not in this case.
 
4:05 AM
@EtiennedeMartel No.
 
I can't copy by value... because i have to store it in a vector of inherited classes
 
Uh no you're slicing this way anyway
 
@Grapes You just did, regardless.
 
4:06 AM
I see what you mean
 
If you really want polymorphic clone then you can't use new base
 
Try cloning.
 
gotcha
 
Um.
I think I need some help...
 
i can just use their shared pointer object
 
4:07 AM
coliru.stacked-crooked.com/… <--- Messing with function traits, trying to reflect into a lambda.
(Ignore the Thread stuff, if you do go looking in)
 
@LucDanton to clone it, would I write my own virtual clone function?
 
I can't seem to get the argument type of the lambda. =[
 
@Grapes Yes.
 
Yes.
 
got it
easy enough
i understand why it would slice :)
my lua project has been going great, it's quite an amazing language
on the binding side though... not many good binders for c++
either too bloated or missing too many features
 
4:10 AM
I want the reverse. No binding, moving data back and forth.
 
Hm.
auto lamb = [] ( int val ) { abc(val); };
typedef decltype(lamb) lamb_t;
typedef function_traits< decltype( lamb_t::operator() ) >::arg0_type intlamb_t;
^ apparently, I'm getting errors at lamb_t::operator()
I'm not sure how I'm supposed to extract the function type of the operator () on the lambda.
Maybe I could try...
..... Blahh.
 
function_traits?
Is this some part of C++ I've never heard of or
 
@Rapptz Irrelevant detail.
Never you mind it. <3
 
Nope.
 
 
4:17 AM
@Feeds lolwut
 
Dat Feeds.
Arrrrrrggghhh
Why won't it let me inside the lambda?!
What's the deal, GCC ?!
I can do it with MSVC. =[
Fuck you, GCC.
Fuck you in your terrible face. =[
GRRR
IT STILL WON'T WORK
RHajwdhwajdhjwadhwkd RAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGE
Quit. Good night everyone.
 
night
 
@melak47 nighty night and hello
 
caw
 
4:37 AM
Fuck.
I can't ragequit because it's still bothering me. =[
How do I reference this operator q____q
 
@ThePhD operator q____q? Never heard of it.
 
=l
 
@MarkGarcia Somehow knew that was coming...
 
@JerryCoffin Lalala lala...
 
Ugh...
 
4:39 AM
Isn't two consecutive underscores not allowed?
 
I can't do this.....
 
:)
 
@Mysticial Perhaps two consecutive leading underscores, IIRC.
 
I know underscore followed by a capital letter is reserved for the implementation.
 
I hate leading underscores...
 
4:41 AM
@MarkGarcia That's definitely true since most compiler extension types have double leading underscores.
 
@Mysticial Correct, it's not allowed.
@MarkGarcia C prohibits leading double underscore. C++ prohibits double underscore anywhere.
 
That's an interesting difference.
 
Tried interpreting a GNU header. Ended up being fucked up.
 
@Mysticial Some C++ compilers used a double underscore to separate name from mangling, so they prohibited double underscore to support that.
 
ah
 
4:43 AM
Whatever they've done,
I can't read it
(I'm digging through <functional>)
I don't understand how they're directly referencing operator() in their code
So many macros....
Fuck that
Completely fucking unreadable.
 
Well, now I'm a little pissed. I wrote an answer (long ago) claiming that (at least in practice) there can be a difference in speed between template and non-template functions. Unlike any other answer to the question, I even cited testing to support my assertion. Every other answer gave an (unsupported) assertion to the contrary -- so now mine is the one answer there down-voted to 0!
Doesn't do to contradict what people believe, no matter how carefully you do it, I guess.
 
I'd say just nuke the question. It's only got 140 views over such a long time.
 
Guess no one's wondered.
 
Your other one here seems to be the target for google hits:
11
A: Do c++ templates make programs slow?

Jerry CoffinAs others have already noted, templates don't have a direct run-time penalty -- i.e. all their tricks happen at compile time. Indirectly, however, they can slow things down under a few circumstances. In particular, each instantiation of a template (normally) produces code that's separate and uniq...

2498 views
 
4:50 AM
@Mysticial Yes -- somebody (same person?) decided to down-vote that answer tonight too.
 
@JerryCoffin And I also upvoted it when you bumped it. :)
I just upvoted your other to 2. One more and we can nuke it without hurting you. :)
Although, not necessary anymore since we bumped it to the top. :)
 
The question is fucking 2 years old.
Either I haven't reviewed in a long time and lost my touch, or suggested edits aren't as bad anymore.
 
@Mysticial Maybe I should quit answering questions and just complain here a little more often. :-|
 
:)
Although I am mildly surprised why that question has such a low view count. It has a very searchable title.
 
No one cared enough to search I guess
 
4:56 AM
or not...
This is the hit I get for "template performance": (also low view count)
1
Q: Changing a normal function to template will make any positive/negative difference?

iammilindI have a wrapper function (templatized) Outer() and core functionality function as Inner(). namespace N { A* Inner (void *p, int value, const int ID); template<typename T> A* Outer (T *p, const int ID) // ID is a compile time constant { return Inner (p, p->value, ID); } } Usage...

 
1
Q: Need help getting started with Boost.Python

clsI'm trying to build my first Boost.Python example. #include <iostream> #include <boost/python.hpp> using namespace boost::python; class Hello { public: std::string greet() { std::cout << "Hello World" << std::endl; } }; BOOST_PYTHON_MODULE(hello) { class_<Hello>("Hello...

How is this allowed?
Is it because it has a bounty..?
 
@Rapptz Pretty much.
 
@Rapptz "Allowed" as in what?
 
i.e."How is this not closed yet"
 
oh
Yeah, you can't close bountied questions.
 
4:59 AM
lmao
That is amazing.
 
So if you don't want your question closed, just bounty it and hope a mod doesn't see it. :)
Or rather, if a question doesn't get closed before the waiting period for starting a bounty, then it can't really be that bad.
Or at least just poorly tagged so nobody saw it.
 
I pressed "Ask Question" tab for the first time
There's an "Answer your own question" check but not "Add bounty"
Not sure why I thought there would be the latter
 
@Mysticial Sounds like a good contest: see who can write the worst question, but hide it well enough to keep it open until they can add a bounty.
4
 
@Shog9, ya see this? Sounds like fun no? :)
 
In the spirit of the boost python question.
"Help me debug this please"?
 
5:03 AM
Bonus points if you had to try multiple times to get it past the quality filter.
 
Also I'm actually impressed.
The guy actually had it tagged without it being voted to close the entire time
 
user1357851
@Mysticial you don't stand out as an elite troll, mod is not interested in talking with you :x
 
@Mysticial Are you trying to get me in trouble?
 
I just made the message for a commit of mine "Big work on feature X". Thankfully that's not an habit of mine.
 
a habit* (not being a douche.. promise :( )
 
5:06 AM
@JerryCoffin lol no :)
 
user1357851
<3 ... someone upvoted my question. TY
 
I would give bounty to someone who can teach me how to correct grammatical/spelling mistakes without it sounding awful/pretentious.
 
@Rapptz I thought that was one of those regional things I checked not too long ago, but I think I misremembered.
@Rapptz Also don't feel bad, I darted and googled around a bit even before you wrote your message.
Oh hey, individual subreddit blackout for Cispa.
 
an is if the next letter starts with a vowel with exceptions for unsoundable h sounds (an honour).
 
user1357851
a split second too late ...
 
5:09 AM
a is if the next letter is a consonant except if it makes a "you" sound, i.e. "a unicorn"
@Telkitty Hah!
 
@Rapptz Ya know I could have very well checked for 'honour' that last time.
'Honourable' perhaps.
 
user1357851
^ would like to vote as the biggest nerd on this chat
 
Or is that one always 'an honourable thing' in all varieties?
 
user1357851
If Robot is an A.I. then this one could be a bot
 
Off the top of my head I know of 'an honour(able)' and 'an honest suggestion'
 
5:12 AM
"a uranium atom"
 
oh 'an hour'.
 
my what atom ?
 
room topic changed to Lounge<C++>: Happy Earth Day! [c++] [c++11] [coliru] [no-helpdesk]
 
how dare you
 
What are we talking about?
 
5:13 AM
a vs an
 
@H.J_Rios No. I'm not planning to make a pressure cooker nuke.
"a ubiquitous person"
 
t'be pretty kewl if you did
 
@Rapptz That one is the same everywhere, isn't it? Probably the first one I was taught, the second one bizarrely being 'an heir', which isn't very useful to know.
 
I don't think a pressure cooker has enough rigidity to hold together an implosion nuke to detonate it.
 
@LucDanton Yeah. The a vs an exceptions boils down to the next sound.
 
5:15 AM
@LucDanton "An heir to his throne" doesn't sound too awkward.
 
@Rapptz That's of very little help :)
 
what if you threw the pressure cooker to the marianna trench ?
 
@Mysticial Um... I think I'll patent a steam-powered implosion mechanism for that. No TNTs.
 
Hm, like I said earlier "an" => next word starts with a vowel (a, e, i, o, u) except if it's a silent h.
 
actually how big are pressure cookers anyway?
oh, not big enough...
 
5:17 AM
@Mysticial ~1 ft high and wide.
 
Swan was a U.S. test nuclear explosive, which was developed into the XW-45 warhead. It was tested standalone on June 22, 1956 in shot Redwing Inca. Both tests were successful. It subsequently served as the primary in numerous thermonuclear devices during the 1950s. Most subsequent U.S. primaries are Swan-derived, including the Robin, the Tsetse, the Python and the much later (asymmetrical) ovoid (prolate) primaries. Design features The Swan device is the first design to incorporate a two-point hollow-pit air lens implosion assembly together with fusion boosting. The Swan device had ...
^^ One of the smallest nukes... still bigger than a pressure cooker.
 
and "a" => next word starts with a consonant except if it makes a "you" sound (i.e. a unicorn not an unicorn) and if it makes a "won" kind of sound, "a one-of-a-kind ring"
 
@Rapptz Boils down to memorising which words are those with a silent 'h', including regional variations (e.g. 'herb'). No tricks here.
 
English is weird.
 
A hydrogen bomb in the size of 29.5 cm x 58cm.
 
5:18 AM
I hate the metric system
 
Also I type "a herb"
 
user1357851
@Mysticial but you can purchase pressure cookers but not nukes
 
@H.J_Rios Most Americans (I presume) do.
 
No we don't.
 
user1357851
And I heard you can make deadly bombs out of fertilizers
 
5:20 AM
@MarkGarcia I don't think current ones use TNT either -- more likely C4 or something similar. Much easier to deal with in general.
 
its just a lack of exposure I guess..kilometers are so small, makes cars sound like they can go pretty fast
 
I mean... farenheit. Feet.
 
@Rapptz It's also an artefact of being a speaker where silent vs non-silent h's are less of a big deal, and who's relied a lot on spelling pronunciations. Your original advice of 'follow pronunciation' would be perfectly cromulent for learners that e.g. only train by speaking.
I wasn't aware there was such a thing as a spelling pronunciation until two months ago. Shed a lot of light on my learning process when it comes to spoken languages.
 
@Mysticial Commercial pressure cookers are plenty big (5 and 10 gallon versions are pretty common).
 
my bowels feel like pressure cooker sometimes
 
user1357851
5:22 AM
does it heat up too?
 
@LucDanton Ooh I know a lot of these.
 
@JerryCoffin So the question is, are they strong enough to contain a high explosive blast so that the force goes inwards to compress the plutonium before the whole thing falls apart... hmm
 
@Telkitty Fertilizers have nitrogen. Nitrogen is a basic chemical for making bombs.
 
@Telkitty You can, however, purchase radioactive material.
 
Like how people in here sometimes say "Corps" like how it's literally spelled
Despite it being pronounced "core"
 
5:23 AM
@Mysticial It doesn't need impact. It just needs some force to drive the nuclear materials together to form critical mass.
 
@MarkGarcia For safety purposes, you don't want to be building a gun-type nuke.
 
@Mysticial I suppose it's possible if you shaped the charge just right, but without a lot of care, I really doubt it. Pressure cookers normally operate at pretty low pressure.
 
@Mysticial Um. No. It needs nanotech. Imagine having the critical mass form inside the gun...
 
@Rapptz I don't make that mistake :)
 
@Mysticial Worse, from what I understand, nearly the only fissionable material you can use in a gun-type is Uranium. Plutonium pretty much requires compression.
 
5:26 AM
@MarkGarcia I think there's a disconnect here. What does nanotech have to do with this?
 
user1357851
@JerryCoffin OMG, never thought of that, you could have placed whole bunch of radioactive material in the CBD of the likes of NY, Sydney or Shanghai and poison the hack out all the wall street/finance people (who usually work in the CBD) ... put the material in the foundation of skyscrapers
 
@Mysticial Forming a critical mass inside a bullet-sized "bullet" would be the pinnacle of mechanical engineering. That's why I hate micro-nukes in Fallout 3.
 
@Mysticial Materials that would divert the force of impact to drive the critical mass together without the use of clunky mechanisms. Needs nanotech.
 
@MarkGarcia Fallout has always been playing fast and loose with science.
 
5:28 AM
@JerryCoffin It actually depends on the spontaneous decay rate. Uranium 235 has a low enough decay rate that a gun-type would work. IIRC, on the order of one per half second for a typical sized uranium core. For plutonium 239 nukes, contamination from Pu240 is high enough where the spontaneous decay rate is on the order of milliseconds. A gun-type can't reach critical mass that quickly. But an implosion can.
 
@Telkitty Radioactive materials aren't really all that poisonous. Botulism toxin (for one example) is much worse, and a lot easier to obtain (seal some meat in a plastic bag, throw in a hot car for a while...)
 
I mean, nukes probably release pixie dust in the Fallout universe.
 
Work started on Haskell in 1987, and they finished in 2003. Damn.
 
@EtiennedeMartel lol
 
lol
 
5:29 AM
@EtiennedeMartel Wats with the 'effin Unicorns and ponies dammit?
 
@GamesBrainiac Watch MLP. Then you'll understand.
 
user1357851
@JerryCoffin but it can be easily detected ...
 
@Telkitty Which can be?
 
user1357851
Umm ... does it not smell if you (seal some meat in a plastic bag, throw in a hot car for a while...)
 
Bam!
 
5:39 AM
@Telkitty Oh -- sure, the meat smells, but if you purify the botulism toxin, it's toxic in such minute quantities that long before you breathe enough to even hope to smell it, you're dead. If memory serves, lethal doses are measured in nanograms of toxin per kilogram of body mass. A milligram or two (properly delivered) is theoretically enough to wipe out a small town.
 
Botulinum toxin is a protein and neurotoxin produced by the bacterium Clostridium botulinum. It is the most acutely toxic substance known, with an estimated human median lethal dose of 1.3–2.1 ng/kg intravenously or intramuscularly and 10–13 ng/kg when inhaled. Botulinum toxin can cause botulism, a serious and life-threatening illness in humans and animals. Popularly known by one of its trade names, Botox, it is used for various cosmetic and medical procedures. History Justinus Kerner described botulinum toxin as a "sausage poison" and "fatty poison", because the bacterium that prod...
 
user1357851
But we are talking about gas? A milligram is a lot (in gas form)
 
Xeo
Mornin'
 
@Telkitty I'm not sure, but I don't think so.
@Xeo Good morning (even if it won't be morning for 16 more minutes here).
 
@Xeo Happy earth day.
As a sign of my participation in helping protecting our environment, I hereby lower my computer's overclocking from 10% to 5%. Hope that helps.
 
5:49 AM
Well, I think I need to go sleep. Later, all.
 
Xeo
Night
 
@JerryCoffin Nighty night.
 
user1357851
@JerryCoffin laterZzz
 
Xeo
6:07 AM
Okay, apparently, it's a really bad idea to edit a paper and still have it contain the Nxxxx number. /cc @DeadMG
 
Did you break rules
 
6:29 AM
@JerryCoffin Goood niiight. <3
Also, I'm back. With a vengeance.
Lambdas, I will DEFEAT YOU.
 
@ThePhD lamb? duh.
 
@MarkGarcia Shut up I'm tired. :c
 
@ThePhD Easy now. Wanna try my spambot?
 
No. :c
 
Somehow there's an epidemic of a computer virus here that causes every thumb drive's files to be hidden. And it seems that I'm the only doctor present here that can cure their drives.
 
sbi
6:39 AM
 
done
 
sbi
@Mysticial You're a star!
6
 
You should have used the other arrow!
 
user1357851
Photoshop would be much easier ... just saying ...
 
sbi
@R.MartinhoFernandes ???
 
6:42 AM
@sbi I'm still annoyed that Xeo over-upvoted me past 66666 last week.
 
sbi
@R.MartinhoFernandes Do you want us to repair this now?
 
user1357851
serial downvotes will be revoked ... so there are limited things you could have done to restore someone's 66666 rep
 
I could delete the right answers...
 
@sbi The fuck.
@sbi How long do you plan to stay with that rep?
 
sbi
@MarkGarcia What, you don't like @Mysticial?
 
6:46 AM
@sbi Not that man. The rep. Awesome.
 
sbi
@MarkGarcia It stayed long enough for me to take a snapshot. I'm content with that.
@MarkGarcia I feel like this is the moment I should tell you that I haven't done very much to gain rep in more than two years.
 
@sbi See the edit. :)
 
user1357851
@R.MartinhoFernandes like as if you would ever do that >_<
 
sbi
@MarkGarcia See the edit.
 
@Telkitty This one would be enough stackoverflow.com/questions/15736282/…, but, again Xeo, accepted it just to spite me and prevent me from deleting it.
 
Xeo
6:48 AM
@R.MartinhoFernandes Lalala~
 
@sbi Just like that gorilla in your picture.
 
He'll be first against the wall when the revolution comes.
 
sbi
@MarkGarcia Of course that gorilla hasn't done much either! I am that gorilla, after all. Sheesh. The youth today.
 
@sbi I was gonna say that. (The "you're the gorilla" thing...)
 
sbi
Oops. What are you still doing here, @Jerry? Shouldn't you be in bed when I log in in the morning?
 
user1357851
6:50 AM
@R.MartinhoFernandes Have you considered a career in trolling? You seem to be very talented at it ...
 
user1357851
@MarkGarcia I would just say "hey monkey!"
 
@sbi I don't see any Jerry around.
 
@sbi He went to bed a while ago.
 
@Telkitty Gorillas aren't monkeys. Humans aren't gorillas. WTF am I talking about?!!
 
6:53 AM
He probably left his machine on.
 
They'll never fix that avatar bug will they
1 hour ago, by Jerry Coffin
Well, I think I need to go sleep. Later, all.
 
user1357851
Can we all post the user list at once, maybe we could re-engineering how this user list work?
 
Hell. My answer's got accepted against a 5-upvote one.
 
You misspelled Michael.
 
@Rapptz I had two classmates once. John Paul and John Micheal. They're twins. That's their spellings.
Since then, I'm stuck to that spelling.
 

« first day (919 days earlier)      last day (4024 days later) »