« first day (1588 days earlier)      last day (3362 days later) » 

user3010322
4:04 AM
@JerryCoffin Can't you just use bitshifts into the 0, 8, 16, 24, 32, ... bit spots and that'll shift it into the correct endianess no matter what?
 
@Steve I'll fork you all night, Steve. Link?
 
its kind of illegalishh
depending on country
 
Stealing code or something else?
 
movies
 
Is this on github?
 
4:07 AM
in process of making it publicc yes
 
Did it occur to you that this is a horrible idea, Steve?
 
i have been working on the project for over a year
 
Keep them in a dropbox if you need to access it form anywhere
 
i was like this is time to make it public
 
Is code involved at all?
 
4:09 AM
yes
basic html codes
 
html is not programming
 
okay then no lol
 
Just use Dropbox, Steve
 
a lot of javascripts
 
What do they do and how do they connect to the movie?
 
4:10 AM
reason why i have it there is because i want ppl to collab on the project
its a web site or web app whatever you want to called it build based html5 player
works on almost every device first 6 months were just focusing on testing
 
MLM
@LucDanton This is what I am doing with lambdas: coliru.stacked-crooked.com/a/d1dea78e08d7a447
 
chromecast support airplay gaming consules and so on without ads or signups just simple UI
 
@MLM That looks really nice.
 
MLM
The template<typename Func> then int passDoThingIntoMe(Func doThing) { ... } is a bit magic to me though
 
If you were to write a function that reports the size of its std::vector<T> argument, how would you go about it?
 
MLM
4:16 AM
Isn't there a .size()?
 
Right, so a function which sole purpose is to call that and return the result.
 
