« first day (1614 days earlier)      last day (3343 days later) » 

6:00 PM
oh it’s variable templates + default arguments—I think
 
@MartinJames I really need to get to work on that DWIMNWIS compiler.
 
car finally fixed after initial diagnosis on 13th Feb lol
that was a Friday.
 
@JerryCoffin Good luck with that:)
More C lol:
http://stackoverflow.com/questions/29129035/is-it-possible-creating-a-time-table-generator-in-c-language
'Time table generator w0ould be for scho0l level Can you help me with the alg0rithms or l0gics'
 
@LightnessRacesinOrbit lol, it was so funny I forgot to CV it b4 posting the link.
 
6:06 PM
changed it to "s0"
 
@LightnessRacesinOrbit For that you get an UV:)
 
@LightnessRacesinOrbit what an amazing answer
upvoted
 
@AlexM. s/ing/ingly useless/
And this from the guy who tries to claim that we should be more welcoming toward newbies and such. What a complete hypocrite!
And no, that's not a character assassination. It's just a statement of fact.
 
LRiO does have a bit of that in him, hehe
I noticed that he sometimes switches opinions or sides just for a contradictory discussion to exist
I think I'll get pizza or sth
hmm
 
6:13 PM
@AlexM. I've just had a chicken sandwich. I'll have pizza when I get in later, assuming I am capable of 'cooking' a frozen pizza.
lol: 'o0h I get it.. will try to update so0n'
 
user1804599
6:24 PM
I voted.
 
user1804599
Woo.
 
@AlexM. bit of what
@AlexM. Do you know who else did that? The Wright brothers.
It's healthy.
 
Hey @AlexM. I need some help with my multipliers.
I heard you are good with those.
 
user1804599
I know a guy named Kuda.
 
6:34 PM
> I chose one that I liked on Github, range.hpp by Github user klmr.
Damn, Konrad is famous.
 
hi
 
I want to have git on my, Android, phone. Is there an app or something for it?
Tried cloning the repo to the phone storage but it did not work, don't remember the error
 
@JohanLarsson There are apps that support git so I think it should work play.google.com/store/apps/…
 
ok must afk
 
@райтфолд is he good at arithmetic?
 
user1804599
6:42 PM
No.
 
He can only handle the simple instructions?
 
Xeo
> Today 10 h 01 min
time to go home!
 
It's 19:45.
 
"Search should be a first-class citizen on the Stack Exchange network" No, not until it works properly. — Lightness Races in Orbit 1 min ago
 
SO search is bad. I just use google to search SO
 
6:49 PM
yeah
i see no reason for it to be a first class citizen anyway
 
0
Q: C++: Ray Tracer causing out of memory errors -- due to repeated calls to 'new'?

Ryan YuThis is a pretty broad question, so I hope it fits the guidelines loosely for S/O questions. Basically, I'm writing a Ray Tracer that takes input from a scene file. Right now, for each new triangle/sphere defined in my scene file, I do the following in C++ (hopefully the code is self explanatory...

 
@StackedCrooked I gotta go get ready for the TributeFest.
 
> I've also spun up a 60GB RAM EC2 instance and run the ray tracer on that, and it still runs out of memory.
God damn! But then I'm not really sure what kind of memory limit a process on an EC2 instance is given
 
new Color(whatever) and new GeometricPrimitive()... just kill me now
Clearly I don't delete the Color pointers, the BRDFCoefficients pointer, and the Material pointer, which I should do. However, due to the comment I posted above, is this really the reason my program is crashing? — Ryan Yu 10 mins ago
 
Sounds like a java dev
Or any GC lang dev
Is there any way of getting a class hierarchy in C++ statically at compile time?
3
Q: Finding base class at compile time

cmasterThe title almost says everything: Is there a way in C++ to get a class's base type(s) at compile time? I. e. is it possible to hand a class to a template, and let the template use other templates to which it hands the bases of the given class? My question is not whether I can implement such a fu...

 
6:57 PM
@Pris Sounds like a not-dev
 
user1804599
I had this wonderful idea.
 
Have you guys played this interstellarmovie.com/adventure
 
