« first day (2306 days earlier)      last day (2658 days later) » 
00:00 - 20:0020:00 - 00:00

12:01 AM
@Telkitty That is the most sensible thing I have heard all Year!
 
nwp
@CaptainGiraffe It is occasionally warm and welcoming and helpful.
 
Ell
oopsie I'm creating a new folder for each compilation in coliru-mode
gotta fix that at some point :P
 
12:22 AM
> Yvelines: Il sort une arme à feu pour exiger un supplément fromage dans sa pizza
 
1:16 AM
@Borgleader I'm not actually certain. It seems like a good tactic to discourage lying, but at this point there are news sites that will use the disagreement as fodder for rumors that CNN hates facts so much it's declining interviews because they're afraid Conway will contradict them and show the sheeple the truth.
I get the feeling that CNN's viewership and Trump's support base are pretty much mutually exclusive groups at this point.
It might have been effective a year ago
 
> dans
?
@jaggedSpire +1
Many kinds of trivial Trump defenses would have been highly effective a year ago. And much in order.
 
Alas
Any negative polls are fake news, just like the CNN, ABC, NBC polls in the election. Sorry, people want border security and extreme vetting.
brilliant
this is going to end so well
 
I told my wife "Sorry. The kids want to eat fries and lots of candy".
All that talk about health and teeth is just manipulation.
 
but did you tell her her negative opinion was fake news
I'm sure it would have gone over well.
 
1:34 AM
Do you know what's the road condition is like between yellow stone national park to Seattle @Code-Apprentice?
 
children should eat children, this will simplify things
2
 
@Mikhail okay then Mr. Swift
 
@Mikhail like little girl eats baby octopus?
 
no
I live in a "bizzaro" world where I come home and do programming.
 
1:59 AM
@Telkitty I am not really along that path. I am further south.
 
Oo
I am looking at ads for hotels at Tasmania, I came across this:
Features
    -   Free parking
    -   Gay friendly
    -   Non-smoking establishment
    -   Tea / coffee making
Gay Friendly is a feature now? Should I be concerned?
 
( ͡°╭͜ʖ╮͡° )
 
@Telkitty or excited
 
...
 
@Telkitty so are you taking a road trip?
 
2:11 AM
I am thinking about driving from LA to vegas, then through yellow stone national park to Seattle. Back through San Fran.
@Code-Apprentice so yes
only at planning stage
but for the trip in Tasmania next month, it's a hiking trip
 
@Telkitty Unless you have a specific reason to visit Vegas, I'd skip it. From the way you've talked around here, you'd dislike it even more intensely than I do.
I'd take Yosemite (for only one example) over Vegas any day of the week. Oh, and if you're heading toward SF, I'd plan on at least half a day in Napa valley touring wineries--more if you have time.
 
I'll agree on the matter of Vegas
On the matter of Napa Valley, as a philistine, I have no opinion
I wish I'd been to Yosemite
 
somebody make a joke about the Tenderloin
 
@jaggedSpire Even if you don't like wine, a few are worth visiting anyway. Clos Pegase has some pretty cool sculptures. Sterling Vineyards, and Silverado Vineyards are both up on nice hills with beautiful views (and just short of a guarantee of gorgeous weather).
 
@JerryCoffin oooh
 
2:23 AM
@JerryCoffin Yes, I have been to vegas ... & yosemite. But my mum hasn't been ... she's with me this leg of the trip & we will some how end up in seattle to visit her sister (my aunt) & my cousin there.
I have not been to yellow stone & niagara falls and I plan to visit these two places
also vegas = cheap accommodation & entertainment, so worth to swing by :p
 
@Telkitty Well, there is that.
 
@sehe well done
@AldwinCheung c’était dans dans l’Essonne \o/
 
@LucDanton I've been maneuvering for some time to get rid of the ICE
Turns out it finally went away by making a lambda non-polymorphic. Had to spell out a long typename (but it was just an enum type. Not sure how that could trip the compiler. Oh well)
 
lambdas + templates is 'thar be dragons' territory
 
