« first day (1508 days earlier)      last day (3456 days later) » 

5:00 PM
Ah yeah.
I'll be honest, I don't like the whole gaming marketing nonsense myself.
 
I like your purchase
although, like Cat, I am also jealous. I miss the days when $1600 was just sitting there to spend
 
you clearly need one of those Fatal1ty motherboards
with the face of that gamer dude going by the name Fatal1ty on it
oh god
 
lol
 
Overpriced nonsense
 
5:02 PM
@Rapptz my impression was that the gamer stuff would be more expensive than everything else
guess in this case it's not true
 
I just got this stick because it was the cheapest on sale lol
@LightnessRacesinOrbit After taxes + bills + everything else I have like $4k left over to spend/invest at the end of the month.
 
I like the design of my RAM ep.yimg.com/ay/directron/…
(mushkin stiletto silverline thingy)
it was cheap too
the cheapest 8GB I could find I think
it's been 3 years, can't remember
 
I used to think RAM would eventually drop in price :(
 
@Rapptz this tabletop game seems very interesting steamcommunity.com/sharedfiles/filedetails/…
 
It probably will once DDR4 starts catching on
 
5:07 PM
I think I'll try to do some cough
research on it
especially on the art on those cards
 
lol
kinda reminds me of Risk
Oh
 
> Embarrassing to play.
haha, I guess
 
That "garbage" on steam was a different language setting than English.
 
@Rapptz Yeah, but for a specific size (if at all). However, as you desire more and more of it yearly, the price for what fits your needs does certainly not drop, does it?
 
"s-s-senpai, I need to shoot my gun"
 
5:08 PM
I've never heard of this language.
 
@LightnessRacesinOrbit It's better if those that have those "violent fantasies", vent them in the open.
 
@Rapptz fucking hell how much do you earn
 
$109k/year
 
Ell
^lol explains it
 
holy hell
 
5:10 PM
@Jefffrey like child abusers. best they do child abuse on the street
where everyone can watch
 
@Rapptz are you writing COBOL?
 
@Rapptz go to hell :(
 
I don't program
 
Ell
what do you do?
 
I heard COBOL jobs pay well though
 
5:10 PM
@Ell porn
 
I work at a hospital lol :<
Haven't we discussed this before
 
Ell
oh yeah
 
wait so you're not a programmer?
 
Ell
radiographer or something iirc?
 
the more I know
 
5:11 PM
Robot is the one who works with radiography isn't he?
 
oh k
 
He programs tools for radiography I think
 
At one point he did, yes.
 
Oh not anymore?
@Ell Cancer research.
 
Ell
Oh right
 
5:12 PM
@Rapptz C++ causes brain cancer, we all know it.
 
That sounds interesting.
 
@Rapptz I don’t remember the sequence of events.
 
How long till we can cure cancer?
 
@LucDanton You're just like my database then!
 
Ell
I remember robot working on a brain control device
 
5:13 PM
you must be smart as fuck to research cancer
do you think I'll die of cancer?
 
before or after C++ becomes a reasonable language?
 
Ell
@AlexM. you'll probably die with cancer
let's bet on which will come first - a cure for cancer, cold fusion and c++ modules
 
@AlexM. From what I've heard everybody is supposed to die of cancer. It's just a matter if you die before of something else.
 
C++ modules probably
@Jefffrey Not really.
 
@AlexM. I know what you'll die of:
 
5:14 PM
Then nevermind.
 
C++ modules, then cancer cure, then cold fusion- if ever.
 
Ell
I think we'll have hot fusion in a cost effective manner not too far off
 
Look up "death by natural causes"
 
Ell
@Rapptz you are in the USA aren't you?
 
Yeah.
 
5:15 PM
@Rapptz Electroencephalography.
 
@FredOverflow encephalic carnage, that's accurate
 
@R.MartinhoFernandes Oh.
 
man you guys work on awesome shit
 
When creating a reference variable, should the & be next to the type or the name (I know both works but wondering which is to prefer)?
 
For some reason I thought you worked on MRI/CTs.
 
5:16 PM
and here I am making stuff that annoys people, like pop-ups in their games asking them to pay money
 
@HalfEvil type
 
Ell
@HalfEvil I prefer next to type
 
Okay thanks I'll try to follow that then :)
 
@HalfEvil Type.
Next to the name would be more C-ish imo.
 
int *a, *b, ...
 
Ell
apparently senior software folks can earn a lot
 
you didn't know that?
 
int& a, b is cool
 
you can make a shitload of money if you're a senior dev and doubly so if you work for a bank.
 
Ell
5:19 PM
I thought programmers were poorly paid
 
nope.
 
Oh, I’ve just noticed the pattern. Is "24 days of Christmas" the original Advent-related phrase that everything is riffing on? Is it from something?
 
Ell
well that's handy
 
Dec 19 '12 at 10:34, by user142019
Java is not terrible. Saying so would be an insult to other terrible languages, such as PHP and C++. Java is abysmal.
lol
 
haha
 
5:19 PM
@Ell not yet
 
@LucDanton A song.
 
@LucDanton Do you mean "12 days of Christmas"?
 
@Rapptz Not that one.
 
Ell
I might go into banking if my uni goes well enough
 
I've heard that it's soul-crushing work
even compared to regular programming
 
5:21 PM
You want to work with cobol?
 
Ell
I guess I'll just wait and see, it's a long time off
 
the thought that nuclear buildings and stuff are managed by code that was written by programmers makes me anxious
 
There are way scarier things about nuclear facilities.
Mostly involving people.
 
I’m referring to the "24 Days of GHC Extensions" ("24 Days of Hackage" the previous years) and "24 Pull Requests". And there’s a "24 Days of Rust", but it’s explicitly modeled on the Hackage one. Is it all a coinkidink?
 
24 Days of Christmas is the name of a movie marathon that runs on AMC I think
Never mind.
 
5:26 PM
Surely that must mean something is up ~20 days from now.
 
It's 25 Days of Christmas and it's on ABC not AMC.
I can't find anything :c
 
25 days of reviving the economy with consumer-driven spending, the same thing that got us in this recession in the first place
 
@LucDanton I think "24 Days of Christmas" might have come up due to those chocolate calendar countdowns that sell during Christmas time.
 
Right. The Advent. It’s the specific phrase (if any) that I’m curious about.
 
user1804599
ugh
 
user1804599
5:29 PM
/b/ is offline.
 
Neat. My SSD came in the mail.
Only 5 parts to go.
@LucDanton It could have also been 12 Days of Christmas * 2.
 
heh
 
OR
XXIV Days of Christmas
roman numerals are pretty cool
 
@Columbo Well, Atwood would suggest this one, probably. t.co/zvJet6eGOK
It does look cool, minus non-ergonomic styling.
 
user1804599
@Jefffrey coincidentally both cross-platform and anal sex are good.
 
5:38 PM
@caps That's not an argument for
 
@CatPlusPlus It was just on my mind, since I had been looking at it.
 
Ell
I never use numpad
 
@Ell I use it often.
 
@Ell I couldn't live without it.
 
user1804599
I wish it were gone so there would be less space between my mouse and the keys I actually use.
 
this is a pretty accurate representation of sports img-9gag-ftw.9cache.com/photo/a0P1VyZ_460s.jpg
well, supporters
 
user784668
@AlexM. I bet you're a Chelski fan.
 
what's a Chelski?
 
@LucDanton You guys...
Wow.
Advent is a season observed in many Western Christian churches as a time of expectant waiting and preparation for the celebration of the Nativity of Jesus at Christmas. The term is an anglicized version of the Latin word adventus, meaning "coming". Latin adventus is the translation of the Greek word parousia, commonly used to refer to the Second Coming of Christ. For Christians, the season of Advent anticipates the coming of Christ from two different perspectives. The season offers the opportunity to share in the ancient longing for the coming of the Messiah, and to be alert for his Second Coming...
 
user1804599
What is advent?
 
5:53 PM
It's a liturgical thing.
 
user1804599
oh christianity bullshit
 
It's been around since way, way before all that marketing crap.
 
@caps What?
 
@caps We're talking about the phrase "24 Days of Christmas".
 
@LucDanton A) not knowing what Advent was in the first place (although that was unfair exasperation on my part, I didn't really know until the last few years) and B) not using Google
 
5:55 PM
@caps Try this.
 
@caps Er..
 
user784668
@LucDanton ENOSYS
 
@rightføld I say so too
until I remember that I like the xmas and easter holidays
then I'm happy that it exists
 
@LucDanton ...
 
It’s the manual page for read.
 
5:57 PM
@LucDanton Yes.
 
u havin a giggle m8?
 
@caps I can call you stupid if that’s more your liking.
Stupid.
 
Speaking of Stupid.
> C++ Has Become More Pythonic
sounds like a stupid article
who wants to guess if it is?
 
user784668
yes
 
user784668
C++ has become more moronic.
 
5:59 PM
@LucDanton I replied to you, but re-reading, I was replying more to @Rapptz and maybe @Puppy
 
Everyone here knows what Advent is.
We're discussing the phrase
I think you are confused
 
user784668
@Rapptz Watch your quantifiers.
 
@Rapptz Well, it could be referring to Dave Abrahams’ post (from the defunct cpp-next I think), so count me out.
 
@LucDanton I'm sorry to say you're wrong there.
It's actually a bit sillier than I thought.
 
6:01 PM
'Now'
@Rapptz Well, betting is about risk management. And Dave is mentioned in the comments. So I’ll consider that I came out ahead!
 
Xeo
> C++ resembles a dynamically typed language even more
ugh
 
@Rapptz Hm, maybe so. It seemed to me that a 24-day Christmas count-down calendar would be directly related to Advent. Lots of people do "Advent Calendars" which have 24 days on them.
 
Xeo
as if that's a good thing
and as if the look is the only thing
also, why the fuck is that so Python-centric
 
None of these things is remotely related to dynamic typing
 
Xeo
also, why the heck am I so pissed off right now
I should calm down
 
6:04 PM
might be the cats m8
 
@rightføld I'll trust you on that one.
 
Bjarne_case is catching on
 
Xeo
@Rapptz Does feel like I've been a whole lot more annoyed since then
 
It's like a disease.
 
@Rapptz My recommendation is quarantine.
 
6:07 PM
double Flight_plan::weight()
pls no
 
user784668
Hell, that's even worse Than_This_Shit.
 
@Columbo `std::unique_ptr<type, type_custom_deleter> foo;` is legal
`std::unique_ptr<type, decltype(named_lambda)> foo;` is not, you have to pass the named lambda to the `unique_ptr`
 
@Mgetz Yes, I know.
 
that was the point of my comment
 
@Mgetz Formatting fail? :P
@Mgetz Yeah, cheers!
I'll integrate that.
 
6:21 PM
@Columbo clearly, something about it screws up the formatting
 
@Mgetz PS: Multiline!
 
@Columbo never got that to work right
@Columbo code sample in your answer would be nice, along with a demonstration
 
@Mgetz Yes, working on it,
 
So, does anyone know how to improve this function?
 
user1804599
6:36 PM
Looks fine to me.
 
@Columbo now your answer is wrong, you absolutely can pass lambdas as a template argument via decltype. It's just the equivalent of doing decltype(&function_name) so you still have to pass the lambda in an an actual parameter so the template can call the lambda.
 
@Mgetz Yes, I have an example ready.
 
e.g. std::unique_ptr<type, decltype(named_lambda)> foo(pointer, named_lambda);
 
`template <typename K, typename V, typename F>
std::map<int, int, F> makeMap( F f )
{
return std::map<K, V, F>(std::forward<F>(f));
}

auto l = [] (int a, int b) {return 2*a < b;};
auto map = makeMap<int, int, decltype(l)>(l);`
 
which is rather annoying
 
6:39 PM
Well, the factory function isn't necessary.
 
@rightføld But then I basically repeat it here, just with different parameters.
 
TIL about temp-argument deduction and closure types
 
user784668
@Jefffrey So make a higher-order function?
 
Xeo
@Jefffrey pass the extractor?
 
user1804599
@Jefffrey Parameterise the parts that aren't identical.
 
user1804599
6:43 PM
Problem solved!
 
@Xeo Right.
Thanks everybody.
 
user1804599
No problem this time.
 
user1804599
The next time it won't be a problem either.
 
Probably a terrible name, but here we go.
 
user1804599
@AlexM. Christmas is horrible and Easter is even worse.
 
6:48 PM
@mans Yes I can be more specific. "LEARN C++ BY READING A BOOK" :) Seriously. We're not a code mentoring site. We'll help you get unstuck when you encounter trouble programming. We will not teach you a new programming language if you are just starting out. — sehe 7 secs ago
oops
@mans people with less patience (or more strict sense of community quality?) will downvote questions that violate the guidelines for a good question. Getting too many "bad questions" will **hurt your ability to ask new questions in the future. — sehe 52 secs ago
 
I think I just mistakenly dupe'd a question
Should I undo it?
0
Q: Referring to this function in C++

Salvador GuzmanIs there any general way to refer to the current function being executed? Something that would let me do this for example, ([] (int n) -> int { if (n <= 1) { return 1; } return n * thisFunc(n - 1); })() Mainly, I'm thinking of anonymous functions calling themselves without the use o...

 
@R.MartinhoFernandes Interesting. So it's purpose is for when you're doing a lot of stuff with strings and need more functionality (and safety) for them, rather than when you are just using them kind of like a base type. Right? Maybe I'll go read your explanation for why you made it again.
 
7:04 PM
@rightføld you're horrible
 
It's a library for working with Unicode
 
Lol, I got accepted!
After the other answer got unaccepted!
First time that happened to me
:D
 
7:25 PM
@Columbo if you could :)
 
