« first day (2044 days earlier)      last day (2799 days later) » 

3:00 AM
@StevenH. What do you mean by "head" and "tail"?
Is it just the first element or the last element
 
@DerpfacePython yeah. head("asdf") == "a", tail("asdf") == "f"
 
No no no, tail ("asdf") == "sdf"
 
oh?
damn
"betail" is "f"
 
I was using Pyth terminology, equivalent to "car" and "cdr" or "first" and "rest"
 
Ah
Crap I don't know how to implement head and tail
Halp pls
Guys?
Hello?
 
3:26 AM
@DestructibleWatermelon I don't understand your comment
 
@EricTressler I don't think that the challenge should have base 36 interpreting in it
that makes up an entirely separate challenge, which isn't good
 
Can anyone help implement the head and tail command into the IDE?
 
Ah. I would like it to have more than 9 as a possible input, and the output is ugly if it goes over 1 char
 
other than that. Nice challenge
 
so I guess either I should bite the bullet and limit it to 9, or else let the output char be mod 10
or something
ah, what the heck. 9 is fine
it's not as if something difficult happens past 9
 
3:29 AM
I guess zero padding would be good
input 10
10.09.08.07.06.05.04.03.02.01
09.08.07.06.05.04.03.02.01
08.07.06.05.04.03.02.01
07.06.05.04.03.02.01
06.05.04.03.02.01
05.04.03.02.01
04.03.02.01
03.02.01
02.01
01
 
i think that's also annoying, because then you have to tell your recursive function how many digits it has
 
hmmm, yeah, I guess that it has the other input to consider anyway
 
Thank you for your comment, I think keeping it at 9 will be okay
 
What would f(3,4) look like?
Countdown from 3 in 4 dimensions
Wot
 
count down from three in four dimensions looks like countdown from three in three dimensions, from two in three dimensions, and then from one in three dimensions
321
21
1
21
1
1
cool recursive challenge
 
3:35 AM
How do you do multiline comments?
 
I will put up an example where k > n
 
@DerpfacePython python?
 
In the chat
@DestructibleWatermelon (Speaking of Python, could you help with the interpreter thing that I just said?)
 
@DerpfacePython use shift-enter, or just copy paste
 
321
21
1
21
1
1
21
1
1
1
This would be 4D, wouldn't it?
 
3:37 AM
nope
 
0
A: Sandbox for Proposed Challenges

Eric TresslerTetrahedron countdown A 1-dimensional countdown from 5 looks like 54321 A 2-dimensional countdown from 5 looks like 54321 4321 321 21 1 Finally, a 3-dimensional countdown from 5 looks like 54321 4321 321 21 1 4321 321 21 1 321 21 1 21 1 1 The 1-dimensional countdown...

 
too many extra ones
also I already did one
 
But isn't your one the 3D iteration of 3?
 
oh, right
stupid
yeah, it's right
sorry
;_; y i do dis
I'd delete my incorrect one, but too old
 
3:40 AM
it's a little weird when k > n, but i'm carefully adding an example now. it'll be just a couple of minutes
okay, that's done
 
so many 'and' and 'or's o.o
 
@DerpfacePython Your example was correct
 
I made a solution now, which will be outgolfed quickly by Dennis ;_;
or anyone else ;_;
 
I'll probably post it later this weekend
I also have an idea here for a sandpile question, and I'm just trying to figure out if it's a duplicate right now
The Abelian sandpile model, also known as the Bak–Tang–Wiesenfeld model, was the first discovered example of a dynamical system displaying self-organized criticality. It was introduced by Per Bak, Chao Tang and Kurt Wiesenfeld in a 1987 paper. The model is a cellular automaton. In its original formulation, each site on a finite grid has an associated value that corresponds to the slope of the pile. This slope builds up as "grains of sand" (or "chips") are randomly placed onto the pile, until the slope exceeds a specific threshold value at which time that site collapses transferring sand into the...
 
4:03 AM
@Downgoat halp
 
4:14 AM
nvm
 
I am literally typing this from my phone via remote desktop! :D
 
@DerpfacePython :D
@El'endiaStarman Does it look okay from remote desktop?
 
What is that?
Looks really kule
 
@DerpfacePython ?
Created a really bad parser and an even worse AST printer for Logicode
Have absolutely no idea how to turn it into an interpreter
 
That's really kule
 
4:25 AM
"kule"
 
Yeah, it's really kule
AST?
 
@ASCII-only Well, I can zoom as needed and do almost everything as normal, so it's not bad, but definitely not preferable. Still, I have a way to work away from my computer! :D
 
@ASCII-only What's AST?
 
AST = Abstract Syntax Tree
 
Ah
Does it work for circuits and vars?
 
4:29 AM
Circuits?
 
Ya, my language's version of functions
 
It's based on Logisim, so...
 
