« first day (1789 days earlier)      last day (3149 days later) » 

3:00 PM
@ʎǝɹɟɟɟǝſ They have clearly different stresses
 
fuck, still 1:45h in the office
 
the comma is important
 
Hm.
What's the best way to reuse code in COM?
 
:D
Copy-paste.
 
what do you mean?
 
3:07 PM
Basically, inheriting components in COM is kind of a pain.
 
I remember there's an aggregation pattern
 
@CatPlusPlus instead of ssh or both (if possible) and letting the user decide
 
@gnzlbg No, that's your keyword
The config setting is called insteadOf
 
but I'm not completely sure what you're I'm talking about
 
The lack of space should be a hint
 
3:08 PM
@AndyProwl hehe, just 30 minutes in the office <3
no-one saw anything
 
I wanna go home
actually not even I wanna go swimming
 
@Mysticial Ok, thanks.
 
Hmm, I need to go buy myself a backpack for my laptop. The bag I'm using now is kinda not much useful... and I might want to take a proper camera to Seattle; hard to do that with the current thing...
 
I ordered all the enclosure parts.
I'll figure out the drives later.
 
user406009
@Griwes When are you going to be in Seattle?
 
3:12 PM
@Lalaland For CppCon + like 3 days around that.
Flying in next Wednesday.
 
user406009
Darn. I'll just miss you then. Flying out this Saturday.
 
@EtiennedeMartel Improve accuracy: S/Basically, inheriting components in //
 
I guess "fly in" makes more sense in this context.
 
user406009
Anyways, don't C and C++ have exactly the same performance characteristics (if you are careful enough)? There's no garbage collector or other runtime?
 
> In the US the cop would have asked to see his license and the guy would have been like "AM I BEING DETAINED?!"
he he
 
3:17 PM
They have almost exactly the same characteristics.
C++ is often better due to better inlining.
(Templates vs function pointers for sorting, for example.)
 
Except when too much inlining then you trash your icache but that'd have to be measured too :/
 
That's QoI.
 
I'm not sure it really happens in practice
 
@Lalaland In theory, you could use a GC or a JIT compiler in either. In practice, it's not common. In theory, C could be as fast as C++, but in practice that rarely happens either. You'd have to rewrite essentially every template as a macro, which quickly gets too clumsy to manage.
 
user406009
@JerryCoffin Yes, but you can at least eliminate the performance differences between C and C++ with code style.
 
user406009
3:21 PM
Unlike say, Python vs C, where the runtime/dynamic nature of the language gets in the way.
 
@CatPlusPlus thanks! putting in my global gitconfig url."git@github.com:".insteadOf github.com/ works!!
 
Hm, maybe I can get away with private inheritance and doing QueryInterface by hand.
 
@Griwes Why would C++ have better inlining than C?
 
@Lalaland Theoretically, maybe. From any practical viewpoint, no, you can't. At the same time, yes, you can come close enough most of the time that few are likely to notice or care about the difference (which, yes, is quite different from something like Python or Ruby).
 
6 mins ago, by Griwes
(Templates vs function pointers for sorting, for example.)
@Mysticial Literally the next message ;_;
 
3:24 PM
@Griwes That's like apples and oranges. Function pointers aren't replacements for templates.
 
> for sorting
 
user406009
@Mysticial qsort vs std::sort.
 
std::sort can inline the comparator.
qsort can't.
 
Oh, that shit.
 
user406009
Also, similar things with containers.
 
user406009
3:25 PM
Where you can inline the operator <.
 
> C
> containers
 
user406009
@Griwes There exist container libraries for C.
 
All other things being equal, C++ exception handling tends to be an inhibitor of inlining. (for some compilers)
 
> glib
ewwwwwww
@Mysticial That's QoI. The inlining thing with comparators isn't (at least not really).
 
user406009
3:28 PM
Anyways, I really hope this gets accepted.
 
Speaking of QOI, I've found that MSVC refuses to inline any function that returns a non-trivial type.
 
lol?
 
Fuck it, I'll macro that.
 
I haven't figured out where the line on "non-trivial" is. But it's probably somewhere between a POD aggregate to a class with copy/move constructors.
__forceinline give warnings about failure to inline.
Which is a PITA for operator overloading where you kinda need to return the object by value.
 
@Mysticial which version? all of them?
 
3:34 PM
Last time I checked it was VS2013.
Ran into it while working on my NumberFactory/YMP app a while back.
 
user1804599
LLVM y u no remove call to function.
 
Was doing operator overloading for the bignum objects. And the compiler starting bitching at every single operator overload that returned a bignum object.
 
@Mysticial lol
 
Arguably there are worst optimization fails that bug me.
The biggest one is probably that ICC pointer aliasing fails when inlining a function with stores. MSVC gets this right. ICC doesn't. Well...
 
3:54 PM
@TonyTheLion Murdermurdermurder intrigue scandals TONS OF BASTARDS murder handegg with the crown armies.
 
@TonyTheLion nice
 
Lesson for today: history is boring and history of royalty doubly so
 
If anyone interested in haskell
 
Only Bartek
 
4:01 PM
@catgocat someone bin this, kthx
 