@Pris Not with the base language, no.
 
Its pretty fun... but you have to start over if you die
 
6:59 PM
@Pris Just like in real lif... oh wait
 
@LucDanton Looks like there's some compiler support. Mannnn doing compiler/proposal specific stuff feels so dirty. Like I need to take a shower after writing it
 
heh I'd best not play that
would never stop
 
@LightnessRacesinOrbit Its not that long... took me about an hour
Have you all seen Interstellar?
 
@Pris Not me. Pirate Bay doesn't have a good version yet.
Mar 13 at 14:18, by milleniumbug
I want better compile-time type introspection
 
user1804599
> If no return is found and if the last statement is an expression, its value is returned. If the last statement is a loop control structure like a foreach or a while, the returned value is unspecified.
 
user1804599
7:03 PM
> unspecified
 
user1804599
 
lol Perl
It's almost as bad as PHP
 
@Pris yes
@milleniumbug CINEMA
 
@milleniumbug Good call. The imagery in that movie is way better than the plot imo... watch it on a good copy
 
watch it at the CINEMA
fucking pirates
 
7:05 PM
piracy is a symptom of the current economic model wrt digital content... its not going away
 
@Pris That's neat.
 
piracy is actually a symptom of humans being cunts
but the economic model makes it easy to (a) do, (b) falsely justify
 
@LightnessRacesinOrbit It was just a thought, I'm not justifying it
 
7:07 PM
o wait
 
@StackedCrooked Did you mean, "copyright is a weakness and piracy is the cure"
 
ya can't joke about that stuff
 
user1804599
Cool.
 
can't joke about flags
what a world we live in
what a time to be alive
 
Xeo
7:08 PM
ffs
 
just waiting for 2 minutes to elapse brb
 
user1804599
In Perl, 0 is false and '0' is false. However, '0 but true' is treated as 0 in numeric contexts, but true in Boolean contexts.
 
Xeo
(max 13 chars)
bastards
 
no idea what you're talking about Xeo
this is an English chatroom
 
@LightnessRacesinOrbit Its less about people being cunts and more about people trying to justify why they should pay for something that already exists and requires virtually zero cost on behalf of the provider to distribute. In the end if you believe in copyright the author should have final say over distribution rights, but its an absurd situation in the first place
 
7:09 PM
... told you
 
@Xeo that's so silly
 
@Pris lol virtually zero cost
 
Except AFAICS no cinema ever in my city shows this
 
come on!
 
Interstellar had a US$165 million budget
 
7:10 PM
@LightnessRacesinOrbit How much does it cost you to copy and paste a file on your computer?
 
Xeo
@StackedCrooked Especially the part at the bottom that says "These password requirements are for your safety"
 
Xeo
bullshit.
 
even most pirates have given up on that retarded argument, Pris
When you buy goods and services, you do not buy them at cost price. Ever.
 
7:11 PM
@Xeo noob retards
 
They are for fitting in their database column.
 
So saying "the cost to you for this individual transaction is nothing therefore I should pay nothing" is stupid
Especially as it's the cost of the individual transaction plus some non-zero fraction of the original production cost that you should be taking into account
 
Xeo
@FredOverflow Yes, I know that one.
 
so economically it's bullshit for two reasons
 
C'MON GUYS HASHES EXIST FOR A REASON
 
7:11 PM
(disclaimer: "ever" is not quite true)
 
@LightnessRacesinOrbit Why should the production cost be factored in? The thing has already been created
 
and who paid for that?
 
@Pris lolwut
 
Who cares? It's done already. Thats the point.
 
I wonder how cache friendly hash maps are. Haven't really looked into that yet.
 
7:12 PM
what the fuck
no it's not
 
@Pris When you buy apples, do you only pay for the transportation costs?
I mean, the apples are made already.
 
The studio expects to get a return on the investment needed to fund it
 
You wouldn't download a car
 
They didn't just go "here you go have $165mil, btw if you make any of that money back it's a bonus! yay!"
 
@R.MartinhoFernandes I pay for the farming costs, housing costs, transportation costs etc
 
