« first day (853 days earlier)      last day (4078 days later) » 

11:00 PM
It's the fucking lack of optimisations and debug library with stuff like DEBUG ITERATORS
 
Well I would be happy to profile in release
 
Which are slow on purpose because they have fuckton of runtime checking built-in
 
yes debug iterators will KILL performance horribly
 
@DeadMG std-proposals. Something about template constexpr variables.
 
okey then
I'm retarded
 
11:00 PM
2 mins ago, by Cat Plus Plus
(Instead of this GetUniformLocation you could make a Uniform class that has operator= and caches the name inside)
Also this is a good way ^
 
@CatPlusPlus but it is cached. In the map.
 
@BartekBanachewicz I thought the .end() call was taking an awful lot of time. shoulda said something but I assumed you didn't profile debug build
 
Which is much more complicated thing than this
 
46 secs ago, by Bartek Banachewicz
I'm retarded
 
@BartekBanachewicz that requires a map lookup, cat's suggestion is virtually instant
 
sbi
11:01 PM
Are you deliberately obtuse? What about I want that built-in brake removed for 10k, or, at the very least, 20k, users, or, at the very least, slackened, so that they can post more messages in short succession. don't you understand? SO's 10k, or 20k users, are not "The Internet". And "these controls" are far from being "hardly seen". — sbi 2 mins ago
 
let's make it working in release first
 
You could keep around an iterator to the inside of the map but it's really overcomplicating it imo
 
In release my input is laggy. Any suggestions?
 
You suck
 
besides getting rid of Freeglut, of course
 
11:03 PM
Get rid of freeglut
(No, really)
It's an outdated piece of shit
Use GLFW at the very least
 
Haha, @DeadMG your latest post on the "generic RAII" thing made me look back at what I had said in the thread, and now I saw the insane example of the "loop advancement problem"... hahahahahahahaha
 
@R.MartinhoFernandes Inorite.
 
What loop advancement problem, it sounds funny
 
> I would be surprised to find out that other long time C++ programmers haven't seen similar problems with loop advancement -- because someone comes in a year after a product is shipping and while attempting to fix a bug adds a conditional continue to a loop which results in skipping over the loop advancement, producing a tight loop when that condition is hit.
 
sbi
@CatPlusPlus You are so predictable.
 
11:05 PM
@CatPlusPlus I've looked at GLFW but it's a fucking behemoth
 
@BartekBanachewicz Define behemoth
 
@BartekBanachewicz It is?
 
@CatPlusPlus has tons of crap I don't need
 
@BartekBanachewicz ... just use OpenGL directly?
why use some shitty C wrapper?
 
Oh no
 
11:06 PM
@DeadMG I am. I just need window management
 
Tons of crap
 
If I wrote window class myself cat would eat me alive
And I mean like shredding to pieces
 
@BartekBanachewicz Maybe it changed, but last I checked it had pretty much the same as glut.
 
I actually did that myself, because OpenGL frameworks were all terrible
Gah
It's haunting me
 
@R.MartinhoFernandes dude, it has its own thread class.
I am not using a library that creates a thread class
 
11:08 PM
It doesn't have classes, it's in C
 
You don't have to use the thread things.
It's completely self-contained, so you can just pretend it's not there.
 
Anyway if you insist on using freeglut, use input polling instead of those crappy callbacks
And if it doesn't have that, run
@R.MartinhoFernandes BUT UNUSED THINGS
 
@CatPlusPlus here: andrewlsandoval.com/scope_exit (grep for "loop advancement"). Basically, it's the problem that ++i in for(;; ++i) solves.
 
Ahaha
 
@BartekBanachewicz if debug iterators are hurting performance while debugging, you can #define _HAS_ITERATOR_DEBUGGING 0 to force it off. another strategy to work around horrible debug iterators is caching end(): for (auto i = x.begin(), e = x.end(); i != e; ++i) ...
 
11:11 PM
@doug65536 i will get it running in release
 
@CatPlusPlus Except he wants to use RAII for it. shrug
 
okey, you were right, I'm retarded
on release GetUniform location is taking like 0.01% of app time
 
Also, his justification with future maintenance relies on the hidden assumption of zero testing.
 
eh
I'm not a fan of "Test!" being an answer to correctness issues.
 
still, the input lags dammit
 
11:14 PM
and I think that if you can prove correctness instead of having to test for it, that's a winner.
@BartekBanachewicz Input lag != rendering problem.
 
@DeadMG Sure, but if you add a conditional somewhere and don't even test that condition, you suck.
 
@doug65536 lol. I need this
@DeadMG i know. but the rendering calls are the same, right? It's not like there's debug driver
 
@DeadMG once you've written enough tests that you were 100% sure would always pass, only to have them fail later, you will appreciate tests
 
@R.MartinhoFernandes Well, I don't ever write tests, but
what I'm saying is that it's better for zero-tests to be OK because correctness is enforced by compiler, than to have to write tests.
 
@DeadMG The compiler does not know how the code should behave.
And it's not even about actually writing tests.
 
11:16 PM
@R.MartinhoFernandes No, but it does guarantee that if you're in a for loop and you use continue, the loop is advanced.
 
All it takes is one run of the code.
If you change code and don't even hit your path once, you are a terrible programmer.
 
true, even I do that.
 
Because it's a mistake that will always manifest itself clearly.
 
in this particular case, it's moot anyway, since there's a perfectly good safe compiler construction to guarantee correctness in this fashion.
 
That's so hilarious.
 
11:19 PM
I know
 
@zerkms That's like Q. "why is the steering wheel on the left in UK cars?" A. "because American cars have automatic gearboxes and you need a driver's license." It's all true, but it has no relation — sehe 35 secs ago
^ interesting question by the way
 
