« first day (1486 days earlier)      last day (3464 days later) » 

2:06 PM
@mrm Loose associations: Boost Interval Container or make an equal_range function?
 
fuck
 
mrm
@sehe Thanks for the tip! I'll check out the interval container :)
 
only useful iff the sets are contiguous ranges
@Jefffrey ok, name a date and place
 
user1804599
@Jefffrey her right in the pussy
 
user1804599
@sehe you at my home
 
2:07 PM
opengl headers are missing
 
user1804599
No, they aren't.
 
if you see them, call 48627636802
 
user1804599
#include <OpenGL/gl.h>
 
user1804599
Add -framework OpenGL to clang flags.
 
yeah, where are they really located?
 
user1804599
2:08 PM
/System/Library/Frameworks/OpenGL.framework/Headers
 
user1804599
Or some place like that.
 
because they sure as hell are not in "/System/Library/Frameworks/OpenGL.framework/Header"
yeah, I don't have the Headers folder in "/System/Library/Frameworks/OpenGL.framework".
 
user1804599
Open Finder, type "gl.h" in search bar, click (+), select "System files" and select "Are included"
 
user1804599
Select the result and in Finder's footer you'll see the path.
 
user1804599
2:11 PM
Or "locate gl.h" in command line.
 
I have no idea what you mean
 
user1804599
Click + only once silly.
 
user1804599
Then instead of Kind select System files.
 
user1804599
If it's not in the list, enable it by clicking the last item in the list.
 
ok got it
yeah, doesn't show
 
user1804599
2:13 PM
What is the output of locate gl.h command?
 
> WARNING: The locate database (/var/db/locate.database) does not exist.
 
user1804599
lol
 
> To create the database, run the following command: ...
 
user1804599
y u no enable locate DB
 
nobody asked
 
user1804599
2:14 PM
locate is great
 
user1804599
But yeah if Spotlight doesn't find gl.h then it probably doesn't exist.
 
I'm downloading "all" command line tools anyway
 
Maybe it's in "iOS 7 SDK"
fuck you apple
@rightføld yeah, that's my plan B
but I'm pretty sure I have the latest command line tools
 
@Jefffrey all of them?
 
user1804599
2:18 PM
Ah, maybe that also installs jni.h. :D
 
@thecoshman "all" of them
 
@rightføld ew, jni
 
Ell
I forgot where I got up to on my JNI wrapper
 
@R.MartinhoFernandes have you looked at Rusts benchmarking yet?
@Ell JNI wrapper for what?
 
Ell
@thecoshman c++ wrapper thing
c++ wrapper for jni
 
2:23 PM
@Ell huh?
 
Ell
like how sol is a c++ lua wrapper
 
user1804599
Do you also support subclassing Java classes top kek
 
oh well
 
user1804599
lol
 
Ell
@rightføld Not yet :P
I don't support all that much yet
I support methods
 
2:26 PM
also I think I just won the "Longest turd of the week" award already
 
@rightføld subclassing a Java class into a C++ class?
 
@Jefffrey yes, being the sole participant, that's pretty much a given
 
Ell
Why is text editing slow on my computer o.O
 
user1804599
Because you don't use Emacs.
 
@Ell Emacs makes any computer slow ? :-)
 
Ell
2:39 PM
@rightføld I said text editing :P
hmm it seems to be just terminal things which are slow
 
user1804599
Terminals are slow.
 
huh, I guess I should std::result more than std::option for stuff that fails... like "open_resource()"
 
@rightføld Most terminals don't move at all. If they moved around, how would the trains find them?
 
@rightføld Are you a floating point expert?
0
Q: Is the rounding mode of large float literals well-specified?

FredOverflowConsider the following code: System.out.printf("%f%n", 123456796f); This prints 123456800 on my system, so the value was rounded up by 4. Is rounding up mandated in this situation, or could the compiler have decided to round down by 4 just as well, yielding 123456792?

 
3:02 PM
@JerryCoffin Ask robot - he's an expert.
7
 
holy shit, I think I found the solution to drop energy drinks
the choco cappuccino the vending machine makes is so tasty
 
pull new changes from just a 10man team -> VS freezes up for nearly a minute reloading all the changes.
 
@Puppy check your gitignore
if you have a lot of not ignored files it breaks pretty badly
 
Xeo
@Puppy Why do you have all changed files open? :P
 
I most assuredly don't
 
Xeo
3:12 PM
Then your PC sucks, apparently. VS reloads everything smoothly for me after a sync
 
Ell
I wonder if running in recovery mode is bad for performance
 
phew
Just finished a merge that took me two days
 
Ell
@Mr.kbok sorting the conflicts?
 