Ohh, I see.
 
@DerpfacePython what can you assign to a var
 
4:31 AM
Ummm
 
I don't know then. You could probably adapt traditional ASTs to your needs.
 
You can assign a function call
Crap, I still need help for heads and tails...
I don't know how to put them in the interpreter
Ummm
And everyone's off
 
Heads and tails?
What do you need those for
 
Heads (first char) and Tails (the rest of chars)
Ummm... apparently they make the language TC
 
I'm not sure of this:I think you wouldn't need it to implement rule 110, but IDK
Wait, you would, wouldn't you...
 
4:37 AM
IDK
I just want to get it implemented first
 
I forgot that you can't take arbitrarily large input to a circuit...
slicing would probably be best
 
Nah, too complex
Harder to parse
 
@DerpfacePython what can you assign to a var apart from a function call
@DerpfacePython ?
 
Ummm
Other vars
Any string of bits
10001110 would work
 
brb, restarting craptop because I think there's a memory leak somewhere
 
4:44 AM
0
A: Sandbox for Proposed Challenges

Eric TresslerOutput a sandpile An abelian sandpile, for our purposes, is an infinite grid with integer coordinates, initially empty of sand. After each second, a grain of sand is placed at (0,0). Whenever a grid cell has 4 or more grains of sand, it spills one grain of sand to each of its four neighbors simu...

 
@DerpfacePython So Logicode isn't bit-based, it's bitstring based?
 
It's bitbased
But you can output bitstrings
I don't even know
 
so what can you do with a multibit vaiable
 
I'm thinking of implementing heads and tails
So that single bits can be accessed for circuits
 
Oh yeah
also where can you have whitespace
 
4:51 AM
Ummm
I have no idea
What do you mean by whitespace
 
0
A: Sandbox for Proposed Challenges

DLoscDecipher Neurotic Frogs Now that Puzzling.SE has finally cracked my amphibian-obsessed cipher, let's write a program or function to decrypt it! (If you want to look at the puzzle before having it spoiled for you, I suggest you go there now.) How the cipher works In Neurotic Frogs Ought To R...

 
44
A: More is less and less is more

jimmy23013CJam, JavaScript, Python, etc, 18 bytes 8.8888888888888888 The outputs in CJam are: 8.8888888888888888 -> 8.88888888888889 8.888888888888888 -> 8.888888888888888 88888888888888888 -> 88888888888888888 .8888888888888888 -> 0.8888888888888888 JavaScript and Python work in similar ways. It ...

so if I want to write a number accurately, I have to write it less accurately?
 
5:24 AM
this is ready for site, right?
1
A: Sandbox for Proposed Challenges

Eric TresslerTetrahedron countdown Write a function f(n,k) that displays the k-dimensional countdown from n. A 1-dimensional countdown from 5 looks like 54321 A 2-dimensional countdown from 5 looks like 54321 4321 321 21 1 Finally, a 3-dimensional countdown from 5 looks like 54321 4321 321 ...

 
5:37 AM
halp is it possible to have a regex [] have a magic nonliteral ^ in it?
 
@DestructibleWatermelon ?
[\^]?
 
that matches the literal ^...
I guess not ._.
 
@DestructibleWatermelon I just posted it...
 
that matches literal ^, I want start of string, but in []
but it doesn't even matter
ok, I made the alternative
empty program now prints "confuse :("
zero byte solution
also note that ANY single byte program prints "confuse"
or any two byte program
 
@DestructibleWatermelon Literal ^ = ^ character
 
5:43 AM
@ASCII-only I KNOW THAT
 
@DestructibleWatermelon That doesn't work since [] only matches single characters
 
AND I'VE REALISED THAT
 
Oh wait
> nonliteral
Sorry, didn't read your first message properly
 
you didn't read quite a few properly
> that matches the literal ^...
anyway, doesn't matter now
finished regex:
[^| !]| (!|$)|(!|^) |^[!|]*$
 
Oh god
 