MLM
I haven't used vectors because I don't have access on the platform I am targeting :( umm
int getSize(std::vector *vec) {
	return vec.size();
}
 
syntax error
 
lol
 
4:19 AM
Ah, I would have given you a hint to start with a function to report the size of an std::vector<int> then. But if you don’t have std::vector on hand it’s not the same.
 
@ThePhD No. I use KeeFox.
 
@LucDanton wait, are you asking a question or giving a challenge?
 
@Blob std::mem_fn(&std::vector<int>::size).
 
They are questions.
 
user3010322
@R.MartinhoFernandes How does that type in passwords? Automatically based on site?
 
4:20 AM
@ThePhD KeePass has this already (use the URL field + global auto type)
 
MLM
So a template is a way to accomplish generics for c++?
 
what’s a generic
 
In any case templates are useful for generic programming.
 
project is fianlly live people whos ready?
 
4:23 AM
pizza
 
MLM
Why does typename cover all lamdas?
 
i still have to add read me
 
@MLM template<typename Anything> Anything id(Anything thing) { return thing; } is one way you can write an identity function: it accepts anything, and returns it.
 
MLM
Does the compiler make a new permutation for every different Anything lamda I pass in? (doesn't matter but curious, also I am googling as I ask these things btw)
 
4:26 AM
Yes. It does matter some of the time, too.
 
@Blob
@JerryCoffin
 
E.g. id<int> is a separate function from id<double>.
 
@MLM Yes, like with C#'s generics with value types, except in C++ it happens for all the types
 
@Steve Don't ping random people.
 
4:27 AM
they are not random ppl
lol
 
@Steve
 
yes mark
 
whats up
 
@Stev
 
MLM
@LucDanton @AMostMajestuousCapybara Thanks for the info, really increases my understanding of this pretty elegant lambda solution
 
TIL chat only @pings when the username is the only one with the substring from the start.
 
No no it pings everyone
@Mar
^ 4 people
 
@M yo
 
4:30 AM
@Mar hey Mar dudes
 
@Amo Oh that's it.
 
MLM
@StackedCrooked The @ M Didn't ping me?
 
Can't verify @Sta
 
@MLM because you are not worthy
@MLM jk. the ping only works for 3 letters or more.
 
I like this three letter pinging.
 
4:32 AM
@Steve I'm back. Yes, honey?
 
But what if you only have two letters in your username..?
 
I now know why new users enjoy pinging for seemingly no reason.
 
MLM
ahh, I see, Capybara mentioned it above
 
Then are you unpingable!
 
HIDE EVERYONE!!!
 
4:32 AM
@Rapptz I figured it out eventually
 
@Blob its public now ccloud.us and project github.com/ccloudus/ccloudus.github.io
im out
have fun codings guys
 
> fun coding
 
@Shog9 Lol. I stumbled upon one of your answers on Google and I was surprised.
 
Lounge<Voting_Ring>
 
I'm mildly depressed folks still have to deal with FormatMessage
 
4:33 AM
More like Lounge<Russian_Roulette_Voting_Ring>.
 
It's not the nicest function ever.
 
@Shog9 s/FormatMessage/WinApi\/Windows/
 
@MarkGarcia s@FormatMessage@WinApi/Windows@
 
I'm sure it was pretty great for, say, the folks writing progman.exe
 
> L'Etat islamique brûle des instruments de musique "non-islamiques"
lol
> Islamic state burns "non-islamic" musical instruments.
 
4:36 AM
hi
 
@FollowMyProposals Hi steve
 
sont vraiment cinglés
 
Hi! Why am I Steve?
 
@FollowMyProposals Don't you want to be Steve?
 
Call me Bob then.
 
4:37 AM
sup bob
 
sup
@Blob Do you have a windows computer?
 
@FollowMyProposals No, I'm currently stable.
 
? What's stable?
 
Mental health
 
4:39 AM
?
 
No, I don't use Windows.
 
I'd want to get out for a little bit just to experience the strong winds and stuff.
 
4 messages moved to bin
 
@Rapptz Damn you're too fast.
8 messages moved to bin
 
4:43 AM
:p
 
: (
@Rapptz Do mods do this?
 
@FollowMyProposals you suck
 
No, I did this.
 
Are you a mod?
 
No I'm not.
 
4:45 AM
@FollowMyProposals He's a room owner
 
@FollowMyProposals No, but it's our job to keep this room in order. That includes keeping out spam.
 
@ThePhD I'm not sure I follow what you're trying to suggest.
 
@JerryCoffin He's referring to this
 
@Mysticial Are you a mod!!!!!1
 
4:48 AM
OK.
How do you make a room?
 
(nonportable) multichar literals can be used to detect endianness. (at compile-time!)
 
What do you mean?
 
@Rapptz I figured it was something vaguely similar, but wasn't sure of the details he had in mind.
 
@Rapptz Why is StackCrooked's picture so small?
 
I don't have the answer to your question.
Click on him to make it bigger.
 
4:51 AM
No, I'll show you a screen shot.
 
@AMostMajestuousCapybara lol no
 
lol (2nd comment)
 
Octocore?
Virtual cores no?
 
@MarkGarcia Now he only needs an expensive motherboard and expensive DDR4. :)
 
@Mysticial lol that's what I thought too.
@AMostMajestuousCapybara 16 virtual cores.
 
4:55 AM
Didn't know that i7 with 8 physical cores existed
 
@AMostMajestuousCapybara 8 cores 16 threads
 
@AMostMajestuousCapybara I've been using the 5960X for almost 2 months now. And it's starting to feel slow already. When I'm refactoring code and constantly rebuilding, that CPU stays pegged 100% and I'm still sitting there waiting like I used to do. Even though it builds twice as fast as before, my patience has gotten twice as short as well.
 
i7s are the only ones with 8 cores
if you want cheaper you go AMD
 
@AMostMajestuousCapybara That's cheating.
:)
 
4:57 AM
@AMostMajestuousCapybara well damn I thought we were talking about consumer grade CPUs
people usually don't build PCs with Xeons
 
Eeeh this PC is a Xeon E3-1245 v3
Fairly old but a Xeon nonetheless
 
v3 is not old.
It's Haswell.
 
@Mysticial I suspect you are using core binding?
 
my i5 2400 still acts like it doesn't need any replacement
 
@Mysticial That's so 2014
 
5:00 AM
@StackedCrooked Only for single-threaded benchmarks.
 
@Mysticial All previous generation cores aren't old Haswell.
:P
 
When I'm compiling code, it's 100% CPU across all 16 virtual cores.
 
Then don't compile code, problem fixed.
 
I'll probably switch from Sandy Bridge in 4 years :A
or more
depending on how soon my CPU will bottleneck my GPU
 
Haswell is not old until Broadwell comes out. Oh wait...
 
5:01 AM
@AlexM. I guess you'll have to wait for longer once DX12/OpenGL Next games comes out.
 
@MarkGarcia 4.5 as BartGL would say
 
@MarkGarcia probably
the CPU is the most overrated component when it comes to gaming
 
@AMostMajestuousCapybara Yeah I remember that. In seriousness they should go OpenGL 5.
 
@AlexM. Indeed
 
@AlexM. Eeeeeh depends on the game (Minecraft!)
 
5:03 AM
I wonder if DX12 is still C++/COM.
 
@AlexM. What's even funnier is that everyone on pcpartpicker thinks every computer is for gaming and only gaming.
 
There's some hint that it would be more like Mantle with a C API.
 
Mantle is gonna flop
 
I wanna see how pissed they get when I pop a Skylake Xeon into an enthusiast motherboard.
 
when they announce them
if ever
 
5:05 AM
@Mysticial lol yep
 
"Of these four forces, there's one we don't really understand." "Is it the weak force or the strong--" "It's gravity."
6
 
batman is so fucking badass
you can't have this kind of theme without being fucking badass
 
@AlexM. 2 years ago, I wouldn't have expected that code compilation is more CPU-demanding than playing Crysis.
 
@Mysticial TBH if your bottleneck when compiling code is the CPU, you must have a very good SSD
(or a terrible cpu)
 
@AMostMajestuousCapybara SSD isn't necessary if you have enough ram. But yes I have a Samsung 850 evo.
 
5:07 AM
well as long as a bottleneck exists, at least one component is terrible
 
@Mysticial Ramdisk?
 
@AMostMajestuousCapybara The CPU (5960X @ 4.0 GHz) is the bottleneck.
@AMostMajestuousCapybara Not even that. Windows will buffer commonly used files in unused ram.
 
Tell that to my 32 GB windows :(
 
@Mysticial You need to go back to motherboards with at least two sockets.
 
user3010322
@JerryCoffin The details were mostly that apparently just bit-shifting the various bytes into their place for an integer will just work, no matter which architecture that code is compiled on (and assuming the network stream you're reading from presents the bytes in 0, 1, 2, 3, ... order).
 
5:08 AM
@JerryCoffin I probably do. But then they suck at single-threaded tasks since I can't overclock them. :(
Also expensive as fuck.
 
user3010322
The only thing you're supposed to change is that 0, 1, 2, 3 reading order, depending on the endianess of the stream, but you're supposed to not have to worry about the actual endianess of your current machine.
 
user3010322
If, uh.
 
user3010322
That makes sense.
 
I've already done a lot of optimizing the compilation itself with pimpl and stuff. But in reality, my patience for waiting is dropping faster than Moore's Law.
 
once I'm done with school today I'll celebrate with a big QF
 
5:11 AM
@ThePhD I s'pose it might.
 
user3010322
@Rapptz Ah, right!
 
why is that guy so small?
the guy in the middle
 
You put him on your ignore list.
 
@Mysticial Yeah--we just need to convince somebody to build a board with 4 sockets, overlocking capability, and a mass-market price. Or maybe just a single chip with, say, 128 or 256 cores on it.
 
5:20 AM
@Mysticial lol
I'm too lazy to open VS even though I have an SSD
It opens instantly.
But the past has scarred me for life.
 
@JerryCoffin The current 18-core Haswell Xeons fit into the same socket as the high-end desktop ones. (including my motherboard)
But they don't make single-socket versions that are cheaper.
Nor are they overclockable.
I'd love to pop an 18-core Haswell into my motherboard and run it at 4 GHz. But I'd probably overload the mobo's power circuit.
8 cores @ 4.0 GHz will pull almost 300W under heavy load. 18 cores like that is asking for trouble.
 
user3010322
@Rapptz You can give me your SSD. :D
 
user3010322
Also, uh. Rapptz, what would you say to sol::push returning an integer indicating the number of items its pushed into lua?
 
y
 
user3010322
Well, it's just that sometimes structs/tuples can be pushed as multiple values (multiple returns), and it makes for cleaner syntax to let the pusher tell the caller how many things it's put onto the stack so you can deal appropriate (rather than assuming 1 and only 1, all the time).
 
5:25 AM
@JerryCoffin The Xeon Phi thing is pretty close to 128+ cores. Though I doubt it'll handle a compiler with any degree of efficiency. :)
 
@Mysticial No, it's asking for a gargantuan power supply and a data center in the arctic.
@Mysticial Probably not--at least the compiler would need some massive multi-threading to take advantage of it (and I'm not sure they have enough I/O bandwidth to keep all of them fed for something like compiling either).
 
@JerryCoffin I'd also need significantly more than 128 compilation units to utilize it.
 
user3010322
Oh. This reminds me that I have to learn Javascript at some point...
 
@FollowMyProposals why would you ignore Stacked
wtf
 
@AlexM. Based on his avatar, he's a known troll.
 
5:29 AM
@Mysticial Depend on how things were written. Just for example, consider a compiler built as a software pipeline: one core to preprocess, another to lex, another to parse, another to generate code, another to optimize, yet another to link (and linking could probably be broken up into at least a few phases as well).
 
Though he's since deleted his older accounts.
 
@Mysticial oh you're right
 
I'm not sure the Phi is any good at non-SIMD parallelism
 
@AlexM. If you want to taunt him, just start posting profanity. It doesn't need to be vulgar or ill-intentioned. Just any form of profanity.
 
@AMostMajestuousCapybara At least IIRC, it's supposed to be a MIMD machine.
 
5:33 AM
@FollowMyProposals shit
 
@JerryCoffin I guess you could argue it is a MIMD machine made of smaller SIMD machines, since the processors are independent :)
 
I read a recent article on the shittiness of the gather/scatter instructions on the Xeon Phi.
 
There is no gather scatter on Phi.
 
That along with the fact that gather on Haswell is also shit, doesn't bring much confidence in Skylake and Knights Landing.
@AMostMajestuousCapybara Yes it does. It's in the KNC flavor of AVX512.
 
@Mysticial Does seem to be a capability a new processor design should emphasize (optimize).
 
5:38 AM
@JerryCoffin TBH, I'm not sure if it's even possible for gather/scatter to be efficient. I can't think of any way to lay it out in silicon in a way that's in any way scalable.
 
@Mysticial Oh, seems you're right
 
That said, it took me a while to figure out how to do an all-to-all permute in log(n) time. Maybe there's something similar for gather/scatter.
Though if you're trying to gather stuff from different cache lines, I'm finding it very difficult to see how it could be in any way efficient.
Maybe it'll still work out if it's all in L1 cache.
 
@Mysticial I'd agree it's a non-trivial problem to which there probably aren't obvious solutions. I can still hope some CPU designer/architect is working on it though, can't I?
 
@JerryCoffin I would certainly hope so.
All-to-all permute is doable with critical path log(n) gates and O(1) wire-overlapping.
I haven't tried to actually build it, but I have a rough idea on how to approach it.
 
does it use logarithms
 
5:43 AM
Actually I'm not so sure it's possible with O(1) wire-overlap.
@AMostMajestuousCapybara In a similar manner to a barrel-shifter. Which has log(n) critical path.
Heck even the Kogge-Stone Adder and the Wallace Tree Multiplier are both log(n) critical path.
 
@AMostMajestuousCapybara You don't need to be an expert. All it takes is a wikipedia article.
 
I can hear the whoosh from here.
Thanks Mysticial-senpai.
 
woosh?
 
Thanks. Typo.
 
5:47 AM
@AlexM. That's rude!
 
lol
 
@FollowMyProposals gtfo
 
He really flagged it.
ahahahahaha
 
I hope whoever makes nyaruko releases the new OVA this year
 
5:48 AM
D E N I E D
 
Anyone in favor of kicking him for abusing flags?
 
@Rapptz reminds me of
explanation: in DoTA denying a friendly means killing them yourself so the enemy doesn't get bonuses for kills
 
fuck it
 
@AMostMajestuousCapybara For what it's worth, there is at least one paper covering some testing of the scatter/gather in Knight's Corner: arxiv.org/pdf/1401.7494.pdf
 
@Mysticial Yes.
 
5:50 AM
@AlexM. I can't believe he actually took the bait and flagged you twice 3 times.
 
lol wtf
 
I'll kick.
He's just spamming flags now.
 
He flagged like what 5 things?
 
Praise the Rapptz
 
some people have too much time on their hands
I always say
 
5:52 AM
btw, here's the context of this troll: meta.stackoverflow.com/questions/255214/swearing-in-chat
 
Life lessons from Alex.
 
@AMostMajestuousCapybara That's obviously "The Rapptzure"
 
@Mysticial Oh I have that downvoted.
Been so long.
BUT THE CHILDREN?!
 
so smooth
 
"it's bad for them"
 
5:56 AM
@Mysticial Everything Bad is Good for You (and them).
 
Is this what you read Jerry?
I don't think I've ran into this book in my entire life
 
@Rapptz I have read it, but not particularly recently.
 
I like how this documentation told me to scroll up all the way to the top of the page just to tell me that address is a 2-element tuple with (host, port).
Thanks python.
Could have just told me right there.
(I'm bored enough to complain about small things)
 
@Rapptz I'm sure Javadoc could be configured to require clicking through at least two pages to find that instead...
 
@Rapptz Speaking off, I think GitHub pages is borking off because my GH nick is mickk-.
 
6:06 AM
You sure?
It's working for me
&nbsp; is the source.
 
I did try one of the 'is down for me or just everyone' site before :( Still reporting it down.
@Rapptz No dice on FF. Can’t ping mickk-.github.io either.
 
I am using FF.
 
Anyway, I’ll let GH support figure that out. You can have a look at /post-mortem.html if you want though.
 
6:52 AM
1
Q: Feature request: Admin-stalking algorithm to prevent "Revenge Admining."

Evan CarrollWe currently identify when users are voting based on personal grudges. We call this "revenge downvoting." In this event, we roll back all their votes -- as we should. However, this logic isn't applied to admin actions and should be. We should act against "revenge admining." Observe, Exhibit 1. ...

 
filter_range<Pred, Range> or filter_range<Range, Pred>? I’m surprised I never polled for that opinion before.
 
latter
unique_ptr does something similar -- unique_ptr<Type, Function>.
 
It’s the opposite of what I currently have :(
I think I mimicked the ordering of filter(pred, r), which I arbitrarily picked.
 
It’s the same order as is typically done in a language with auto-currying but it’s a moot point in C++. Still, familiarity.
Well the good news is that I may or may not be starting from (near) scratch anyway!
Should I go full Niebler with filter being a functor, and not a function template y/n
 
6:58 AM
@LucDanton Good point but it's not always consistent
 
yes
@LucDanton Doesn't really apply in C++.
I did it that way too
But it just looks odd lol
 
@AMostMajestuousCapybara Between languages, or between range/sequence functions within a language?
 
@LucDanton Within a language
 

« first day (1588 days earlier)      last day (3362 days later) »