« first day (2096 days earlier)      last day (2764 days later) » 

2:03 PM
@Rainbolt I wonder what the dev manager said: "I have no idea! I've donated a can of spam!"
 
@MitchSchwartz done :)
 
I don't want to look through a day's worth of scrollback so forgive me if this has been posted already
 
oooh, I have another challenge idea: I'll take all of the KC historical alphabet challenges we've had, and pass in the output string, and a number from 1 to 26. They need to scale the output to the appropriate size.
Basically pattern matching
 
@Adnan Done.
 
hi @Dennis
 
2:15 PM
Hello.
 
2:25 PM
@Lembik Did you try dropping to runlevel 2? That might help, especially when multi-threading is involved.
 
@Dennis I did exactly that!
Oh I wanted to ask.. do you think it's the kind of thing that would be sped up by a good GPU?
just out of interest
@Dennis my theory is that there are some complicated cache effects... maybe profiling could tell me?
 
@Lembik Maybe. I have no idea how to program on a GPU (I also don't have an AMD GPU, so there's no point in trying), but given that the big loop is perfectly parallelizable, it might work pretty well.
 
@Dennis cool. I didn't mean on my computer. I don't have a proper GPU
I was just interested
 
Neither do I. I just use the integrated GPU of my processor.
 
@Rainbolt that's amazing
@TuxCopter you can't put tags in links, tags are links
 
2:38 PM
@Lembik No clue. I'm hardly an expert when it comes to writing fast code. Could you share the Python wrapper for my submission?
 
@Dennis Thanks :)
 
can I complain about what a pain it was to get it work too :)
Actually Ton Hospel's was worse because he had some odd way of exiting that screwed up all pipes
so you were both a pain :)
 
@GLASSIC If that's truly the reason you got fired it sounds like a pretty shitty place to work
 
0
A: Sandbox for Proposed Challenges

ZgarbGenerate antsy permutations code-golf permutations Introduction I defined the class of antsy permutations in an earlier challenge. As a reminder, a permutation p of the numbers from 0 to r-1 is antsy, if for every entry p[i] except the first, there is some earlier entry p[i-k] such that p[i]...

0
A: Sandbox for Proposed Challenges

Nathan MerrillAlphabet pattern matching We've had a lot of alphabet challenges. For this challenge, you are passed the output of an alphabet challenge, and you need to output the pattern scaled to size N. For example, if N=5 and you were passed the L-phabet: ABCDEFGHIJKLMNOPQRSTUVWXYZ BBCDEFGHIJKLMNOPQRST...

 
2:52 PM
@Dennis Clearly:
59
A: Calculate the number of primes up to n

DennisC, 0.026119s (Mar 12 2016) #include <math.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define cache_size 16384 #define Phi_prec_max (47 * a) #define bit(k) (1ULL << ((k) & 63)) #define word(k) sieve[(k) >> 6] #define sbit(k) ((word(k >> 1) >

@Lembik Hey, I have an AMD GPU (r9 290, which is slightly old but still pretty powerful). Want me to test something?
 
@Lembik Sorry... I've been wanting to ask you: Does our code have to be correct for arbitrary nxn matrices or just the randomly generated ones? I'm asking since 35x35 will work perfectly fine with 128-bit integers for these, but the edge case of all 1's won't fit into the data type anymore...
@DJMcMayhem You've picked the one time I had a successful fastest code submission. :P And as you can tell from the revision history, it took some time to get it right...
@Lembik Hm, that's quite consistent with my timings in Bash.
 
@DJMcMayhem would be cool but someone has to write some code first :)
 
@Dennis Your first revision would have won the entire challenge
 
@Dennis just with randomly generated ones is fine. In fact I slightly regret having integer coefficients instead of real numbers in the range 0 to 1
 
Heh, my approach wouldn't even have been possible with real numbers... That said, I should try Gray codes instead of that.
 
3:00 PM
@Dennis It is probably too late to change it now and in any case, I think numerical accuracy would then come into play
but I think it might be a better challenge
 
@Lembik OK. Well, if you want me to test anything, feel free to ping me and I'd be happy to help.
 
