« first day (2251 days earlier)      last day (2696 days later) » 
00:00 - 15:0015:00 - 00:00

3:16 PM
 
@Ell Quiz time. Can you do: template <class T> f() { return T(); } f<void>();?
 
Ell
Instinct says no
Context says yes :P
 
@JerryCoffin Yes, IMHO.
 
Ell
void() isn't a call to a constructor
It's something else?
 
IIRC, you cannot do void() but you can do T() where T is void. IIRC.
 
3:19 PM
@JerryCoffin No, there's an error because the function doesn't specify its return type.
 
Haha. Right.
 
Another quiz question: can you write void foo() { return throw 1; }?
 
@Griwes No because throw 1... Can you?
 
@wilx Another quiz question: can you write int foo() { return 0 ? 1 : throw 1; }?
 
@Griwes You can't because throw 1 and 1 need both be convertible to common type.
 
3:21 PM
@Griwes Well, yes--sorry. Should of course be template <class T> T f() { rerturn T(); }
 
@Ell Context beats instinct. it's allowed for the sake of making it generic, even though it doesn't really make a whole lot of sense in the case of void.
 
@Griwes Well, I suck. :(
 
@Griwes At least offhand, I don't think so. A throw expression has type void, and foo is declared to return int.
 
@JerryCoffin Still no, there's an error because rerturn is not a valid keyword.
 
3:37 PM
Chat search seems to exclude links now.
 
Ven
@Ell void f(); void g() { return f(); } works, much specialcase
@AndyProwl Well Lounged, mate.
I don't want to go on andyscuss this with you.
 
{ things I understand } { things I am trying to do }
 
3:54 PM
@JerryCoffin See three messages up. (Tip: how was conditional erroneous termination usually done with C++11 constexpr?)
 
TIL the Swedish government doxxes its citizens by default.
 
4:07 PM
> the tabloids sometimes have lists like "these 500 people earn the most in your area!" on slow news days
Sweden sounds horrible.
 
Ell
wow
that really does sound terrible
 
All that info is public.
Go here to check if someone was involved in some criminal case: lexbase.se
 
@thecoshman lel - have you considered a career in management/sales?
@R.MartinhoFernandes what source do you use to find these pointers? I think I'd love to scour around on my own (inb4 TVTropes)
 
@sehe Friends living in Sweden.
 
@sehe lol
 
4:20 PM
@R.MartinhoFernandes wtf
 
Ell
Hmm
I'm tempted to replace the XKCD at the start of my assignment with an abstract :V
 
Xeo
4:38 PM
@R.MartinhoFernandes missed opportunity for "lexba.se"
 
@AndyProwl Oh, did I accidentally omit the #define rerturn return part? Sorry 'bout that. :-)
 
5:07 PM
@R.MartinhoFernandes Norway does the same.
 
5:22 PM
markdown just got an RFC...
that's going to make things amusing
 
That's just for MIME-type, no?
 
5:42 PM
@Griwes Yes, but it covers quite a bit that's not directly related to MIME types.
 
6:22 PM
@Mgetz March is not just now. :)
 
6:34 PM
@wilx I don't watch enough "Dr. Who" to give a proper response to that... something about time being relative
 
Has anybody read the free ebook The Beast Is Back by Jon Kalb? Is it any good?
 
6:55 PM
The only programming books I've ever read are Stepanov ones.
 
@thecoshman You know that gitflow adds nothing of value?
 
Ven
it flows
 
@Morwenn pushed
 
@orlp Integrated. It successfully passes my testsuite :p
 
oh wait
my microoptimization isn't pushed
1 sec
 
6:59 PM
dayum
 
Ah, microoptimizations :D
 
I am reading a book and a small dog got killed
I am feeling so bad now
 
@Morwenn pushed
 
Ok :)
 
@Morwenn you can see here
basically I removed one integer increment per swap :D
 
7:03 PM
@orlp Yeah, I was already in the process of integrating it x)
Still passes the testsuite smoothly. Next step: the benchmarks.
 
The feeling when you spend several minutes writing a detailed post which exactly answers the question you imagined the OP wrote...
11
 
@JackDeeth Oh yeah that feeling
 
That's the spirit.
 
Pundit
 
Eh, I need to update my C++17 branch.
 