Apparently. It's GCC 5.4 so I reckoned it would be go well
Anyhoops, I went from (n ⨉ m ⨉ 2 ⨉ 8 + C) database insert statements down to 2 insert statements (moving all the looping to the database engine, which, I've been informed, loves to loop)
n could be in the thousands (or 10k..100k). m was likely always small
God knows why it was written so loopily before
And now, sleep.
 
2:37 AM
night
@sehe you might say it was a bit loopy
hides
 
That's some nice optimization. Does it affect performance, or is it mostly a legibility win?
 
@Telkitty the roads from Vegas to yellowstone should be pretty clear. It has been raining in western Idaho
 
@Aaron3468 Probably depends on other factors. Most DB engines let you compile ("Prepare") SQL statements. Without that, separate calls would be a lot slower. If they do that, it probably helps, but doing a single call is probably still quite a bit faster.
 
3:06 AM
@LucDanton something something le facteur n'Essonne jamais deux fois !
Voilà bonne journée
 
@JerryCoffin Ah, that's interesting. Then they're just using custom statements to run batch calls faster. It definitely reduces the amount of SQL to parse, and gets a bit of acceleration from running closer to metal.
 
3:34 AM
Does anybody know what version of gcc the latest version of mingw ships with?
 
@JasonC nuwen.net/mingw.html has 6.3.0
 
That's pretty bleeding edge.
Also thanks for digging that one up.
 
 
3 hours later…
6:31 AM
 
@Telkitty I had never success in dealing with girls who are fans of cats/ damn
 
s/girls/people/
internet loves cats
 
@Telkitty well im probably tough enough to not get hooked up with their "cuttiness"
 
6:47 AM
they like to act cute until they get what they want ... or if they don't, they will try a different tactic and this time with their teeth and claws
 
7:24 AM
@Aaron3468 Both. Although I only know about the second yet. First requires me to test it today
 
5 hours ago, by sehe
And now, sleep.
5 hours. Man. You need to treat yourself to more sleep.
 
@JerryCoffin Oh, I've benchmarked that for a similar stretch of code doing many inserts before. (I couldn't optimize that in the same way because it was external data being inserted instead of inserting relations/annotations to existing data). Here's the upshot: i.imgur.com/WnMeoIL.png
@wilx Sometimes do
(PS @JerryCoffin/cc @Aaron3468 that was using single prepared statements and prepared statements doing multi-row inserts of varying batch sizes. I still have that code around should you want to look at it. It was quite nice in usage: i.imgur.com/QxfFCYo.png the numbers indicate the "dynamic" batch sizes: 500, 120, 30 and single inserts here)
 
Sup guise
 
8:09 AM
@sehe How do you do the pixelation effect?
 
8:19 AM
all your faces
 
@wilx gimp (Filter/Blur/Pixelize); Just select, ^F, select ^F
 
@sehe I see. I shall remember that.
 
8:36 AM
hi
I have a C# WPF project, with C++ dll-s in it. On my cpu the C++ csproj doesn't build, because it can't find tchar.h. Include directories contains "$(VCInstallDir)include;$(VCInstallDir)atlmfc\include;$(WindowsSdkDir)include;$(‌​FrameworkSDKDir)\include;"
where is it?
 
@ntohl: What library is it? tchar.h does not seem to be Windows SDK header.
 
@wilx hmm. this answer states that it is Windows header. I don't know if it still applies, or it has to do anything with Windows SDK header.
 
@ntohl Oh, you are right. I couldn't find it in Visual Studio installation but it is in Windows SDK.
 
9:05 AM
The real reason I like abbreviating transaction to tx is that I can't type transcation properly half the time.
 
@R.MartinhoFernandes Which is statistically correct on that chat message ( ͡° ͜ʖ ͡°)
 
Ven
Hi
 
