« first day (1984 days earlier)      last day (2956 days later) » 

8:00 PM
You don't have that subtle feel for current trending hotness fads. You need to keep at least two HackerNews tabs open on all your browser windows at all times to get with the program
 
@Prismatic Hmm....I think I'll stick to several tabs open in my editor, and might look at HN once a week, but probably less than that.
 
Your editor has tabs? Ew
split screen is where its at
 
er, how do you flip between the content on each side without tabs?
VS has both tabs and split screen
 
"VS" Code seems to do without tabs :v
 
near as I can tell, "VS" Code is a giant pile of shite
 
8:05 PM
@Puppy annoyingly, you can't split vertically and horizontally in the same document/window/pane/thing
 
On QtCreator There's this little drop down to select which file you want to show in which space
 
"Visual Studio Code" is not Visual Studio
 
orly
 
I don't even get what Visual Studio Code is supposed to be
 
Tabs themselves are kinda useless when you have too many open since you can't even read the filename
 
8:05 PM
@melak47 yarly
 
@Puppy Atom clone
 
@Puppy That's somewhat inaccurate. It's only kind of medium-ish sized.
 
@Puppy Better Notepad (but then again, everything is)
 
we took a bloated, shitty product which desperately needs slimming down and speeding up, and then we started re-implementing it in the bloatiest shittiest slowest way possible
 
@Prismatic it's not mutually exclusive
@Puppy ^W^W in vim, ^A<Space> in screen, ^Bo in tmux, <Win>k in i3 ... how not?
 
8:07 PM
@Prismatic I've used it. In the interest of not being banned, I'll refrain from stating my full opinion, but will go so far as to say that I find it somewhat less than ideal.
 
QtCreator couldn't even break on a breakpoint
 
@JerryCoffin Ouch, that bad?
 
@Prismatic visual navigation is dead in the water
@Zoidberg sauce?
 
@Puppy Not really QtCreator's fault your gdb was screwed up
 
8:08 PM
@Prismatic Meh, just show like, as many recently used as will fit on the tab bar. There's solution explorer/file search for everything else.
@Prismatic Well, since QtCreator installed and managed GDB, then yes, yes it is.
 
@Prismatic Well, I've certainly dealt with worse, if that's what you're asking.
 
Hey guys, I'm really new to C++, can someone help me out on some pretty newbie stuff?
 
Nah, you probably just got a single bad version of gdb or something
 
@UserX int and vector is all you need
 
8:09 PM
You should give it another shot, gdb + valgrind is so great
 
I'm still very happy with Vim+Pyclewn. Certainly the best discovery in my new workflow (outside tmux)
 
you make it sound like that's not QtCreator's fault, which it is.
 
3 hours ago, by Xeo
Read The Rules™ or you will have bad luck for the next 30 minutes.
 
VS does lots of shitty things, but it almost always manages to break on a breakpoint in "Hello, World".
 
8:09 PM
@StackedCrooked Raw Sugar is my fav song in the album.
 
