« first day (2894 days earlier)      last day (2057 days later) » 

12:58 AM
Calling all young inventors and dreamers: #GoogleScienceFair
Is this age discrimination? >_<
 
1:10 AM
 
 
2 hours later…
3:25 AM
@LucDanton Found a python lib to get more detailed information out of the duolingo API.
 
 
3 hours later…
6:10 AM
Someone need to invent HTML interface for tensorflow.
Be the inventor to the web A.I.!
I have long suspected that stackoverflow has bots randomly upvote popular questions/answers.
 
6:27 AM
Hey guys, I wrote an open-ended question on SO and if anyone could give me some perspective on it I'll send some c00l internet points to you: stackoverflow.com/questions/52380155/…
 
6:45 AM
@OneRaynyDay Somehow still at work at 2:00 am and can't read your question but try these flags "-ftree-vectorize -fopt-info-vec-missed "
 
gotcha - will stick them in there
I'm reading the disassembly to see whether some autovectorization is done on the naive loop(and there is)
 
Or you can look at the output of this
 
Oh, interesting - I didn't know what these flags did
 
Also when I write junk like this, I normally throw in a bunch of aligns and restricts, much like horeshoes it works even if you don't believe
 
ah gotcha, this is some really good information
I'm going to paste this into the question, do some investigation, and get some shuteye myself
thanks man
 
7:21 AM
Morning
 
8:17 AM
@Mikhail found out if you put block size the same size as 256 bits for AVX2(kind of makes sense), it runs fast.
But I thought gcc would be smarter about it.
 
Which is kinda obvious
 
> A use-case for member concepts and/or template concept parameters
C++ is something we should fear
 
@Mikhail Well, in your typical architecture class, the block size is usually something like 32 floats, not 4/8, which surprises me.
 
9:20 AM
> Macros are OK since they are not really argument passing
C is something we should fear too apparently
 
9:44 AM
qwork qwork
 
 
2 hours later…
11:38 AM
See 24 seconds earlier — sehe 31 secs ago
work of art
 
 
3 hours later…
2:36 PM
Serious regression found in #ZFSonLinux 0.7.10. Administrators are urged to upgrade to 0.7.11. https://github.com/zfsonlinux/zfs/releases/tag/zfs-0.7.10 #GNU #Linux #ZFS
/cc @LucDanton
 
3:23 PM
-11
Q: C++ using a program to unlock a computer

Josh HaroldI need a way to unlock a windows based pc from a c++ program and so far have not found anything helpful from searching the internet.

/cc @Mysticial @milleniumbug
 
haha
 
hilarious
 
 
2 hours later…
5:51 PM
@Borgleader I'll see your bad question and raise you complete lack of even attempting to format a CnP:
-5
Q: This question is of c++ language asked in olympiad

user10381775Question 2 Sequence Land N people live in Sequence Land. Instead of a name, each person is identified by a sequence of integers, called his or her id. Each id is a sequence with no duplicate elements. Two people are said to be each other’s relatives if their ids have at least K elements in common...

2
"ExampleHereisthesampleinputandoutputcorrespondingtotheexampleabove.Sampleinput4‌​2446784830420106123058Sampleoutput3TimeandmemorylimitsThetimelimitforthistaskis2s‌​econds.Thememorylimitis64MB.Note:Yourprogramshouldnotprintanythingotherthanwhatis‌​specifiedintheoutputformat.Pleaseremovealldiagnosticprintstatementsbeforemakingyo‌​urfinalsubmission.Aprogramwithextraneousoutputwillbetreatedasincorrect!"
Spaces are overrated!
 
wow
> put on hold as too broad
Shouldn't it be "unclear what you're asking"? :P
 
6:15 PM
/cc @Mysticial
@JerryCoffin wow....
 
@Borgleader haha, I already have 9900K and 9700K benchmarks. I just can't release them until launch day.
 
@Borgleader isn't cinebench 2k not that good? I've seen threadripper perform up to 6k, no?
 
@OneRaynyDay Cinebench is very AMD-friendly.
 
@Mysticial I'm not familiar enough with the different performance benchmarks to know which ones favor which; but I've just heard that AMD is better for workstation-y tasks vs. intel
 
It depends. Because of the way the Zen core is designed, it's really good at running unoptimized scientific code. Which is exactly what Cinebench is.
Anything that's optimized (like with AVX) will usually swing towards Intel.
 