user1804599
9:19 AM
> In 2006, a side channel attack was published that exploited clock skew based on CPU heating. The attacker causes heavy CPU load on a pseudonymous server, causing CPU heating. CPU heating is correlated with clock skew, which can be detected by observing timestamps (under the server's real identity).
 
@rightfold That's convoluted that it can only be useful to communicate between inside and outside of Matrix.
I like the cache invalidation communication channel scheme better.
 
Ven
@TrumpDraws, Washington, DC
i'm the president and i like to draw
20 tweets, 357k followers, following 101 users
 
9:57 AM
@ntohl I suspect your WindowsSdkDir is not correctly set then. I just installed Windows 10 SDK and it has tchar.h in C:\Program Files (x86)\Windows Kits\10\Include\10.0.14393.0\ucrt
 
@wilx something is not set correctly indeed. ucrt folder is not in the default include list. Also I found out, that the c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ only contains 5 files
after I added ucrt into the include libraries, the tchar.h is found, vcruntime.h is not.
now I want to set VCInstallDir to the VS2015's dir. Doen't work. I set HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VC7's 10.0 to the right folder
 
10:13 AM
hey
I need a native English speaker for a sec
> The battery electric vehicles (BEV) didn't have the range that hydrogen cars do. I didn't want to plug in the car every night, and we didn't want to redo our electrical system at home to accommodate an EV. Hydrogen fuel just seemed like the future of cars.
heh
 
10:32 AM
hey
I have a doubt about virtual classes in diamond problem. How compiler resolves it? What virtual table contains in this case? Please help
 
@BartekBanachewicz What with it? I am not native though.
 
user1804599
> a doubt
 
@wilx not that
I was gonna ask about a different sentence
what can "brass" mean when talking about upper levels of management?
 
@rightfold can you please explain?
 
@BartekBanachewicz That, somebody high(er) in hierarchy.
 
10:36 AM
Brass is the high-ranking people.
 
I believe that's from the army where high ranking people got brass decorations on their uniforms
 
 
Ven
10:53 AM

C++ Questions and Answers

Solve problems and approach solutions. Just ask and lurkers wi...
 
@wilx I have overwritten the whole VC folder with the content of my colleague's folder, and now it works.
 
Ven
11:09 AM
> (the only stuff on MS's side is scripts for our Perl-based test harness)
@rightfold seems like even 'crosoft is using prove for the VS test suite :)
 
@rightfold please revert to his query to clear his doubt
 
Ven
salut aldwin
 
salut vène
 
@Abhi VMT is an implementation detail. You can use -fdump-class-hierarchy with GCC to get some info about what it contains.
 
Ven
c'est bien ma ven
 
Xeo
11:41 AM
TIL git rerere
 
nwp
Why do documentation sites such as Qt docs make it so hard to switch versions? #include <Connection> doesn't compile, but I'm using Qt 5.7, maybe they changed it.
The only site I know that gets that right is the python docs where they give you a dropdown menu to switch.
 
Includes should be backwards compatible.
 
nwp
yeah, but not forwards compatible, my version is older than the documented version.
 
user1804599
@Ven Nice, we are too. :)
 
user1804599
Because there's a test suite in PS and one in Perl.
 
user1804599
11:54 AM
And Perl outputs TAP, so I made PS also output TAP.
 
that time of the month, I feel that I am too good natured today
also having problems with mac partition of the external hard drive again today
 
Ven
@rightfold you have Perl tests? integration tests?
 
so I am using chkdsk on the mac partition of the external hard drive, but after doing some simple checking, it's just hanging there without indicate what it's doing ...
I am not sure how long I should wait, because not sure that's it doing
 
nwp
12:14 PM
shiny
 
@nwp I wonder if that triggers @Mysticial's rep counter
 
user1804599
@Ven yeah
 
12:30 PM
@AldwinCheung general panic begins, top gw2 team announces move to Smite as season 5 concludes
 
wow, even aion is making more sales than gw2? wtf
rip anet
 
don’t worry a new raid wing is coming out tonight
 
and both lineage I and II were released over 15 years ago
and they're still making more profit than gw2
what's the explanation?
are they F2P maybe?
 
I’m fairly sure they have in-game purchases at the very least
Wildstar is part of the 'Other sales' btw
 
> In my opinion the other MMOs on the market got better story, more frequently content and less in the store - more in game.

Compare to ESO for example, they got housing yesterday with an amazing editor and all. They also the same patch received sit-able chairs everywhere in the game, new armor/weapon skins to obtain for free and other goodies.
Omg sit-able chairs, that must be it
 
12:35 PM
how did they manage this technological feat
 
a mixture of range-v3 and coroutines, surely
 
@AldwinCheung And god knows aion sucks donkey ballz
 
Yeah it's not very good
 
I never played GW tho
 
Continent of the 9th looked promising but I never got to play it
@Rerito GW and GW2 are very different, GW2 is a (IMO) welcome fresh breath in the MMO space
 
12:39 PM
I play Warframe currently. Tho it's not a MMO per se it's quite good
It's F2P but the business model seems to be fair
 
at the time it was, I think it’s less so nowadays but I haven’t paid a lot of attention to MMOs much less MMORPGs lately
 
Yes, I meant at the release
I am also not paying much attention to MMOs
> 2016 was filled with disappointing MMO releases, most notably WildStar
 
Me neither
WildStar looked promising
 
Hi back.
 
Sup @Morwenn
 
12:42 PM
Driving is boring & tiring.
 
You mean your commuting to work?
 
No, I had to do Brest-Rennes-Le Mans-Nantes-Brest to go to the doctor /o/
Well, commuting to work is bring too, but not that much.
 
Brest-Rennes feels like it's never ending
 
Nantes-Brest is even worse.
 
12:47 PM
Gmail "secure identification" when you connect from at least three devices is soooooo fucking annoying.
 
@R.MartinhoFernandes How did you manage to go back in the history to answer a message from May? :o
 
@Morwenn permalink to a message has the id you can put after the : to answer it
 
@ratchetfreak The question was more « why did you dig up an answer a message that old? » morethan a technical question.
 
Ven
@ArmaDayshi ça suffit à l'œil humain 60fps de toute façon. Au pire ça peut faire une excuse à garder pour la prochaine défaite en compet ☺️
 
1:20 PM
@Morwenn Security generally is annoying.
 
@Ven Oh boy
 
Ven
1:51 PM
 
@Ven why would you stand in defence of C++
> I really like C++
clearly you haven't been using it enough buddy
 
Ven
@BartekBanachewicz MUH PERFORMANCEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE BARTEK
PURRFERMANCEEHHHHHHHHHHHHHHHH
Pretty much.
 
> Short, common methods like front() may be declared "inline". In this case the compiler not only has to not only expand the template hundreds of times for all of the different container types used, the compiler also has to expand and optimize the inline method definitions at every call site!
compilers haven't followed inline blindly for decades
 
Ven
blindly or at all
basically he likes C++ because he doesn't understand it
 
well it needs to respect the linking semantics
and he's blind to alternatives the language could have been using
you could replace C++ templates with something I call "trait bundles" (essentially a compile time struct with functions, types and constants you can pass to generic code) and have the exact same performance as templates but with much better semantics and error messages in most cases
 
2:05 PM
don't forget concepts
that would also help tremendously
 
Hype-a-loop, lol, I love this.
 
@wilx ugh this voice sounds like someone who does a lot of conspiracy videos on YT
@wilx is it another "I know better than Elon Musk and his board of advisors" video, because then I can save time not watching it
 
but if I had the opportunity to scrap templates in C++ and redesign them from scratch I would prefer the trait bundle. Though at the moment my design of them is far from production ready.
 
@BartekBanachewicz Are you suggesting that somebody wealthy and with a board of advisors always knows best?
looks at the direction of USA
3
 
@wilx no, I'm suggesting that there are always gonna be idiots basing their opinions on random photos and prejudices and I don't care jack shit about them
Elon has proven countless times that he knows what he's doing, and similarly those people have tried to prove him wrong countless times.
 
2:20 PM
@BartekBanachewicz Random photos what?
 
@wilx read that as "random excerpts of full project data"
He might even be wrong about the Hyperloop viability, but it doesn't matter either. In the end he's still doing way more than those complainers and I'm frankly tired of reading people who just bash things to feel better or whatever
The staggering ability gap between SpaceX and any of those is just so glaring I see no point in considering anything they say until it's actually backed up with anyone that counts.
 
@BartekBanachewicz lol I have no words for this.
 
@wilx yeah, I know you don't, because there's literally nothing to say other than huffing and puffing and feeling superior
 
@BartekBanachewicz lol
 
go out there and prove me wrong. Build a company that actually changes something. Then I'll go out of my way and personally apologize
 
2:25 PM
@Ven Hey, C++ needs to try things first so that other languages can get them right :p
 
But until that happens, you and the other bunch can put their opinions where the sun doesn't shine.
 
@BartekBanachewicz I read this as "The critics were right and I am mad but it does not matter because I have man-crush on Musk."
 
1 min ago, by Bartek Banachewicz
@wilx yeah, I know you don't, because there's literally nothing to say other than huffing and puffing and feeling superior
you're doing that right now
I suggest you stop right there and go feel superior somewhere else
 
@BartekBanachewicz Haha. No.
 
sigh
I thought that given your age you'd be a tad less childish
Whatever you want then.
 
Ven
2:28 PM
@Morwenn hah ;-)
 