I should try out QuickCheck++ one of these days
 
std-proposals is fool of maniacs.
> You want to make an exception for one specific case.
I think Nicol nailed about 50% of the threads there.
 
yep
 
(pun intended above)
 
11:22 PM
we really need a "Vote to close because this is terrible" thing.
 
@R.MartinhoFernandes you mean, typo intended?
 
@DeadMG +1
 
@DeadMG yes, but will the next guy re-prove the correctness when he changes it? he won't
 
@doug65536 He doesn't have to because the compiler does it.
 
11:26 PM
Whoa. Mind blown. I dismissed user defined conversions alltogether because OP said the thing was dynamic. I thought UDC were never considered unless at compile time (i.e. not in generic settings) — sehe 16 secs ago
^ The Skeet did his job
 
There are way too many people wanting to add entire new features solely to fix a minor syntactic inconvenience; people wanting to add entire new features solely to create a new syntactic inconvenience; people proposing stuff in ways that no one can even understand what they are on about; people wanting stuff that is already there; people wanting stuff that just plain doesn't make any sense at all; people wanting existing features but worse; ... I could go on.
 
That and properties.
 
And that's just in the threads that I actually care to look into.
 
> people proposing stuff in ways that no one can even understand what they are on about
lol
 
> The concept of the library is to provide a set of helper classes for implementing functor based patterns, most notably patterns that involve attenuation of the authority that a reference to an unattenuated functor may imply.
@StackedCrooked I'm serious.
 
11:33 PM
I know.
It's funny because it is like that.
There's always a couple of weirdoes.
 
Oh, and there was the CADRe guy too.
 
Whoa, Jon Skeet got 471 rep today
but on January 28 he got 515.
March 9th he got 871 rep stackoverflow.com/users/22656/…
 
Are there any notable new features that have a chance of becoming accepted in the next standard(s)?
 
@sehe I'm pretty sure dynamic causes dynamic recompilation of code using that, and it even caches variations for each call site
 
I doubt it causes recompilation of anything
 
11:37 PM
@StackedCrooked Dunno. The only thing I am really looking for is modules.
 
Are concepts still being worked on?
 
@R.MartinhoFernandes I know.
 
It's not that hard to make dynamic type system inside of static system, especially if you have type reification already done
 
@StackedCrooked Yes, but not targetting C++14.
 
@R.MartinhoFernandes Where's that?
 
11:38 PM
@DeadMG Grep it yourself. That quote should have enough unique bullshit in it to find it :P
Like "attenuation of the authority"
 
@CatPlusPlus dynamic language runtime The DLR provides fast execution of dynamic operations by supporting advanced polymorphic caching. ...
 
> Constructor acquires Destructor Releases
Er.. right.
 
@doug65536 Caching types and recompiling code are two different and unrelated things
 
> its about building blocks and convenience when composing attenuations for injected dependencies using functors.
Sounds like something straight out of an automated bullshit generator.
 
@CatPlusPlus "call site caching" means, saving variations that had to be JIT'ed and rapidly reusing code when the type at that call site changes
 
11:41 PM
@R.MartinhoFernandes I don't know how to grep that group.
 
@DeadMG There's a big search box at top...
 
I'm not used to the idea of those actually working
 
oh, I've never seen that proposal.
 
@CatPlusPlus how else would they do it? interpreter?
 
11:43 PM
I think
 
I guess JIT cache makes sense too
I don't really think about JIT when considering type systems
 
@DeadMG You don't know what you have been missing. It's pure (comedy) gold.
> Basically declaring it for example a public std::functor_pattern::functor<void> is the price you as a user pay for allowing the library to define for example a quota based condition proxy for it with the same interface:
 
@CatPlusPlus I'm no DLR expert, I'm going by discussions with developer of the powershell compiler in win8 powershell
 
I was talking about type systems in general not .NET, I don't know anything about .NET and don't really care
 
@doug65536 yeah I knew that. Allthough, technically it doesn't do 'compilation' (but it does mirror the whole overload resolution dance. I just never realized it would apply UDC too. Good stuff. And slow....
@DeadMG s/those//?
 
11:46 PM
Ow
 
@R.MartinhoFernandes Holy fucknuggets, you're right.
 
Ell
Agh ffs why is my signal so bad!?
 
still at the atm? :P
 
@R.MartinhoFernandes I liked that bit :
> attenuation patterns that help increase program robustness by enabling drop-in attenuation on a functor level,
2
 
11:51 PM
@sehe What was zerkms' original comment?
 
huh
 
That std-proposals site is like a dog and pony show.
 
man
I should really go back (briefly) to working on my SHA-2 solver, I had what I think is a rather great idea about how to solve it.
 
@sehe perhaps this quote applies? "If the DLR adds optimizations such as better compilation, the performance also improves for all languages implemented by using the DLR"
 
@StackedCrooked What does that mean?
 
11:56 PM
Good grief, someone is grumpy today...
 
Nothing really.
 
@jalf Where?
 
WTF, my edit was correct wasn't it?
 
@DeadMG I recently noticed SHA algorithms in Crypto++. I was reminded of your endeavors.
 
@R.MartinhoFernandes just got into a discussion on a SO question with someone I have a lot of respect for...
 
11:56 PM
well
 
But oh well, everyone can have a bad day. I'm off for some serious sleeping!
 
I figured out that, unlike in something like 3-SAT, you can reduce SHA-2 to only two operators.
whereas 3-SAT has to be three operators.
in addition, you can reduce SHA-2 to a finite number of known polynomials (with no powers above 1).
 
I always feel bad that I can never respond to this because I don't understand.
 

« first day (853 days earlier)      last day (4078 days later) »