7:15 PM
It was a very lovely answer too. With working examples and everything. Showing how Sean Parent's gather algorithm will save the world.
 
@JackDeeth ask it as a separate question
 
@Abyx Hmm... good plan!
 
sure I can help downvote you
 
I just realized that vergesort is actually a French sort: it's ok when there are obvious patterns, but it's designed to surrender really fast when things start to go slightly awry.
 
7:31 PM
@Puppy why downvote? so thank you for help -.-
 
Because Puppy's angry because of the poor dog who was killed.
 
@Morwenn this should be hateoverflow and no stackoverflow...
 
Incidentally, is there a rep level where a user can see which individuals have voted on a question or answer?
 
@JackDeeth i dont think so
 
@tomsk I sympathise - I've spent ages trying to get Qt to do things and failing. Currently, qmake is refusing to put 20 of my 25 source files into its Makefile and I have no idea why.
@tomsk On the other hand, this morning I learned how to set up subprojects in Qt Creator such that the unit tests compile and run as part of the build process, which makes me very happy.
 
7:39 PM
@JackDeeth jeej good news :)
 
That's #php for you. DATE_ISO8601 is not ISO-8601 compatible. https://t.co/JCx0D1hy2n
8
 
@Griwes That is beautiful.
@Griwes I've spent the last two years working in VBA-less Excel, and programming at home for fun. Would love to start as a professional programmer. But terrified of ending up as a PHP programmer.
 
@orlp The std::deque benchmarks are sexier than the previous ones :D
 
7:54 PM
@Morwenn do you have links
 
Not yet.
 
Just saw a comment on meta which made me laugh and went to upvote and realised I'd written it.
6
 
@Morwenn what optimization settings is that?
oh wait
is that graph for std::deque?
 
-O3 I think. I can -O2 if you want.
Yes, that's for std::deque.
 
7:58 PM
@Morwenn you should run -O2 -march=native -m64
@Morwenn ah, that's why I got confused
 
-m64? What the hell for?
 
@orlp After checking it was -O2 -march=native
For some reason my QuickMergeSort implementation with std::nth_element consistently beats every other sort for the « Alternating » distribution.
 
27
A: Can a human get sucked into a jet engine?

Moo what is the minimum or maximum weight that these engines can suck? Quite a lot, considering they can ingest ramp equipment... This is a JAL 747 ingesting a baggage container. Delta L-1011 doing the same.

^^ oops, someone fucked up
 
same principle: things blow harder than they suck. — PlasmaHH yesterday
:D
 
Ven
8:33 PM
@StackedCrooked Command-enter to coliru some piece of code, Y/N?
 
Ven
would you agree with such a feature?
 
Can you give an example? Not sure what you mean.
 
Ven
some keybind that wouldn't require me to click a button. :P
 
Ctrl-B triggers the compilation.
 
Ven
8:35 PM
oh!
 
(Command-B on mac)
Command-enter in the command field at the bottom inserts a new line.
 
Ven
That's supposed to be Shift-enter!
 
Oh, right. Shift-enter.
 
@StackedCrooked Can you make #include to work with GitHub urls? It would still be standard-compliant, and incredibly useful for small header-only libraries :p
 
Hm, not sure how to do that.
 
8:37 PM
@JackDeeth Not quite as weird as the feeling you get when you downvote a question because the OP doesn't know what he's asking for, realize all the comments miss the hard part (about terminal emulation) and write an answer just so I know how to do it myself:
2
0
A: Qt - get output from running process

seheBecause the sample "htop" interests me, here's a hint. htop is an "interactive" terminal application (using curses to "draw" a animated terminal image), as opposed to a run-of-the-mill UNIX-style filter (that takes input from a file-like source, and provides a sequential output stream to any fil...

 
@StackedCrooked Download files, and replace the #include directive that you feed to the compiler.
 
Ven
(that's the only command list, ace's)
 
Ok, it'd probably be too heavy for the servers in the long run :/
 
Yep. I added Ctrl-B myself.
 
8:38 PM
@sehe #reversal
 
Ven
@StackedCrooked please document it
 
Feature requests D:
 
Ven
documentation requests! :P
I can't PR a google document.
 