@Morwenn too bad they don't backtrack from the failed ones
 
Do you not realize how silly you are? You are always mad when I post something critiquing the hyperloop and you argument by Musk's authority. When I point that out you get even more mad. And no point you actually try to prove the criticism is wrong and how.
 
@wilx Yes.
 
@BartekBanachewicz backwards compatibility, it sucks
 
@ratchetfreak if I ever make a language, the first thing it'll have will be explicit version spec at the top of each file
so that you can build together older and newer code without having to compromise the new code just because the old one needs special treatment
 
2:37 PM
interaction between versions is going to be a ***** though once you add non-trivial metaprogramming
unless you declare that it cannot cross version boundaries
 
> The proof of the correctness of this recursive procedure may be left to the reader.
IOW fuck you.
 
chances are they never checked themselves and it's wrong...
 
> It is mandatory to use an official approved fuel pressure regulator,
as specified by the Technical Director. This official regulator must
be fitted downstream of the fuel pump, such that the maximum
fuel pressure available to the injectors is never more than 10 Bar.
uegh
MotoGP looks as boring as F1
 
@wilx Hahaha, I like that.
 
> Variable valve timing and variable valve lift systems, driven by hydraulic
and/or electric/electronic systems are not permitted.
oh come the fuck on
 
2:43 PM
@R.MartinhoFernandes By the way, concerning the Ranges TS: sure it doesn't help to write iterators, but there is an independent proposal to standardize iterator_facade.
 