@Ell Yeah. Also shitty SCM. Also half a day of SCM downtime. :P
 
Ell
haha
I'm just doing a tiny merge now :P
 
I wish I never had to merge. Most changes could be worked out by a better tool.
 
Ell
@Mr.kbok what tool do you use?
I use meld
@TonyTheLion I kind of do/don't
 
@TonyTheLion Not sure why. A car is a confined space so any smoke is just gonna be super concentrated and give everybody else in it cancer. I guess it's another thing to ban it if you're the only guy in the car, though.
 
Ell
I think it's wrong to smoke waround children
also what puppy said
it's really bad in the car
 
I think people should be able to smoke in something they own
 
3:30 PM
whilst giving other people, who may have no choice in the matter (esp. children) cancer?
I mean, like I said, I think that it's a different thing if you're alone in the car.
 
user1804599
@FredOverflow no
 
@Ell RTC with beyond compare 3
 
not Git/Mercurial?
 
RTC is horrible, plain and simple; BComp makes it a little less horrible but it has a limited scope
 
@Puppy yea thats bad, I agree, the point is though, where's it going to stop with these kind of laws, next thing will be, "oh you're not allowed to smoke in your own house/garden"
 
3:32 PM
@TonyTheLion If you have children, then I'd totally agree with that- depends on the house/garden really, but I'm in favour of any law that prevents people from giving their children lung cancer.
 
@Puppy No, and I'm not sure why. I'm working on migrating to git atm
 
Considering we have safer alternatives like e-cigs I don't really see a problem with banning traditional cigarettes anymore.
 
Xeo
@TonyTheLion Fuck smoking and cigarettes. Ban from live, kthx!
 
Ell
@TheForestAndTheTrees I see a problem
people own their own body
they can do to it what they will
 
firstly, that's pretty dumb, but secondly, smoking isn't a "your-body" issue.
 
3:33 PM
@Ell but the smoke tends to leak outside the body too :p
 
it's a "Holy shit, I'm catching cancer from my parents giving me a lift to school"
 
Ell
They don't own other people's bodies I understand
but there are times and places where smoking doesn't affect people that don't want to smoke
 
really?
 
Ell
@Puppy are you serious?
 
I guess that all of those surgeons who spend their time treating lung cancer patients must not have anything better to do with their time.
 
3:34 PM
@Ell when you're in a sealed room, and you shower and wash your clothes upon leaving? :p
 
Ell
@jalf When you're in a pub's smoking zone for example :P
 
@Puppy I don't know of anyone who smokes in cars anyway, but I would support such a law if the the penaties were reasonable compared with other motoring-related transgressions, eg. using a phone. What annoys me is that there can never be any support for fines/penalties for 'real' motoring offences, eg.misuse/failure to use turn signals correctly - a measure that would initially bring in billions/yr for the treasury and then very quickly remove congestion as 95% of car users are banned.
 
@Ell So no one will smell anything once you leave that?
 
Xeo
@TheForestAndTheTrees Unfortunately, the government does, cause nom nom taxes.
 
Ell
@jalf People will smell it, but I don't believe the physical consequences will be severe enough to other people if the person isn't actively smoking
 
3:35 PM
(also, before anyone tears me to pieces, I'm not saying smoking should or shouldn't be banned. Just pointing out that it's pretty hard to smoke without bothering non-smokers with it)
 
I think its overbearing, you don't have to agree with me.
 
@Xeo Yeah that's true, sadly. They've stuck themselves in a position of benefiting from people poisoning themselves.
 
@Puppy With a national health service, the surgeons are being more than paid for by the smokers in taxes.
 
Also, they're hypocrites banning smoking while they make so much money from it
 
that's not really necessarily the whole picture.
 
3:36 PM
@Ell one of my coworkers smoke. Sitting next to him for a day gives me a headache. Even though there's no smoking in the office, and he goes outside for smoke breaks
 
@jalf You must come from a part of the world where smoking is still allowed in public places to parenthesise your opinion like that :-)
 
there's only a finite number of surgeons.
 
Ell
@jalf that's fair I guess
 
@TonyTheLion you mean like people trying to limit global warming while benefiting from being able to buy fuel for their cars? :p
 
@Ell smoke smells like ass. people who smoke almost always smell of ass
 
3:37 PM
@jalf lol
 
In a week or so, I'm off on my day-trip to Tenerife to avoid the tobacco tax.
 
@TonyTheLion I'd tend to agree that we should just cut the crap and ban smoking.
 
Ell
But we don't force people to take showers
 
@Puppy ban the cut and smoke crapping?
 
@Puppy why waste them on people who want to commit perhaps the slowest form of suicide ever?
 