Coolest-army diplomacy: wins the guy with the dankest army
 
I’m already using the original Haskell room.
 
haha good one
 
lol
 
4:02 PM
The Ruthless Robot
 
@ThePhD In three generations, the family goes from "the most powerful thug in the area", to "personally chosen by God to lead his most blessed nation."
 
@JerryCoffin Right? The whole thing just doesn't make much sense, really.
 
"hunting accident"
lol
 
ADG
hello i need help but it is trivial
 
@ThePhD Essentially just a larger version of the same thing as the basketball player in the post-game interview saying "I want to thank God for looking over us" (or whatever). As if God (even assuming he existed) was really interested in seeing to it that your team of overpaid galoots beat the other one.
 
4:07 PM
 
The actual valuable feature of this chat would be autoignoring replies to ignored people
 
@ADG To get help here, you need to come up with questions we find interesting (which usually translates to "seriously non-trivial").
 
@CatPlusPlus but then there would be replies to those replies
 
ADG
im writing program for arduino/robotics
 
We already have a robot
 
ADG
4:09 PM
it is somewhat c++ and i'm trying java syntax
 
and he's programmed fairly well if it doesn't involve sharp edges
 
lol
 
ADG
tony, it's a real life robot
 
where is my popcorn
 
4:09 PM
@Mr.kbok Those can be kicked
 