my understanding is that the Glynn formula is much better for numerical accuracy
@DJMcMayhem thanks!
 
I'm usually free in the 0-6 UTC range
 
cool
 
@DJMcMayhem Unfortunately, to try GPU programming, I'd need ssh access to your computer. :P
 
3:01 PM
so sad for GMT though....
@DJMcMayhem you could set up a virtual machine for him?
:)
 
@Dennis Really? You couldn't just send me the code and have me run it?
 
0
A: Sandbox for Proposed Challenges

TimmyDThe Last Monday code-golf date Monday, October 31st, is Halloween. And it got me thinking -- I wonder what other months have the last day of the month also be a Monday? Input A positive integer in any convenient format representing a year, y > 0. Output A list of the months of that year wh...

 
I wanna try GPU coding. It sounds fun
 
@DJMcMayhem After each edit? :P I wouldn't be able to test it locally...
 
Yeah, I guess that makes sense.
It might be easier to just ship my GPU to you, lol
 
3:05 PM
That's an idea I can live with! :D
 
It would probably be cheaper to just buy one than to mail it that far
 
amazon cloud has them
which might be even cheaper
 
I've been drooling over the new GTX pascal series. It looks so cool...
 
I briefly ran Linux and Windows 7 on the same computer (integrated GPU for Linux, video card for Windows for gaming and BTC). Was fun.
 
And surprisingly cheap too!
 
3:07 PM
In parallel, I mean.
 
@DJMcMayhem What GPU do you have now?
 
14 mins ago, by DJMcMayhem
@Lembik Hey, I have an AMD GPU (r9 290, which is slightly old but still pretty powerful). Want me to test something?
 
@DJMcMayhem I'm pretty happy with my 1080.
 
@DJMcMayhem You'd be wrong. I buy all my PC parts from Amazon. Crazy expensive here...
 
Can you try this: minxomat.github.io/NanoCL ? It compares native JS performance with JS+GPGPU.
 
3:08 PM
@Dennis where is here?
 
Paraguay
 
I'm also interested in integrated GPU results.
 
aha!
do you have you pay import duty?
 
@Dennis Eh. I'd imagine shipping electronics internationally is pretty pricy
 
@Lembik In theory or practice? :P
 
3:10 PM
@Dennis practice!
who cares about theory :)
 
Nope.
 
I mean if it comes from amazon it's not really disguised
how bad is the postage price?
 
@DJMcMayhem 18 dollars per kilogram. Not exactly cheap, but still worth it.
 
@mınxomaτ Sure. I'll get back to you in ~20~ minutes
 
@mınxomaτ 342 / 5385 on my core i5-5300U
 
3:11 PM
Nice
 
@Dennis that's not too bad if you are buying a cpu :)
 
I'll test it on my personal machine at home tonight
 
@Dennis and is postage reliable?
I was in ecuador for a while and something things just didn't arrive
I know ecuador != paraguay :)
 
@Lembik It doesn't come with the postal service (which would "misplace" the items anyway) but with a private company.
 
@Dennis that's pretty cool. Amazon really know what they are doing
 
3:12 PM
I found that it brings massive performance increase on really low power SoCs, like the Intel Baytrail. On my Win10 tablet it's 70/2000
 
I also find with Amazon, the clever swines, that sometimes it is secretly posted from much closer than you would have thought
 
@TimmyD No way! I'm so jealous. A friend of mine has a 1070 and a vive. He let me try it out, and it was the coolest gaming experience I've ever had
Not worth 1600$ though
 
@DJMcMayhem Yeah, I went a little overboard on my new laptop.
 
So a 1080+laptop? Do you need an adaptor then?
 
@Dennis how quickly can you get stuff?
 
3:15 PM
@DJMcMayhem No, I bought it from a boutique. 17" 4k GSync display, Core I7-6700K, 32GB RAM, NVidia 1080, 2x Samsung 950 Pro NVMe 256GB in RAID-0.
 
Daaaaaamn
 
