« first day (1314 days earlier)      last day (3628 days later) » 

4:00 AM
 
user3010322
It's as good a reason as any, really
 
@false hey minitech
 
Coliru was very dead the last couple of hours. Had to restore OS from disk image backup.
 
user3010322
4:17 AM
Indeed.
 
user3010322
What happened?
 
I don't know.
 
Good post mortem
 
ssh login failed. Tried hard reboot via web interface, but probably broke it even more.
 
Don't you have a console
 
4:19 AM
There's a rescue mode which allows you to boot from a temp disk and then you can mount the original disk for diagnosing.
 
You have a VPS, right?
 
Then you have a KVM console, or you should find another ISP
You don't need to reboot for that
 
there's a console app which failed to run because I don't have Java installed.
 
Good job
 
4:21 AM
Assuming ssh login fails I don't see how this console could help.
 
Because it's not SSH?
 
What is it then?
 
It's direct feed to the VM
It's the same thing as VirtualBox or whatever GUI
 
Anyway, I restored the system from the old backup now.
I still want to check the log files of the broken disk.
And there may be some unsaved userdata.
Poor sods.
 
4:49 AM
Waaaah unfinished project tormenting me
Can't sleep
 
user3010322
Unfinished project?
 
user3010322
Work project?
 
Xeo
Dear body, fuck you for waking up at 5:45 again, when I went to sleep at midnight.
 
user3010322
:D
 
user3010322
I'm fucking up mirror'd adressing.
 
5:04 AM
Using protobuf but wanting to avoid code generation per message type I defined a recursive variant type. This basically allows me to use this it as a sexpr.
Now I can store vector.
 
almost winter but still 27 degrees outside during the day @_@
 
And map if I convert it to vector<pair<key, val>. And tuple if I store it as vector.
However, storing vector<int> now stores { { type=int32, value=1 }, { type=int32, value=2 }, ... } instead of just { 1, 2, ...}
I'm thinking of fixing this by using compression on the serialized string.
@ScottW hi
 
5:20 AM
@ThePhD Yeah, we had a coding marathon again, and I've started working on my tool idea, but I can't finishandcantsleepbecauseicantfinishthisisterribleaaargh
 
user3010322
@CatPlusPlus Hah.
 
5:51 AM
@CatPlusPlus Cute.
 
We say かわいい around these parts bud.
 
Oh, 正解.
 
カワいい good river
 
@StackedCrooked lol
Was this song popular or something? I found it on Pandora but it seems familiar. :v
 
user3010322
struct mirror_addresser {
template <typename Ta, typename Tu>
auto operator()( Ta&& a, Tu&& upper ) {
	if ( a < 0 )
		a = 0 - a;
	auto range = modulus( a, 2 * upper );
	return range < upper ? range : ( 2 * upper ) - range;
}
};
 
user3010322
6:05 AM
I don't think I can make this computationally simpler.
 
user3010322
Or eliminate the branching at the end there.
 
weird ass way of doing std::abs.
 
user3010322
I'd have to write another dispatching function to do it. :c
 
user3010322
(Because std::fabs vs. std::abs)
 
user3010322
the a = 0 - a just also gets rid of warnings for unsigned types that don't like -a (and demand subtraction in its place).
 
6:09 AM
?
std::abs in C++ land is the same as std::fabs.
std::abs accepts everything, it's overloaded.
 
user3010322
the std::abs page for cppref doesn't list... any floating point types
 
user3010322
all the integer types are there, though.
 
user3010322
... Oooh.
 
user3010322
Well, that's useful.
 
user3010322
6:11 AM
How come they don't do the same with other math functions?
 
1 The header <ctgmath> simply includes the headers <ccomplex> and <cmath>.
2 [ Note: The overloads provided in C by magic macros are already provided in <ccomplex> and <cmath> by “sufficient” additional overloads.—end note ]
I think this is saying that all the magic ones in tgmath.h should be in C++ land.
Don't know how this is in practice though.
guess not very well.
In addition to the int versions of certain math functions in <cstdlib>, C++ adds long and long long overloaded versions of these functions, with the same semantics.
 The added signatures are:
long abs(long); // labs()
long long abs(long long); // llabs()
standard explicitly says it should be an int version though.
 
Xeo
There's a template<class Integral> double abs(Integral); overload
maybe that gets picked
 
nah
That's a cppreference lazy way of writing "and other overloads"
 
Xeo
Is it?
 
yeah
 
Xeo
6:20 AM
k
 
I looked that up last time cause I thought the same thing
 
Xeo
nvm then
But if there are "other overloads" that return double...
 