@sehe Done.
Don't you have a C++ gold badge!?
You do
 
@Columbo you can undo insta-dupe-vote now? That was most definitely not the case in the beginning
Although other gold badgers could insta-refute it
 
@sehe I did
I insta-reopen-voted it
I was just afraid that your request was a sarcastic way of making me aware of something, And not actually asking me to do it
 
Wait. Didn't you dupevote it yourself? My point is, you couldn't refute that yourself before (some (short) time ago)
 
@sehe Ah
Yeah, you can do that now
 
7:29 PM
That's most helpful. I've had this more than once :|
 
@sehe Fuck sehe, I reopened it now
 
I'd just drop in here asking for contra voters
 
@sehe Ok, go on then
 
?!
I've lost you.
1 min ago, by Columbo
I insta-reopen-voted it
What is left to do?
 
Ell
Hi again
 
7:30 PM
@sehe "I justed dropped in here to ask for contra voters" Is what I read :D
(I was asking for the questions that you wanted us to support you at.)
 
Oh. That was "long" ago
@Columbo I will -- I never hesitated. My point was I needed to (because insta-dupe-vote did not come with insta-reopen powers back then)
 
Ell
time to debug upstart without a UI!
Back in a bizzle
 
user1804599
That reminds me.
 
Shortest question I saw in a while:
0
Q: Thread safety of std::mutex

