« first day (1930 days earlier)      last day (3036 days later) » 

1:00 PM
the video was muted, he seemed bored to me.
 
Come on guys please don't vote to close this question, it's meant to be opinion based answers — Shady Programmer 34 secs ago
 
@Ell what's bad about them they're just lambdas
 
@MadameElyse pls vote for poco
 
@slaphappy Calm yo' tits, I get to stuff as soon as it shows up in the feed and I'm not asleep
 
1:02 PM
> "How many Haskell programmers does it take to change a lightbulb?"
"Haskell programmers don't "change" lightbulbs, they "replace" them. And you must also replace the whole house at the same time."
lol
 
To create an apple pie from scratch, you must first invent the universe.
 
@набиячлэвэлиь didn't mean to stress you over something. no urgency there
 
@slaphappy If something happens on GH, no need for plinks
 
262
Q: Pretty-print C++ STL containers

Kerrek SBPlease take note of the updates at the end of this post. Update: I have created a public project on GitHub for this library! I would like to have a single template that once and for all takes care of pretty-printing all STL containers via operator<<. In pseudo code, I'm looking for something ...

 
@набиячлэвэлиь right
 
1:10 PM
Could also add Nonius
Don't know if you guys Noni-use it
 
> Simulation Games > ROMANCE OF THE THREE KINGDOMS 13 / 三國志13
that's one long romance
 
@HubertApplebaum it's already in, actually
 
@slaphappy Should IDEs go under Tools?
 
@HubertApplebaum nonius should be a default choice because robot
 
@набиячлэвэлиь I don't think so. I know they are technically "tools", but they are important enough that they deserve a category of their own imo. People are going to look at "IDE" specifically.
@HubertApplebaum I used it and it rocks
 
1:17 PM
I'll just leave this here once more: zty.pe
 
I think I'll play some underrail
@ElimGarak no ammo left :<
anyway it's ok
like skyrim with lasers
 
user1804599
@slaphappy link
 
Bah, wave 20.
 
@ElimGarak is that a game?
 
@MadameElyse #1
 
1:26 PM
@Borgleader Yeah, the goal is to type words to destroy oncoming ships
Higher the wave, the faster they come, the more words, the more long words.
 
huh
 
Ven
hey hey hey
 
hey, it's the newb avatar guy
a newb avatar every day!
 
Ven
<3
@fredoverflow no luck to have that in english? :/
@Morwenn who's that, even?
 
Ell
(A` v B) ^ (A` ^ C) = A` ^ A` ^ C v A` ^ B ^ C
 
1:40 PM
@Ven No idea, a random Japanese crossdresser.
 
Ell
?
Where ` is compliment
 
Ven
@Morwenn ah, because of the SJW-ness?
 
@Ven No, just because he's cute.
 
Ven
@Morwenn he definitely is. I think most asian have a smaller figure than us europeans, making it easier to crossdress
 
Yep.
> On my platform, bit_iterators are about 80 faster than std::vector<bool> for std::count, about 600x faster for std::sort, and about 450x faster for std::rotate, about 40x faster for std::reverse, and about 150x faster for std::fill [...].
Nice.
 
Ven
1:49 PM
die, std::vector<bool>, die!
 
Hey, at least the library is slowly updated to make std::vector<bool> less broken.
 
@Borgleader cruise ships?
@Morwenn sorting bools O.o
 
@slaphappy More like sorting bits.
But yeah.
 
sbi
Tach.
 
Hi.
 
1:52 PM
yo
 
Ven
mell wet
 
sbi
Picking your brains here..
What would you call an object that you assign to, and which has a dirty flag that only flags if the assignment caused a change in the object?
 
Ven
A dirty, dirty object.
 