It's referring to § 26.8/11
Doesn't that kind of make the million other overloads useless? :s
What were they thinking lol
 
Xeo
vOv
 
Maybe I'm missing something.
 
6:23 AM
@Xeo I really liked latest NGNL ep
 
Xeo
Shiro ♥
Also, Steph
Steph is a good character
 
If every lambda expression creates a new type, does that mean that first-class functions need template parameters for every single function parameter that could be a lambda?
 
yes
 
@Xeo good girl Steph
 
Xeo
Public service announcement: Lambdas are not special.
 
6:24 AM
they're special in this case
 
Xeo
You'd need a template parameter even if lambdas didn't exist.
 
If I ever have a daughter I'll name her Stephanie.
 
:V
they're generated!
 
Xeo
if you wanted to support different callables vOv
 
ok, going to work now
 
6:25 AM
@StackedCrooked Weird. Me too.
 
@Xeo Even if I expected every function to have the same signature?
 
Xeo
@Maxpm Yes?
User-defined function objects would like a word with you
 
@Rapptz great minds think alike :)
 
Xeo
Which is exactly what a lambda becomes
1 min ago, by Xeo
Public service announcement: Lambdas are not special.
 
I also think it's weird I have a girl name in mind but not a boy.
you always use templates for higher order functions.
 
Xeo
6:26 AM
@StackedCrooked Dola-chan :D
 
Xeo
I loved the references
 
btw
Why are function objects called "functors" in C++?
Always wondered.
It never made sense to me
 
Xeo
No clue
Derived of something like "function" and "actor", I guess?
 
Another meta foray
0
Q: Do tag-based RSS feeds include voting activity for posts these days?

seheI've been noting more and more old (oooold) posts in my RSS feed: "Newest questions tagged tag1 or tag2 or tag3" (http://stackoverflow.com/feeds/tag?tagnames=tag1+or+tag2+or+tag3&sort=newest). E.g. today (some posts from 2010 already vanished as they had become "marked as read" while making this...

hehe. funny, url in onebox is
@ScottW Good morning
@StackedCrooked it's console access (virtual, then) - you know, not just "terminal", but really: console
@StackedCrooked Condolences appreciated
lol they're copying our model in the JS room:
in JavaScript, May 15 at 5:54, by Caprica Six
@Mr.Chowdary Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
That msg was flagged, btw
> With this version also there is support for the SPDY 3.0 Protocol in Qt.
Some things in Qt keep surprising me
 
7:02 AM
0
A: What is the name of this operator: "-->"?

Pavel PetrmanIt's a GOTO! The going to operator can be considered a continuous form of the goto operator, which even Microsoft says should be avoided in favour of its more modern cooperators break, continue, and return. So, in stead of using while( x --> 0 ) // x going to zero you'd be better of with som...

^^ wtf?
 
Ven
cause one goto operator wasn't enough :)
 
@Mysticial It had been too long since he'd had an answer deleted, and needed a reminder of how it feels.
 
His first mistake was making a joke in front of Joke Killers Mysticial and Jerry Coffin.
I'm so used to spelling "Mysticial" that if Mysticial changed his name to Mystical I wouldn't even notice.
 
@Rapptz Yeah, I have no sense of humor!
 
Hey I'm joking too :(
 
7:07 AM
Problem is that in this case, the attempted joke isn't even mildly funny.
 
Yeah I know.
It's a pretty terrible joke.
 
acceptAFunction(std::cos); In cases like this, is there any way to disambiguate between the overloads of std::cos short of wrapping it in its own lambda?
 
no
 
@Rapptz But I'm not. I really don't have any sense of humor. You should know that by now.
 
The starboard has a great joke on it.
 
Xeo
7:10 AM
@Mysticial Yo, watched NGNL yet? :)
 
Not yet.
Probably won't until tomorrow.
 
Ven
jibril best :<
 
Xeo
I loved Steph this episode
 
I bet you love Steph in every episode.
 
Xeo
True enough
She's a great character though!
As is basically everyone else
 
Ven
7:11 AM
You mean she has great assets ...
 
@Rapptz Cicada's sex isn't all that funny either.
 
Xeo
This series is just plain awesome. I'll definitly pick up the Novel after the season.
 
Ven
Haha I just didn't pick the novel yet to avoid getting spoiled ;;
 
I was watching Shingeki no Kyojin yesterday but dropped it after 15 episodes.
Overhyped animu :v
 
Ven
^ agreed
(am I in /a/ ?)
 
7:13 AM
Nope.
 
Ven
(ah, that's why I havn't been insulted that much)
 
Your favourite anime is a shit, etc.
 
Ven
yesh
isshuukan best :v
 