Ell
3:38 PM
I'm sure I'd feel positively sick sitting next to someone with severe BO for a day :P
 
My point is people should still be able to decide if they can smoke in their own fucking car
 
Ell
@TonyTheLion I think so too
 
@Ell every once in a while, you encounter someone who makes you think we should though :p
 
@TonyTheLion Agreed.
 
@TonyTheLion of course they should. It's every man's right to smell like turds.
 
Ell
3:39 PM
puppy just doesn't like freedom :3
 
@thecoshman I wonder if that's written down anywhere :p
 
If you pay 15,000 GBP for a car, you'd sure as hell want to have the freedom to smoke in it, if you're so inclined
 
I'd also want the freedom to murder in it if I was so inclined.
 
@thecoshman Exactly
 
okay, something with the merge went really, really wrong
 
3:40 PM
@jalf Not in such a politically-incorrect manner, I'm sure.
 
I do agree with them saying you shouldn't force kids to suffer in a car with you though.
 
@thecoshman Yes.
 
Ell
@Puppy really?
well you're a monster then :P
 
the kids part I can get, but does that necessitate a law?
 
not me personally.
 
3:40 PM
They should charge parents smoking around their kids or while pregnant with attempted murder.
 
but if I was an axe murderer.
 
@TonyTheLion sadly people are still failing to grasp "don't be a dick"
 
@TonyTheLion Yes, it really does.
 
But that's just my silly opinion on the matter.
 
people do all kinds of crazy shit with their kids.
 
3:41 PM
@Puppy I disagree
 
Ell
@TonyTheLion stupid people ruin everything
 
@Ell I guess, this is probably what it comes down to
 
@rubenvb Well... driving is also dangerous, especially if distracted. Driving with kids arould be banned and punished with massive fines.
 
@MartinJames that's a great argument you make there...
Please try again.
 
@TonyTheLion tbh, I think the evidence is pretty strong that it does take a law to protect children from some parents' bad habits
 
3:43 PM
Children are more distracting than mobile phones, so having them in a car should attract larger fines.
 
@MartinJames not if you sedate them :p
 
@MartinJames Alternatively, we should simply replace drivers with robots.
 
also, I think I've spotted a flaw in that line of reasoning
 
@Puppy Then they would all get lost.
 
drivers are more dangerous than kids. Ban people from driving cars
 
3:44 PM
BAN ALL THE THINGS
 
most car accidents happen because of the driver. Only a small number are because the driver was distracted by their kids
@TonyTheLion Twice!
Just to make sure
 
<facepalm>
 
Ell
BAN FREEDOM
 
@rubenvb std::unique_ptr<int, decltype(&free)> p(static_cast<int*>(malloc(sizeof(int))), &free);
 
Ell
why don't we all just become robots for the state while we're at it
 
3:45 PM
@jalf most car accidents happen because of the driver. Only a small number are because the driver was distracted by their mobile phone.
 
The ampersand is important in decltype
 
@milleniumbug I'll try that once my IDE stops segfaulting -_- Thanks.
 
@rubenvb Eclipse?
 
@MartinJames Qt Creator, I messed up my MSYS2 install methinks.
 
@rubenvb lol
 
3:47 PM
I should stop trying to fix it while it's not broken :-o
 
@MartinJames yep, and you were reasoning that we should find the most dangerous risk factor (children) and ban that. And by that logic, drivers, not children, are what we should ban
 
@jalf Cars need drivers. Cars don't need children or mobile phones, or fags.
 
both children and drivers are mandatory
smoking is not.
 
Hmm
 
@MartinJames So we should legislate after what cars need?
cars can't even vote :p
 
3:51 PM
@Puppy Children are mandatory?
@jalf ..and that's the real issue.
 
@MartinJames Says the guy who has clearly been driving without children. Hope the cops don't find you. :p
They're mandatory, you know
 
@jalf lol
 
huh
 
Ell
@jalf I don't think he can drive
 
3:52 PM
apparently we throw random exceptions in debug mode.
 
@Puppy added lulz
 
@Ell That's what Anne says:)
 
Ell
@Puppy Sir, where are your children? Oh I see. Sorry I'm placing you under arrest for lack of possession of class A kids
 
user457812
Class A kids?
 
user457812
3:54 PM
How do classify the kids?
 
Ell
Idk :P
Not my law :L
 
user457812
Something something way abstain mother.
 
@nil You have to get an assessment for them. A certified sound-and-movement camera is fitted to the car and the kids driven around for an hour. Class A kids actually cause an accident.
 
Does someone here have cabal installed?
 
user457812
Interesting.
 
4:01 PM
nvm
 
Ell
If I'm not modifying a parameter, do I pass by const ref or value?
 