@StackedCrooked Oh. As long as we're talking feature requests, I'd love if the focus were always on the editor pane initially. I hate that I have to use the mouse always, although I just want ^A<Tab>^C^Z to get the code to copy into my SO answer :)
> CONTAINS STRONG LANGUAGE!
Such wishful adolescence
 
Ven
yay thanks!
 
@sehe Should work now. Let me know if it does for you.
 
o.O TFW I should just have asked years ago
Thank you
Brilliant. It works too.
 
np :)
 
Ven
\o/
@StackedCrooked++
 
8:52 PM
@EtiennedeMartel unlikely. Though someone might do a search whether any existing answers exist around this. Because, honestly all the things I found miss the mark and just waffle about "popen or output redirection", e.g.
Yes the sample is part of an curses sample application, but the code shown has nothing to do with curses. That's just regular output redirection — sehe 47 mins ago
 
@sehe Good going there!
 
9:25 PM
@sehe But it does--the first thing she talks about is his "fake strength" (or something on that order). Language about strength = strong language. :-)
 
9:36 PM
Never clicked the link
 
@sehe You didn't miss much. I clicked it, but doubt I watched for a whole minute. I've wasted better insults than those on my keyboard.
Oh, and a few days ago on my phone. Was in a hurry, and the idiotic thing decided to ignore all touches to the left half (or so) of the screen...
 
What. I can't even. That must be ... fake news
 
Ven
why?
 
There's a "Crooked Hillary" emoji now? What about a "grab them by the pussy" emoji?
 
The comment on twitter is exactly right: "I remain convinced that we live in the most absurd timeline imaginable".
@Mysticial That wouldn't be OK, because that was just "locker room talk"!
 
9:50 PM
@Ven Because it's tooo preposterous. If it's true, we're doomed. I mean it.
 
Ven
I didn't realize you were into doomsaying.
 
@Griwes Somehow reminds me of a science fiction book I read years ago, that said one race of aliens as always happy, because they were convinced they lived in the best universe they could imagine. Another was constantly sad--for exactly the same reason.
 
Ven
no you
@Griwes it actually is awesome
 
that's what I said, yes :D
(Just wait for seeing the red button.)
 
9:59 PM
@Ven Oh. Well. I like to think of my self as a realist. In the grand scheme of things I don't see why we would expect humanity to be around for another million years. Or why that would even be "a good thing".
And the odds of humanity not experiencing some (self-induced?) mass extinction event in the next thousand years are pretty slim (history is still a good predictor for the future, by and large).
Nothing really changed in my stance. Just the odds of the next calamity being rather small (on macro-biotic scale) but painfully self-inflicted are notched up a little more in my mind.
 
@sehe Hmm...I'm not sure history provides much support for there being a high likelihood of a mass extinction event in the next thousand years. They generally figure there have been five in roughly 3.8 billion years. Simple division says the chances in a given thousand year period are only about 1.3 parts per million. Now, it's certainly true that we've done quite a bit to accelerate extinction of quite a few species--we might be living through a mass extinction event right now.
 
@JerryCoffin Mass extinction events include bubonic plague, IYAM
If you think "ERMAGOD Dinosaurs struggle and finally die out" scale, then perhaps it should be 100k years
 
Yahoo reveals another breach, in which hackers "stole data associated with more than one billion user accounts." https://t.co/CfSDn7RY8F
ONE BILLION?!
 