7:13 PM
Actually I would.
 
@milleniumbug it won't be long
 
When you buy a computer, I bet you don't pay for production either.
It's made already.
 
user1804599
@StackedCrooked For which operations?
 
@R.MartinhoFernandes In all these cases I'm getting something consumable in return
 
@райтфолд lookup
 
7:14 PM
Entertainment is consumable
 
user1804599
@StackedCrooked Depends on the implementation.
 
It amazes me that people think they should not have to pay for experiences
 
@райтфолд ..thanks
 
@LightnessRacesinOrbit Maybe if you pay to watch it in a theatre. That's consumable service
 
Xeo
Oh, fun stuff. They also got this "security question" bullshit going on
 
7:14 PM
that nontangibility is somehow an argument
 
@райтфолд how bout stdlib++ and/or libc++
 
@Pris you're deluding yourself. this is a non-argument hiding a fundamental character flaw and you should go see a psychiatrist tout de suite!
 
Xeo
Of course without allowing me to type a custom question, and with only the really easily researchable questions available.
Sigh.
 
user1804599
@StackedCrooked I don't know. Try it out.
 
Xeo
@Pris wtf
 
7:15 PM
@Pris Yes. In all cases, which is why I asked for the difference.
 
user1804599
It's probably terrible for large hash tables.
 
Xeo
That argument is so... wrong, I don't even know where to start.
It's not even an argument anymore.
 
@Xeo You don't have to. It's done already.
 
user1804599
Because it's likely that elements are linearly distributed across the buckets.
 
@R.MartinhoFernandes The difference between what?
 
user1804599
7:18 PM
> sub postfix:<!> { [*] 1..$^n }
> 8!
40320
 
user1804599
This is absolutely amazing.
 
@Pris Covering the costs associated with making one thing but not another.
... on the basis that it is done already (WTF?)
 
I pirate things too but you're embarrassing me.
pls stop
 
it's all besides the point anyway. no matter why a thing has X cost, that's besides the point. someone has said "I will give you X in return for Y." You don't just go "I don't think it's worth Y to me so I'll fucking take it for 0 instead. Ta". You shrug your shoulders and sigh and say "Hmm I don't want to pay Y so I won't take that thing."
and this is so basically fucking obvious that I don't understand why anyone bothers to try to defend piracy
 
7:21 PM
there's this guy streaming that I'm watching for the first time
it's also the first time I hear "would of" in spoken english
 
now, doing piracy and trying to defend it are two very different things. I want you to know that I realise that
 
@AlexM. You mean "would have"?
 
I can see why so many US guys make the mistake in written en
it really sounds like "would of"
 
@LightnessRacesinOrbit Im not defending it, one of the first things I said was if you believe in copyright, the author should dictate the terms of distribution
 
@R.MartinhoFernandes yep
 
7:21 PM
You're certainly not defending it, not with that logic
;p
@AlexM. "would've"
 
But with consumable goods and services you have to continually produce something for a return
 
@Pris Yes, like how movie studios have to continually produce movies for a return
 
I don't think "consumable" means what you think it means.
 
@LightnessRacesinOrbit I can hear the v in would've, this is more of-ish
 
I think he means "tangible"
Which is funny because even when you fix that, he's still making no sense
 
7:23 PM
With digital content once you make it, its already done. Like think about crowdfunding. If you get 500k to make a movie, and you make it, thats it. You've paid all teh people who were the content creators, and the consumers have paid as well
 
I guess he's talking about there being a cost of reproduction of physical items, as if that matters somehow
 
@AlexM. You can also hear the v in "of".
It's not /ɒf/. It's /ɒv/.
 
@Pris Yeah but when someone enjoys the movie the creator has a right to benefit from that enjoyment. It's called trade. Whether the original costs were already met or not.
 
@Pris Game patches don't exist
 
The consumer gets satisfaction/entertainment/happiness; the creator gets a bit more money.
To say "no you can't have money for adding value to my life because I think you've already been given enough" is to be a cunt, as previously established
 
7:24 PM
lol they removed the "repeat" button on iTunes
gg Apple
 