@Lembik That's not Amazon. I use a mail forwarder from my country. The have a shipping address in Miami and weekly ship everything that gets delivered there to my country.
@Lembik Roughly a week after delivery in Miami.
 
@Dennis Oh I see!
do you do this mostly to avoid officials?
or is it more reliable than how amazon posts stuff?
 
I recently got a work laptop. I7 6700k, GTX 960m, 500GB ssd and a touchscreen. I don't technically own it, but I can use it whenever, and I really like it.
Still prefer my tower though
 
oh.. I just realised.. because amazon just won't ship lots of stuff to paraguay?
 
3:19 PM
Direct shipping would go through the local postal service, so pricy electronics would never reach their destination.
 
@DJMcMayhem I used to prefer towers, but the shrinking electronics has resulted in laptops being essentially on par with desktops in terms of performance. And it's a lot easier to haul to a friend's house a backpack with ~15lbs of laptop gear rather than a tower, monitor, and backpack with gear.
 
Storage is the last hurdle. I can't stuff my four 4 TB HDDs in a laptop.
 
All you people with nice computers :(
I'm sitting here with my i5-560M and 4GB RAM
 
@Dennis That hurdle is rapidly disappearing. 4TB SSDs exist (they're ridiculously expensive now, though), and 6TB and 8TB are right on the cusp of being released.
 
4 TB SSDs. O.O My first HDD held 40 MB...
Too bad they cost 10 times as much as a comparable HDD...
 
3:28 PM
My first hdd was 1TB
 
So I just learned that there is a "Copy snippet" feature on TIO from the starboard, and now I wonder how I never noticed such a cool thing before
 
My first HDD wasn't -- my first computer didn't have a hard drive.
 
I think my first computer with a hard drive was an 8MB drive, IIRC.
 
Oh sheesh. If you value your sanity, do not ever look at the C code Cython generates
 
3:32 PM
My second HDD held 850 MB. Had to partition it because of the 500 MB limit...
 
@DmitryKudriavtsev Mine is worse. :P
 
@DJMcMayhem My first hard drive was around 20gb.
It was in a ThinkPad T21
 
any stats people recognise this distrubution? i.imgur.com/WNeqPRh.png
 
Looks like Boltzmann's law, but that usually has a peak on the left
 
Wait, shit. I got my hands confused.
 
3:38 PM
:33120897 lolwut
 
That sounded strange
 
@TimmyD Yeah, I'm not really awake yet...
 
@mınxomaτ I'd love to test that, but I'm having some bizarre Internet issues. I'll let you know if/when I figure it out
 
Wait, there is no such thing as Boltzmann's law. Let me figure out what this reminds me of. Something about temperature.
 
3:39 PM
thanks
 
@Lembik Poisson perhaps?
 
Where's the data from?
 
@Zgarb slightly complicated but it's probabilities associated with boson sampling
@Sherlock9 thanks!
 
Does sed have capturing groups?
 
Probably a yes then
 
Yes! Internet is back!
 
@Lembik Ooh, quantum stuff.
 
phew
 
:)
 
3:43 PM
@mınxomaτ ^
Not sure what it means though. Is that good?
 
Top is JS, bottom is JS+GPU. Basically random complex FLOPS
That's good. But it shows that low power systems benefit more.
 
So does that mean my GPU gets 8.1 GigaFLOPS?
 
No, not really.
 
Sorry, let me rephrase. Does that mean JS+ my GPU gets 8.1 GigaFLOPS?
 
It calculates 100k random points on a mandelbrot set a few times. The score is overall floating point operations/s
It's really just for comparison.
 
You can see what it does by just viewing the page source.
 
umm why?
@TuxCopter
 
> That makes the 290’s peak floating-point performance about 4.84 TFLOPS, while its DP rate is 606 GFLOPS.
 
@TuxCopter hahahaha
 
@DJMcMayhem This test uses 4 floats packed per parallel operation. So one iteration works on a maximum of 8192² * 4 floats in parallel.
 
3:48 PM
@mınxomaτ For comparison, my Phone gives 53-[870-960] wildly fluctuating.
Meaning my computer is about 10 times as fast as my phone
 
@DJMcMayhem It works on your iPhone? Great. Samsung actually removed the GPU function used here in their latest smartphone iteration >:(
Works on my Note 3, but not my S7.
 
@mınxomaτ nope. Galaxy S4 mini
 
Oh, misread
 
3:51 PM
@mınxomaτ Doesn't work on my personal Nokia Lumia Icon nor my work Galaxy S6.
 
Not surprising.
Newer Samsung phones need a workaround, reducing the number of parallel operations to max. 8192^2 with a huge overhead.
 
Where would I find said test?
 
Good gravy, folks. This challenge is not a duplicate -- the OP created the draw an ASCII triangle, posted a bounty to change it to an hourglass, we said no, don't do that, put it as a new challenge instead, and now folks are voting to close the new challenge as a dupe of the original. Really?
 
@mınxomaτ How do I start the test?
 
3:56 PM
It does automatically
Does a few runs and displays an average
(needs WebGL and a supported GPU)
 
> WebGL
crap
Graphics Feature Status
Canvas: Software only, hardware acceleration unavailable
Flash: Software only, hardware acceleration unavailable
Flash Stage3D: Software only, hardware acceleration unavailable
Flash Stage3D Baseline profile: Software only, hardware acceleration unavailable
Compositing: Software only, hardware acceleration unavailable
Multiple Raster Threads: Unavailable
Native GpuMemoryBuffers: Software only. Hardware acceleration disabled
Rasterization: Software only. Hardware acceleration disabled
 
What's your setup?
 
It even works on Motherboard-integrated GPUs. Weird that most laptops don't even have those --- you know, for hardware encoding.
 
Elie@elie-asus — /d/kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
»  ls
$Recycle.Bin/
I think Windows do not really liked
 
3:59 PM
Rofl, the Dell page just keeps on refreshing for me.
 
Actually, that's a bit old. It also has a new HDD (320 GB 7200 RPM) and a Dell Latitude ON card.
@mınxomaτ Try an incognito window.
 
@DmitryKudriavtsev ARK says your CPU is close to EOL, currently EOS: ark.intel.com/products/49653/…
Doesn't have a GPU ID, just says "HD". Hm, I guess that's just too old.
 
@TimmyD I commented as much on the challenge
 
@mınxomaτ "Intel HD Graphics" were the first iteration.
 
I actually have a dedicated GPU. It is Nvidia Quadro NVS 3100M @mınxomaτ
 
4:03 PM
@TimmyD It's still HD (newest Iris), but they have IDs.
@DmitryKudriavtsev Then your browser should be able to access that w/o and problems
Might want to look into that.
 
Right. Newer versions are like "Intel HD Graphics 4600" ... no model number is the first gen.
 
@mınxomaτ Google Chrome 54.x beta on Arch Linux using Nouveau open source drivers.
@TimmyD There are CPUs such as Celerons that have newer integrated graphics with no model number.
 
Uh, no idea about that. I just have Intel HD or APUs (with nonfree drivers) here.
 
Just Intel HD
 
@DmitryKudriavtsev Ah, fair point.
@mınxomaτ "Iris" isn't the newest, it's just the upgraded models.
 
4:08 PM
Also, this is the easiest to open laptop I've ever used. One screw to access almost all internals.
Two screws for the HDD, which doesn't have a custom bracket, just a small plastic bezel held on with clips.
 
Beating pyth by 10 bytes is always so satisfying
 
4:24 PM
One of the school computers where I go gets 630/9460
 
That's pretty overkill for a school computer
 
4:43 PM
Neat.
 
I recently passed 5k just from residual rep. Yay, I guess.
 
7 away from an order of magnitude smaller than that, yay!
 
I'm half tempted to draw a really crude "1" in the front of that in red and be like "Look, Dennis, I'm beating you! :p"
 
Do it!
I'm at a (partially) repeating number right now
16333
 
user image
4
Look, @Dennis, I'm beating you! :p
Well. My work here is done. Time for lunch.
 
4:59 PM
@xnor does binary_power_dict just take log 2?
 
0
Q: Wave simulation

LogicProgrammerI have tried to answer an British Olympiad informatics question however failed. The problem is to simulate a circular water wave. To elaborate, please look at question 2 in the following link: http://www.olympiad.org.uk/papers/2003/bio/bio03ex.pdf It is actually supposed to be implemented within...

 
@xnor in which case isn't x.bit_length() the same ?
x.bit_length - 1
 
@Lembik yes, that's probably better
 
5:21 PM
@NewMainPosts They deleted their account???
 
trolololololol
 
I only realised today that quincunx is a real word
I wish I could put a bounty on this meta question about bounties
 
@mınxomaτ I have a newish Samsung S7 and I get 74/2422 at the end.
 
5:37 PM
What browser are you using?
 
0
A: Sandbox for Proposed Challenges

PavelDisplay an xkcd! xkcd is everyone's favorite webcomic, and you will be writing a program that will bring a little bit more humor to us all. Your objective in this challenge is to write a program which will take a number as input and display that xkcd and its alt-text (mousover text). Input Yo...

 
Use the Legendary Google Pixel, much more worth it
 
5:50 PM
0
A: Sandbox for Proposed Challenges

Kritixi Lithos[Lang1] vs [Lang2] ... vs [LangN]: Battle of the golfers! code-golf teamwork and other tags for the challenge questions, which may be a lot. Note: I haven't figured out all the kinks out yet, all I have is a general idea that, with your help, can be put properly into an awesome challenge (I ...

 
^ Comments will be appreciated
 
@NewSandboxedPosts @KritixiLithos I hate to say it, but I don't think the team here makes much sense. I like the idea of having a team challenge, but the challenge doesn't change much if you make it an individual challenge (and if you do that, then its basically a multi-part challenge, which we disallow)
I'm trying to think of a good way to make teams work, though
 
That sums up my feelings too. I'd love to see more collaborative work but I can't see a way to force it. It's great when people happen to work together on a challenge or a submission.
The only example I can think of is collaborative KotHs, which also had problems but seemed to work fairly well
 
The thing with teamwork is team collaboration
The best way this is possible is if people can chat over a group chat in PPCG. But new users will then be unable to do so due to their lack of reputation
 
hmmm...maybe you could have some sort of hidden information? Like, player one is only allowed to present X amount of information, and player 2 has to somehow deduce the rest?
kind of like a cops-n-robbers, but collaborative?
 
6:03 PM
but both player 1 and 2 are on the same team?
 
right
 
and one is cop and the other robber?
 
well, its not really a cops-n-robbers, as both want the solution to be found
 
What's to stop them just sharing the secret info with each other then?
 
a big "Please don't cheat" sign
there really isn't
but it spoils the fun
like, have Player 1 come up with an OEIS sequence, and try to golf it as best they can. They post both the bytes they come up with, as well as the sequence.
 
6:05 PM
KotH seems like the best fit for collaboration. They're usually single language which removes the advantage specific languages might have when golfing. Some kind of cops and robbers variation might work as well. Could probably allow any language in that case.
 
then Player 2 has to write the sequence?
 
but this will be an entire different challenge than the one proposed by me
but you can post it
 
@KritixiLithos right, I guess my point is that, as it stands, the "team" doesn't really fit
 
I guess so, all I wanted was there to be a team challenge
 
right, I think that'd be really cool
so, I'm trying to figure out a way to make it work, but it'll require some modifications
 
6:09 PM
so what's your idea so far?
 
I'm not sure if it'll work, but basically, P1 posts an OEIS sequence and a byte count. P2 has to post a program with that byte count that produces the sequence
lowest byte count wins
 
how are the teams decided?
 
@NathanMerrill isn't that already a cops and robbeschallenge?
 
the two are pretty similar, and maybe duplicates
the difference is that P1 and P2 are paired beforehand, and if they both can't golf it down that much, it isn't valid
furthermore, "cracking" doesn't remove it from the solutions, it makes it valid
 
nice idea, what are you waiting for?
 
6:14 PM
I'm not actually interested in posting such a challenge :)
 
it would be really great if you did, I would back you up
 
sorry, but I've got other challenges in the works
 
I guess only time will show new and innovative challenges. <s>Let's go to Mars!</s>
 
if you want to post my challenge, feel free :)
I'd still sandbox it to get feedback, though
 
it's your idea, I'd rather wait for you to post it, even if it is later
 
6:19 PM
ideas are a dime a dozen
 
But the product created from the idea might even be priceless
 
@mınxomaτ Chrome.
 
That is very odd. Chrome's remote debugging tells me the S7 doesn't support the full 4x16bit color depth
Ohhhhhhhh, wait.
 
hey, when community elections come around, will we be electing 1 or 2 new mods (considering that Alex A is pretty inactive right now)?
@mınxomaτ 156/2809
 
I think the S7 ships with different hardware depending on region. That could make a huge difference in rendering pipelines.
 
6:27 PM
I have no idea what those numbers mean
 
Note 7s are a blast to use
 
There is no Note S7.
 
@NathanMerrill Probably 1. Jon Ericson told me that SE doesn't worry too much about mod inactivity unless it's been going on for like 6 months or more.
 
@NathanMerrill I think it was n x 100k floats/ms
Don't quote me on that, I have to decrypt my own code again.
 
lol
@mınxomaτ there are two numbers?
 
6:30 PM
@NathanMerrill Top one is plain JS, bottom one is JS offloading calculation to the GPU
 
ah interesting. I got 90/2811 on my phone
which means that my phone GPU is basically the same as my computer
but the browser is worse :)
 