TrismegistosCan I lock std::mutex in one thread and unlock it in other thread? This is theoretical question without any specific engineering context. I am just curious.

(That's it, it fits inside here)
 
user1804599
I once saw a bug report for some crappy software that basically read that it crashed when the user entered a "high comma." I was confused at first but apparently the user meant '. SQL injection FTW.
 
7:35 PM
@Columbo HA you beat me too linking that one, it seems like quite a derp.
 
Why is it derpy?
 
user784668
@R.MartinhoFernandes It's about C++
 
@Xeo Wow, all those gifs are slowing down my browser.
 
Several sync primitives have asymmetric 'ownership'.
Semaphores would be the most obvious example.
It's not unreasonable to wonder the same about other primitives.
 
AH. It was about "anonymous" of "transferable" locks.
Carry on
@StackedCrooked Buy a better browser
 
7:38 PM
Ok.
 
@StackedCrooked What about Netscape
 
C++14 has std::shared_timed_mutex.
 
user1804599
I got a captcha when posting answer.
 
user1804599
@Rapptz Also std::shared_lock.
 
Yup
 
7:39 PM
@Columbo Netscape is dead.
 
@StackedCrooked Nope.
I can't hear you.
 
Netscape is in a better place now.
 
That's because you're using a dead browser.
 
@rightføld be less quick (usually happens when you have navigated away, back and then post)
 
user1804599
It was also very short.
 
7:41 PM
@CatPlusPlus So if you don't care about Unicode, you don't need to use it?
 
@rightføld Well... don't be embarrassed because of that
 
@StackedCrooked tineye is unavailable :(
 
user1804599
@sehe It was like, <kbd>></kbd>, <kbd>control</kbd>+<kbd>V</kbd>. :p
 
user1804599
I use shared mutex in my VM.
 
user1804599
All fibers share locks and GC acquires unique lock to stop world.
 
user1804599
7:42 PM
Very crappy as the GC can't run until all fibers are asleep. :D
 
Ell
mdm isn't starting when I don't boot into recovery mode :3
 
@Ell that's a bonus. because then you can troubleshoot, reconfigure, upgrade, migrate etc.
Unless your root is on there - but then you can hardly state you "boot into recovery mode"
 
Ell
@sehe Not when I don't get a shell tty either :'(
 
@rightføld Did you just reinvent PHP's garbage collector :)
 
user1804599
I thought of having a GC per fiber.
 
7:44 PM
@Ell oops. can you pass kernel params?
 
user1804599
Shared objects just have refcount which is the number of GCs that know about said object.
 
@rightføld I have a crazy idea that worked for PyParallel - simply don't GC fibers by default.
 
user1804599
It's not about GCing fibers.
 
@Ell What's the output of cat /proc/sys/logarithms ?
 
Ell
@sehe I think I can. I'm just about to update my grub config to fix the no tty issue though
 
user1804599
7:45 PM
It's about GCing objects.
 
@rightføld Like erlang
 
@Ell wut. no tty?!
 
Ell
@ParkYoung-Bae cat: /park/young/bae: No such file or directory
 
@rightføld If a fiber is usually short lived - simply give it a chunk of memory and until it grows above let's say 20 megabytes don't perform GC on its objects at all. Just release it as a whole when the fiber is dead.
 
Ell
@sehe Yep. nvidia graphics driver issue
 
7:46 PM
If a fiber uses more than the said amount of memory, it is allocated a bigger chunk and GC is turned on.
 
user1804599
@BenjaminGruenbaum Some objects may be long-lived.
 
@rightføld exactly
 
user1804599
E.g. when they are passed to other fibers through channels.
 
Are they passed by reference or by value?
 
user1804599
Also main fiber is always long-lived unless the program terminates quickly.
 
user1804599
7:46 PM
@BenjaminGruenbaum by pointer.
 
> usual
 
user1804599
All objects live on the heap ATM.
 
Depends on the app model right
 
Oh good, leftfold picked up a new future-ex-project.
 
user1804599
New? Pfft.
 
7:47 PM
nope
 
user1804599
I've been working on it for about a year.
 
I think it's a zombie.
 
TTL: 12 mins
 
He's detailing his escapades
 
@rightføld then main fiber is special and gets GC from the start. Other fibers don't get GC by default at all - they get their own little heap that dies when the fiber dies - if communication has to happen between fibers it has to either be values or it has to be super explicit.
 
user1804599
7:47 PM
Just mainly in-mind.
 
@ParkYoung-Bae hi
 
Or - don't allow fibers to pass references and still own them - that's another option.
 
@sehe halo
 
skyrim
 
user1804599
@BenjaminGruenbaum Communication is always only possible using channel.send and channel.receive.
 
7:48 PM
Linear types
 
user1804599
The only way to implement mutable variables is using a fiber and channels.
 
Sinusoidal types are better, though
 
user1804599
So they can only communicate through channels, no other way.
 
@rightføld in that case I think not doing GC on fibers before they require X memory might be good.
Since GC is slow and requires locking and traversal and most fibers will probably die before they require it.
 
user1804599
All I/O is also through channels.
 
user1804599
7:49 PM
If the amount of to-GC objects is small I could GC when the fiber is put to sleep (i.e. when it starts sending or receiving).
 
I don't understand your problem domain very well so I might be way off.
 
user1804599
Maybe generational GC.
 
user1804599
Thanks.
 
@Ell lol. Disable modeset
 
7:50 PM
Sounds like an interesting problem :)
 
user1804599
brb poop
 
Do break std::promise and std::ignore std::future
 
@Columbo there's much longer if you want. And could be actually valid c++ as well
 
@sehe I want your long one, sehe
 
Somewhere on the internets
I'm keeping all my racy pics there
 

« first day (1508 days earlier)      last day (3456 days later) »