OMG IT FUCKING WOOOOORKS
 
@LightnessRacesinOrbit This is just nonsense. Do I get my money back if I don't enjoy the content?
 
@Pris Is that relevant?
 
@Pris Do you get your money back if you ate an apple and later decided you are not partial to apples?
Your likes and dislikes are your own responsibility.
 
7:25 PM
@R.MartinhoFernandes It is if you say "The consumer gets satisfaction/entertainment/happiness; the creator gets a bit more money"
 
The fact is, entertainment material was provided to your brain for consumption.
What your brain did with it is irrelevant
 
"brain"
 
@Pris add on more items if you want
 
@LightnessRacesinOrbit No because I consumed the apple
 
@Pris You consumed the entertainment
 
7:28 PM
@Pris You can't unwatch the movie
 
good way of putting it
 
@milleniumbug that's precisely why you should sue!
 
Woop woop
 
You can uneat the apple
 
7:29 PM
@Jefffrey No. You can throw it up but that's not the same thing.
 
If you throw it up you have uneaten the apple
 
@Jefffrey but its been modified :p
 
Irrelevant
 
Real world needs version control
 
Apples change atoms every second
 
7:30 PM
@Jefffrey wrong
 
They keep being modified
 
So you can rollback the world to the previous commit
 
I would hack the datastore and remove all historical versions of certain people
 
Like me
 
no
like Hairy Wankfin
 
7:31 PM
@Jefffrey Would you eat my apple-puke?
 
@Pris What does this have to do with anything?
 
That the value of the apple changes once ive eaten it
 
Yes, but it's irrelevant
 
gets popcorn
 
ok
 
7:32 PM
damn, good thing I finished my popcorn
that was disappointing
 
So, piracy is a symptom of this economic model.
The better economic model is, of course, to have someone pay to make movies with money that comes out of somewhere, and then since it's made and distribution is free or cheap, it should be freely available for everyone to enjoy and no one pays a thing for it.
 
@R.MartinhoFernandes Then there's no economic reward for the quality or popularity of the movie. There's no proportion to how many people actually enjoyed it
 
Money laundering would not take that up. When money laundering is does not work as a justification for a business, it's a sure sign it sucks.
 
@R.MartinhoFernandes Sounds like a terrible idea
 
@Jefffrey Not my idea.
 
7:36 PM
@JerryCoffin Wow. It was a single line.
 
Once it's done, no one should charge for it.
@Pris So why would anyone make movies, then?
 
out of the goodness of their hearts
like FLOSS
 
Going to the cinema would require going out of the flat
 
@JerryCoffin Would have loved to counter with assignment II. "Create a webservice that writes simple websearch programs on demand"
 
Money laundering would not take that up. When money laundering does not work as a justification for a business, it's a sure sign it sucks.
 
7:37 PM
yes yes I mean the subset of FLOSS that is financially free to procure and to use
 
@R.MartinhoFernandes They've already been paid for it. And I never said thats how it should be, just that to me its absurd
 
@R.MartinhoFernandes You found an anti-dedup method :)
 
@Pris Who? With what money?
 
@Pris Wait, it's absurd?
 
7:38 PM
@R.MartinhoFernandes idunno, crowdfunding?
 
Isn't it what you were advocating for?
 
so now you're talking about a completely different model and using its benefits to defend the original model
 
@Pris Interstellar was not crowdfunded, though.
 
>
@LightnessRacesinOrbit Its less about people being cunts and more about people trying to justify why they should pay for something that already exists and requires virtually zero cost on behalf of the provider to distribute. In the end if you believe in copyright the author should have final say over distribution rights, but its an absurd situation in the first place
 
"already exists" is the fundamental absurdity in your reasoning.
Movies don't "already exist".
They're not an intrinsic part of our universe.
 
7:40 PM
it already exists because other people paid for it
therefore I shouldn't have to pay for it
 
They only "already exist" after a lot of money has been put into them.
 
idiots don't grasp the problem with that
 
And that money did not come from the people that will ultimately benefit from the utility of the movie.
@Pris And don't authors already have final say over distribution rights? That final say including the choice of giving those right away to someone else.
 
