« first day (861 days earlier)      last day (4093 days later) » 

2:00 AM
haha
 
@R.MartinhoFernandes You must have a blast, then. :3c
 
@R.MartinhoFernandes They laughed when they saw I had an operators namespace!
 
Xeo
@R.MartinhoFernandes Endless template recursion? That's the usual problem with that.
Or does it actually work?
 
@LucDanton using namespace annex::operators::smooth
 
user1182183
@sehe that's my laptop running chrome outside in -10* C
 
2:01 AM
@Xeo Oh, dammit, I need to instantiate this.
You are right.
 
user1357851
@Code-Guru sounds like you are going to commit suicide :x
 
Xeo
:3
 
I need to make three overloads.
 
Rate my solution :P
 
user1357851
2:02 AM
@sehe heater?
 
Xeo
@R.MartinhoFernandes I don't quite see how throwing more overloads at it helps.
Oh wait, if you check N == sizeof...(Ranges)
 
@Telkitty I can use it to keep my tea warm. But it's really quick to 'restore' to normal:
That's in between runs
 
@sehe You're sure it won't cause degradation to the CPU if it heats that high?
 
Yes.
Or no.
What does it matter whether I'm sure?
 
Xeo
Yeah, testing that would limit it to the number of ranges, although those would always get instantiated... not a problem, I guess, since they'd all get used eventually anyways.
 
2:03 AM
woo 80C
 
93℃, actually just spotted 94℃
 
user1357851
I used to work in a place, because of the number of PCs/Monitors in the office (some have 6 monitors and a couple of PCs running), it used to be 30 degrees inside when it's 5 degrees outside
 
hey!
what's up???
 
ceiling, you?
 
one question: how do you put tags in your biography? like thos guy: stackoverflow.com/users/542517/michael-irigoyen
 
2:05 AM
[tag:hithere]
 
[tag:tag-name] =
 
Xeo
WHY DO PEOPLE ALWAYS COME TO US?! >:|
 
@Xeo Cuz we're fucking awesome
 
@Xeo because we are the smartest and the best
 
@sehe: nice, thanks!
 
2:06 AM
also our humility
 
        template <typename Result = void, std::size_t N = 0,
                  typename Tuple, typename Fun,
                  wheels::EnableIf<wheels::Bool<N == std::tuple_size<Tuple>()>>...>
        Result apply_nth(std::size_t, Tuple&, Fun) { WHEELS_UNREACHABLE; }

        template <typename Result = void, std::size_t N = 0,
                  typename Tuple, typename Fun,
                  wheels::EnableIf<wheels::Bool<N < std::tuple_size<Tuple>()>>...>
        Result apply_nth(std::size_t n, Tuple& ranges, Fun fun) {
K, now compiles.
 
user1182183
hmm, I have
`#define VERSION "20130.22303"`

`#pragma comment(linker, "/VERSION:" VERSION)`

but my DLL has no version information?..
 
@LucDanton lol
 
@Mysticial did you see this chat.stackoverflow.com/transcript/message/7882223#7882223 ? would you reckon that's okay? Mm. seeing 97 degrees on 1 core now
 
Xeo
@sehe That seems a bit too high.
 
2:07 AM
Somebody's cookin'~
 
Xeo
@R.MartinhoFernandes Coolio.
I guess that's also way better in term of performance vs any_range.
 
@Xeo Well, it's supposed to be a stress test. Under normal load it doesn't go >38 degrees
 
Xeo
@sehe Ah, still.
 
@Xeo I expect it should generate code at least similar to an unoptimised switch.
 
Xeo
@R.MartinhoFernandes Btw, you could bisect that, I think.
 
2:08 AM
Recuperation to 50 degrees in ~20 seconds
 
@Xeo Not much point in it though. I don't even expect there to be 10 ranges.
 
Xeo
@R.MartinhoFernandes Although, if you have a large number of ranges, that could get costly.
@R.MartinhoFernandes Expect<Unexpected<RangeCount>>!
 
lol
 
Expect<Spanish<Inquisition>> !
 
Oooh, lemme check how D behaves in the face of shorter ranges.
 
2:10 AM
He has that installed
 
Xeo
@R.MartinhoFernandes The usual zip problem?
 
> roundRobin stops after it has consumed all ranges (skipping over the ones that finish early).
 
Xeo
Interesting.
 
Wait, that's an actual range operation? Not just something Unicode specific then?
 
Who's account did @Zoidberg hack to get that lounge topic?
 
Xeo
2:11 AM
@LucDanton He suddenly had the urge to work on his D-like ranges.
 
@LucDanton No, I'm not working on ogonek right now. Just messing with Andrei's ranges.
 
Let go of his ranges!
 
Oh. I gather what that does then.
 
@Xeo Not that complicated. Just while(apply_nth<bool>(advance(current), source, fun::empty{})).
Maybe a for.
 
Xeo
You know, I'm already thinking how you could optimize the apply_nth. :|
 
2:14 AM
@sehe That's FAR too hot.
You don't want it above even 70C.
 
@Mysticial What's the penalty?
 
Fried CPU
 
Reduced lifespan.
 
I mean, is there immediate risk or just reduced lifespan
 
The life of silicon transistors is exponential to the temperature.
 
2:15 AM
@R.MartinhoFernandes What's empty?
 
I remember when Chimera/Jim reported 100 degrees on his CPU once :)
 