Well, I need to go to bed. Have a nice day (or not, as the case may be).
 
Sleep well.
 
Ven
7:17 AM
Well met
 
I think 2ch is worse than 4chan
I browse 2ch when I'm really bored
 
Ven
never went to either
I browse SO when I'm really bored :|
(or github, really)
 
Everyone on 2ch always makes fun of foreigners lol
 
Ven
you're always a foreigner to someone else :v
 
user1804599
7:32 AM
Yay I voted. :v
 
congrats
 
who did you vote?
 
user1804599
Marcel de Graaff, duh.
 
user1804599
> Mr. Van Gaal will come up with new additions to the Oxford Dictionary.
 
user1804599
7:42 AM
lol
 
morning
 
morning sunshine
 
user1804599
google.nl/search?q=rightfold%27s+vagina lol those SO proper results.
 
Ven
why that name, even?
 
@Ven We are now in the post-Zoidberg era, (that means 'we don't know').
 
Ven
7:58 AM
fair enough
 
user1804599
Why not rightfold?
 
Ven
that wouldn't be right :^)
 
So, Mjolnar claims it's first casualty
Mmm. Seems I didn't pick the best dupe (why was that sooo highly voted). Looking for a better one... — sehe 4 mins ago
 
This is messed up:
8
Q: Syntax error in constructor taking default argument `std::map`

GreenScapeConsider simple code snippet #include <map> #include <string> struct Foo { Foo(const std::map<std::string, int> & bar = std::map<std::string, int>()) :bar(bar) { } std::map<std::string, int> bar; }; int main(int argc, char ** argv) { return 0; } When I compile it li...

I got bitten by this before, thought it was a compiler problem.
Turns out it's a Standard problem.
Well, at least I see it that way.
 
8:08 AM
Also, I noticed that this looks quite okay:
 
@BenjaminGruenbaum Maybe I should have been explicit in my edit summary and not mask it. But you can see it in the revision history
 
That is, multiple dupes. That also can't happen any more with Mjolnar's hammer...
> Looks like a compiler bug. I tried it on IBM's xlC compiler V7.0 (which I've found to be more standard-conforming than gcc) and it compiles okay.
lol that's a first. Invoking XlC++ as a source of authority.... :S
 
user1804599
Never heard of XIC++.
 
@rightfold XLC++
 
user1804599
Didn't know there were C++ compilers besides GCC and clang.
 
8:12 AM
@BoltClock still, why did you delete it?
 
user1804599
Your momma uses XXXLC++.
 
Is it because he is not allowed to disclose that?
 
@rightfold Comeau, Open64, Embarcadero, Pathscale...
 
@BenjaminGruenbaum Yes.
 
@BoltClock ok then, fwiw also this is funny.
 
8:13 AM
@BoltClock since you're here, do you have special powers when I mis-tagged a dupe? Or could anyone with a gold badge (except me :() do it? stackoverflow.com/questions/23798213/…
 
user1804599
llvm.org/bugs/show_bug.cgi?id=13421 ITT C++ functions are as horrible as CPP macros are.
 
Ven
s/macros/textual macros/
I wonder if any work to give real macros to C++ ?
 
@Ven ~real~ macros
 
@sehe Anyone with a gold c++ badge can do it
But I reopened it for you
 
@Ven I bet they give better ~performance~ than the current ~macros~
 
8:17 AM
@rightfold lol that takes the cake for me
 
@sehe Err not sure if you can vote to close it again though
 
@Rapptz they "fixed" it later anyways
@sehe What do you need me to do?
 
the fact it's illformed is terrible
 
Ah wait, @sehe, I'll fix it for you.
damn too late
 
wtf sehe
 
8:19 AM
there goes me being helpful
 
Mmm. Seems I didn't pick the best dupe (why was that sooo highly voted). Looking for a better one... — sehe 20 mins ago
Should I reopen it?
 
@Jefffrey no, it's just been reopened and closed.
I think you picked the one he found.
Also, I don't think the closer can reopen.
 
Ven
@rubenvb I bet they give better performance than templates ... oh wait
 
I believe the closer can.
 
morning
 
8:24 AM
morning
 
The closer can reopen, but not close again
 
user1804599
So close.
 
sent off my CV at 1am last night
so now I can finally get cracking on Wide again
 
you went to the post office that late?
 
email?
 
8:29 AM
@DeadMG Be careful using wide and crack in the same sentence.
 
user1804599
@StackedCrooked Belgen lopen nog altijd achter he.
 
Wide is cracking.
 
Crack is widing.
 
wide butt butter crack
 
@DeadMG sweet, where to? I missed that part. :)
 