@Mr.kbok "Recursively ignore all replies in this thread" (but then you get people like me who cross the streams and turn threads on their head, so to speak.
 
@ADG this is also a real life robot, and this robot has powers to kick you out of this room if you don't quit whinging
 
@TonyTheLion Or keeping from getting lost and getting from his bed to the refrigerator by way of Poland...
 
@JerryCoffin If you want to be conservative and ignore what might be replies, you end up ignoring the whole channel
 
Tough
 
4:10 PM
@JerryCoffin hahaha
 
ADG
hmm i'm out
 
don't do java it's bad for you
 
ADG
no comments please
 
ADG
4:11 PM
mind your business, i'm agreeing to your terms
 
@AnastasiyaAsadullayeva lol
 
oh man
I <3 cats
 
@ADG you don't tell us what to do
 
ADG
and you don't comment anything what's good or bad for me
 
4:14 PM
cats are awesome
 
ADG
that has nothing to do with triviality of my doubt or anything
 
I said bye already
leave
 
@Mr.kbok Don't be confrontational, he works on Project Euler.
 
I like how native C# libraries have the usual native layout, C entry points, etc. It's super useful
 
> I am presently working on the Project Euler.
 
4:15 PM
@AndyProwl Well, they do may fairly good targets (for people who aren't good enough to deal with a difficult target).
 
@ADG friendly reminder that you don't have the authority to prevent people from commenting
@ElimGarak Am I missing a pun?
 
he wrote 'please' tbh
 
@Mr.kbok (check bio)
 
let the guy alone no need to lounge him
 
@AndyProwl you mean tbf right
 
4:17 PM
@Mr.kbok dunno, whatever works :D
 
@AndyProwl You're right, let's talk about how neat the CLR is instead
 
I wish I were competent enough to do that
 
So it turns out you can instanciate a runtime from inside any native application
 
really?
 
Yes
 
4:19 PM
@Mysticial Yeah, I have two of the 4GB Seagates around, so I'll just go with those.
 
In a native assembly, you can mix native and managed exports to expose an API for your library for both of your client types
 
@TonyTheLion There's a COM API, but also more "helpful" libs.
 
You're not the first to discover that chat moderation sucks. Things got better when kick-mute was added. But it's like a cup of water on a forest fire. — Mysticial 16 secs ago
 
4:20 PM
When writing in C++/CLI, you can use both generics and template metaprogramming at the same time
 
@Mysticial that will get close voted soon enough
 
You can SFINAE on managed type traits
It's a brave new world
 
I convert a vector<T> to vector<U> by calling vec.push_back(Convert(t)); in a loop. Can this be made nice with an std algorithm?
 
transform?
 
@StackedCrooked transform
copy if Convert is convert_implicit
 
4:26 PM
Ah. Using the UnaryOperation?
 
@StackedCrooked yes
 
yeah
transform(cbegin(vt), cend(vt), back_inserter(vu), [] (T t) { return Convert(t); })
something like that
 
const T & t, maybe
 
if performance++ is a concern
 
What about correctness? Unlikely to be correct in the face of a move-only type.
 
4:29 PM
yeah
 
and if you're not gonna use the vector<T> after the fact, you can use a move_iterator
 
@AndyProwl transform(cbegin(vt), cend(vt), back_inserter(vu), Convert)?
 
@R.MartinhoFernandes depends what Convert is
 
Niebler be praised
 
user1804599
Dead store elimination pass, y u no eliminate dead stores.
 
@elyse maybe it died?
 
@StackedCrooked I don't think it's about length
6
starred in 3, 2, 1...
3
there you go
 
christ have we turned into children?
 
not everything about length or size or dimension needs a star
 
4:31 PM
@TonyTheLion long ago :D
 
It's not a feature
 
@TonyTheLion I can't help it. The impulse to do it just shoots into me.
 
@набиячлевэлиь T const& t definitely
 
@TonyTheLion Children wouldn't make these jokes, man.
 
@R.MartinhoFernandes Yea they wouldn't you're right
 
4:33 PM
@TonyTheLion ...or would it?
 
alien kids
 
we're not talking about iterators here
 
@StackedCrooked you could try ranges
I said it
 
what's wrong with ranges?
I asked it
 
4:35 PM
That would likely become vt | transformed([] (T const& t) { return Convert(t); })
I thought we got rid of the flaggers /cc @JonClements
 
me too :(
@johnclements
 
:25601975 6 flags =/
 
> This user has been automatically suspended for posting inappropriate content and cannot chat for 29 minutes.
:(
 
i invalidated, but idk if it was enough
 
I invalidated too
 
4:36 PM
Ranges are good partly because you can optimize stuff when you know what the container is.
 
@Borgleader "inappropriate content" what a farce
 
yeah, keep going
 
Here we see a room moderator being banned by moderation system
10/10
 
there should be an automated thing where if you keep flagging shit and it gets invalidated all them time then youre deemed unable to know what constitutes flaggable messages and that feature is disabled for the user in question
it ought to stop this kind of crap
 
4:39 PM
There should be a lot of things, and there shouldn't be a lot of things
 
it would be just simpler to have flags be public
 
But hahaha chat chnages
 
@AndyProwl nah, that would lead to revenge flagging.
 
As it should
 
@Borgleader I think it would solve most of the problems with flags
 
user406009
4:40 PM
@CatPlusPlus But chat's making tons of improvements! Just look how quickly they killed StarGazer!
 
@JonClements please do something
we're tired of this
 
He probably isn't online
 
yeah I figured
 
Which makes it even funnier
 
4:41 PM
@Anastasiya for mod
 
#DongForMod2015
 
user406009
#Nooble 2016
 
Someone should become a SO mod
Like mistycial
 
Isn't it easier to convince a mod to become a Lounger?
 
is there a limit to # of flags like # of downvotes? (per day)
 
user406009
4:42 PM
@Borgleader You could experiment!
 
whatup all
 
let's look in the list of active users it's gonna be really hard to figure out who is flagging
 
user406009
 
user406009
@AndyProwl Binary search. Ban half the chat. See if the flags keep coming.
 
4:44 PM
Would be faster to ban everybody. Then no more flags.
 
@Lalaland :D
ok, I can finally leave the office
later guise
 
0
Q: Chat flagging is out of control

ʎǝɹɟɟɟǝſIn Room 10 of Stack Overflow we have had a troll (or multiple trolls) for the past few weeks casting random flags and generally being disruptive. Today for example I woke up to this. For us or room owners there's no way to handle this kind of disruptive behaviour, and moderators cannot help e...

9
 
Isn't room 10 the botany room?
 
Looks like its loungc now
 
yes
 
4:51 PM
Why are there stars on everything?
 
user406009
Is there some star spammer here or something?
 
Because trolls.
 
user406009
Darn, we need StarGazer.
 
@набиячлевэлиь flag troll prob ran out of flags?
 
user406009
They just rekilled it last night too.
 
4:51 PM
lol these stars
Can some owner invalidate them?
 
@ʎǝɹɟɟɟǝſ add a screenshot of the stars will ye?
 
my god its full of stars
 
Sorry owners are currently banned
 
user406009
@CatPlusPlus Wait?
 
Hey, the amount of stars can be reached fast enough. It shouldn't last long.
 
user406009
4:52 PM
Really? How?
 
@Borgleader They're gonna run outta stars, too
 
user406009
@набиячлевэлиь They will just create more sock puppets.
 
Cat help me here.
 
@Lalaland Don't they need 20 rep?
 
I said I will not deal with this garbage
 
@набиячлевэлиь 20 rep is piss easy to get
 
Do you need 20 rep to star?
or flag?
 
@Mr.kbok Can I steal that one for the meta post?
Mine sucks
 
4:54 PM
@Borgleader But the chat-from-proper delais is big enough
 
@ʎǝɹɟɟɟǝſ Sure, I did it for your post.
 
@Mr.kbok Thanks
 
Add sino @Mysticial
 
I think convincing Mysticial to mod is probably the best idea here. — Shog9 ♦ 16 secs ago
 
4:55 PM
what the fuck is going on
 
I gotta quote myself here
<CatPlusPlus> Becoming a snackmod through public elections and then having to volunteer shitton of work on main site is THE BEST WAY to combat this problem
<CatPlusPlus> cleraly
Called it 10 minutes ago
 
oh hey apple keynote
 
> implying you don't spend all day on snackchat anyway
 
Being a mod is an obligation towards the main site
 
I wouldn't know, I'm just a SO peasant.
 
4:57 PM
You're all clearly overreacting
 
It's the ghost of LRiO haunting us.
 
this is bullshit
 
Please someone answer it.
 
@PravasiMeet When we want to answr questions we do. No need to dump them in here.
tyvm
 
@PravasiMeet You already posted your question on SO
No need to post it here
 

« first day (1789 days earlier)      last day (3149 days later) »