« first day (1600 days earlier)      last day (3347 days later) » 

user3010322
10:00 PM
Like
 
@ThePhD Only the reference count manipulation is thread safe
 
user3010322
On increment of the ref count and decrement and copying and stuff.
 
user3010322
@Pris Oh, okay.
 
user3010322
My only problem now is that I don't want to new the storage.
 
user3010322
Or... maybe I do? I don't know.
 
10:00 PM
@Pris nope
don't care either
 
user1804599
@melak47 a GitHub organisation!
 
user3010322
I just want ref-counting semantics that won't trigger the destruction until all iterators to it are dead.
 
user1804599
std::shared_ptr
 
user3010322
I know that bit.
 
user1804599
Problem solved!
 
10:01 PM
@AlexM. It's a toy that was really popular. Most people in the west would probably recognize it... its a bit weird that Google is teaming up with them. Like imagine Google teamed up with Fischer Price
 
user3010322
But I was wondering about, uh.
 
user3010322
Doh, nevermind...
 
if you're worrying about multithreaded destructor calls, I think you've already lost :p
 
user1804599
std::system("awk '{ … }'");райтфолд 11 secs ago
 
user1804599
AWK: the solution to all your text processing problems!
 
10:04 PM
What's a good name for a class that cyclically does something? Think of an object that's basically a repeating timer with a callback for the timeout. Its not purely a timer but close enough. I can't think of a good name for it... "Ticker" sounds wierd
 
user1804599
A repeating timer.
 
@райтфолд I already have a Timer class though. And they can be repeating
 
user1804599
Problem solved!
 
user1804599
Go has a function time.Tick that returns a channel.
 
user1804599
It's very nice.
 
user1804599
10:06 PM
CSP is fucking awesome.
 
The other class does some weird stuff where it keeps track of how long a callback takes and schedules the next one accordingly
@райтфолд explain channels to me like I only know elementary c++
 
neat
char16_t and char32_t are unsigned
 
user1804599
@Pris bounded thread-safe queues where both enqueuing and dequeueing block until the queue isn't full anymore.
 
user3010322
@Rapptz It's p. great.
 
@ThePhD ?
 
user1804599
10:09 PM
Together with a selection construct, which returns the result of the first returning send or receive operation of a set of such operations, they're a universal synchronisation mechanism.
 
user3010322
@melak47 The types being unsigned.
 
@райтфолд interesting I guess
 
user1804599
 
@ThePhD are they guaranteed to be?
 
user1804599
OMG TONY HOARE
 
10:11 PM
wut
 
user3010322
@melak47 I sure hope so!
 
why is it so hard to think of appropriate names for stuff in programming god damnit
 
user3010322
 
user3010322
An iterator that allows trivial copyability by using a shared_ptr internally. ;~;
 
user3010322
10:15 PM
This is the worst. ;~;
 
shared_ptr all the things
 
user1804599
9
Q: What is the actual purpose of std::type_info::name()?

πάντα ῥεῖToday a colleague of mine came and asked me the question as mentioned in the title. He's currently trying to reduce the binaries footprint of a codebase, that is also used on small targets (like Cortex M3 and alike). Apparently they have decided to compile with RTTI switched on (GCC actually), to...

 
user1804599
lol the comments
 
user1804599
Since clang and GCC are the only implementations that are worth anything, std::type_info::name() is very well-defined.
 
what about MSVC? ICC?
reddit is down :O
 
10:21 PM
@LightnessRacesinOrbit Ahh yes, my bigger brother.
@orlp :0
Wait no it's not.
 
yes it is
 
@orlp on MSVC; the ::name() isn't even mangled :D
 
Identified: One of our memcache servers is having problems right now http://stspg.io/sYi
 
I can access it though.
Does it not load for you @orlp?
 
> “I remember telling the neighbors to call the police,” he says. “I forgot for a moment that this was police.”
That about sums it up
 