6:34 PM
Gotcha. Thanks for the tip :)
 
@Mysticial Hmm...seems barely possible that this might fall under "does not reflect the OP's original intent." :-)
 
There, couldn't resist costing a non-constructive comment. :)
The original question body was definitely better. — Mysticial 36 secs ago
Can't say whether it's unwelcoming or not.
 
nwp
6:58 PM
When in doubt: yes.
 
7:20 PM
@sehe noted
 
hi all
i had one global variable char a[12] = {0};
later i moved char a[12], to a class.. i had not initialized it with 0..
then, when i used %s for a, i was getting some junk values in the end..
i did strncpy to fill some values in a array..
later i used %s on a... i was getting some junk values in the end..
why does this happen? i second case and not when char a[] is a global variable..
note: i did strncpy of 12, in both the cases
 
character arrays, strncpy, and all C-string handling is worthless junk
std::string is terrible but it's still much better than that
 
7:41 PM
@Puppy thank you
 
7:55 PM
@Puppy this isn't really answering his question...
 
it certainly is
he has a problem because he's using one of the shittiest technologies known to man
if he uses a technology which is barely acceptable, the situation will not occur, and the problem will be solved
 
the question is "why does this happen?", not "how do I fix it?"
although I agree that C-strings are annoying to handle
 
meh
 
Yeah, but this is the wrong place for low quality questions
 
I don't give a fuck about why it happens
if that's all he wants to know he can ask somebody stupid
arguably I barely give the slightest fuck about fixing it either but that's another matter
 
7:57 PM
C++ has made u into a cold cold man
(just fooling around)
 
no
 
he was born this way
 
it gave me the experience to realise that the problem manifesting on the surface isn't always the real problem
 
¯\_(ツ)_/¯
 
@Puppy It's all junk, but strncpy deserves to be called out separately for being especially horrible. Most of them are bad, but at least with enough care, they can do something vaguely useful. I have a hard time even dreaming up a situation that would fit well with what strncpy does.
 
8:11 PM
Leaks memory when you do an O(n) c-style string lookup, you could get a shorter size
 
@JerryCoffin Is strncpy() allowed to read past the null character if there's room left before the n?
IOW, does the source have to be valid all the way through n characters?
 
nwp
8:27 PM
No, it simply gives an upper limit to the number of chars copied.
So you get an incorrect result instead of a buffer overflow which just upgraded the bug difficulty from UB to logic error and is undetectable with tooling.
 
@Mysticial No--it stops copying either at n characters, or at the first NUL character, whichever comes first. The reading part isn't too bad, but the writing side is ridiculous: if it stops at n characters, the result does not include a NUL terminator. Contrariwise, if it stops reading at a NUL character, on the writing side it's required to fill all the remaining space with NUL characters.
 
IOW, it's shit decorated with more shit.
Or at least many of the efficient strlen() implementations cheat by checking the page boundary.
 
So, it always writes n characters, regardless of how short the source might be, and if it stops at the specified upper bound, the result isn't a valid C string. Strange thing is that strlcpy has been around forever, works about as sensibly as anything working with C strings can, but as far as I know nobody's ever even written a paper suggesting that the standard include it.
@Mysticial Shit, deep-fried in shit, with shit frosting and shit sprinkles.
Oops--I left out the shit chips...
 
tonight's paper cut: media keys not working
 
Whats a common hash function used to hash strings in unordered_set?
 
8:39 PM
@JerryCoffin What kind of shit would be suitable of being spinkles? Even the top of the Bristol Stool Chart has them the size of nuts.
 
@Nils haven't looked at many implementations, but I'd expect djb's hash would be a reasonable choice.
@Mysticial Got it hanging right...okay, maybe that doesn't work very well. :-)
 
@JerryCoffin wasnt there some recent controversy about one of djb's phd students?
 
@OneRaynyDay Dunno. I guess it wouldn't surprise me. Doubt that would have a significant effect on the suitability of the hash function though.
 
@OneRaynyDay What's this about?
 
@JerryCoffin I never researched the correlation between sexual assault and suitability of hash functions so I wouldnt know
@Mysticial something about him defending one of his phd students jacob applebaum or whatever
 