Even sharp temperature spikes can do a lot of damage.
 
He had'nt even noticed
 
@LucDanton [](auto r) { return r.empty(); }
 
Of course it is!
 
2:16 AM
@Mysticial wokay. Mmm. Back to normal:
Maybe I'll just build large projects -j6 instead of -j12 :)
 
Xeo
@R.MartinhoFernandes: Do you really need to be able to apply different functions?
 
100 degrees on a CPU? ouch
 
@Xeo What do you mean?
 
These things should shut down around 70 check your alarm settings
 
The Fun parameter on apply_nth?
 
2:17 AM
@CatPlusPlus He's building boost on a fanless i7.
 
Xeo
Aye
 
Yes. Either that or a zillion (well, about eight) different instances of the same.
 
Xeo
Why zillion?
 
It looks like a passive cooling all right
 
@ThePhD I've done that many times before, but not on this particular i7 (I've built boost on a fanless i7 2600, now it's a i7 3770)
 
2:18 AM
I had a GeForce GPU that was like 80 in idle but that thing was designed for these conditions :v:
 
@CatPlusPlus :)
 
@Xeo I need front, pop_front, back, pop_back, empty. At least.
 
@sehe -j muahaha
 
Since I'm always push_back into a std::list,
 
@sehe Or maybe get better cooling
 
2:19 AM
@R.MartinhoFernandes Is this about sex?
 
to get the last item as an interator in the std::list, I'd just reference back(), I think..
 
@CatPlusPlus Nah. You mean, better noise, maybe? I didn't buy this baby for that
 
Radiator exposed to the air is not good passive cooling~
Air makes for a terrible coolant
 
Or maybe it's mylist.end() - 1 ...
 
@CatPlusPlus But it doesn't noise
 
2:20 AM
back() returns the value
@sehe Mineral oil or water cooling don't make noise either
 
Anyways. Anyone succeeded in building libmoost yet?
 
moost ?
 
@sehe lol
 
@CatPlusPlus I know. Too much effort. And: expensive
 
Better to buy a new CPU every year right?
 
2:20 AM
@StackedCrooked I'm getting link errors.
@CatPlusPlus Indeed. Lol.
 
Hmm, no, skipping empties is more involved. I need to avoid an infinite loop.
 
You're bad
 
We were talking about its safe_shared_ptr earlier. That class doesn't seem to have much of a point.
 
You could just have a mostly open Desktop with large, obnoxious fans.
 