@Ell Is slicing an issue?
 
Ell
@milleniumbug No
 
@Ell Is speed a concern? How big is the object?
 
@Ell The recommendation is still "by const ref".
 
Ell
4:06 PM
@caps It's either a primitive or a small object
 
Unless: you copy your object in the function, or it's a primitive or small.
 
Ell
The compiler will copy a primitive if it's faster won't it?
 
as-if rule applies
 
@Ell It might.
 
(as always)
 
4:08 PM
@milleniumbug If it's an integer there is basically no point in passing by const reference
Because it is almost certainly implemented as a pointer to an integer
which is typically also an integer
 
@caps This case is covered by "it's a primitive"
 
if it is a simple struct...
 
Ell
Or I could just copy primitives and take objects by const ref?
 
const reference is a little faster
@Ell Do that
@milleniumbug Yes
 
Ell
that's what I do currently, was just checking if it was best
 
4:26 PM
@caps prove it
actually the compiler might inline and enregister the whole thing. Even might pass individual members in register, regardless of inlining
@Ell it is. usually. For small objects it could vary, but in the cases where it actually matters the compiler should be smart enough to "optimize through" the reference anyway
 
also depends on a thousand ABI and function details.
like whether or not the callee-saved registers are already in use, whether the type has a complex copy constructor, etc.
 
@sehe if it's not... even though it could the next byte up the stack, if that cache line has been invalidated it can still be a very serious hit.
 
fucknuggets I'm hungry
 
@Mgetz Anyways, stacks are inherently thread-local so I'm not sure how it really applies hiere
 
@sehe it's more an acknowledgement that interrupts happen
 
4:33 PM
the whole thing is totally out of your control and beyond any reasonable ability to reason about it unless you inspect the generated assembler
 
precisely
 
pretty much
 
there's no point worrying about it until you have a problem and then the only answer is the profiler
 
and yes, the optimization that would make it beneficial to pass a particular small object by (individual) value(s) is easily made by the compiler
 
@Ell Pass by value if it fits inside a register.
 
4:35 PM
@Mr.kbok And the compiler didn't need the registers for anything else.
And the ABI supports passing a parameter of that type inside a register.
 
@Mr.kbok again... smart compilers and even abis take care of that, for example ARM does that by default even for structs
 
@Puppy How are you going to know what the compiler does with its registers?
 
@Mr.kbok You can't, which is why your advice is pointless.
it's predicated on a totally unverifiable assumption.
 
Which was?
 
that passing by value of a register-sized object makes the compiler put it in a register
 
4:38 PM
EX: on win32 variables are ALWAYS passed on the stack for the __stdcall convention
 
No, the rationale is that if it fits inside a register, then it's not more expensive than passing a pointer
 
Ell
Hmm. I think I want to use a global
 
Hence equivalent in the worst case, but better in the best case
 
well, that's wrong, because you can make a type of 1byte size but make it non-trivially-copyable.
 
@Mgetz On win32 a lot of crazy shit happens, but parameters are not always passed on the stack
 
4:41 PM
copy elision
meh, it's always the same talk
 
@Puppy Of course, you can make up a lot of crazy requirements on your class so that the heuristic is invalid. It's a heuristic though: A general rule, to use when copying makes sense.
 
yes, it's so crazy for a class to be non-trivially-copyable.
 
@Mgetz Those are respected across ABI boundaries but not inside your linked program.
 
@Mr.kbok only if whole program optimization is turned on
 
4:43 PM
Which you will, if you care about performance in the first place
 
and the compiler's inlining mechanisms decide it's worth it to inline.
 
Cheese and bacon oatcakes:)
 
there is no point speculating about what assembly the compiler will create.
 
Yes there is; there are ways of writing your programs such that the compiler will have an easier time optimizing it.
Isn't that what calling traits, RVO, copy elision are for?
There are general rules about how the compiler will generate such or such code, and knowing those rules will help if you care about the performance of a given code with a limited scope
The only useless answer to these kind of questions is you can't know, because then you're just stuck with a mystery
 
it's no mystery
it's called a "profiler".
it's the only source of useful performance numbers.
 
4:49 PM
A profiler will tell you where the problem is, but not how to fix it
 
that's a disassembler
 
What's a what
 
@Puppy Most people seem to prefer thin air to profilers ;)
 
@sehe I didn't know it needed proving.
 
@caps There are those who ascribe to computer science and those that place their faith in the church of anecdote. We are in general the former.
 
user1804599
4:56 PM
Hello.
 
@rightføld Good to see you!
 
dat pun
 
nice
 
@TonyTheLion I would hope shingles aren't hot, that reduces their life significantly
 

« first day (1486 days earlier)      last day (3464 days later) »