8:35 AM
some recruiters that have been bugging me for it
 
@rubenvb that's positive, no? :) Thanks
 
Wide is a very beautiful name for a programming lang, considering that almost all alphabet's letters are taken.
 
We have C, C++ and C#. Someone ought to make a Ç.
 
user1804599
Is Gradle good?
 
user1804599
Oh, it runs on JVM so it's probably slow as fuck.
 
8:44 AM
@rightfold It also describes itself as "The Enterprise Automation Tool," which sounds a little inauspicious.
 
Ven
quite nice :3
 
9:18 AM
yawn
 
@Jefffrey Wow! This is awesome.
 
user1804599
> Cannot run program "/usr/lib/jvm/icedtea-bin-7" (in directory "/usr/lib/jvm"): error=13, Permission denied
 
user1804599
lolwat
 
user1804599
It's a directory. :V
 
hi
also I think that we should boot Telkitty from here once and forever, I mean dead chickens
who the fuck posts that. as an embedded image.
 
9:30 AM
what dead chicken?
 
was it alive?
 
@BartekBanachewicz holy god
 
I mean it's probably not very relevant to my point, chickens dead or alive, sans Savage Chickens, don't belong here
@ScarletAmaranth you want to avoid tearing ducks.
anyway I think I found the rubber examples the most amazing
Of course 4K-quality sharp glass looks great, but it's not such as huge step I think
 
@BartekBanachewicz you tell me
 
I am not clicking that
@ScarletAmaranth You know what's best? It doesn't even look that hard to implement.
 
9:34 AM
it's still pretty impressive truth to be told
 
user1804599
virtualenv is such an ugly hack.
 
sure, stay ignorant then ... it's a quite educational article
 
user1804599
How can it be so difficult to make decent package management tool for a programming language.
 
user1804599
Even Node.js gets it right.
 
@ScarletAmaranth kinda.
 
Ven
9:36 AM
@rightfold You really did
 
user1804599
I want python_modules like node_modules, and the interpreter looking in there for packages.
 
user1804599
It's simple and it works.
 
user1804599
But no ermahgerd have to set environment variables.
 
I HAVE BEEN NATURALLY SELECTED BY THE HAND OF GOD
 
9:37 AM
Dunno. First time I used Unix, a LONG time ago, it took ages to get anything to work 'cos paths, permissions, privileges.

Nothing has changed.
 
user1804599
Python ecosystem is so horribly broken.
 
@BartekBanachewicz It's chickens being washed. No big deal. What's wrong?
 
welp up to a whole 46 of 128 tests passing
 
Ven
@BartekBanachewicz hai
 
ack, don't wanna read what recruiter thought of my CV.
 
Ven
9:40 AM
@DeadMG watcha doing
breaking em tests ?
 
yep
 
@BartekBanachewicz vcool
 
well, I broke them all a long time ago
this is me somewhat unbreaking them
 
@DeadMG Read it!
 
9:54 AM
dayum I hate rvalue references.
tweaked them a little to not generate horrible code, and failed 20 of my 46 tests :(
 
:D
Why are you going to the trouble of writing a new language but implementing C++ abominations like rvalue references?
 
they're not an abomination, they're a fundamental requirement for value-typed systems.
 
They don't need to be exposed to the programmer.
 
yes, yes they really do.
it's hard to write a move constructor without rvalue refs.
 
Well, every value-typed language other than C++11 seems to manage okay.
You seem to be stuck in a C++11 bubble.
 
9:56 AM
there basically are no complex value-typed languages other than C++11
 
and the only other reasonable example, D, decided to introduce them a little while back, because they realized that not having them is untenable.
 
Just seems like if you're reinventing C++11, what's the point, y'know?
Make Wide better. The amount of abstraction leakage in move ctors and rvalue refs in C++11 is incredible
3
As a programmer I really shouldn't be forced to give a shit
 
that's ridiculous.
 
9:57 AM
it's clearly an observable problem when you come to stuff like unique_ptr.
 
So don't make unique_ptr
You're stuck thinking in C++ terms, as I already said.
 
fuck no
@LightnessRacesinOrbit The only other known solutions are "Garbage collect everything" and fuck that.
 
Not really. You can and should have move semantics without requiring programmers to toss off the compiler while moaning the names of different value categories into its electronic ear
 
you don't have to do any such thing, creating a move constructor is just "I'd like this type and by the way it must be an rvalue".
 
Are unique pointers built-in or library types in Rust?
 
9:59 AM
e.g. have one reference type notation and have the choice of move vs copy be denoted in some other way
 
I believe Rust is built-in.
 

« first day (1314 days earlier)      last day (3628 days later) »