@Prismatic how do you use them together in most recent versions? --db-attach=yes stopped working :( (the feature got replaced but I don't know what with)
 
@Prismatic I have no need for Valgrind.
 
I'm pretty sure the level of the questions are not that of stackoverflow
 
@Rapptz Cool. Didn't expect others to know this :)
 
and I'm starting to think that using Valgrind means that you're an inferior person who can't RAII
 
8:10 PM
you can get dead objects with RAII too
 
@sehe Not sure what you're talking about... I was referring to them in the context of using them in QtCreator
 
perhaps if you're a numpty
 
@UserX SO handles some pretty elementary questions. When we discuss C++ here, it tends to get into areas that would scare the vast majority of SO away.
 
@UserX That makes it far less likely that you'll get help here.
 
@Puppy Yeah well if you're good enough to not need valgrind then surely you don't need gdb either so I don't know why you're so hung up on the one issue you had with it
 
8:12 PM
well, I don't need GDB since I use VS, but that's besides the point
 
@Puppy I know how to RAII but I'm getting this weird assertion error inside one of the boost range adaptors...
 
Just use that RAII magic, no need for a debugger
 
If you don't write bugs then you're good to go.
 
@sehe I run process in valgrind with valgrind --vgdb=yes --vgdb-error=0 ./my_program and then I follow the instructions (as in, running gdb ./my_program and paste in target remote | /usr/lib64/valgrind/../../bin/vgdb --pid=PID)
 
8:12 PM
I for one never write bugs.
 
oddly enough RAII doesn't really help with logic that is not resource management.
 
user1804599
@sehe ever used eval with a string argument in Perl?
 
Valgrind is great at immediately pinpointing the root of the problem.
 
In defense of your comment, most problems outside of resource management can't be helped via valgrind.
 
@milleniumbug I might star this for easy reference
 
8:13 PM
It's super fast.
 
@Zoidberg what else?
 
I mean it's super slow.
 
@caps Pretty much all, as far as I'm aware.
 
@Zoidberg You mean, a variable
 
user1804599
@sehe block argument :v
 
8:13 PM
But it's super fast for finding the bugs.
 
user1804599
@sehe e.g. eval $x or eval 'foo'.
 
@Zoidberg Ok. Yeah?
 
user1804599
as opposed to eval { exception throwing code }.
 
user1804599
@sehe I want to execute a file with two functions in scope.
 
user1804599
But as far as I can read from the docs, eval uses the entire lexical scope.
 
8:14 PM
so really I think
use language feature that manages resources automatically -> don't need manual resource management debugging tool
 
@Zoidberg wat
 
A deep search revealed that all my newbie questions were covered in SO questions. Huh.
 
what a goddamn shocker
 
@Prismatic I can't entirely agree. Back when Bounds Checker was new, I thought it was great, but I've hardly used it (or anything comparable) in years--but I do still use a debugger at least once in a while.
 
user1804599
@sehe like, eval slurp('foo.pl');.
 
8:15 PM
@caps valgrind is a VM for running machine code, memory error check is just one of the tools in the framework
 
@Zoidberg ah. just synthesize the module and launch a child process?
 
user1804599
No, it must be in the same process.
 
there's a profiler, race condition checker and others
 
I don't think I'm having any of those issues.
Boost seems to think I'm not initializing a functor... yet I am.
 
(haven't found any need for these, but still...)
 
8:16 PM
Lately I'm fascinated by "raison d'être" as an ownership model. When something only comes into existence once something requires it and gets destroyed when it no longer has any users.
 
@StackedCrooked So, shared_ptr
 
well. that doesn't sound like a novelty.
 
so... shared ownership?
 
It sounds like refcounting + a factory
 
user1804599
flyweight
 
8:17 PM
That's only related, but yeah many flyweights can be similar
 
user1804599
Cool, iOS 9.3 has flux clone built-in.
 
they're shipping React Native in iOS 9.3?
 
In my protocol stack Ethernet will receive packets, validate them and them discard them if there's no higher layer protocol. It should only do that if some higher layer service depends on it. I.e once IPv4 is configured then we should be able to reply to ARP requests and ICMP echo requests. So Ethernet should start accepting packets that match those filters.
Actually the connection to the hardware socket can be delayed until something actually requires it.
 
I think @Zoidberg means f.lux
the screen color temperature thing
 
user1804599
@sehe yeah I guess I'll do that regardless.
 
8:22 PM
reddit's strategy against brown bears:
Brown bears are smart. If you play dead, they'll swipe at your genitals (and probably rip them off) to see if you're really dead. This is when you use the bear spray. Apply it directly to your own eyeballs to distract you from the pain of having your genitals ripped off.
7
 
The main subreddits have such a terrible set of users
For every link people try to post the funniest comment or pun that'll get them the most votes or gold or whatever
 
Reddit is one of the pits of the internet.
But that doesn't say much--most of the internet is pits.
 
@orlp lol. I'll remember that
 
user1804599
@sehe I'll put the code in a temp file, then call do from a forked process, and invoke the returned subroutine reference.
 
Ik was mijn handen in onschuld
 
user1804599
8:25 PM
my $handler = do($ARGV[0]);
bla bla {
    $handler->($message);
}
 
Shandler
Chandler
 
@orlp Just bring a large caliber firearm.
And don't miss.
 
@sehe another argument for value semantics: stackoverflow.com/a/36164675/2025214
 
yeah I have a story from yesterday to share
@H'H quick answer: yes and yes. — sehe 16 mins ago
@caps Yesterday I have broken my head for ~half an hour why my regex submatches wouldn't work properly. The code looked like this: paste.ubuntu.com/15474927
Guess what the problem turned out to be...
 
8:44 PM
@sehe The refs.
 
Which ones :)
 
@sehe You were using regex
 
Yeah. It's useful
 
the string literal -> temp string? :)
 
Nope. You can see that from the code
 
8:46 PM
I'm just rightfolding, don't mind me
 
oh. mutating input while regexing over it lazily? :/
 
No cigar
Should I give the spoiler? (It's very very related to @caps's link)
 
temp vector not owned by | reversed ?
 
WE HAVE A WINNER
The vector is temp, and it doesn't stick around even though the adapted full-expression does. That's it. It's an empty dangling shell.
I've rewritten the code as paste.ubuntu.com/15474935. Sigh.
C++ is not a very friendly language and Boost Range adaptors are silent killers
(Of course the sort could be a std::reverse in this example)
 
oh right
 
8:53 PM
does range v3 take ownership of temporaries?
(or is this v3)
 
Wide fixes this problem by making the temporaries have the same lifetime as normally declared automatic variables :3
 
@melak47 You mean, move from them - I suppose it should. I believe that's how Spirit solved their expression template temps mess in X3 so it can be done
@milleniumbug That's lazy
@melak47 It's Boost Range
 
@sehe but IMO more useful
 
Of course not. Accuracy is best. It's more useful to have lifetime extension propagate even through other temps
 
std::lock_guard<std::mutex>(m); does the right thing now
 
8:58 PM
hmph, on one hand I guess keeping around temporaries from the uh, head? of the loop for the entire duration of it makes sense. But in {blah(); .... } why would you want that temporary to live long and prosper? :/
 
@milleniumbug "now" as in: in Wide?
That's the strangest definition of "now" I have met in a while
@melak47 Precisely.
 
@melak47 { { blah(); } ... } :D
 
Accuracy is best. I guess someone would Rustle Jimmy about some other languages here
@milleniumbug No no no. That's assembly. Don't lower the abstraction level.
 
@milleniumbug that seems backwards :\
 
C is in the other room. Second down the hall.
Why is `MULTIPLE in capitals? Are you able to merge SINGLE vertices? DUAL vertices? What is the goal? Because, you know, C++ is Turing complete and BGL is pretty generic. The answer is gonna be "yes". — sehe 45 mins ago
Mike doesn't budge. Yet
 
9:04 PM
@melak47 on one hand there are some objects that could live shorter than the entire block, but scope guards are a good example of why doing the opposite would make sense
I'd argue making temporaries have the same lifetime as variables would make it consistent
program correctness is not determined by naming or not naming an object
and you can still control the lifetime
 
@milleniumbug except, it doesn't. It doesn't somehow "make sense" because it's convenient in one scenario.
You'd have a point if you proposed syntax for it like, lo and behold, many languages do (lock or with or using(m.lock) etc.)
It's almost like saying "garbage collection is good, because it does help prevent certain classes of errors"
 
well, it does
 
Wow. Embracing the fallacy. I mean, that'd be true in a different language. That makes different trade-offs
It doesn't make sense in the C++ ecosystem. Yessss propagating lifetime extensions to sub-objects would be cool, but only if the reference is actually bound.
 
Hi witches.
 
I find lifetime extension of temporaries to be slightly obscure feature, but that may be me.
 
9:12 PM
(no one answering)
@milleniumbug Of course. But you can't solve it by making it extend willy nilly. You'd end up with Perl or Java
You solve it by removing the feature alltogether (slightly defensible) or by removing the sharp edge cases.
(I think Rust aims at the latter. Albeit with a totally different type taxonomy?)
SON: Why is To Kill a Mockingbird narrated by a child? DAD: Well, son, it's a handy device for shoehorning in simple explanations like this.
This is a quite impressively composed tweet.
 
Alternative to making temporaries have the same lifetime as automatic variables, that would make them usable as scope guards would be to make some instruction like extend(std::lock_guard<std::mutex>(m));
it would extend the lifetime without naming it
 
I think I might use inheritance for the first time o-o
 
@milleniumbug It's a terrible feature.
 
@Puppy Why hello there.
 
9:18 PM
@milleniumbug you mean like...auto&& _ = scope_guardy_thing{}
 
started watching
 
@melak47 _ is a name
 
also
 
shrug
 
I'm feeling that holding locks is a misuse of RAII
and would be better served by execute-around
 
9:20 PM
@milleniumbug Even worse, it's typically used by gettext.
 
@milleniumbug you already said that. I disagree it's a good idea in general. For C++.
@ReousaAsteron I used it the other day. Because it was nicer than passing several std::function<> and I wanted to compilation-firewall my template shit.
 
@sehe Well, obviously even if I wanted to I'd never be able to push such suggestion to the C++ committee.
 
@ReousaAsteron Inheritance is a good feature, powerful and useful, but be careful, for misuse of inheritance is a deep black pit from which you may never escape.
 
@sehe It seems like a logical choice if I have players and enemies with the same properties, not so sure whether I should make them both derived from a mother class though or just inherit one to the other.
 
So I had a very simple adhoc interface with two members, to lazily access data from some - unknown - source. Type erasure could be a match, but I thought it was too complicated for the purpose
 
9:23 PM
@ReousaAsteron Neither.
 
@ReousaAsteron Also, I might point out, the feature [I was using] is virtual interface not inheritance
 
user1804599
Fap fap fap.
 
@milleniumbug in the rx source they have classes named _.
 
@sehe I dunno, I might say the same about inheriting from classes without virtual interfaces.
 
new _<Foo, Bar>() looks a bit strange
 
9:24 PM
@Puppy I'm passing by reference!
 
@ReousaAsteron So?
 
user1804599
Type classes are meh. Meh as in mehgic.
 
@JohanLarsson how 'bout new $<Foo, Bar>() :p
 
@Puppy you like passing by reference.
 
I do?
 
9:25 PM
@JohanLarsson yup looks strange
 
@Puppy Yeah, sorry misdirected reply. I'm not vehemently opposed against implementation inheritance, but the times the case for virtual interface /and/ implementation inheritance overlap are few and far between.
 
@Puppy You said that the other day D:
 
@JohanLarsson just like "inverted Java lambdas": y <- x
 
@sehe I think that the same advice applies in both cases, though. It's very useful, but can be far more trouble than it's worth when misused.
 
(Java 8 lambdas look like x -> y)
 
9:26 PM
@Puppy Certainly
(filed under bland statements) :)
 
user1804599
Types not affecting semantics master race.
 
user1804599
I.e. types being solely used as a mechanism to guarantee the absence of certain classes of bugs.
 
@milleniumbug would that extend expression return the actual thing?
 
Two elderly ladies discuss medical complaints at a nearby table. One just realised the word she needed was 'exacerbated', not 'masturbated'.
 
@melak47 sure why not
 
user1804599
9:29 PM
Cool, shitloads of new emoji in iOS 9.3.
 
@milleniumbug just figure otherwise it would only be good for scopeguard-like things
 
@melak47 php?
 
@JohanLarsson Visual C++ :p
 
@Griwes ok then
 
user1804599
PHP is nice.
 
9:41 PM
Does it make you tea?
(It should)
 
user1804599
Tea is disgusting.
 
Black tea is awesome.
 
user1804599
Beer, coffee, tea, and wine are disgusting.
 
user1804599
God knows why they are popular.
 
what do you drink?
 
user1804599
9:47 PM
Apple juice, orange juice, and water.
 
Wow, talk about a total lack of taste.
 
user1804599
Yummy yummy yummy!
 
Tea can be good.
Coffee is a nice addiction.
Beer and wine... Well I don't get it :)
@BartekBanachewicz Again. They just won't get it into their heads !
(da-dum-tsjj)
 
Coffee is drugs
Tea is drugs but a lot less, so it's tolerable
 
9:50 PM
I'm not a fan of coffee
 
so did we lose a lounger
I lost an upvote on maths.se that I'm pretty sure was his
oh wait that wasn't his upvote I think
 
nwp
he is following pointers, may have been null
 
@набиячлэвэлиь oh noes drugs
you mean substances we consume to feel better
like food
 
No, destructively addictive ones
Ones that make you dependent upon them
 
caffeine isn't destructively addictive
 
9:53 PM
@BartekBanachewicz Apparently Alex is gone.
 
It makes you dependent upon it
 
> Caffeine addiction, or a pathological and compulsive form of use, has not been documented in humans
@Morwenn what
 
Requiescat in pace, @Alex.M. You shall be missed.
 
why did he leave?
 
Can we get a minute of silence please
 
9:54 PM
Not sure.
 
user1804599
No it has been documented on paper.
 
@набиячлэвэлиь anyway so does good food
so does adrenaline
we're running bags of drugs essentially
 
So does glucose
stop bikeshedding
 
it's not bikeshedding
 
It's not. You are
 
9:57 PM
uh that's not what bikeshedding is
 
He's bikeshedding about bikeshedding now
 
I thought you guys just called that barteking
 
anyway, the general attitude of "any sort of chemical substance that makes you want more of it is bad" is retarded af
hth
 
anyway, the general attitude of "I'm gonna cling on all inconsistencies" is retarded af
hth
 
I thoroughly despise inconsistencies
incl. my own
 
10:00 PM
I don't mind inconsistencies at all if they have no negative observable effect
 
that being said, not sure what you're getting at. You seemed to suggest that coffee is bad because of the chemical reactions that cause you to want caffeine in your bloodstream again.
 
Everything that causes physiological changes is a drug hth hand
 
user1804599
Hahaha, 13558 voting passed for the upcoming referendum were misprinted due to Unicode incompetence: diacritics missing in street names.
 
Puppy takes drugs all the time and he wants moooore
 
bikebartekking
 
user1804599
10:02 PM
That's what you get for referendumphobia: outdated software.
 
user1804599
Do more referendums and the software will get more robust due to more feedback!
 
Right
 
@Zoidberg hahahahah stay naive
 
10:19 PM
Now that's a pretty graph :D
 
colors of 'insertion sort' and 'merge sort' lines are too similar
 
It's stolen code again. I don't know how the colours were generated.
 
@Morwenn election sort :)
 
I like how it makes it easy to differentiate O(n²) sorts from O(n log n) ones.
 
@Morwenn where's it from?
 
10:29 PM
@VermillionAzure I slightly modified the profiling code, but the original comes from here.
 
@Morwenn I mean the graph
 
I generated it with the aforementioned code a few minutes ago.
 
I guess it's matplotlib
 
Of course it's matplotlib.
 
@Morwenn What do you mean "of course?" There's more alternatives now, right?
 
10:33 PM
Your mom is matplotlib.
 
@VermillionAzure Because I wouldn't use anything else. I don't even think I have anything else installed to plot stuff.
 
@Morwenn (isn't there Bokeh)
 
Also you'd have known by looking at the linked sources .___.
 
@Griwes When I was in high school, the mother of a girl I knew thought the height of humor was to go a nice restaurant, and in a shocked-sounding stage whisper say something like: "Oh my god--that man in the corner is masticating."
 
10:38 PM
@BartekBanachewicz Coffee is bad--but only because it tastes nasty. Mt. Dew FTW!
 
@JerryCoffin So good it even dissolves rats.
 
@Morwenn Oh yum...rat meat marinated in Mt. Dew. I think I need to have Vietnamese for supper tonight.
 
@JerryCoffin Did I hear... pho?
 
@VermillionAzure Bright yellow Mountain Phoo!
 
10:48 PM
@JerryCoffin ...what
 
I ate shitty pho yesterday.
 
@Morwenn Why would you do such a thing?
 
@JerryCoffin I sometimes need to eat, and it cost next to nothing.
 
@Morwenn Ramen is cheap and reasonably tasty. Doesn't your new job provide decent snacks?
 
@JerryCoffin If I want to eat with the other guys, I have to pay 9~10€ for something that is always too much for my poor stomach.
At least there were good bakeries near the place where I worked before, so I got to eat different sandwiches or salads everyday.
I tried the three bakeries next from my new job, and none of them is worth it.
 
10:54 PM
@Morwenn Nearly anytime I eat out, I plan on eating ~half of what they serve, and take the rest home for another meal.
 
I don't really like to heat remnants of food later, so...
I guess I will just buy something before going to work in my town's bakery (which is great).
 
@Morwenn what town
 
@VermillionAzure A small town near Brest.
 
@Morwenn oh right
You know I think I know somebody from France
 
So is code review actually about people reviewing your code?
 
10:57 PM
who knew?
 
@ReousaAsteron why would you think that
 
@VermillionAzure Many people do.
 
@ReousaAsteron Code review is about WTFs per minute.
 
@ReousaAsteron ...
 
Was that a stupid question .-.
 
10:59 PM
@Morwenn I'll bet for people living in France, it's particularly common...
 
@JerryCoffin Lmfao
 

« first day (1984 days earlier)      last day (2956 days later) »