8:52 PM
j@JerryCoffin thx
 
who did some rapey stuff
 
oooohhh... another one of those.
FFS
 
facepalm right
also, why do all of fintech recruiters previously work for places like victorias secret and other miscellaneous lingerie brands
I don't see how this is conducive to good recruiting strategies
 
wuut
 
they're giving me a call tomorrow about the QR position
 
9:00 PM
Could it be part of their recruiting strategies?
 
if it is I'm not sold, I'm more attracted to neckbeard-y CS recruiters
also, has anyone tried out the interactive jupyter C++ kernel: mybinder.org/v2/gh/QuantStack/xtensor/stable?filepath=notebooks/…
it's pretty amazing
 
@OneRaynyDay Hmm...maybe they both pay particularly well, or something on that order?
 
Shall I stay?
Would it be a sin?
If I can't help falling in love with you?
 
Reminds me though: was a bit surprised, but heard a while back that Victoria's Secret was actually started by a guy who wanted to buy some nice lingerie for his girlfriend (wife?), but at the time essentially the only choices were plain, white boring stuff from Sears, JC Penny's, etc., or else stuff from Frederic's of Hollywood that even most strippers would be embarrassed to wear.
 
<3 Lounge
- Jefffrey (Shoe)
 
9:13 PM
@Shoe Hey Small Fry...err Small Fffrey.
 
@JerryCoffin how do you know this?
 
hahaha
 
@OneRaynyDay Couple of DJs were talking about it, and played part of an interview with the guy who started it. Of course, they could have made it all up and recorded some intern (or whatever) answering questions for all I really know.
 
ah, cool :-)
 
Quick look on Wikipedia *seems* to say pretty similar things though. "When I tried to buy lingerie for my wife," he recalls, "I was faced with racks of terry-cloth robes and ugly floral-print nylon nightgowns, and I always had the feeling the department store saleswomen thought I was an unwelcome intruder."
"Lacy thongs and padded push-up bras" were niche products during this period found "alongside feathered boas and provocative pirate costumes at Frederick's of Hollywood" outside of the mainstream product offerings available at department stores."
 
 
1 hour later…
10:24 PM
Just got an email that reads this:
> Hello,

I know most scientist and mathematicians feel that Pi is a irrational number. I find this to be wrong. I have solved for the exact decimal of Pi and it is Exact.
What is the use of having this exact number, if it can be proven – which it can? How can this benefit society with the type of technology that exists. I am thinking that if one was to measure frequency or the speed of light, that this exact value of Pi would offer a strong contribution. I am interested in your feedback concerning this.
hahahaha
Can't tell if the guy is serious or just a troll so I'll ignore it.
 
searching for 'frequency of the speed of light' doesn't give as many crankish results as I'd hoped
 
nwp
> Dear,

Thank you for the email. I have calculated that exact number as well and use it to speed up my Pi program. I would appreciate if you didn't reveal my secret as my income depends on it. If you want you can send me your number and I can verify if it is the same number.

Thanks,
 
ha
 
seems like gcc is doing a really great job optimizing:
Time elapsed : 37.9553 <-- naive
Time elapsed : 2.58974 <-- gotos gemm gepp gebp
Time elapsed : 1.6152 <-- ATLAS gemm
I implemented the gotos one by just going through the paper and it seems like it's actually pretty close
This is on a 2003x4001 multiplying 4001x4000 matrix (testing for edge cases)
actually - nevermind, by setting block size from 4 to 8 (since I have AVX2), it yields even greater performance, almost neck-to-neck:
Time elapsed : 37.4626
Time elapsed : 1.67072
Time elapsed : 1.5553
does ATLAS not excel for large matrices (due to amortized scaling factors) or is just blindly following Goto's paper and letting gcc do the vectorized assembly generation really enough?
I am using some c++17 features like constexpr if to push some redundant stuff into compilation, but nothing too fancy
 
10:50 PM
Sounds too good to be true either way.
 
if you want I can send you over the code and you can try compiling it and running it on your computer
 
It can't be that easy to match a highly optimized library unless the library is shit.
 
it may very well be a flop
 
or the benchmark is borked - i.e. DCE all the code
 
DCE?
 
10:52 PM
dead code elimination
 
ok, let me do some sanity checks
 

« first day (2894 days earlier)      last day (2057 days later) »