@BartekBanachewicz wait so driven by mechanical means is permitted?
 
with maximum bore of 81mm, fixed tyres, suspension bought from someone else it seems that the only changes they can make are in the gearbox
@ratchetfreak Possibly. Altough given that now all bikes must use the same ECU with the same software...
> The use of titanium in the construction of the frame, the front forks,
the handle-bars, the swinging arm spindles, and the wheel spindles is
forbidden.
that's probably for safety
 
just about every professional race on machines end up with such a multitude of rule patches
 
> In the MotoGP class the brake suppliers commit to sell to their customer
teams a front brake “MotoGP Season Package” for a price of no more
than 70,000 €uros per rider
lol
 
nwp
@BartekBanachewicz I only found fun-making, no actual technical arguments. Would not recommend watching.
 
2:54 PM
Morning
I can never remember what's the difference between equivalence and equality in C++
But now I do
 
@Shoe But it just has to do with total & weak orders, not specifically with C++ :o
 
nwp
3:11 PM
0
Q: Threaded PHP code is not deterministic

Herrego BekaI have the following code, running pthreads 2.0.10 with zts-php 5.6.25. The problem is, it should dump an array with the following values: array(2) { [0]=> string(3) "abc" [1]=> string(3) "def" } However sometimes the resulting array looks like this: array(1) { [0]=> string(3) "ab...

Really? You don't say...
 
@Morwenn Orders?
 
@Shoe A total order is when !(a < b) and !(b < a) implies that a == b.
In a weak order, if !(a < b) and !(b < a), then a and b are equivalent, but are not guaranteed to be equal.
IOW with a total order, equivalent values are equal.
There are also partial orders, but I don't remember how they work.
 
Threads 101: Thread unsafe entities are thread unsafe. Threads 102: An entity is thread unsafe until an effort has been made to make it thread safe. — milleniumbug 25 secs ago
 
@Morwenn I see
 
@Morwenn partial means that a<b and b<c doesn't not imply that a<c
 
3:24 PM
Oh, right.
 
4:06 PM
@ratchetfreak that is incorrect
Partial ordering is reflexive (a<a), asymmetric (a<b implies not b<a), and transitive (a<b and b<c implies a<c)
@Morwenn cc
In a partial ordering it is possible for two elements to be incomparable, that is neither a<b nor b<a.
Oh, a partial ordering is antisymmetric not asymmetric.
a<b and b<a implies a=b
 
@wilx At least to me, this seems roughly equivalent to somebody in 1920 concluding that space exploration via rockets can't possibly work. On one hand, it's true that by then people had been working on in for ~20 years, and the history included a lot of failures (and quite a few people who'd managed to kill themselves trying). Fortunately, the idea was valid, so even though it took another ~45 years to do it, the goal was achieved.
We can't be sure whether SpaceX and the Hyperloop will succeed, but the "failures" he points to in the video look pretty minor compared to what many of the pioneers in rocketry went through. In short, it doesn't look to me like the evidence even comes close to supporting any real conclusions.
 
user1804599
4:23 PM
What is the difference between ~n and ^{n} in Git?
 
@JerryCoffin The last sentence is what exactly annoys me in those videos/people.
 
@rightfold A~2 is the second-level ancestor (grandparent) of A; A^2 is the second parent (mother?) of A
Basically, ^2 only makes sense for merge commits.
A~1 and A^ (1 is implicit) are the same; A~2 is the same as A^^; A~3 is the same as A^^^ and so on.
 
4:52 PM
When you're trying to improve a sorting and you find yourself needing a fast way to compute the binary carry sequence.
 
@JerryCoffin He actually does comparison of hyperloop and rockets in one of his videos. Or at least air planes. And he actually does some calculations showing how difficult or impossible or impractical hyperloop is.
 
@wilx but what are the numbers based on?
 
@ratchetfreak Watch his videos.
 
@Borgleader pwned
-19
Q: Why I was banned from chat?

ThamizhandaI am a new user. I got chat access today after this, I don't know why I was banned in chat for 75 days. May I know the reason?

 
5:13 PM
yes i'm waiting for the moderator — Thamizhanda 2 hours ago
Famous last words
 
Eh, the performance of __builtin_ctz feels random.
 
nwp
maybe the implementation doubles as a random number generator
 
@Morwenn What processor are you targetting? Haswell?
I believe the tzcnt instruction has the same issue as popcnt from here: stackoverflow.com/questions/25078285/…
 
Eh, don't mind it actually. The benchmarks aren't showing regular results as they used to, even without __builtin_ctz. Not sure why.
 
oh
 
5:19 PM
I had finally found some use for ctz ç___ç
 
@BoltClock I'm waiting for the moderator ... to set me up some automated sock puppet accounts that not only that will not only up up-vote all my posts, but write some for me as well, since I don't have time to write a dozen answers a day. Oh, and since I rarely see a dozen good questions a day, they probably also need to auto-post good questions to answer as well...
God. It's been 30 seconds, and I'm still waiting. What are you lazy, or just not capable of a simple request like this? :-)
 
@Morwenn clz/lzcnt is something I use a lot. But not so much ctz/tzcnt.
 
@Mysticial I was reimplementing a heapsort-like function named « poplar sort », where a poplar is a perfect binary heap with its root stored on the right, so the size of a poplar is always 2^n-1. To make a poplar with a given size, I sort 15 elements with insertion sort (a sorted sequence is a valid poplar), then I compute how many levels I need to sift the next elements.
For some reason, the sift level follows the sequence 0 1 0 2 0 1 0 3 0 1 0 2 0 1 0 4, etc... which happens to correspond to ctz(number of size-15 subpoplars created so far).
I was hoping that there was a smart trick to find ctz(n) thanks to n and ctz(n - 1), but couldn't find any :p
 
Ell
5:35 PM
what is ctz?
 
Count trailing zeroes.
 
@Morwenn That actually sounds very similar to the grow-only emplacement vector that I implemented a year ago. I did an binary exponentially growing set of arrays and which one to access was determined by the bit-length of the index. Computing the bit-length requires clz/lzcnt.
 
user1593881
Sup? I don't where to ask so I'll ask here. Were there attempts to separate the ^%$#@! QT questions from the c++ tag?
 
@Mysticial It's funny how these patterns sometimes seem to appear out of the blue.
 
The biggest use I have for clz/lzcnt is binary-exponentiation via squaring.
 
5:38 PM
Isn't clz quite expensive to compute?
 
3 cycles
 
Oh.
 
bsr and lzcnt are the instructions for it.
I find bsr to be more useful than lzcnt since it sets a flag when it's zero. And I almost always want to branch on zero anyway.
lzcnt also requires an AMD processor or at least Haswell on Intel.
 
5:51 PM
@Morwenn There's a rather neat trick using X - 1 to isolate trailing zeros. I suspect their hardware implementation to count leading zeros uses the same trick, but with an adder that's wired up in big-endian order.
 
@JerryCoffin I came across a patent from Intel that describes a piece of hardware that computes leading zeros, trailing zeros, and pop-count.
 
I didn't take a detailed look at it, but it probably some reduction-based algorithm with O(log(n)) delay.
Hardware adders are much more complex. But they're so heavily optimized that everyone takes it for granted.
 
@Mysticial Right--the question is how much work you need to do to overcome the lead that adders already have, simply because so much work has already been put into them. At Intel's scale, doing it might make sense. For almost anybody else, probably not. I should add, however, that Intel has a lot of patents they don't use (in fact, years ago, one of their patent managers was laughing about how they'd patented what was, as far as he could tell, the worst possible algorithm for a particular task.
 
xD
 
6:08 PM
Come to think of it, it's actually pretty trivial to construct a reduction-based algorithm for lzcnt, tzcnt, and popcnt. They all share the same top-level structure. The only thing they differ by is the reduction operation.
- For `popcnt` use a 6-bit adder and just add them at each reduction.
- For `tzcnt` use a 6-bit index with a zero-flag. You either take the lower portion, or if the lower-portion is zero, add the bit-length to the index.
- For `lzcnt` use a 6-bit index with a zero-flag. You either take the upper portion, or if the upper-portion is zero, add the bit-length to the index.
Assuming 64-bit integers.
 
@Mysticial I evaded a ban, why am I banned.
topped of keks
 
7:03 PM
-2
Q: It's impossible to get the original file back from a checksum?

Gustavo RozolinIs it possible to write an algorithm that will mount the file from the checksum?

^ I read that as someone who's desperate to recover their files
 
@milleniumbug I'd use it for pirating! :-) Get somebody to send you the checksum for Photoshop, then re-create the original file. No copyright infringement involved, because nobody made an extra copy of their file at all.
Pigeonhole principle be damned--just make it work!
 
@JerryCoffin I don't mess with images or imaging software much. I don't pirate much either. Especially sense big brother windows 10
 
@johnathon I don't use Windows 10. Then again, I don't really pirate at all--but it sure sounded like more fun to me.
 
7:18 PM
@JerryCoffin lol well as loosely as you thew around the whole pirating concept I was a bit curious about how strictly you adhered to the law in that respect. I've herd of police officers to copy movies and sell them at local markets. Also herd the guy got arrested for it too. Not everyone has the same mindset on it. I'm all about open source if possible simply because I don't have to worry about that whole legal issue
 
@johnathon I like getting paid to write code, so I figure it wouldn't be fair to (even indirectly) deprive others of the same.
 
@JerryCoffin That's my mindset :)
@JerryCoffin Have you ever worked for a company that didn't share the same view?
 
@johnathon I'm not really sure. TTBOMK, all the companies I've worked for have done their best to follow the law, but I'm not sure how many were trying to be fair, and how many just avoiding risk. I'd guess at least a few probably leaned toward the latter.
 
7:41 PM
p.sure my employer violates some licence agreements, e.g. using vs community edition commercially
 
nwp
C++ is not doing too bad
maybe I will learn pointers or express, seems to be the new hotness
 
@nwp Regarding the first graph, seems like nobody uses SharePoint at home, and nobody uses Haskell at work?
 
nwp
@EtiennedeMartel that is one way to read it
I would interpret it more along the lines of enthusiasm for the "languages".
 
I guess that nobody uses classes at work then :p
 
helloooooooooooo
 
7:50 PM
@LadyGaga pls be my pockerfase
 
yes oh yes
 
@JerryCoffin I'm not going to say who but certain companies that have world corporate headquarters in a certain geographical region of the world tend to simply not give a damn until they get the cease and desist then follow up fine from the feds
@Puppy really!?!
 
nwp
@nwp I'm turning it back off because I miss notifications because they are now blue like everything instead of red.
Maybe they keep an eye on how many people switch back and see a problem.
 
@Puppy Last I noticed, using Community Edition commercially was allowed as as long as your team was small enough (5 or fewer, if memory serves).
 
7:59 PM
we're not
 
@Puppy @JerryCoffin let me go read their liscense
 
Haskell isn't popular in America because of the strict class systems there
7
 
00:00 - 20:0020:00 - 00:00

« first day (2306 days earlier)      last day (2658 days later) »