user1804599
10:23 PM
@orlp Are they clang or GCC? No, so they're not worth anything.
 
 
I'm on it right now.
On the front page, there's a dog from r/aww
This is also there:
Maybe it doesn't work for certain locations?
 
@райтфолд oh hey. I didn't see that awkwardly specific question hidden in the comments. I've seen it exactly answered earlier, so I'll at least post that for now, then /cc @πάνταῥεῖ
@Borgleader Do you want me to? It's not even tagged boost :)
 
few things are as satisfying as typing after you cut the fingernails that got in the way while typing
 
^ +1 for piano playing
 
user1804599
10:35 PM
aaaa I'm so horny
 
user1804599
why did I look at porn gifs
 
@райтфолд ( . ) ( . )
 
user3010322
To get yourself horny.
 
user3010322
And start a vicious cycle.
 
user3010322
That results in a downward spiral of delicious shame.
 
10:37 PM
> porn gifs
wtf
l2 hd pics
or video
 
user1804599
So I had a great idea.
 
@райтфолд Wank it off.
 
user1804599
let mutable x = 1; is now let $x = 1; and must be referred to as $x.
 
user1804599
That way you always know when you're dealing with dangerous mutable variables.
 
user1804599
Similarly, let dynamic x = 1; is now let *x = 1;.
 
10:38 PM
since when are mutable variables dangerous
 
user1804599
Since they could suddenly have their values changed?
 
and that is dangerous how?
 
user1804599
Danger level ⇔ number of side-effects.
 
user1804599
Mutable variables allow for more side-effects.
 
user1804599
They are more dangerous than immutable variables.
 
10:39 PM
here's the thing, just because the danger level of a mutable variable is higher than one that is not, does not mean it's suddenly dangerous
dangerous is an absolute measurement
 
user1804599
They are relatively dangerous.
 
which is useless
drinking coke is relatively dangerous to drinking water
drinking coke isn't dangerous - drinking ammonia is
 
user1804599
Yeah, coke should be snorted not drunk.
 
user1804599
Don't drink drugs, kids.
 
look, I understand the desire of reducing unexpected results, and making dangerous things hard
 
user1804599
10:41 PM
But anyway, mutable variables should stand out.
 
but when you do this to mutable variables you're taking it too far IMO
 
user1804599
And sigils are a wonderful way to do that. :)
 
@райтфолд What's so funny about the comments on my question? Many people just repeated what I've already been discussing with my comrade.
 
@AlexM. prezoisely
 
user1804599
10:44 PM
@BenjaminGruenbaum My favourite hack: stackoverflow.com/a/23758876/1804599
 
Already upvoted, love that
 
Hey so, just looked at this question: stackoverflow.com/questions/28866021/…. Is what this person doing not dangerous? Or am I missing something.
It seems like they're using function pointer syntax, but referencing a member variable instead of a function. Is that perfectly defined behavior?
 
@AtlasC1 Looks fine to me.
 
no.
 
that's pretty ugly
what sort of use case would require that
 
11:00 PM
@AlexM. sort_by(&pair_type::first)
 
It certainly is ugly. Seems like they need to rethink their design. Ugly or not, I was just wondering whether accessing a member in that way was safe to do, because I haven't seen it before.
 
std::invoke comes to the rescue.
@AtlasC1 Poor OP.
Being made fun of in the comments.
 
poor member data pointers, having to exist.
 
Although I have used pointers to members at times, over the years I've become convinced that wanting to use them is usually a pretty good indication that the design is probably a mess--specifically, you've probably pretty much ignored the single responsibility principle, and instead created a class that does a number of different things (possibly related, but still distinct) so instead of really having one coherent class, you have a collection disguised as a class.
 
user1804599
On a scale from McDonald's to a quiche from a top-notch restaurant, how edible is coral?
 
11:08 PM
mcdonalds
 
^
 
@Borgleader Okay then:
0
A: How do I read in lines that may begin with string or number?