@CatPlusPlus All my previous fanless machines (4) have lasted >5 years (or still counting, the media centre is ~2 years)
 
2:21 AM
sehe the CPU murderer
@sehe Were they on?
 
Tróll
 
Xeo
@R.MartinhoFernandes Hmm... I was thinking about apply_nth actually returning a pair<reference, reference(round_robin::*)(size_t, tuple)>>, so you don't always have to start over to get the next element. Internal caching etc. But eh, questionable if it's worth it to have 5 function pointers for that. (or you could return, instead of the reference part, a variant<none_t, bool, reference>). :D #crazythoughts
 
@CatPlusPlus CPPGM: Computer Part & Processor Grand Murderer: Sehe
 
Whoah there. You went from 'optimizing' to 'member pointer'? Isn't that a stretch?
 
@Xeo I'm not sure that would optimise anything, really.
 
2:22 AM
@CatPlusPlus I never turn my computer on. That would negatively impact its life expectancy.
 
Xeo
:3
 
So I think invocations.end() does the trick nicely.
 
Xeo
I love me some function template + function pointer type erasure.
 
-1 of course.
 
Remember to post temperatures when summer begins
 
2:23 AM
@Xeo Write a variant.
 
21st of june IIRC.
 
@StackedCrooked Summer Solstice~
The best time for BUUURNINATIIN' stuff.
 
What is that?
 
Xeo
@LucDanton heh
 
It's the technical name for the first day of summer.
 
2:24 AM
    static constexpr type value[sizeof...(T)] = {
        &visit<T, return_type, Pack, Visitor, Variant, Variants...>::apply...
    };
 
I see you're doing fun stuff
 
Xeo
lol
@LucDanton Actual code from you?
 
K, now I need to figure out how to skip empties properly.
 
@StackedCrooked That's why we compile on your server
 
@Xeo Yes.
 
Xeo
2:25 AM
Cool
 
@sehe lol
 
Xeo
I thought you were half-mocking me.
 
@Xeo Yup. 36 degrees now :D
 
Well visiting a variant is one of those dynamic thing so.
 
OK... Have any of you ported Glut to Android or iPhone? I am just suggesting to avoid outdated headers... It just seems easier and less time consuming. Glut and Glew are just another thing to learn, and do not port that easily... Also I unintentionally stated "loop" when I should have said "timer"... It's just my preference to avoid these additional dependencies, when apparently everyone else relies so greatly on them. — Mitch 12 mins ago
Aahahahahha
 
2:26 AM
So I want pop_front to have "all empty || current_range not empty" as postcondition.
 
Ahahahahahahaha
I, too, use WinAPI because it's easier to port to Android
 
In fact that's a great comment
 
@CatPlusPlus Good luck porting WinProc to Android :()
 
And ~outdated headers~
 
2:28 AM
Speeddated headers
 
@sehe But they never stick together so they just become tired and outdated in the end.
 
@LucDanton Thousands of years in the future historical computer linguists will debate on the meaning of that code similar as to how a century ago linguists attempted to decipher Egyptian hieroglyphs.
 
Xeo
@R.MartinhoFernandes After cycling ones, stop. For cycling, you could first go from current -> end and then begin -> current, I think.
 
Black's Equation is a mathematical model for the mean time to failure (MTTF) of a semiconductor circuit due to electromigration: a phenomenon of molecular rearrangement (movement) in the solid phase caused by an electromagnetic field. MTTF = Aj^{-n} e^\left(\frac{Q}{kT}\right) A is a constant j is the current density n is a model parameter Q is the activation energy in eV (electron volts) k is Boltzmann constant T is the absolute temperature in K The model is abstract, not based on a specific physical model, but flexibly describes the failure rate dependence on the temperature, the elect...
 
@ThePhD You haven't my story of today:
10 hours ago, by sehe
 
2:29 AM
That equation is for sustained temperatures, but it can be integrated over an arbitrary temperature curve.
 