Not the same, but equally good at optimizing. The goal is more or less to bring JS performance closer to Desktop by using the GPU for parallel calculations.
 
I don't understand anything. What is JS offloading, what is a GPU, what is life?
 
In theory the GPU accelerated version can perform much more calculations per time unit then what it does now, but that exceeds the maximum size of JS types arrays.
 
Life is a characteristic distinguishing physical entities having biological processes, such as signaling and self-sustaining processes, from those that do not, either because such functions have ceased, or because they never had such functions and are classified as inanimate. Various forms of life exist such as plants, animals, fungi, protists, archaea, and bacteria. The criteria can at times be ambiguous and may or may not define viruses, viroids or potential artificial life as living. Biology is the primary science concerned with the study of life, although many other sciences are involved. The...
 
6:33 PM
The performance gain could effectively be tripled, at least.
 
@mınxomaτ How many orders of magnitude between theory and practice?
Jeez, ninja'd.
 
So it's performance? Ok
@TuxCopter I thought it was 42?!
 
@Wikipedia y u do dis ;_; y u li to us
 
@KritixiLithos nah, 42 is the answer to life. The article he linked is the question that 42 answers
 
@El'endiaStarman The practical limit in FF and Chrome seems to be 2x10^6 floats parallel. But actually the limit for most GPUs is 2.6x10^8.
That far exceeds all kinds of limits for browsers
 
6:37 PM
The Question? It has been found? Is this a second Earth created by Deep Blue? Are we going to get killed by the Vogons?
 
That is however no problem at all for the C++ version.
 
The C++ version of the earth don't have any problem?
 
Sure
 
Then what was the first version, obj-c?
 
6:40 PM
Some horrible bodged Q-BASIC code with inline ASM.
"It crashes every few centuries, but that's probably fine"
 
-1
Q: Find the nth digit of e

mnbvcTask Given an input n, calculate the n-th decimal digit of e Rules Answer can be a full program or a function. Input must be taken from stdin or from function arguments. Output must be either sent to stdout, the return value of a function, or written to a file. all n values between 0 and 2000...

0
Q: Code Golf Golf Golf

jacksonecacGolf Challenge Given the below ASCII "Green". | | | |> | | | | | O | | | | | | | | | | | | | Let | Denote a wall Let | Denote half the flag pole Let > Denote the flag on the pole Let O Denote the hole Let o D...

 
@NewMainPosts ajdhyuefhi No
@NewMainPosts I am sure this is a dupe
This can easily be adapted
 

« first day (2096 days earlier)      last day (2764 days later) »