seheI was invited to slap the inevitable Boost Spirit approach on this. Here's the central section: auto value_ = qi::create_parser<V>(); start = eval; eval = no_case [ as_string [ raw [ value_[_a=_1] >> ('+' | lit("plus")) >> value_[_b=_1] ] ] [ std::cout

@Puppy McMonads
 
@райтфолд you mean on a scale from meh to less than meh?
 
user1804599
No, from "fucking terrible" to "extremely yummy."
 
quiche looks non-yummy
like lasagna
 
11:10 PM
@райтфолд Edible enough that several fish have evolved a number of substantially different mechanisms to eat it. Butterfly fish (e.g., longnose butterfly) have developed to reach into the crevice, and pluck out the coral inside. Parrot fish have developed dentition to simply chomp off large chunks of coral skeleton, chew it up, and digest the coral inside.
 
@BenjaminGruenbaum I think the "original" is from @KonradRudolph but I might be misremembering things here
@райтфолд awesome
 
user1804599
@sehe Race condition. :(
 
@Borgleader now about finding that excuse to explain to my wife it too half an hourto shut down the PC)
 
@sehe I believe you're correct.
 
@райтфолд no shit sherlock
 
user1804599
11:14 PM
racekak
 
Aug 3 '13 at 12:23, by Konrad Rudolph
okay, so now Jon Skeep ported my named operators over to C# :)
/cc @BenjaminGruenbaum ^
 
@sehe Thoughts about my least comment on that famous question (your answer actually)?
 
@JerryCoffin Did you read this?
 
@sehe hehe
Nice @KonradRudolph!
 
30
Q: Named operators in C++

Konrad RudolphA post by Yakk alerted me to the idea of named operators in C++. This look splendid (albeit very unorthodox). For instance, the following code can be made to compile trivially: vector<int> vec{ 1, 2, 3 }; cout << "3 in " << vec << ": " << (3 <in> vec) << '\n' << "5 in " << vec << ": " << (5

 
11:21 PM
@BartekBanachewicz Can't you just check the highest supported version using GLFW and then create a context based on that? You can try to create a 4.X context, check if it fails, and if so create a 3.3 one.
 
Anyone else experiencing laggy browsers with SO site/chat recently? My browser is acting up all of a sudden
Very badly. Even had to resort to chrome to just type this
 
@sehe I noticed Firefox being a bit hang-ier than usual while browsing stuff lately, but I blamed it on Firefox
nothing serious
just 2 or 3 second hangs when opening pages with stuff on them (e.g. embedded videos)
 
Mmm. A plugin (1 of 2) that I don't actually use recently updated itself. Lemme kill that
 
I think I'm only actually seeing like 50% of the messages in this chat
 
this didn't use to happen in Chrome at all, probably because Chrome starts a new process for every character on a webpage
 
11:24 PM
@AtlasC1 Unplonk the herds
 
@sehe Firefox has crashed on me on multiple occasions recently, although I don't think I can 100% say it was the chat's fault, as I had other tabs open.
 
@caps I hadn't. In my opinion, it borders on disgusting.
 
AH. Mystery solved. My disk had filled up :S
 
Never too late to get a 6TB HDD!
 
zfs destroy -R Home@20141130 - there, 2 more gig free now
 
11:30 PM
Or that.
 
user3010322
Machine Learning... is crazy.
 
I forget about cleaning the snapshots every once in a while
 
user3010322
If I get data I can train a computer... and it really models how a human being would learn how to "do by example".
 
@ThePhD Neat :D
 
user3010322
It's kind of amazing.
 
11:32 PM
I wonder if you can stuff a computer with enough data to a point where it can start learning on its own. Like a baby, sort of.
 
Some people in the early '90s agreed vehemently with you
@Nooble The trick is you got to direct the learning
It's not just force-feeding "data"
 
Hmm...
 
The upside is for realistic application domains, you don't necessarily need huge volumes of data.
More data just tune it to be more reliable
 
user1804599
I will sleep in the near future.
 
user3010322
@Nooble @sehe's right; the thing about a human is they're able to change their data learning abilities and their ability to change the actual thing they learn from what they're looking at.
 
user3010322
11:35 PM
Right now MAchine Learning optimizes whatever thing you give it to optimize.
 
user3010322
It's a meta-function, but it's still a function.
 
Don't fall asleep now
that would be a waste of time
 
user1804599
bye
 
Don't leave us!
 
oh that's just great :(
OTOH I find the term "free range parents" repulsive too
 
user3010322
11:37 PM
You'd need to equip it with multiple meta-functions, and then also be able to give the computer the ability to pick the right meta-function for the data, and how do you get the computer to do that? Well...
 
@Blob We don't know just yet.
 
@JerryCoffin I agree.
 
final commit message for the day
> Now killing the troll using turn actions (somewhat).
somewhat being the keyword
but on the bright side, I have a mess to fix tomorrow
 
@sehe Having to come up with a term for "I don't plan to treat my children like toddlers until they move away from home." does tend to show a bit of a problem with society in general.
 
(i.e. progress has been made)
 
11:41 PM
@Nooble Why would you mind actually?
 
@райтфолд Later.
 
@JerryCoffin yeah. I think labels like "free range" do contribute to the spasm though
 
@sehe Yeah, children are not chickens.
 
That too. I'm not sure you got the whole point now :)
 
Which is worse - free range or semi wild?
 
11:44 PM
@sehe Probably not. When I think "free range" I mainly think of free range chickens. I'm not sure what else you were trying to say.
 
Me too, that's the "repulsive" part; it makes me think the parent are looking at child rearing as if it were somehow an industry where certain quality claims attribute to market value of the end product. Or sumthing.
I know this is likely completely not their ideal, but using cross-over language from the bio industry makes the association happen in my head, indeed.
@chmod711telkitty "range" and "semi" are the bad parts.
O hope my kids are "wild" (as in animals). Of course they're domestic and sociable at the same time, but that's because that's in our (acquired) nature then
 
@πάνταῥεῖ No clue :)
 