5:46 AM
note that confuse :( is a quine
@ASCII-only what, it isn't THAT bad...
 
Yeah, but it's still bad
 
better than what I had before, anyway
 
Definitely much more understandable
 
any([any(' 'in i[0:1]+i[~0:~1] for i in program),any(any(not i in "| " for i in j)for j in program),not any(' ' in i for i in program)])
oh, just realised a better way to do it
wait, I didn't
how do i match anything other than "^" and "!"?
[^!^] doesn't work because literal ^
@ASCII-only halp ascii-only
wait nevermind
I'm confused now
 
5:52 AM
Doesn't matter, thought I had a better way, but I didn't
 
I mean why are you confused
 
@DestructibleWatermelon Sorry, I wasn't watching chat. I don't know if it's ready, I was going to probably post one of the two sandbox questions I posed on Sunday
I haven't contributed in a while, so I thought I'd give it some time for people to spot problems
 
@ASCII-only I'm bad at regex I guess?
 
@DestructibleWatermelon ^ only has meaning at the start of the class, if that's what you were wondering
 
......
I know
 
6:02 AM
Ah k, sorry then
 
ok, so my instruction counter thing is sorta working...
is there an efficient way to replace exec when I want to execute commands based on an index?
 
Hello!
 
@DerpfacePython hello!
I'm actually serious, I'm considering using exec in proper code. Help
(I think a bunch of if and elifs would be a bit over the top)
 
@DerpfacePython Hello
I think I almost have interpretation working
 
Oh, cool!
Can I have a look?
Thanks!
 
6:17 AM
@DerpfacePython ?
 
Just saying thanks for making the interpretation
 
> The switch-case statement comes in handy when you’re writing a language parser like I am now
 
@DestructibleWatermelon What's the actual code snippet in question? One possibility is to have a dictionary where the values are functions, depending on what you're doing
 
this is in an article about python having no switch cases
 
@ASCII-only So where's the interpreter?
 
6:19 AM
@Sp3000 this is exactly what I was asking for. Thanks!
 
@DerpfacePython Not online yet
 
6:33 AM
0
Q: Find every digit from the largest column

DJMcMayhemHere's a relatively simple challenge for you: Given a list of positive integers: Line them up in a grid, and sum each column. For example, if the input was [123, 7, 49, 681], the grid would look like this: 1 2 3 7 4 9 6 8 1 And the sum of each column would be [18, 19, 4]: 1 2...

 
@DerpfacePython Sorry, I'm having problems with multiple statements ;_;
 
TY @newmainposts for dutifully doing your job.
 
Pretty amazed I made something that almost works the first time though
 
Too bad it's (almost) dead in here. ;_;
 
Yeah, all the Americans are asleep
 
6:35 AM
s/all/almost all/
I can think of one who isn't.
 
I amn't
 
@ASCII-only Where are you guys from?
 
@DerpfacePython I'm from Australia
 
Woot!
I'm from Aus as well
 
Quill, Sp3000 and grc are the other Australian regulars IIRC
 
6:41 AM
I haven't seen quill in ages
 
@DJMcMayhem Where are you from?
 
US
Colorado
 
Wut...
 
What?
 
US
California
 
6:45 AM
It seems like there are a lot of users from cali
 
The US election doesn't look good
 
I'm too young to vote in the election by a few days so it's not my fault no matter who we pick
 
A few days? That sucks
This'll be my first year I get to vote. ʏᴀʏ...
._.
 
@StevenH. So by the definition of "few" being, let's say, more than 2 and less than 6 (you would say "a couple of days" or "(nearly) a week" otherwise), I'd guess that your birthday is between the 11th and 13th of November
 
I didn't know exactly when the election date was, actually. I thought election was the 13th when I said a few
It's by a week and a half
 
6:51 AM
The election date is November 8, if I remember correctly
 
Yes, it is. I checked after I made that statement
 
Ah, I should remember to wish you a happy birthday on the 18th or 19th of November
 
(the 18th)
 
Thanks
 
I'm on the 14th
 
6:52 AM
But you don't have to wish me a happy birthday :P
 
My birthday is in 19 days
@DJMcMayhem Of?
 
The same month we were talking about
 
November
 
I figured it was safest to verify
Thanks
 
6:54 AM
@DJMcMayhem I'm a bit confused about the last case - should it be [0, 8, 2] or is there some rule about leading zeroes?
 
Haha, nope that was a typo
No matter how many times I check and recheck, I always seem to mess up at least one test IO
 
Don't worry, I only picked it up when testing :P
 
7:10 AM
Morning
 
Counting the newline character, there are 96 printables in ASCII, yes or no?
 
If you add newline, then yeah. I'm fairly sure "printable ASCII characters" is a fairly broad term, but on PPCG at least it seems to mean space to ~
 
7:39 AM
Thanks
 
8:04 AM
halp
    cp+=stack_A.pop()
TypeError: 'int' object is not iterable
 
@DestructibleWatermelon why did you make stack_A an int
 
why u do dis ;_;
why does it think it's an int?
 
no idea
 
stack_A=[]
hmmm,
I'm going on a bug hunt...
oh, I forgot some parens
wait, no i didn't
wtf why is it int
it is certainly not an int
pop works on single item lists, right?
wtf why won't it work ;_;
 
Is cp supposed to be a list or an int?
 
8:11 AM
oh, right. stoop
it's because of how I'm handling program input
 
8:28 AM
sükut
 
Yay, posted my lang to Esolangs!
 
@zyabin101 that's a word that i haven't heard since i last saw my grandparents
 
@MartinEnder Maybe I'm remembering incorrectly, but I've had the impression that the definition is a little iffy when it comes to whitespace and codepoint 127. e.g. this site includes DEL, and in Python string.printable is '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./‌​:;<=>?@[\\]^_{|}~ \t\n\r\x0b\x0c'`
 
oh okay
they must have it wrong then ;)
 
8:37 AM
Maybe :P
 
Hello
 
8:48 AM
Hey
 
Haha, posted my lang to Esolangs!
 
Hayyyyy
 
8:58 AM
I think i figured out what the issue was with my code: the fucky list pointer shit
ok, now some other stuff worse is happening ._.
wait, it was my stupidity
 
Baking at 15 cps... 15.4 cps...
 
15 calories per second ?
what exactly are you baking?
the fat in your body??
 
I'm playing Cookie Clicker, and right now I'm at 19.2 cps (cookies per second).
 
Idle games are taking over!
 
^
19.6 cps... Twenty cookies per second!
 
9:10 AM
ok, still glitching ._.
 
Hot dog! Got a Frenzy golden cookie!
And now, I'm at 13,260 cookies. How's that?
 
Oct 1 '14 at 18:57, by Beta Decay
I really don't get the attraction of cookie clicker..
 
40cps
65
100
250
1000
this is really easy
 
9:28 AM
@zyabin101 How's the cookies?
 
@zyabin101 I remember that. A few friends and me actually had some sort of competition with an earlier version of CC. The goal was to create a CC bot, but with some restrictions. That quickly escalated, to a point where custom (most Arduino-based) mouse-simulators were created.
 
Alright guys, I have a huge idea now
Cookie clicker competition!
We have a separate chat and stff
This is going to be great
 
That's neither huge nor particularly interesting.
 
@DerpfacePython Stopped playing right now.
 
@mınxomaτ Killjoy.
(Jokes)
 
9:33 AM
(Nods)
 
@zyabin101 How goes the cookies?
 
@DerpfacePython Still not playing.
 
When you stopped playing, what was your CPS?
 
idk
I'm going home, will calculate it soon.
 
highest cps guys?
 
9:35 AM
@mınxomaτ Those must have been some pretty strict restrictions
 
Yes
Mostly to prevent lame software hacks
 
Ummm
A heckuva lot
I forgot
(And I'm kinda ashamed to say)
 
@DerpfacePython 24 cps, 4 cookies per click.
 
Disappointing.
 
 
9:42 AM
10Kcps
 
@Optimizer I bet these results were faked, due to the obnoxiously high speed of rise.
 
@zyabin101 whats the bet ?
 
@Optimizer None.
 
:/
 
0
Q: Outputting x to y

βετѧ ΛєҫαγChallenge You must choose one number x (y = x + 9) and create ten unique programs which each print out one of the numbers in the range x to y inclusive. However, there are three twists: Each program's score is the difference between length of your program in bytes and n (where n is the number ...

 
9:47 AM
@βετѧΛєҫαγ "Each range must be unique to your answer. No two answers are allowed to use the same range (same value of x)." Doesn't that just make it FGITW?
 
@zyabin101 i have th esave file. i closed paying now., let me know the bet and i will give proof
 
@Sp3000 Yeah, I didn't think that through
 
FGITW?
 
Fastest gun in the west
 
FCITE
 
9:50 AM
Well the fastest gun already got a score of 0
so
 
A question like this is more about seeing interesting solutions in different languages imo
 
btw re:idle games, I just went back to all of them and as I thought I've long lost all their save datas, so... yeah
 
Most languages should be able to get a score of 0
 
Catalog question?
 
@Emigna Yeah, the inability to define and regulate what is and what isn't padding is what is killing the question
 
9:52 AM
it's basically the problem code bowling has
 
@βετѧΛєҫαγ Yeah. Most any code can be considered padding other than doing the bare minimum
and a rule like that would invalidate any answer that someone else could golf down
 
1+1+1+1+1+6
1+1+1+1+1+ 7
1+1+1+1+1+1+7
1+1+1+1+1+1+ 8
1+1+1+1+1+1+1+8
1+1+1+1+1+1+1+ 9
1+1+1+1+1+1+1+1+9
1+1+1+1+1+1+1+1+10
1+1+1+1+1+1+1+1+ 11
1+1+1+1+1+1+1+1+1+11
^ JavaScript :P
 
@ASCII-only That's basically the answer I drafted im Fourier just now
 
Hmm not quite due to restrictions, but I was definitely thinking of X))))))))) and similar in CJam, say
 
Yeah, X>>>>>>>> was my original thought as well, but I decided to spice it up a bit
 
9:57 AM
The first letters restriction feels particularly arbitrary (even more so than the digits one)
 
@Sp3000 It has stopped me doing my easy zero score solution
 
my zero builtins are 0 and Z
 

« first day (2044 days earlier)      last day (2799 days later) »