sbi
(I'm looking for a name for a template that implements this as a wrapper around any object.)
 
@sbi A masochist.
 
1:53 PM
with_dirty_flag
 
@sbi like cows?
 
sbi
@Morwenn I predict that this wouldn't make it through code review.
 
No fun :(
 
user406009
@sbi mutation_tracker
 
A teenager then? They don't like assignments and can react violently when you assign tasks to them.
3
 
1:55 PM
lol
 
user406009
Or mutation_tracked or something.
 
sbi
@slaphappy No. if you have a wrapped<int> wi, you say wi = 42, and id_dirty() only returns true if wi.data didn't already contain 42 before that assignment.
 
@sbi change_tracked<T>.
 
sbi
These sound good, @Lalaland & @Jerry.
 
sbi
1:57 PM
Current favorite here stems from these and is change_flagged. But we're non-natives, so if that sounds weird to a native ear, please speak up.
 
sweet, we even get 1 day out of a year to celebrate our non existing privacy on the internet
 
Ven
pristine_tracker, dirty_tracker
 
@sbi I propose change_signalling.
because "tracked"/"flagged" implies from outside.
 
Ell
Linux sucks is pretty bad this year :/ I only made it 15 minutes through
 
just call it is_dirty
 
sbi
2:02 PM
@Ven These are good, too, although only if you turn them inside out. Remember, this needs to wrap around something else, just like boost::optional<T>, so dirty_tracked<T> seems better. /cc @slaphappy
@TelkittytheWebDeveloper Nope. That's a function's name, not a type's.
 
Ven
good :)
 
sbi
@slaphappy change_signalling<some_enum> seems a bit clumsy, though. change_flagged<some_enum> seems better.
 
yeah, signalling is a bit clumsy.
 
Boost MLP contains: template< bool C > struct assert { typedef void* type; };
rather unwise choice of name
 
Boost.MyLittlePony
7
 
2:09 PM
Boost.MarineLePen
 
@slaphappy Yknow, phone scams. "Hello this is <insert travel company> youve won a trip to <some destination> ..." idk how the rest goes because ive already hung up by this point.
 
@sbi C# uses IChangeTracking for these
 
sbi
@TheForestAndTheTrees Thanks, that's a good reference point.
 
@sbi ergh... sounds a bit dodgy to me... does it matter who changes it, what it's been changed to, is it 'dirty' if it has been set back to what it initially was, is there some way of 'resetting' that dirty flag?
 
@thecoshman its called clean() :P
 
2:13 PM
@TonyTheLion why not reset() and reset(T v)?
the latter allowing you change what the 'clean' value is.
 
Ven
@Morwenn pls.
 
Ell
I'd probably call it something like notice_changes<T>
but then that is the wrong tense
 
sbi
@thecoshman Here, it's used for some values that are constantly received remotely, assigned, and where we need to do something whenever the values coming in change. Please correct me if I'm wrong, but to me this sounds like a reasonable used case if you monitor hardware.
 
Ell
change_notifier<T> maybe. hmm.
 
Ven
@Ell also implies it does notifying
 
2:14 PM
@Ven That acronym has too many overloads.
 
sbi
@Ell To my ears that would be a type that pushes changes (vial callbacks, for example).
 
Ell
yeah it does say that to me too now
 
Ven
@Morwenn Marine was SFINAE'd out.
 
sbi
Well, the cow-worker who has asked me favors change_flagged<T> now.
 
@Ell notice_changes<T>::did_you_cut_your_hair
 
2:15 PM
@Ven If only.
 
@sbi to be clear, you don't care if a 'new' value comes in that is the same?
 
Ven
@Morwenn now, now. no political talk :). not enough alcohol
 
@sbi well... the template name should describe the type... that sounds more like it is asserting that T has changed...
 
sbi
@thecoshman No, we don't. (Think of monitoring, um, something's temperature. As long as it stays, we're fine, when it changes, we need to compare against the spec's upper and lower limits and might have to act based on the comparisons.)
 
Ven
@slaphappy template<typename T, typename = std::is_female_v<T>> class hair_changes_notifier {};
 
2:17 PM
@sbi if you want to react 'at the same time'... wouldn't something with a call back be better?
 
Ell
change_hailer<T>
 
