« first day (2092 days earlier)      last day (2750 days later) » 

11:00 AM
hmmmmm, a list is kind of redundant for direction, isn't it?
 
@DestructibleWatermelon Prime checker = prints truthy if a number is prime?
 
CMC: Code an OEIS sequence in ABCR: github.com/Steven-Hewitt/ABCR
(Yes, you could choose the natural numbers. Yes, that's a boring answer.)
 
@DestructibleWatermelon How long was it
 
is there any easy way to add a list to a list in python (i.e. [5,6]+[1,0]=[6,6])
 
11:07 AM
@DestructibleWatermelon Yes: [l1[0] + l2[0], l1[1] + l2[1]]
 
well, I asked badly
I meant as in so that [6,6] is new value of original list
also seems pretty verbose
 
l1[0] += l2[0]; l1[1] += l2[1]
 
@DestructibleWatermelon def f(a,b):a[:]=map(lambda x,y:x+y,zip(a,b))
 
l1 = [x+y for x,y in zip(l1,l2)]
@ASCII-only if you want to golf it use __add__ instead of lambda
 
@StevenH. Pretty sure that doesn't work
 
11:12 AM
driest approach, I think
for i in range(2):
    dimensions[i]+=direction[i]
range(len(dimensions)) when list length not known
 
For some reason I thought Python number literals had __add__, my bad
 
ok, got the movement part working
now the actual commands
 
The list comprehension is actually shorter anyway than mapping
 
brb
 
most natural way for getting the alphabet? (python)
 
11:16 AM
@DestructibleWatermelon __import__('string').lowercase I think
 
ok, not exactly but thanks
gave me the info I need
variables={i:0 for i in string.ascii_lowercase}
for my initial variables
 
@DestructibleWatermelon Charcoal, 35 (;_; it's such a bad score)
@DestructibleWatermelon Wait does that work
 
mine is longer...
wait what is this
ok, is prime checker
also mine is a lot longer than yours, and also a lot slower
but that's just my language
 
I had an idea for a codegolf puzzle, not sure if people would be interested. My uni has a checksum algorithm to determine the last digit of a student number given the first 7. The puzzle would be to take the first 7 digits and return the 8th digit. You reckon that'd be worth making a puzzle for? Or too similar to other checksum-related ones.
 
11:34 AM
@CameronAavik We have a sandbox where you can specify challenge ideas and get response on things like that. Easier to say when you have more information.
 
halp, trying to figure out best behaviour to include " inside a string delimited by that...
 
\ ?
 
well, escape char is `
 
well, that then
 
well, let me explain the issue a bit more
say we want escape magic char [
we write `[, but both of these are pushed to stack
because the parsing of escape comes after pushing
because the parsing of the regex comes after
but " doesn't need to be escaped in a regex
 
11:36 AM
ah, and the escape char is now under the char to escape on the stack
can you just write it like [` then?
 
no, that isn't an issue
also why on earth did I say push to stack
I'm not thinking right now
I meant concatenate on the end of the variable
:p stupe
sorry about that
the issue is, is that the escape char just marks that it has to be considered differently in the regex: using it to escape end of string is a totally different duty
I guess I could just make one of the chars match the EOS
1
A: Is this number a prime?

Destructible WatermelonTurtlèd, 490 487 451 bytes Turtlèd does not support newlines in code... so oneliner fun! golfed some bytes for not needing to support 0 Golfed some bytes removing useless code, and some other tricks ?#0#.:l( >;,u,[ :ll[*,l]d],u{*{*r}l' d{ l}[ (*.d)(0'1d)(1'2d)(2'3d)(3'4d)(4'5d)(5'6d)(6'7d)(7'...

incredibly long
I guess I could make ' match ", and " match '....
but that might be slightly confusing at best
I guess I'll take the route of "" matches "
hmmm, actually I don't like that much
oh wait someone down gaoted my prime checker ._.
 
@DestructibleWatermelon D: why is it so long
 
because turing tarpit....
Turtlèd has no arithmetic commands
only moving and writing on grid
 
Argh I don't think Repetition can achieve anything at all
 
@Qwerp-Derp it doesn't have control flow...
 
11:47 AM
Control flow?
 
back
 
@DestructibleWatermelon Now there is
 
While loop
 
well, yeah, don't think that's gonna cut it
 
True
Ummm... variables?
 
in the end it just evaluates to an expression, or an infinite loop. Would be easy to determine
@Qwerp-Derp 2 should probs be enough, maybe three
 
wait what
 
Hello, feel free to help me improve or comment on my challenge draft: meta.codegolf.stackexchange.com/a/10367/15174
 
11:50 AM
2 variables
 
@DestructibleWatermelon 2 unbounded variables is sufficient to be TC
 
.... yeah
2 variables
they're already unbounded
@TuxCopter also one is as well
 
No
 
also 2 is not always, depending on lang
 
Two variables is the minimum
 
11:52 AM
BF needs three
@TuxCopter incorrect
minsky made one
 
Huh
 
Ummm
So is this good?
Declare vars by doing
 
I tought a universal Minsky machine have 2 variables
 
b=+
(Now b=3)
 
11:54 AM
And while loops are
{b|code here}
 
@TuxCopter the most well known does, but he made another one
 
> Minsky machines with two or more registers have been shown to be in the same computational class as Turing machines. Because of this, and because of their simplicity, they can be used to prove several esoteric programming languages to be Turing-complete as well.
 
The while loop only accepts vars
To alter a var:
 
It say the minimum is 2 registers
 
(b|-)
 
11:54 AM
> He also describes a variation which is Turing-complete with only one register; this variation requires that the machine has operations to:

multiply the register by a constant; and
check to see if it is divisible by a constant, and if so, divide by that constant and effect an alternate state transition.
 
Or smth like that
 
Fair enough
 
Also no variables is sufficient
 
If you have another storage medium
 
not referring to tape or stack
bye
 
12:04 PM
-1
A: Sandbox for Proposed Challenges

MatthewRock99 selttob fo reeb no eht llaw popularity-conteststring I teb ev'uoy lla draeh tuoba eht doog 'lo 99 selttob fo reeb no eht llaw. Llew ti os sneppah taht I emoc morf na evitanretla esrevinu - eht esrevinu erehw ew etirw gnihtyreve ni esrever! Ew peek eht snoitisop fo lanigiro hguoht. Siht osla s...

 
@NewSandboxedPosts beer of bottles 99?
 
12:30 PM
+[+>}}}+{{{<}+]
Example code in my new language :D
 
12:42 PM
Calesyta seems pretty cool.
 
hi.. could anyone take a look at meta.codegolf.stackexchange.com/a/10355/9206 please
is anything missing/broken?
 
@Lembik Have you run an example (optimized) implementation? How large do you expect the matrices to get before running into that one minute mark?
 
@Lembik available memory on the test system could be useful
 
lolwut
 
12:52 PM
That is a very angry majestic unicorn.
 
1:12 PM
@TuxCopter pls how to build vsl
 
carefully with the makefile
 
@Lembik Do you have a large matrix (20x20) for which you know the solution? Mathematica (on the cloud) times out trying to do Permanent for a 19x19
 
1:28 PM
@EᴀsᴛᴇʀʟʏIʀᴋ I recolored everything, then pasted the original Kirby over top, because the coloring tool I used in Gimp tainted Kirby a bit.
 
@Emigna Added. Thank you
@TimmyD I don't have an optimized implementation but I think much more than 20 by 20 will be a miracle
 
@Downgoat My previous best was 45K Technetium (43), but I found a nice tip on the main wikia page (linked above) that says to minus the larger atoms and convert to pluses. Basically, I didn't know about converting a minused atom into a plus until this game.
 
@Shebang That's interesting. No I don't have a 20x20 example
@Shebang I think the largest ever computed is 50 by 50
 
So I got that score in a single try.
 
@mbomb007 ;_; I hav tri that too but no > 20K
perhaps I need to read more tips :)
 
1:35 PM
@Shebang but that was on a powerful computer...
would a gpu help a lot?
@Shebang oh I just computed it :)
so the answer is yes
hi @Mego
 
@Downgoat Maybe it's just my general strategy with placing atoms? Idk. Honestly though, subtracting the largest atoms to create pluses makes the game take so much longer!
@Downgoat Maybe I should play it in an emulator and record myself playing it.
 
wowsers
gg reddit twitter netflix etc
 
@Lembik A-ha, my program works :D
 
@Shebang cool! What is it?
or were you referring to mine?
 
?
I think you mispinged
 
1:41 PM
@TuxCopter sorry
@TimmyD Maybe 20x20 ?
 
@Lembik Attempted solution to the 'speed' challenge :P
 
@Shebang do you mean you have some code that runs already?
 
Yep!
 
if so that is super cool
hooray!
I should post the question :) But I am scared of the "leave it in the sandbox for 3 days or you will be cursed" people :)
how fast is it?
which language?
please tell all :)
for that matter .. which algorithm?
 
i feel like you're missing the gravitas of the situation with Dyn
 
1:46 PM
OK, so a question then -- what's the scoring? If every submitted solution can get to 19x19 within a minute but all of them fail at 20x20, who wins?
 
@TimmyD ok that's a good point. I need to add that. Thank you
@TimmyD updated
If two people get the same score then the winner is the one which is fastest for that value of n. If those are within 1 second of each other then it is the one posted first.
Maybe the tie breaker should have been the number of bytes in the source code :)
 
@Qwerp-Derp I want to create a bot for your Atomas challenge, but it'd be really nice if you'd add an example bot.
 
@TimmyD Do you think I need to comment in the question how large an n I expect people to get?
 
code length as tie breaker in a fastest-code seems like a bad idea
 
@Emigna :) That's why I didn't do it.... but actually why?
it punishes C
which people normally like to punish :)
 
1:50 PM
@Lembik because it has nothing to do with speed
 
@Emigna that is certainly true
@TimmyD which language would you use?
 
@Lembik Is running through PyPy alright? :)
 
@Shebang of course!
@Shebang it's also OK to use numba and cython
in fact I would love answers that did that
@Shebang which formula are you using? en.wikipedia.org/wiki/… ?
 
@Lembik Well then the permanent for that 20x20 calculates in 6.5 seconds :)
 
@Shebang that's super cool
I think this means you will get stuck around 22x22 maybe?
can I try your code?
 
1:55 PM
The second formula listed for the Ryser function
I will test :)
 
@Shebang it would be worth trying the Balasubramanian-Bax/Franklin-Glynn formula too
as it is supposedly faster
and also it sounds more impressive :)
 
@WheatWizard So Wise has no way to output ASCII?
 
@Lembik That seems out of scope for me at least :P Maybe someone with better knowledge will post an answer using that!
22x22 matrix took 25 seconds on my machine
23x23 took 52.5 seconds
 
@Shebang no problem. Is it much more complicated? It's just wikimedia.org/api/rest_v1/media/math/render/svg/… ?
@Shebang nice timings!
I still want to try your code :)
 
Darn, 24x24 took 112 seconds :P Hopefully your machine is quicker!
 
2:00 PM
Pass the code over!
 
@Shebang I am so much lazier than you :( I do np.random.randint(0,2, size=(22,22))*2-1
to make the matrix
 
lazier = smarter ;)
 
well.. :) You would need a version of pypy that support numpy
so dumber :)
ok so without pypy it gets to 20x20
trying with pypy
 
@Lembik I would use PowerShell, since that's what I'm best at, but that's both a) not going to be very fast, and b) not really applicable because you're running on Ubuntu.
 
2:05 PM
@TimmyD but very cool!
 
@Lembik People will be able to get a feel for the size as soon as the first couple entries come in and are scored, so I don't think you'll need to say so in the challenge.
 
@Shebang ooh.. 67 seconds for 23 by 23.. sorry
@TimmyD ok thanks
 
Damn :P
 
@Shebang let's see if numba or cython helps
@Shebang both should be easy to use with your code
hmmm .. I think
chain.from_iterable(combinations might cause a problem
we might need to make a version in pure pure python
i.e. without itertools
 
I guess you could provide an implementation that people time on their pc then their score is the ratio between that time and their code
 
2:08 PM
but I really like your solution
@Fatalize true but people always complain about which language I choose!
@Shebang's solution would seem perfect for that
also my computer has 8 cores (4 real ones) so people can write multi-core code which is always fun
 
TIL ecosia.org, a pretty basic search engine, but ad revenue largely goes to reforestation efforts.
2
 
@mınxomaτ nice
 
@TimmyD Powershell is open source and run on linux
 
@Shebang my numba attempt failed sadly
 
@TuxCopter Yes, I'm aware. But, I've not investigated it to know if there are any differences between what I'm running and what someone compiling it on Linux would experience.
 
2:14 PM
@TimmyD I wouldn't worry about it at all. It's just super cool to write fastest code answers in powershell :)
I will see if I can get it to work
 
@TuxCopter ik but what target to rub
i tru maek but no default target
 
@Shebang do I mind if I ask the numba people about your code?
I am not sure what the problem is
 
@Downgoat all
 
2:23 PM
hi @Doorknob
 
Hello world in D2: ;+++++++++++++++++.;;---.+++++++..+++.;;----------.;:;++++++++++++++++++.;;--------.+++.------.--------.;-------------.
 
I love Diablo 2
 
Now making the docs and preparing the GH repo
 
@Lembik Please don't strain yourself to get PowerShell running on my account. I'm not likely to have free time to enter your particular competition.
 
@TimmyD oh that's a shame
 
2:25 PM
0
Q: Find the maximum deviation

todealeThis problem is "inspired" from a question that was originally asked on Quora (not for code golfing). I just want to make it a challenge for you guys (and my first problem submission here). I hope you'll like it. This is codegolf. So the shortest answer in bytes wins.

 
@Poke My favorite Diablo.
 
@TimmyD I've been pretty stoked on d3 tbh. this past season i was rank 221 in the barbarian leaderboards
 
Oh, I don't play ranked. Just with friends.
Never got into the whole competitiveness of it.
 
13
Q: What is the possible impact of dirtyc0w a.k.a. "dirty cow" bug?

d33tahI heard about dirtyc0w but couldn't find any decent writeup on the scope of the bug. It looks like the exploit can overwrite any non-writable file, which makes me guess that local root is possible via substitution of SUID programs. Is that right? What else do we know about dirtyc0w? Is it possibl...

PSA ^
 
@TimmyD If there anything I can do to entice you towards my competition please let me know
 
2:31 PM
If I had played more I think I could have made it to the top 100
I was 120ish at one point
 
barb died
 
@Yodle If you ever played :[
 
What's a better solution: using a semaphore to lock the windows clipboard to automatically copy/paste text, or sending the text key by key.
 
use case?
 
Sending a script to a remote desktop window.
 
2:36 PM
what is your reserve about locking the clipboard
 
Not entirely sure how it works. If there are multiple copies of my program running, and two try to lock it at the same time, is one going to wait for it to free up?
 
depends how you write it
 
o-o
 
are you planning on having multiple instances running? Sending one keystroke at a time seems annoying for longer scripts
 
Sounds like whoever is gonna be using it will. And yeah, that's the way I have it now. Almost doubles the amount of time it takes and I'm not even running anything huge.
 
2:41 PM
well locking the clipboard is probably not a great choice even though it would speed it up
 
Guess it's the slow way then
 
the clipboard is a userflow that you likely don't want to mess with programmatically
 
Why are you running a remote script via copy-past remote desktop window rather than just remoting straight to the destination?
 
1 hour ago, by Poke
https://www.dynstatus.com/incidents/nlr4yrr162t8
no one cares
apparently
@Yodle this book is ollllddddd but books.google.com/…
you're writing a c# thing, right?
 
0
A: Sandbox for Proposed Challenges

Kevin CruijssenSum Chain Sequence code-golfsequencenumber-theorydivision Sequence: We start at 1. We first add the current 1-indexed value to the previous number in te sequence. Then we apply the following mathematical operations in order if they apply to this current value: Dividable by 2? -> Addition D...

 
Yeah I saw a quote somewhere about Windows not wanting that to be a thing
Also just noticed @Poke you and I have the same rep :p
And same bronze badges, but you have a silver :[
 
I'm not claiming to be a C# expert but surely there's a way to send a string rather than just individual keystrokes
 
Hey @Mego, you have a cumulative sum operator in Actually, so I was wondering: would it be a good idea to implement a cumulative operator? One that is similar to , the operator for map a command over one thing, and , the operator for map a command over two things?
 
2:55 PM
.NET remoting
 
@Poke Unfortunately, the window/rdc has no api at all, the only thing it really gives me is a keyboard, so I'm pretty sure I'm forced to send it one at a time.
 
@Yodle Ooh, a very nice coincidence. Now, which one of you is the other's sock? :P
 
@TuxCopter This part is what worries me: All applications for Windows share the system Clipboard, so the contents are subject to change when you switch to another application. I don't know if they'll be running it while doing other stuff, so I think it's also safer to go with the other method.
 
I'm not using normal sendkeys, this is sendkeys through their api which is probably safer than raw windows.
 
2:58 PM
"their api"?
your company?
 
Third party application, they have a library that we're using.
 
I'm still struggling to come up with a usage scenario where this even makes sense. You're giving yourself two problems.
 
I agree with Timmy. Can you just use the windows one? what is safer about not using it?
 

« first day (2092 days earlier)      last day (2750 days later) »