Coming out tired and outdated isn't always bad
 
@Xeo Yeah, but then I need to either do the same in front() or skip empties after poping too.
 
IN-TE-GRA-TE
 
@Mysticial Oh. Interesting
 
Xeo
@R.MartinhoFernandes Yeah, I meant after popping.
 
2:30 AM
Actually, that thing above should be an invariant, not just a postcondition.
@Xeo But I need it before too!
I.e., it goes in the ctor.
 
Xeo
@R.MartinhoFernandes Once in ctor, and then after popping, right?
 
@Bartek I am NOT "stucked in 1998". I have probably made more advanced 3D games then you have, I just don't rely on outdated, (made in 1998) dependencies. I use newer versions of OpenGL... Which do not blend well with these old headers anyways. — Mitch 1 min ago
 
@sehe Basically the damage that's done to the processor is exponent to the temperature.
 
GLEW is totally 1998 guys
And totally doesn't blend
 
2:31 AM
lol, OpenGL 1.2.1
@CatPlusPlus willitblend.com
 
@sehe Oh whoa. They're mating.
 
@R.MartinhoFernandes Yes that's the joke
 
Oooooooh, I can't just have an std::pair<Range, Iterator> where the Iterator is an iterator into first can I? I guess I have figured out my concat_map bug (or at least one of them).
 
Doesn't use old versions of OpenGL > uses fixed-function pipeline.
LIKE A BOSS.
 
He probably earns more money than we do, too
 
Xeo
2:32 AM
@LucDanton Mmm, yeah, if you copy, that won't work nicely.
 
120,000 USD at least.
 
Will-it-blend is so 2006.
 
@Cat Plus Plus, I Agree :) — Mitch 2 mins ago
 
@CatPlusPlus GLEW is way old, man. glload is the future.
It's not like it was updated recently or anything.
 
I'm not sure what he's agreeing with
 
2:33 AM
@Xeo It finally clicked when I asked myself 'so the essential difference between the bug and the no-visible-bug version is when the functor returns a reference to a range as opposed to producing a new range'.
 
Woot, Good Answer.
 
Xeo
@LucDanton Would it work if you default construct a range, passed that in, and then got an iterator out?
 
0
A: Why is processing a sorted array faster than an unsorted array?

SlavaHmm, why not to optimize it even further if you already have std::sort anyway? #include <algorithm> #include <ctime> #include <iostream> int main() { // Generate data const unsigned arraySize = 32768; int data[arraySize]; for (unsigned c = 0; c < arraySize;...

^^ free flags :)
Doesn't answer the question.
 
Do you really think I'm going to compare those snippets
 
Xeo
@CatPlusPlus $ diff!
 
2:34 AM
I think surreallyso.
 
But really I'm at loss how to even begin explaining that thing to that guy
 
@Xeo Pass that in to what?
 
@Xeo :effort:
 
@CatPlusPlus he's agreeing that he's trying to "lose" the comment fight in the most painless way possible
 
@Mysticial you're just jelous that someone is approaching your turf :D
 
2:36 AM
Well it is easier, faster too. :| — Mitch 1 min ago
 
Xeo
@LucDanton Wherever you got the original pair out of? I don't quite have the code in mind, currently.
 
Yup, over his head
 
@Mysticial never have been tempted by flag rep
 
@MooingDuck lol
 
@Xeo The pair is in *this, it's part of the state. There are several design aspects I need to contemplate before settling on any one outcome.
 
2:37 AM
Man. That comment thread is comedy
@CatPlusPlus To Mitch? Just don't. waste of time
 
Hey, speaking of recurring themes: fucking iterators ruining my day again.
 
Xeo
Haha
 
@MooingDuck I'm actually more afraid of the question picking up 30 crap answers and forcing the whole thing into wiki.
 
for(std::size_t i = 0; i < sizeof...(Ranges) && round_robin_detail::apply_nth(current, sources, fun::empty{}); ++i)
// error: invalid operands of types 'void' and 'int' to binary 'operator!='
WTF
 
