« first day (1293 days earlier)      last day (3654 days later) » 

2:00 PM
balls.
I wanted to downvote that guy with the assignment operator trick thing, but I couldn't because I upvoted it more than five minutes ago.
fuck off stupid website, it's my fucking vote and I'll change my mind if I fucking well want to.
 
I am freaking depressed - this freaking 2nd dwelling construction process is way slower than I expected. I am chasing people with a whip everyday and it is still 'on the paper' stage ... I made a couple of bad decisions probably. Now with the raising in the property price last year, everything that's reasonably priced related to construction requires lenghy waiting period. I feel like as if I am stuck in limbo and with no way out soon :'(
 
@DeadMG Why? It was great
 
not really.
 
I thought about it, and this question clearly falls under "Shoulda been closed".
 
so all the answers are really just whoring for rep.
and I wish to punish them for such behaviour by downvoting them.
 
10 minutes ago you said "I think this is the best solution"
@DeadMG Yes, clearly my answer is whoring for rep.
 
yes, I did indicate that I changed my mind.
@LightnessRacesinOrbit Did you vote to close?
or let me put that another way
if you post a trolling answer, then it's not like I haven't done that myself, you just have to accept in advance that you get downvoted for it.
 
as long as posting it amuses you more than the downvotes hurt you then you still come out on top.
 
2:05 PM
@DeadMG yes, and I do. so, by definition, I was not repwhoring. therefore your prior statement about "all the answers" was patently false.
I was gigglewhoring if you wanna put a name on it
giggle giggle
 
eh, I don't really consider trolling as less insta-downvotable than repwhoring.
 
@DeadMG My point is that if I expect downvotes rather than upvotes, upvotes cannot be my goal, therefore I cannot be repwhoring (which means you are trolling for upvotes)
and of course I expect downvotes on it and that's fine
 
right
glad we're in agreement.
 
indeed
is 7 minutes cpu time a lot for a full release build of some application?
inb4 depends what it does
well yes of course. but like is it totally crazy no matter what the application? aside from OS kernels and compilers
 
It almost feel like I have serialized a process that can be split into a couple of sub-tasks that can be carried in parallel and yet I am doing it all serially. Now I have made a 5 month project int a 9 months one, probably longer. I AM GETTING OLD!!! THIS NEED TO MOVE FASTER!!!
 
2:09 PM
eh not really
 
good I didn't think so either
 
it takes me like 30 minutes to build LLVM.
a long build time just means you have a large application, nothing else.
or a terrible build process but that's unavoidable in C++
 
(Y)
er, thumbs up
precompiled headers aren't helping me at all, which is a shame (and a bit of a surprise frankly)
 
buy new hardware?
 
my heavy use of Boost bind/function/lexical cast is probably bloating the compilation process
 
2:12 PM
ah.
consider externing some templates?
 
the six binaries are only 2MB each at the end, though
@DeadMG that's C++11 isn't it?
 
er, yes, but it's one of those "Only Standardised existing practice" things.
pretty much all the compilers had an extension for it prior to that.
 
as far as I'm aware.
MSVC has had it since like, MSVC 6 or something.
 
as long as I don't need to pass --std=c++0x then that'll be fine
sounds like that's highly unlikely
 
2:14 PM
well I dunno about GCC you'll have to check online
 
> G++ supports explicit instantiation declarations in C++98 mode and has extended the template instantiation syntax to support instantiation of the compiler support data for a template class (i.e. the vtable) without instantiating any of its members (with inline), and instantiation of only the static data members of a template class, without the support data or member functions (with (static)
they need to stop saying "template class"
 
lol
 
Xeo
2:36 PM
13
Q: Unexpected result when trying to compose a curried lambda with another lambda

MorwennI am toying with C++11 lambdas and was trying to mimick some function from the functional module of the D programming language. I was actually trying to implement curry and compose. Here is the main that I am trying to get working: int main() { auto add = [](int a, int b) { retur...

Oh gawd, that question
function_traits, confusing 'currying' with 'partial application', std::function, ...
 
fuck my life. why everything is so bad? why all the important software is written in C ?
2
 
define 'important'
probably because C was invented relatively quite early & drivers are usually written in C
 
e.g. linux kernel and it's software
it's important 'cuz my wifi router uses it.
it gives me fucking internet
and recently it got broken
then I thought what if I could fork openwrt, fix stuff in it...
but it's written in fucking C
so I don't wanna touch it
'cuz it stinks
 
Are you sure it is the 'C' part that's broken?
 
yep. if it'd be written in C++ it would be better
 
2:48 PM
C isn't hard
just learn it
 
it's not hard. it's almost as easy as assembly
but I don't wanna write in it
 
assembly is quite different
 
I mean making shit pancakes is easy, but you just don't want to touch shit
 
well, make a backup copy of whatever C files you touch ... if anything is wrong, you can always rollback
 
Xeo
Oh gawd, the misnomer of curry in that question actually comes from D: dlang.org/phobos/std_functional.html#curry
 
2:51 PM
Curry , plural curries, is the generic English term primarily employed in Western culture to denote a wide variety of dishes whose origins are Southern and Southeastern Asian cuisines, as well as New World cuisines influenced by them such as Trinidadian, Mauritian or Fijian. Their common feature is the incorporation of complex combinations of spices and/or herbs, usually including fresh or dried hot chillies. Purists limit the use of Curry to dishes prepared in a sauce, but see "wet" or "dry" below. In original traditional cuisines, the precise selection of spices for each dish ...
 
Xeo
Fuck everyone who doesn't get the difference between currying and partial application when talking about either. :s
 
you might have to recompile the whole kernel, but that's not quite the point
 
the point it that just seeing C code makes me puke.
 
take some C sickness pills :p
 
it's just impossible to write in C when you know C++
 
user1804599
2:53 PM
@Xeo Why would you need to know about currying or partial application at all when talking about either? :P
 
feels like you have your right arm cut
 
user1804599
Either is irrelevant to both.
 
Xeo
@rightfold :|
 
welp I guess it's time to play CS
 
@Abyx You just need to work harder at being an Emo.
 
Xeo
2:55 PM
> template binaryReverseArgs(alias pred)
That std.functional module of D's Phobos stdlib is horrible.
 
@JerryCoffin what's Emo? a big bird?
The emu (, sometimes ; Dromaius novaehollandiae) is the largest bird native to Australia and the only extant member of the genus Dromaius. It is the second-largest extant bird in the world by height, after its ratite relative, the ostrich. There are three subspecies of emus in Australia. The emu is common over most of mainland Australia, although it avoids heavily populated areas, dense forest, and arid areas. The soft-feathered, brown, flightless birds reach up to in height. They have long thin necks and legs. Emus can travel great distances at a fast, economical trot and, if neces...
 
I have to talk to shitty people to get the paper work done, trust me, shitty people are worse than C code ... this shitty person told me she's too busy. I know way too many super busy people who create little value. If it is not that it's the procedure, trust me I rather not talk to her in my life time.
 
Fellas
Howdy
Tiny bastardized question: can I use range-based for with C-style "array" of C-string, i.e. wchar_t**?
 
The proposed building will be on a flat area, relatively very flat. But the construction plan has to take storm/floor water into consideration & I get talk to shitty people because of that
 
@rubenvb only with T[N], not T*
 
Xeo
2:59 PM
Also, D's template declaration / definition syntax is weird
 
@Abyx dammit.
 
> Visual Studio encountered an unexpected error.
 
life is not fair, why must I talk to shitty people over something that will never be of any problem
 
Xeo
ahahaha, the documentation for the std.functional module is even totally out-of-sync with the linked implementation file
deprecated("Please use std.functional.partial instead")
alias curry = partial;
they fixed the name, at least.
 
@Abyx Nope. It's a sug-genre of punk music. At least for a while, some of its fans were known for various forms of self mutilation, especially cutting themselves (usually on the arms).
@Xeo At least they added the right name (but retained the wrong one as well).
 
3:03 PM
5
Q: How long is a cat's memory?

ShevliaskovicHow long do cats remember places and people? I will leave the house in the next months for half a year or so. Will my cat remember me when I get back?

 
Xeo
I can understand retaining the wrong one (backwards compatability n shit). At least it's deprecated.
 
@Xeo I agree it's understandable (but don't think it quite qualifies as "fixed", yet).
 
So, yeah. Today I murdered my hoarding self.
 
@R.MartinhoFernandes Do you plan to store the body somewhere?
 
@R.MartinhoFernandes That sounds...unpleasant.
 
3:05 PM
Goodbye old boxes of things I don't even have anymore. Goodbye all the train tickets I ever used.
 
haha that's so me
 
My room is full of space now.
 
I feel bad that nobody's consoling @telkitty.exe, but I honestly don't know what to say
 
@R.MartinhoFernandes Now replaced hoarding with redundancy now.
 
It was hard to let go of some of that worthless junk.
 
3:09 PM
@LightnessRacesinOrbit you can start by wishing her house to be infested with fleas for the next two whole years
 
@telkitty.exe um, ok
 
@LightnessRacesinOrbit I tend to doubt there is much to say. IMO, the problem is probably less with the people she has to talk to, than with the fact that she all-too-quickly concludes they're "shitty", apparently because their priorities differ from hers.
 
More from a conflict of interest
 
Xeo
@Xeo Note that, as Joachim mentioned, using std::bind doesn't work when the resulting function needs to be used with his compose function. This is due to limitations in template deduction. — vmrob 7 mins ago
hahaha
 
Well we all have different priorities in things, I don't consider 'busy' as a really valid excuse nowadays. If there is something that's of interest enough, you MAKE time
 
Xeo
3:14 PM
@vmrob: No, this is due to a limitation in the compose function presented here, as it (wrongfully) inspects the input's argument / result types and uses std::function. :) To Morwenn: Note how the implementation of std.functional (linked to in the documentation) has changed the curry function to partial, with a deprecated version of curry for backwards compatibility. — Xeo 1 min ago
 
But if you don't want to reject the plan that's proposed by the local government because their storm water engineer prefers it to be done that way, say so. Don't make an excuse of 'I am too busy'
 
@JerryCoffin A bit, yeah, but it was starting to become unpleasant to not do something about it.
 
Then we will go through another way, simple
 
Xeo
Oh yeah, that vmrob guy's answer is also wrong.
fun stuff
 
@telkitty.exe "Making time" is actually impossible with today's science
It is certainly possible to be "too busy". Sometimes it just means that she has MADE time for something that she finds more important, and therefore there is no time left over for your particular complaint.
 
3:20 PM
sure it is, stop doing useless/less interesting stuff ... like, instead of watch TV making time for a holiday
 
Guess she thinks the other things on her plate are more useful and interesting than your thing
As such she is absolutely following your advice
 
more useful to herself, yes
I agree
 
Well, yes, she does not exist in order to service you in particular
 
@LightnessRacesinOrbit Exactly. It's all about priorities.
 
but doing nothing could be more useful than to deal with me
 
3:21 PM
I suspect that is usually the case, yes
 
but I say something/someone is shitty is from my perspective
agreed?
 
sure
in the same way you would say "the fucking cunts took 40% of my income in tax this month"
 
My father used to say something like "It's not that I don't have time to read more books, it's that I have time for other things"
 
or "those idiotic muppet morons locked me up for ten years. all I did was murder three innocent girls! fucking cunts"
@R.MartinhoFernandes I like it
 
your neighbour almost always prefer you to not build more on your land
 
3:23 PM
I dislike when people say "c'mon man, make the time for it" because then it backs me into a corner, out of which I can only emerge by putting politeness aside and finally admitting "of course I can do that, but I have chosen not to, because I couldn't give a crap about your thing, and I am 'a shitty person'"
 
back to my point, I stand correct unless you are saving someone's life or maybe a pet's life, then you couldn't be too busy
she just doesn't want to deal with the issue the way I don't really want to deal with it. but she used a stupid excuse, that's what makes her a hypocrite, and thus shitty
 
> I am 'a shitty person'
 
I didn't say I am a great person :D
 
3:37 PM
I was told by someone 'in the history of men, a lot of the times, it is the shittiest person who won at the end'
Tomalak, ready to be a king? :')
 
@telkitty.exe yes
 
3:55 PM
I like the new Firefox interface.
It's clean and functional :-)
the "attach tab" or whatever it's called in English feature is handy.
 
So was the old one.
 
robot!
are you available right now because I could totally use your help on something.
 
I am looking at return type inference in Wide
and I am unsure what to do with only partial data.
for example:
 
Ever wondered what was the first question on SO?
Morning
 
4:02 PM
seems to me like if you allow type inference even when recursion, then you have to be able to resolve the return type from the return type of only some of your returns.
 
@DeadMG I guess it depends on how you want to deal with conflicting returns.
If you returning Derived1 and Derived2 means the return type is some Base, then that code won't compile, for example.
 
yes.
I found it hard to actually come up with an example.
 
@DeadMG To deal with recursion properly, you can start with a bottom type for the return (the type system doesn't actually need that, it's just an implementation aid), and then keep refining as you find returns.
If you're still left with that bottom type when the process ends, the type cannot be inferred.
(Say: r() { return r(); })
 
ok
 
So in your example, the return type would be common(Derived1, Derived2, bottom).
 
user1804599
4:08 PM
Zeit zu fressen!
 
right.
so 1. Analyze the whole body. 2. Obtain set of return types that do not depend on our own return type. 3. Compute return type. 4. If we have new return types, then re-compute the return type with them included?
 
I wonder if that is guaranteed to halt.
 
that is exactly what I was wondering.
I'm finding it hard to construct an example where it wouldn't halt, though.
 
U(T) f(T) { ... }
g(T t) { return f(g(t)); }
Return type keeps adding Us.
 
return type keeps oscillating between boost::any and base.
 
4:17 PM
@DeadMG That one is easy to stop by avoid recomputation with the same types.
 
@R.MartinhoFernandes Wrong- it halts.
 
f's return type cannot be computed without knowing g's return type, which in the initial pass, we don't.
so we're left with no returns and thus it's an error.
@R.MartinhoFernandes What so like, when we resolve to a new return type, if we already had that return type in the past, then error?
 
@DeadMG If it is in the current queue being resolved, yes.
g(T t) { if(whatever) return f(t) else return f(g(t)); }
@DeadMG Basically treat it as a cyclic graph traversal: you always avoid going back.
 
does that imply that the order could produce different results?
I guess I'm thinking that if multiple returns become available due to multiple recursive dependencies, can I get different results if I process them in different orders?
 
4:24 PM
Actually, I mean, treat it as cycle detection in a graph.
 
i gotta go eat; thanks
 
@DeadMG No, because you only get a result if there are no cycles anyway. In the end you're left with all the leaves and combine them.
 
4:42 PM
@R.MartinhoFernandes Yeah, but you don't know if those are the same leaves as you would have gotten with a different order.
 
John Carmack's former employer claims he stole tech for Oculus VR when he left engadget.com/2014/05/01/zenimax-claims-oculus-stole
 
took em a while to notice
 
Guise. If I expose a REST API that allows authentication, does it create a security huge hole by allowing thirdy party to simulate login pages and save the credentials behind their curtains?
For example: GET (username, password) -> (login token).
 
5:00 PM
One can always simulate login pages like that without the real page ever getting involved.
You get the credentials from the user regardless of the real page being used or not.
 
@Jefffrey This could be done without using the API as well.
 
I see, thanks all.
 
@R.MartinhoFernandes I would like to come to the unconference :>
 
Xeo
5:27 PM
0
A: C++ weak functor with default return value

OktalistYes, you can deduce the return type of the callable type F using function traits. Remove typename R from the template parameter list, move typename F to the beginning of the template parameter list, and replace all occurrences of R with typename function_traits<F>::return_type. We can use a temp...

ASFGYUAGHEUP /cc @R.MartinhoFernandes
We actually introduced Scrum into our team, but our managers told us not to be not too open to it, since our boss considers it as "waste of time" in which we "could actually have some coding done". — user128738 6 mins ago
hahaha, wow
 
user1804599
> He wants us to add new features unrealistically quickly, with no regard to code quality, maintainability or future-proofness.
 
user1804599
Simple solution: throw 42;.
 
you should work there
 
user1804599
Nah.
 
5:50 PM
Perhaps my idea of scrum is inaccurate, but I would agree with the boss on that one. At my company, we have wasted hours and hours sitting through pointless reviews (if your code doesn't affect what I'm working on I don't care), daily standups (if your work doesn't affect mine I don't care. If I am blocked I'm not going to wait until the meeting to get it resolved), and grooming meetings that take far too much of the day.
With that said, my company has a record of doing things wrong a lot. So I'm asking you guys, why should I like scrum? How is scrum not a waste of time? Were we even doing scrum right?
 
"if your code doesn't affect what I'm working on I don't care" is the recipe for "how the fuck did this crap get written?"
It's team spirit at its best!
 
6:02 PM
Guys.
I have a naming problem.
What's the directory called that stores all your support data files? It would be C:\Program Files\myProgram on Windows and /usr/share/myProgram on Unix.
I need a good name.
And don't say Frank. Or Dave.
Not the kind of name I'm looking for ;-)
 
@R.MartinhoFernandes Team spirit died at this place a long time ago. That aside, I'm still not convinced (I want to be though). I could see the review being helpful for managers, but dragging every dev into the meeting seems pointless. I see the merit in planning things out before code, but I dont see the point in sitting through endless demos :-/
 
On another note, can anyone remember the internet before sites nagged about giving away cookies?
 
I don't remember anything.
Who am I?
 
StackedCrooked?
 
user1804599
@StackedCrooked which whoami.
 
6:11 PM
@CountMurphy oh thanks
 
I think I found my scrum answer here if anyone is interested: programmers.stackexchange.com/a/166290
 
user1804599
 
LOL
 
user1804599
It’s not funny at all.
 
user1804599
It’s actually a pretty horrible joke.
 
6:21 PM
meh, I like horrible jokes
 
@StackedCrooked btw; the next OP epi is hopefully gonna be the shit finally
 
yeah :D
 
all dem parallel scenes are fully prepared to kick ass
 
@rightfold the number of THE BEAST
 
I am not much into this stuff but I think the original beast number was 636
666 has a nicer ring to it I guess, vOv
 
user1804599
6:29 PM
The original number of the beast was 11, because of C++11.
 
that would be 03
 
6:46 PM
@ScarletAmaranth Why didn't anybody make octal jokes about C++03?
 
they did
too many times.
 
user1804599
 
@NehaRawat you mean, "1 more question" :) And you cannot do it any other way! Although mapping the memory maps the whole region at once, it is all virtual (notice the mantra? get it into your system!). Only when you access w[0], or w[8836752] does the relevant page get loaded into memory. — sehe 14 secs ago
 
@rightfold man, now I wanna play Skyrim
 
user1804599
Mid-air rim job.
 
user1804599
6:59 PM
@FredOverflow They wouldn’t be funny until the version of C++ that MSVC currently implements (C++08).
 
@rightfold hilarious
I just realized that the word "release" would be ambiguous in the context of leasing.
 
user1804599
Then do not use it.
 
7:15 PM
@StackedCrooked We release you from any obligation that may arise from the ambiguity in the use of "release" when releasing release (not debug) code involving renewing leases on a network (regardless of whether it may operate over a leased link).
 
especially when that code involves unique_ptr<T>::release().
 
@DeadMG You make an excellent point(er).
 
Hm, this tool's handling of window maximize/restore is weird.
Like, I can't do the "drag down to restore" thing. It just flickers and stays maximize.
 
@EtiennedeMartel Sounds like a game programmer may have touched it...
 
7:18 PM
Wait. It's Polish.
That explains everything.
 
your mother's Polish.
 
@EtiennedeMartel ...almost (especially if written by a Polish cat).
 
if I ever get the urge to refactor again
please knife me in the guts
 
@DeadMG I'll leave the job to your surgeon.
 
fair play.
he is a professional at knifing people in the guts.
 
7:20 PM
@DeadMG Given how recently your guts are even sometimes reasonably free of pain, I think that would be a bit excessive.
 
Hi internet
 
user1804599
Release your guts.
 
Is it something wrong with my eyes or I see RaymondChen in this room?
 
@rightfold Free the guts.
 
@Abyx are those mutually exclusive?
 
7:24 PM
he discovered my overwhelming sexual attractiveness
 
Well tits.
@RaymondChen Hello!
 
those are not considered sexually attractive on men, you know.
at least, not by most people.
you can feel however you like about mantits.
I actually have no idea why he's here, so
 
guess how much coding I've done in the last week
 
@jalf you removed a hundred of LOC?
 
nope, not even that. None whatsoever :)
 
7:28 PM
then what are you? a manager?
 
No, on vacation :p
 
ah
 
Xeo
cheap excuse to not write any code
 
At least I hope I haven't been made a manager. I guess I'll find out when I check my work email :p
yeah, I'd actually planned to do some hobby coding stuff
but that turned out to not happen :D
 
btw May 1-2 are holidays in Russia so I also gonna sit home and do nothing
 
7:30 PM
oooh, Russia :o
oh, misread, thought for a moment you were going to russia
@Abyx I'm in San Francisco. Turns out to be a pretty cool city :)
 
uhm why one'd want to go there here? )
 
I'm confused. You live in Russia? :D
 
yep I do
 
Huh. I wonder why I hadn't picked up on that before
 
user1804599
Why would you use a REX prefix for MOV r/m8, r8?
 
7:34 PM
@rightfold for movzx/movsx ?
or maybe it's a NOP (alignment)
 
user1804599
@Abyx Ah, right.
 
user1804599
The manual says both are possible, except with a REX prefix you cannot use AH, BH, CH and DH.
 
user1804599
MOVZX and MOVSX have totally different opcodes.
 
what is the difference between different and totally different for ints?
 
@JohanLarsson what?
 
7:40 PM
3 mins ago, by rightfold
MOVZX and MOVSX have totally different opcodes.
maybe they are bytes?
 
well it would mean that the opcodes has no common parts
i.e. some groups of opcodes look similar, e.g. E8 / E9 for call/jmp
in this case it's 2x for MOV and Bx for MOVZX, MOVSX
 
user1804599
*it++ = 0b0100'1000; yay for thousand separators lol.
3
 
Beautiful.
 
what's that, manually outputting your own machine code?
 
@rightfold or, in fact, sixteen separators
or something
 
7:54 PM
 
user1804599
@LightnessRacesinOrbit nibble separator. :)
 
@rightfold I like it
 
user1804599
REX prefix is 0b0100xxxx. The first four bits are always the same, which is why I put the separator after them.
 
@rightfold Does it work? or is the joke on me?
 
user1804599
It should work. I haven’t yet tested it.
 
7:57 PM
@rightfold seems reasonable
 
user1804599
My editor will probably have problems with it, though. :)
 
@CaptainGiraffe No
 
user1804599
But I’m writing a Perl program that generates machine code generating C++ code from a file containing descriptions of instructions.
 
user1804599
@EtiennedeMartel So many puns.
 
Good thing I had a stiff one before tackling rightfolds paradigm-shifting ideas.
 

« first day (1293 days earlier)      last day (3654 days later) »