-5
Q: My program is crushing

Tudor IonelThis might sound silly to you but i have this problem and i don't know to solve it. When i input cx=1 everything is ok but when i try to use more complex numbers like 0.987 1.123 etc it crashes.. how can i fix this? #include <iostream> #include <math.h> using namespace std; int main() ...

@R.MartinhoFernandes Unfortunately often not really
 
love is in the air!
 
7:43 PM
@R.MartinhoFernandes Yeah, of course
 
The only place this falls down slightly is that creators don't have much say in this process. The distributors do.
 
love is in the air, what a good time to be alive! — Filip Roséen - refp just now
 
@LightnessRacesinOrbit They signed a contract giving the other party the rights. It was their choice.
 
@R.MartinhoFernandes Some would argue that in many cases it was either that or work in a supermarket, and that the latter choice was substantially undesirable
Not necessarily me, but some
I think this is also called "strike logic"
"I don't like how much you pay me, and I don't want to do another job, so I will extort you into paying me more" :P
 
Do any of you guys know reactive extensions well? I have an issue with FirstAsync not disposing as it should.
 
0
A: My program is crushing

Tudor IonelHaha :D my program has a crush on me. Lel. When i build it.. there are no errors or warnings but when i run it and type cx=0.987 the application is closing. If i type a natural number.. let's say 1 it runs without problem.

he hails from my homeland
 
@AlexM. bbehhhhh
Did you know, in 2014 there were 1.2m goats in Romania's breeding system?
ercg2014.org has all the info
European Regional Conference on Goats 2014
hosted in Oradea
 
Xeo
... hungry
I should order something
 