@LucDanton std::fucking_iterators (to replace std::pair, std::current_copulation, std::front_inserter , std::sqrt and std::mate)
 
Xeo
2:39 AM
@R.MartinhoFernandes lawl
@LucDanton You get the pair back from stuff, right?
 
@Xeo It was meant as a helper and fails pretty hard at it since it's wrong.
 
@Xeo I know what the mistake is (apply_nth does not deduce return type, so it has to be apply_nth<bool>), but that error message is just silly.
 
@sehe That's why I'm mocking instead~
 
Still waste of time :)
 
If I do mystdlist::erase, I can always get an iterator back that is valid. None of them really indicate this item you're trying to erase wasn't in the list.
 
2:42 AM
It's invigorating me
 
Xeo
@LucDanton Do you have a link to the file handy?
 
But look I posted real comment too
Do tell how it's easier to port code using OS-specific API than code using libraries (fyi calling them "headers" doesn't make you very credible) that already support Android (like freeGLUT, which was last updated a year ago) or those that are trivially drop-in replaceable by others (also GLEW supports OpenGL 4.3 just fine, what with last being updated few months ago and all). — Cat Plus Plus 1 min ago
 
Xeo
@ThePhD Well, you obviously have to make sure the iterator is valid.
 
SO is asking me whether I want to move the discussion to chat
 
How do I check if a std::list iterator belongs to a certain std::list ?
 
2:43 AM
Gee I would but I think we killed his chattin' privileges :v:
 
Xeo
@CatPlusPlus Please don't move it here. :(
 
@Xeo Here. Did you remember the name stuff without even looking it up lol? It's an implementation detail.
 
Xeo
@CatPlusPlus Don't they get special privileges for the comment chat rooms?
@LucDanton Yeah
 
@ThePhD AFAIR you can't
 
@ThePhD don't lose track
 
2:44 AM
Lovely. Well, I guess I'll just... assume true?
 
@Xeo vOv
 
I dunno. :D
 
I hasn't been 0 rep user forever
 
Xeo
@ThePhD Can't. But you can make sure to only hand out valid ones.
 
@ThePhD MSVC iterators check themselves in debug mode
 
2:44 AM
Ugh.
 
First, GLUT is mostly just a header, second I cannot explain all of that in a comment... But when you avoid such dependencies you understand what is happening more... It's just easier. I doubt you would know, you probably use managed code, and I am guessing you always use freeGLUT. — Mitch 59 secs ago
Ahahahahahahahahahaha
 
Xeo
If the user duplicates the tokens and passes it twice for erasure, eh...
 
Okay, possible design decision is to have two-phase initialization where any call to begin or end computes the iterators.
 
Is anybody familiar with the Expectations-Maximization (EM) algorithm?
 
@Xeo Call them a badlet and leave it at that? :D
 
2:45 AM
round_robin({1,2,3}, {4,5,6,7}) = {1,4,2,5,3,6,7}. However, retro(round_robin({1,2,3}, {4,5,6,7})) != retro({1,4,2,5,3,6,7})
 
And before someone comments (probably you) and says "then what is Glut32.lib" I will just say I am aware of it. — Mitch 1 min ago
 
@R.MartinhoFernandes You mean what you have right now or what you should provide?
 
Guys I found a goldmine
 
Xeo
@ThePhD If you want to make sure the user can do that (the duplication and "double-delete"), use a unordered_map<actual_token_type, list::iterator>.
 
GLUT is mostly a header! But I know it's not but don't you dare call me on it
 
2:46 AM
@CatPlusPlus Wut. I voted to delete. Put the guy out of his agony
 
Not sure if it's what I want. It's what I have.
 
@sehe does he get his rep back?
 
Xeo
yes
 
> But when you avoid such dependencies you understand what is happening more... It's just easier.
Precious
 