@sehe While I guess I can understand that viewpoint, I don't think it's really accurate. It certainly killed a lot of people, but even in the hardest hit areas only killed off ~half the human population. I don't know of a single species that's extinct due to the plague (though there's some evidence that the black plague itself may be extinct--some argue that it was caused by a different disease from any of those currently known).
 
@Griwes Well, I'm lucky I never created a Yahoo account.
 
10:11 PM
@Griwes ...and three years ago, so if they did, it may well be a little late to do much about it.
 
@JerryCoffin Once again, language barrier could be at play. "Extinction" was the word I found closest to "mortality" but not denoting the "chance" but the "actuality of death"
Maybe it should have been "mass mortality"?
Of course I'm not "predicting" a likely extinction of human species in the next 1k years
That's redonkulous. Although it being less than half the population wouldn't surprise me at all
@Griwes Well. Yahoo. I've always found it to smell like a shady brothel.
@EtiennedeMartel Only ever to play with "Yahoo Pipes"
 
Ven
@Griwes hahahaha
 
@JerryCoffin That goes for all breaches, really. The key is to just prepare for breaches. If they are naturally expected things, they don't hurt half as much
 
You know, all the dudes that spout shit about PoC in a medieval-themed game would be inaccurate? They never get upset about potatoes.
2
 
Ven
¿
 
10:17 PM
@Griwes That's a very poor, confusing opening tweet. But this is real, I like it:
So in conclusion: Medieval Europe had more People of Color than potatoes. This is a well-documented, easily provable fact.
 
This aligns with what The Economist found out just after the Charlie Hebdo attacks.
 
Ven
@EtiennedeMartel fuck retarded frenchtards
 
Ell
didn't realise there were so many muslims in russia
 
@Borgleader
9
A: My school network has been blocked because of spam—how can I post?

Brad LarsonYour location wasn't blocked because of spam, it was blocked because of some aggressive trolling by multiple accounts originating from your location. As we destroyed these accounts, the system started locking down posts from there. To be honest, I think you might have a pretty good idea who this...

 
Ell
For some reason I thought practising some religion besides russian orthodoxy was illegal
 
10:30 PM
^^ Who do you think is the perpetrator? lol
 
@Ell The only approved religion is the Kremlin ;)
 
Seen in the comments just now: "Maybe you should look at fortran, as it has MINLOC, MINVAL etc as intrinsics, and the indexing is MATLAB like. MATLAB shares a lot with Fortran." O_0
 
Ell
I'm surprised also that britian has only 5% muslim population
 
@Ell sssh don't wake up the abyxen
@Ell Only? That's a lot
I'm surprised it's that much, rather.
 
Ell
@sehe well, my perception is much like the article
I would probably guess 20%
well no
 
10:41 PM
You'd expect to see/hear more of it. Not about it, mind you. Plenty of screaming in the media
 
Ell
I would guess 15%
obviously not anymore :V
I think the reason is that if I ever see people in religious clothing then it's going to be a hijab, burka or some headdress which I associate with islam
in the vast majority of cases
so most of the time I'm not thinking of any religion at all
 
You know what it's like when you get a Volkswagen Golf, and suddenly you see Volkswagen Golfs everywhere? A person who thinks the country is being overrun with Muslims, or immigrants, or refugees, or Uber drivers, or hipster beards, or Ugg boots, or Comic Sans, will notice and remember whenever they're seen. Confirmation bias.
 
Ell
I don't like that implication
if it's aimed at me that is :P
 
lemme edit...
 
@sehe Sounds more accurate. During the mass extinction events, a large number of entire species died.
 
10:49 PM
ok can't edit. change to "A person who is aware of..."
 
user1804599
ohio
 
@JerryCoffin Bad word use it was
 
@Ell I didn't realize that the US had even close to 1% Muslims. I'd guess most must be concentrated in parts of the country (New York?) that I don't see much. Around here, I'd guess there's only a fraction of a percent (but it's hard to guess--other than somebody who happens to dress distinctively, who knows what religion they might believe in)?
 
Ell
I'm bad at estimating maybe :P
 
That's a weird haiku,
I do love the way it ends.
What shall we put here
@Ell Everyone is. The problem is greatly exacerbated by the fact that people don't talk. Subcultures don't mingle.
After a while, any "external data point" gets added to the list of "personal observations" because there are, in fact, no personal interactions to lead to personal observations
 
11:07 PM
@Borgleader
-12
Q: is win32 best or mfs best for learning

skymanis win32 best or mfs best for learning ???? i want a pawerfull way for all

> i want a pawerfull way for all
 
@Mysticial lol
I like the comment about linux, on a thing that explicitily mentions microsoft APIs
 
Last night, I cearly remember having had a dream about Bézout's identity.
And I don't even know what it is.
 
github.com/Fuco1/clippy.el End Times for Emacs
 
user1804599
11:28 PM
Emacs sucks.
 
user1804599
VS Code master race.
 
11:49 PM
I must say the US version of Dirk Gently's Holistic Detective Agency was pretty good TV series.
 
Ven
moar js
 
00:00 - 15:0015:00 - 00:00

« first day (2251 days earlier)      last day (2696 days later) »