so as soon as you assign to this 'wrapper', if it notices the value has changed, it will call the function for you
 
Ell
changes_remarked<T>
 
My proposal is the best and all of yours suck
 
Ell
I need to find one that satisfied me now :3
 
2:19 PM
@Ven _v?
 
so like `change_notifcation<int> temp = { 35, on_temp_change_fn };
 
Hello everyone
 
I'm not even sure a wrapper really makes that much sense...
 
Ven
@slaphappy basically a ::value. allows to omit typename prior.
 
@slaphappy Variable template.
 
Ell
2:19 PM
hi @LifeH2O
 
Ven
@slaphappy started appearing in C++14 and (mostly) C++17
 
sbi
@thecoshman No. This is a RT system. Everything happens in cycles, very few things happen asynchronous. This is so you are able to reason about the time it takes. Generally, a function is called every X milliseconds, will do everything it was written to do, and then return having worked at most 0.8*X milliseconds. You only do things asynchronous when they can take "forever" (aka several 100 msecs), and don't care if pushed to a low-priority background task.
 
_v for ::value and _t for ::type
Note that {} is equivalent to _v for everything in the standard library.
 
@thecoshman that assumes you want to always take the same action, if you don’t then assign(var, val, on_dirty_cb) refactors recurring if(old_val != (var = val)) { /* act on it */ }
 
Is it possible to load a file in chunks over the network, those chunks which we really need at that moment? e.g. Let's say I want to run 3D studio max or say a video. They are placed on remote computer.

When I run the file (main exe in case of a huge program) and only the files it needs only to start are downloaded first and then slowly the remaining chunks
Torrent does the same I think
But it only let us play video files in such manner, it downloads initials chunks and let us start the video. While the video is running it downloads the remaining chunks most of them are download sequentially. Can we do the same with software programs as well?
 
2:26 PM
@LifeH2O lol no - audio/video is streamable - it's serial. Executables jump around lots.
 
Yes, true
 
@LifeH2O I am pretty sure websites already doing that
 
But after all does not need all of that 2-3GB package file at once. e.g. in case of games, files are distibuted in huge packages. When game is running it does not load all of that in memory.
 
loading up a page at a time
 
instead only a part when need is loaded at that moment
 
sbi
2:29 PM
Are there places in the std lib where it assumes != to be implemented for types that it expects == for?
I know std::find() uses ==. Are there even places the std lib uses !=?
 
With process explorer technet.microsoft.com/en-us/sysinternals/bb896653.aspx we can see that a program only accesses part of a huge file
 
@sbi Except for iterators? Not sure.
 
@sbi I don't understand ... == is for the matches, != would be the one for all the ones that do not match?
 
sbi
@Morwenn Oh, iterators, indeed! But otherwise?
 
2:31 PM
@MartinJames You can try running huge software, game etc from a shared network drive. It will run without loading everything from network drive first.
 
sbi
@TelkittytheWebDeveloper Yes, but in its generic algorithms, the std lib, when comparing sortable types, will always use < by default, and never >. Likewise I know it will compare using == when it searches for something. So these two are requirements for the types you pass to certain algorithms.
 
@TelkittytheWebDeveloper: I hope your microdata is in order!
 
sbi
(This is for another cow-worker asking me whether he should rather use !operator==() in his generic algorithm...)
 
That's the reason I think it is possible to stream data for anything like a torrent, but I don't know how can I find out which part of the file is needed
 
Ell
2:34 PM
You have a lot of bovine at your workplace ;)
there is an EqualityComparable concept
I don't think there is an InequalityComparable one though
 
remove_copy negates the result of == comparison en.cppreference.com/w/cpp/algorithm/remove_copy
 
sbi
@Ell Think of all the bovine excrement this would produce!
@Ell Thanks! While we're still stuck in C++ land, that sounds reasonably convincing.
@milleniumbug Ha! Just what I was looking for! Thanks!
 
C++, where just designing algorithms causes headaches.
Because genericity.
But special cases.
 
Well, the sample impl could also use if(a == b) {} else { do stuff } but the point still stands - even when the algorithm could use != it doesn't because generic
 
Ell
@Morwenn generic programming is so satisfying
 
2:42 PM
@Ell Yeah, but execution policies, executors and stuff promise even more interesting headaches.
That, plus segmented iterators.
 
Ven
@Morwenn totes fixed thanks by haskell's type classes, though :>
 
Yikes Thats a bit insensitive.
 
Ell
@TonyTheLion sounds like an IoT disaster
smart tvs n all
 
ah yes, that is indeed possible
 
> electronic accident
 
Ven
2:51 PM
github.com/adambard/learnxinyminutes-docs/issues/2120 Do I just go ahead and close this issue?
 
Ven
95% it's just a troll
 
@Ven Yes.
 
@milleniumbug I was hoping to find the canonical answer that describes how you /need/ to declare overloads in the std namespace some times and why that might not be a good idea always (ODR, thirdparty libs). I tend to say "if you need this, for hacks, ok; otherwise: make your own manip or stream"
 
@Ven How many projects do you contribute to? :o
 
2:57 PM
That was a well preserved clipboard right there
 
> trump joined the room
 
Ven
@Morwenn too many...
 
:D
 
Ven
@Morwenn CoffeeScript, LiveScript, LearnXInY, Icy Phoenix (CMS), Mikuia (Twitch stuff again), NightDev (Twitch stuff), Mangaki.
+ all my personal projects (and there are many of them)
 
And those projects aren't small :o
The only big project to which I contribute is Solarus.
 
Ven
3:01 PM
Well, most of my free time goes towards open source stuff. (I also have some "heavily"-used projects/libraries, a CMS, a big greasemonkey-style script, some libs, yada yada yada)
 
Wow.
Stop making things people use and you'll have free time again :p
 
user1804599
@Ven Perl 6
 
Ven
what'd I use that free time for?
Ah yeah, I also contributed a few things to Perl 6, I forgot. But that mostly was documentation and other blog posts. (well, plus the two conferences they invited me to)
 
Do you sleep at night?
 
@Ven Find the answer within yourself.
Fuck, only a few days left to rewrite my proposal :(
 
Ven
3:02 PM
@Rerito I usually fall asleep after checking my github notifications one last time, tbh. (I can wake up with almost 80 notifications :P)
 
I'm impressed
 
Ven
Don't be, why'd you want your life to suck?
 
Usually when I get home I'm so tired that I just completely unplug
 
Ven
Hence weekends :P.
 
Yeah but my GF gets mad at me if I'm on the laptop too much
 
Ven
3:04 PM
My GF does code as well, so yay.
 
Well it's not being on the laptop per se, it's just that to code I need to focus so I become oblivious to what surrounds me
 
Ell
I don't contribute to anything
not even my own projects
I only contribute to open source financially :S
 
@Ell Just like me
 
Ven
That's amazing!
 
Ell
and not by very much
 
Ven
3:06 PM
It's important to have some people contribute financially :P. (I never got a cent from open source – and that's fine – but some people work on some many things it's basically their job)
 
Get ready @slaphappy I'm coming over!
 
Ven
il est avec sa go (nonjdec)
 
I never contributed financially, but I made sure to contribute back to many projects to which I stole code.
 
Ven
@Morwenn You contributed with an amazing sorting lib :P
 
@Ven Wlh le babtou qui dit go
 
Ven
3:07 PM
@Rerito "ta gowwww" c mieu¿
I'm pretty much van go
 
@Ven I don't think the library by itself is that relevant, but I definitely improved some popular sorting algorithms implementations (most notably TimSort and WikiSort, as well as Perl's Algorithm::Networksort).
 
Anyway, g2g, see you guise
 
@Rerito Bye :)
 
Ven
@Morwenn cool, perl :3
@Rerito a++ jeune zin
 
@Ven Well, I didn't write code, but opened issues to improve the library and pointed to some research papers.
 
Ven
3:09 PM
@Morwenn that's pretty cool already
Seen in a PR at work: if (&a == &b) {...}
 
Wut.
 
Ven
yep...
 &fieldDao == &dao.getParentJoin().getCaller()
 
@Rerito ...lol
 
Ven
@slaphappy he's not invited? am i invited?
 
@Ven Clearly a Java dev
 
3:12 PM
 
Man, fuck the low Canadian dollar.
Ordering anything from the rest of the civilized world is fucking expensive.
 
Ven
@Morwenn apparently "operator==" is too slow.
 
@Ven Depends on what you're comparing.
 
Ven
@Morwenn actually it's because there's no "uniqid" associated to each "join", so even comparing the fields isn't enough. so they used addresses instead
 
guys question
 
Ven
3:20 PM
wow, sexism much?
 
@Ven "guys" implies a group of men and women
 
the _t suffix implies unboxing ::type right?
 
Ven
@slaphappy so you think there are only two genders? what a bigot
 
Or even just a group of women, it works too nowadays.
 
Ven
3:21 PM
@slaphappy unboxing?
 
@Ven Sexism is delicious.
 
@slaphappy For type traits, yes.
 
Ven
foo_t<bar> is typename foo<bar>::type for type traits
 
@Morwenn isn't _t reserved? or only in the global namespace?
 
Ven
are you thinking about POSIX?
 
3:21 PM
maybe?
 
Ven
For POSIX, it's only global names.
 
ok
thanks.
 
Ell
@wilx man I hate this guys way of speech
 
template<bool Value, class TrueType, class FalseType>
struct conditional_t { typedef typename TrueType::type type; };

template<class TrueType, class FalseType>
struct conditional_t<false, TrueType, FalseType> { typedef typename FalseType::type type; };
 
@Ell Heh. I think he is pretty good. :)
 
3:23 PM
is this right?
 
Ell
Almost every one of his sentences is sarcastic
 
@Ell Whose? Dawkins' or Sargon's?
 
Ven
@slaphappy y u no using? I find it's these kind of situations where it's much more readable
 
@Ven 03
 
Ven
ouch.
 
3:24 PM
but yeah
 
Ell
@AlexM. you can't modify "not effectively final" variables
I mean to be fair it makes sense
 
Ven
only thing I'd do is not name the "extra" type parameter, to make it clear it's not used (hehehe we don't have "unused template argument" warnings yet, do we?)
 
Ell
because it allows to automatically transform streams to be concurrent
but I want lambdas for more than streaming :V
 
@Ven sure.
 
>typedef
>2016
plonk
 
Ven
3:25 PM
@HubertApplebaum It's robert, not hubert, ffs
 
says the old guy
 
at least I'm not a nigger (a term coined by Peter Sommerlad)
 
@slaphappy that's not how it works
 
Oh hey it's Cicada again.
 
hello Etienne I missed you too
 
3:27 PM
Your aim is shit.
(it's a pun)
(a pun is a joke)
 
@milleniumbug it's on the outside, right? I knew it.
 
I don't get it
(A term coined by Luc Danton)
 
Ven
I love how @slaphappy now thinks I have any idea on how C++ works, ha!
joke's on him
 
@Ven I love the "consider using" when the whole thing is completely wrong
 
Ven
:D.
 
3:30 PM
Well at least it'll be slightly less terrible
 
this guy has a huge mole
 
Ven
@slaphappy (it's not wrong, btw, why'd it be?)
I mean.
It's wrong, because "the _t is actually wrong". but it's a valid conditional
You can't do what you want in C++03, because typedef can't be templated. So no _t.
 
It's conditional followed by applying
 
Ell
writing stuff in callbacks is hella confusing
 
@HubertApplebaum send the royalties to the usual place
 
3:36 PM
@milleniumbug it's actually eval_if
thanks guys
 
Apply<Conditional<C, T, F>> where Apply<T> is typename T::type
 
@slaphappy yes, although I tend to prefer to pass the condition in as a type parameter, it cuts down on the ::value noise and more importantly I prefer the resulting error messages much more
 
@LucDanton yeah. my conditional_t is actually an eval_if_c.
I've got to fix my terminology
 
since if is called conditional mine is called eval_conditional[_t] :)
 
if is the mpl name
 
3:39 PM
yeah I meant the standard version
 
sure.
 
@wilx I started to laugh when that feminist was like "AAAAAAAAAANNNY WAY .. shutup"
 
let's go with eval_conditional_c
 
sup lounge
 
@KhaledKhnifer :)
 
3:40 PM
@slaphappy all that matters to me is being consistent, and I use conditional and not if_ already
 
is the implementation right?
> typedef integral_constant type; this is legal?
 
P sure no
 
Oh wait it's inside it
Then yes
 
injected name or sth
 
3:43 PM
wow
since when?
 
Since always
 
Ven
why would it not be?
 
ITT kbok learns how to C++
 
shuddup
 
@wilx the biggest joke in that video is how Dawkins invitation to Skepticism conf was rejected because of sharing a video that talk about feminists, then follow it by saying that they support freedom of speech .. There gotta be an undercover Sarcastic group within the Skepticism conf community behind that
 
3:46 PM
@KhaledKhnifer Hehe. Unfortunately, I think they believe what they say.
 
Ven
Richard Dawkins is the guy that posts retarded shit on twitter, right?
 
@Ven I think he does not post retarded stuff. At least for my definition of retarded. :)
 
Ell
this is quite funny
@Ven he is a biologist or sthng, more known for being an athiest
 
Ven
@Ell I know
 
@wilx psychologists for thousands of years already have proven that emotionally unstable humans are susceptible to have their perception morphed by the emotions they focus on .. being afraid of something will drive you to imagine it in the dark, and hatred against someone will drive you to try to find a bad interpretation for what they say
 
3:52 PM
Sometimes I'm baffled by what people put into law and spend a certain amount of time researching
 
@Ell 7 hours in Germany. He planed it pretty well. Respect!
 
Like this guy: Fitts. He became famous for saying that the time that it takes for a user to move something from point A to point B is directly proportional to the distance and inversely proportional to the width of the landing pad.
 
@Ell flight to Berlin cheaper than train? Good vid :D
@Shoe Newton is famous for saying shit falls
 
y ell y
 
Ell
too large
2
@slaphappy i n33d halp pls
 
3:56 PM
you can gist it
 
@KhaledKhnifer supporting freedom of speech doesn't necessarily mean they have to invite everyone who wants to speak
 
Ell
so I post codez
 
@KhaledKhnifer s/t//
 
@Ell sen dme teh codez
@thecoshman you can gisi
 
@thecoshman s/s//
 
Ell
3:57 PM
why on earth is it calling something else after it says "DONE!" :V
 
Ven
TW: Trigger, Warnings, Trigger Warnings
 
Ell
hmm unless the callbacks are executed multiple times
 
Ven
@Ell other services
 
@slaphappy learn to regex "you can gist it" + s/t// = "you can gis it" gis as in jizz ¬_¬
thanks for making it no funny
 
@TheForestAndTheTrees the joke is not in that direction, it's in the other direciton .. the funny thing is they say supporting freedom of speech, and they banned him because of a retweet, he didn't write it, he didn't make the video either
 
Ell
3:58 PM
@Ven but but but services.length == 0 :(
 
@thecoshman yeah, I suck at regex ok
 
Ven
@Ell it's done fetching, now it has to process
 
@Ell after it logs or allerts?
 
Ell
@Ven oh also, cb is just function(ignore) {} in this case
 
@thecoshman gis doesn't sound like jizz
 
Ven
3:59 PM
@Ell don't ask me then
 
Ell
hmm
 
@KhaledKhnifer it does, if you are saying gis like you would say gist
 
Ven
but it's probably because you often want to do stuff with what you just queried
not only for side effects
 

« first day (1930 days earlier)      last day (3036 days later) »