user1804599
@Nican :(
 
7:55 PM
Are we still talking about 12"s?
 
I'm hungry again now too
feck
beer soon tho
 
12" is about 30 cm
 
Xeo
I've eaten 2 bananas, a few grapes, and an ice cream sandwich
 
@Nican nice I can file bugs against it sucking
6
 
@milleniumbug Have you considered a career in adult movies?
 
7:58 PM
@FredOverflow I'm just providing info for the people not used to inferior measurement systems.
 
user1804599
Perl is nice.
 
user1804599
$! and $@ variables.
 
@райтфолд I'm gonna get you a Perl necklace for your birthday.
 
user1804599
Thanks!
 
What is Microsoft going to do after burying Internet Explorer? Internet Exhumer?
 
8:02 PM
@FredOverflow Project Spartan.
 
That's not punny.
 
Same Javascript engine/rendering engine, but from what I heard, finally a proper API for writing extensions.
@FredOverflow Sorry. :(
 
It's not your fault.
 
woah bus suddenly became early
gtg
 
Does "early" derive from "Earl"?
 
8:05 PM
"became early"?
 
Maybe it was destined to be late but then travelled through time or something.
 
Xeo
kay, ordering something. suggestions?
 
kebab
 
@LightnessRacesinOrbit can someone put in the last vote to close that garbage
 
@Mgetz I already did
 
8:16 PM
four of us did... it requires five
 
@FredOverflow Yes. It's called the Earl Greyhound for a reason
 
and if someone does... please also consider a delete vote on stackoverflow.com/a/29131412/1938163
 
@Pris Brilliant. You've just established a splendid reputation for me and, as it appears, to most loungers :)
 
earl greyhound is a great band
dat music
 
@AlexM. Wait. I just made that up. It can't exist, or they infringed my right to come up with original puns
WAT is that sourcery? Was it MatLab generated Fortran code translated to C? — sehe 6 secs ago
 
8:22 PM
I can't fucking believe that it works
It devastates every player it encounters
 
> My program is crushing my dreams of becoming a programmer
 
@FredOverflow cute
 
@FredOverflow My program is crushing on the hot new router down the hall.
 
Saw this while moderating on reddit: reddit.com/r/healthcare/comments/2ze1v5/…
> submitted 1 day ago by Vlad_From_Ukraine
 
@BartekBanachewicz I assume you've seen this? Why Geometry Shaders Are Slow (Unless you’re Intel)
 
8:30 PM
hello. Should std::vector<const std::shared_ptr<dummy>> dummies; compile?
clang 3.7 trunk compiles, but gcc 4.9 does not. gcc complains about some delete operator so I thought it is related to sized deallocation which is supported in gcc 5, but how is it related?
hmm, nvm, my mistake, objects in containers should be assignable
 
should probably be std::vector<std::shared_ptr<const dummy>> ?
vector<const T> is not allowed
11
Q: Does C++11 allow vector<const T>?

HighCommander4Container requirements have changed from C++03 to C++11. While C++03 had blanket requirements (e.g. copy constructibility and assignability for vector), C++11 defines fine-grained requirements on each container operation (section 23.2). As a result, you can e.g. store a type that is copy-constru...

@райтфолд I tried it and it was fast.
 
user1804599
Nice.
 
I wonder if basic_string<T> could be used as a vector<T> with smaller object size,
 
user1804599
What do you mean?
 
GCC's COW version of std::string has size of one pointer.
While vector has size of three pointers.
 
user1804599
8:44 PM
Right, that'll really be your bottleneck.
 
I was just experimenting with this FlatMap. And I find the object size of two vectors a bit much.
 
user1804599
Because you only use vectors with capacities of 16 bytes.
 
If vector used tagged pointer then it would need only one pointer storage. And size would be limited to 65535.
Hm, it would not enable growing though..
Never mind that.
 
Why would a flatmap have two vectors
 
I was thinking that binary search in vector<T> might be faster than vector<pair<T, U>>.
Just foolin around.
Didn't even benchmark anything yet.
Once the key is found, the value will be at the same offset.
 
8:48 PM
@sehe I think he's saying sizeof(FlatMap) == 2*sizeof(std::vector)
 
Huh. How would that work.
 
Yeah, but he probably got that..
 
Only to store stateful comparators/allocators?
 
Basically vector<pair<Key, Value>> is changed to pair<vector<Key>, vector<Value>>. For the rest nothing much changes.
 
@StackedCrooked What on earth would be the difference? It's the difference between compareby(mem_fn(&SomeStruct::first)) and compareby(mem_fn(&SomeStruct::some_other_function_or_member))
@StackedCrooked huh. I have never consider a FlatMap could be implemented in that way. I sincerely wonder why
 
8:50 PM
Less cache lines are traversed when searching through vector<key>
 
hello everyone
 
vector<pair<short, long>> would be quite wasteful.
 
IIRC Chandler explains why (it's two vectors) in his talk?
 
it would store 4 items per cache line, while vector<short> can store 32 keys in one cache line.
 
user1804599
$. is a nice variable in Perl.
 
@StackedCrooked Yes, and more are traversed to get the value as well, as well as any other operation will be definition be doubled in cost. Also, reallocations become twice as expensive, and insertions/deletions, already the Achilles heel of flatmap/vectors will become twice as expensive
 
Allocations are not really an issue if I reserve.
 
user1804599
Ok, so I figured out an algorithm to turn a stack-based language into SSA.
 
@StackedCrooked I mean, I realize there could be situations that benefit from the separation but (a) only read-mostly patterns (b) small key, large value (c) I hadn't thought any general-purpose implementation would do this (d) unordered maps "feel" like should be superior in most cases
 
Anyway, you could be right. I still haven't benchmarked.
 
8:54 PM
Citeh are even more shagged than Perl.
 
And it's for a project that I already completed (using boost::flat_map) a few weeks ago. This is just after processing.. :P
 
@StackedCrooked You're right according to storage efficiency in worst cases. But then it's just trading space for speed - again (yawn).
I do expect the cache effect to smoothen the difference in some situations, yes
@Pris Why should I click on this - very - smelly link?
 
@sehe most SO clone sites just copy the info but have their own layouts and stuff, this one looks identical. I guess dont click on it unless you're up to date and have an ad blocker or whatever since it might have malicious scripts
 
@Borgleader I don't remember anything like that.. (Always interested in a link!)
 

« first day (1614 days earlier)      last day (3343 days later) »