I remember a similar issue in an early attempt at slicing things. Skipped over the wrong things when doing it in reverse.
 
2:47 AM
I can't even tell if he's trolling or if he's really that oblivious...
 
Well he agreed with my "I, too, use WinAPI because it's easier to port to Android. "
 
@MooingDuck I dunno. What do we care? Rep is a rewarding system, not a punishment system (well, unless too stubborn to delete)
 
Yay time to learn Ruby more! Because why not!
 
Make of that what you want :v:
 
@Xeo Uh. In my case, the actual token type is a literally defined like: typedef std::list<TCallback> InvocationTable; typedef typename InvocationTable::iterator Token;
 
2:48 AM
@sehe Then what are downvotes for
 
All the edits.
 
Xeo
@ThePhD Yeah, but I'm saying, if you want to allow shenanigans like that, you need an indirection.
 
You have to punish bad questions
 
Ooh. :c
 
Don't delete it's too amusing~
 
Xeo
2:48 AM
So Token would not be list::iterator but, say, std::string.
 
Is it wierd that most of my favorited questions have negative scores and are deleted? like this: stackoverflow.com/questions/11231834/…
 
Xeo
And then you can just auto it = token_map.find(token); if(it != token_map.end()) list.erase(it->second);.
 
I don't know about wierd
 
@Xeo Maybe I can just keep a std::set instead?
 
I like how he had one upvote and we totally negated it with downvotes on this answer
 
2:49 AM
@Mysticial I think he goes on a general sense of "I used to think it wasn't so hard after all, once I started writing the stuff manually. Hence, it's best to avoid libraries that abstract the things you try to understand, because otherwise, you'd never understand." + "Handwritten code is always going to be faster" + "Staying close to the OS is always going to be faster" etc.
 
@MooingDuck It's normal. Same for me. Either that or we're both weird.
 
That way I just keep a set of the iterators internally, and then search for the iterator itself.
If it's in the list, it's valid.
 
Xeo
@ThePhD No, invalidated iterators are effectively dangling pointers.
You can't use them in any way.
Not even for comparision.
 
@MooingDuck Is it weird that you have a choice? no
 
Oh.
That's unfortunate. =[
 
2:51 AM
Wait, retro is still buggy, actually.
I need to skip empties on the back too. Ugh.
 
Xeo
retro or round_robin?
 
int Meow (void a) {} <--- that's illegal, right?
 
@Xeo Well, round_robin as bidirectional.
 
@ThePhD Yes
 
Xeo
@R.MartinhoFernandes So you forgot to fix round_robin::pop_back?
 
2:52 AM
Mmm. Template specialization it is.
 
void is uninhabited type and you can't declare any void variables
 
@Xeo The invariant I delineated is not enough for pop_back :/
 
Xeo
@CatPlusPlus But you can have void objects! Or values, anyways.
@R.MartinhoFernandes Why?
 
You're saying that like it's a good thing
 
Xeo
It's good for decltype-style sfinae.
 
2:54 AM
It does not guarantee that the back is at a non-empty range.
 
C++ type system is hilariously bad :v:
 
Xeo
Also, void(), X(arg); for a temporary~
 
So I need two cursors.
 
Xeo
@R.MartinhoFernandes Ah
 
void* is my BEST FRIEND. <3
 
2:55 AM
Using void* should delete your source files
 
And then replace them with unicorns and ponies.
Because that's the power of void*.
 
Can someone please point me to a place where I can learn about ~ and how it relates to constructors?
 
@ThePhD not seeing it directly in c++-faq. negative search results.
 
@CatPlusPlus pthread :(
 
@ThePhD so it's a Destructor?
 
>.>
 
@DiscreteGenius ~(ClassName) denotes a Destructor.
Destructors are called for all deleted objects; it is how C++ cleans itself up after every scope.
 
@ThePhD Very cool. Thank you!
 
Awww how cute
 

« first day (861 days earlier)      last day (4093 days later) »