@πάνταῥεῖ Nope. I'd just try it out. If you're lucky, the linker will catch and drop things
 
man, I'm looking at pictures of the village where I spent the first 8 years of my life
 
> This codebase is so old, it may have first been written on parchment and compiled by monks. But it’s the cleanest and most straightforward STL implementation I know, and I recommend reading it through
About SGI STL
 
11:50 PM
I can barely remember anything
it's nice to see that it's within the standard for Romanian villages
 
@sehe To me, the specific term they choose is a lot less problematic than the mere fact that "I'm going to let my children grow up, and gain independence as they mature" seems to be something you need to excuse, instead of just being taken for granted that it's what will obviously happen.
 
@JerryCoffin of course
 
barely any roads
awesome church
 
@AlexM. the one in the background, I surmise?
(looks like the more central one at least)
 
11:52 PM
well I was mostly about the white one in front that looks expensive
 
> looks expensive
The bling factor. Betrays the age
 
@sehe We'll let everyone know :) ...
 
Cheers. Night all
 
@Nooble I don't think my son is quite ready for that yet.
 
11:54 PM
@sehe if you like antiques more, there's also the fortified church of the same village
 
@sehe NN. Sweet dreams!
 
@sehe Night.
 
the orthodox church does not invest money in that one though
 
@AlexM. very nice pictures
 
@JerryCoffin No one is ever ready to be dank.
 
11:56 PM
@Nooble The basement of that fortified church might be.
Oops--I crossed the streams. This could be bad...
 
I need a beer
 
@JerryCoffin :)
 
haven't had one in 4 weeks
the flu got me out of my habit I guess
 

« first day (1600 days earlier)      last day (3347 days later) »