« first day (1808 days earlier)      last day (3027 days later) » 

3:01 AM
0
A: Sandbox for Proposed Challenges

NathanielPaint the Mona Lisa in 1000 bytes Here is a picture of da Vinci's Mona Lisa: Your task is to reproduce this picture in 1000 bytes or less. You will write a program that takes no input and loads no files, and outputs an image file. The rendering section of your program will be no larger than 1...

 
@quintopia How good are you at debugging JS?
 
@El'endiaStarman You're already better than me at all things JS.
 
3:08 AM
What are you in need of? :3
 
Okay, HTML:
<button onclick="start()">Start</button>
<button onclick="stop()">Stop</button>
<button onclick="console.log('clear?'); clearGrid()">Clear</button>
 
@CᴏɴᴏʀO'Bʀɪᴇɴ you should change your avatar to superman's logo or something. SO HELPFUL
 
function start() { setRenderLoop(); }
function stop() { clearInterval(renderLoop); renderLoop = false; }
function clearGrid() {
    console.log("clear");
    //clearIt = true;
    //if (!renderLoop){ update(); }
}
 
@El'endiaStarman y u no addEventListener
 
is the script loaded before the button?
 
@Doorknob The first two work just fine and the third doesn't.
 
@quintopia I think I'll mod the dragon, but the dragon stays :P
 
@El'endiaStarman what's on the console?
 
is clear #2 printed?
 
3:10 AM
@El'endiaStarman there is no setRenderLoop
 
@Maltysen The script inclusion is at the end.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Erasmus B. Dragon
 
@Doorknob clear? and that's it.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Yes there is.
 
3:10 AM
Where??
 
Above the start() function.
 
I see start, stop, and clearGrid defined.
 
@El'endiaStarman does running clearGrid from dev console work?
 
@El'endiaStarman Is that code not relevant?
 
@Maltysen ....it doesn't. WAT?!
@CᴏɴᴏʀO'Bʀɪᴇɴ No. The Start button works just fine.
 
3:12 AM
Oh.
onclick="javascript:console.log('clear?');clearGrid();void(0);"
 
0
Q: Interleaved binary complex numbers

CJ DennisWrite a function or program that outputs complex numbers in interleaved binary. The number base is 2i, where i is the square root of -1. See Complex Number for more details on i. Each digit position can go from 0 to 3, as each real and imaginary part is -4 times as large as the previous real and ...

 
@El'endiaStarman Post the entire JS file?
@CᴏɴᴏʀO'Bʀɪᴇɴ wouldn't make a difference
 
@Doorknob shh
@Doorknob Please.
 
can I have the link to the game again?
 
Fixed it by renaming to clearDaGrid.
2
 
3:14 AM
rofl what
3
This is why we need the entire JS file
 
There was actually another function named clearGrid, and for some reason clear seemed to conflict too.
> clear
< function clear() { [Command Line API] }
 
clear() clears your console in the repl
 
That was my problem.
 
Notepad++ didn't highlight it like it does for reset...
That doesn't seem to be a previously-defined function though.
 
3:17 AM
You can make it.
Related: @AlexA. can I add custom highlighting to Atom? I want it to highlight JS's new keyword.
 
it might not actually be a part of the language but the browser defines it for convenience
i don't know if that makes sense or not i'm just talking out of my ass
 
@undergroundmonorail It makes sense.
 
Mine (Chrome) doesn't have reset pre-defined.
I went ahead and named it resetGrid.
 
btw @AlexA. is a liar
I did tacos and he never did ligatures :P
 
3:19 AM
@undergroundmonorail It does. Perl and Rust work like that too
new is user defined essentially
 
0
A: Sandbox for Proposed Challenges

TannerCookies are being served! Sibling rivalry ensues! Each of the twins wants the maximum quantity of cookie. The problem is that the cookies are of somewhat different sizes, not surprising since they are home baked. SO you weigh each of the cookies and devise a program to help you allocate them to e...

 
@quart potatoes theres your chance
 
holy shit he used the Sandbox
 
> I asked this earlier and it was put on hold. Not sure what needs to be changed.
 
The clear button now actually works.
 
3:23 AM
you should make the color thing an <input type="color">
 
I did not know that was a thing.
 
Jeez, so many golf challenges are based around the same couple processes.
 
@Maltysen Cool. I'll figure out how to utilize that later.
By the way, fun fact: the color input text fields also work with named colors. :D
 
@El'endiaStarman also permalinks?
 
I can't wait for CJam/Pyth version 18.5's standard library to contain Game of Life rules, a Chess library, a huge ASCII art drawing package, hundreds of thousands of baked-in OEIS sequences, ...
 
3:26 AM
@quintopia Those will be towards the end.
 
@El'endiaStarman Sure. Grid size?
 
I've got add/remove rules to do, switching between live/dead toggle and rule toggle, selecting which rule to work with, click-and-drag, and resizing the grid first.
 
mmhmm
 
Hey all.
Anyone wanna merge my userscript pull requests for me?
 
@El'endiaStarman Clear should automatically stop as well.
 
3:28 AM
I'm aiming to get to the point where I can recreate PhiNotPi's mixed CA stuff.
@quintopia yeah, that's easy
 
@El'endiaStarman example?
 
@ՊՓԼՃՐՊՃՈԲՍԼ Anyone???
 
shrugs
 
@ՊՓԼՃՐՊՃՈԲՍԼ For this?
 
3:32 AM
Don't know what you are talking about. :(
 
Yeah.
I made a pull request with improvements.
 
I'm not a contributor, so...[shrugs]
 
ARGHH Copying 1.15GB to a usb stick takes 2 hours?
 
@El'endiaStarman You shouldn't aim so low. Aim to get to the point where you can implement esolangs.org/wiki/CASTLE
 
Somebody had wayyyyy to much spare time on their hands...
 
3:34 AM
@quintopia Haha, I meant more as the first goal, hence my prioritization.
 
;)
 
@El'endiaStarman what happened to gravity voronoi maps?
 
@Maltysen Got semi-stuck on how to trace out the edges.
That and scope creep, so to speak.
 
did you have an algo?
 
I'm actually gonna rename that one back to just "Gravity" and include the voronoi part as a checkbox.
 
3:37 AM
or was it just the generalized metrics one
 
@CᴏɴᴏʀO'Bʀɪᴇɴ You should be able to. All of the syntax highlighting is done in CoffeeScript files that should live somewhere in ~/.atom.
 
I have a maybe-algorithm. Go to the equilibrium point, then go perpendicular to the gradient until I hit a point already visited or the boundary (the svg box).
 
@Doorknob What? That never happened. >_>
 
haha
 
o_o .... WUT. PhiNotPi's Sandbox post got 3 additional upvotes because I shared it in here?! ... It's not even a challenge!
 
3:40 AM
@El'endiaStarman this looks helpful:
3
Q: Voronoi diagram algorithm with non-euclidean metric

user251405Do you know any easy to implement algorithm for constructing a Voronoi diagram from a given set of points on a surface, using some different metric (taxicab, for instance)? It can be some modification of Fortune's algorithm.

 
Just wondering, are there any other "byte" encodings besides conventional bytes, LabVIEW Primitives, and Minecraft blytes?
Oh yeah, and codels.
 
@Maltysen: For the gravity app, here's a list of features I want to include: vector field, voronoi edges, customizable force function (so you can do something like F = m/d^3 instead of the normal F = m/d^2), a graph of said force function, a body (or more?) that you can release into the gravitational field and trace out its path, tweakable position and velocity, a frozen or moving gravitational system, and toroidalness (checkbox).
 
@ՊՓԼՃՐՊՃՈԲՍԼ Well, different character encodings
 
Perhaps you can see now why I decided to go ahead and do Variations of Life.
I think I can actually finish this one tonight (or at least by tomorrow).
 
@Calvin'sHobbies Like?
 
3:43 AM
In computing, a character encoding is used to represent a repertoire of characters by some kind of an encoding system. Depending on the abstraction level and context, corresponding code points and the resulting code space may be regarded as bit patterns, octets, natural numbers, electrical pulses, etc. A character encoding is used in computation, data storage, and transmission of textual data. Terms such as character set, character map, codeset or code page are sometimes used as near synonyms; however, these terms have related but distinct meanings. Early character codes associated with the optical...
 
Well, I mean for code golfing languages.
 
Seriously uses the CP347 encoding or whatever it's called.
 
@El'endiaStarman wow
 
Like I said...scope creep. :P
 
@ՊՓԼՃՐՊՃՈԲՍԼ APL has it's own codepage, Seriously uses CP437 I think, Dennis's Jelly uses a custom code page I think, probably more
 
3:45 AM
@El'endiaStarman ( ͡O ͜ʖ ͡O)
 
But it makes more sense to me to tie it all into one app.
@AlexA. ಠ_ಠ
 
@AlexA. Oh, okay.
Good night/
 
@ՊՓԼՃՐՊՃՈԲՍԼ And someone can always (re)invent a language and say that it counts bytes according to some arbitrary encoding
 
@CᴏɴᴏʀO'Bʀɪᴇɴ We used to have them but GitHub changed something on their end and now it doesn't happen
Anyway, goodnight
@Calvin'sHobbies Provided an interpreter for the language in that encoding exists
 
3:47 AM
@CᴏɴᴏʀO'Bʀɪᴇɴ G'night!
 
Eyyyyyyyyyyyy @Geobits is here!
3
 
> Eyyyyyyyyyyyy
 
Have you seen the blasphemous portrayal of your offspring?
 
Yes, I did. You people are strange ;)
 
@Calvin'sHobbies Oh right, CP437! Forgot about that.
 
3:50 AM
(╯ಠ ͜ʖಠ)╯︵ ┻━┻
 
@AlexA. Disappointment, rage, and sleezy happiness all rolled into one.
I never want to meet you.
 
:(
 
(Ha, I kid, if that wasn't obvious.)
On a different note, B0/S23 is a pretty interesting rule.
 
@El'endiaStarman ( ͡° ʖ̯ ͡°)
 
i know how 2d cellular automaton notation works (despite not being able to spell it, thanks spellcheck) but this is new to me
is that "born with 0 neighbours, survive with 2 or 3, die otherwise"?
 
3:59 AM
make an animated GIF of (ಠ ͜ʖಠ) becoming ( ͡° ʖ̯ ͡°)
 
... becoming x_x
 
@undergroundmonorail Yup!
 
@El'endiaStarman nice, ty
 
Obviously, you'll just get a flashing grid. BUT...if you then click while it's running...you can build up a stable still life.
 
I was about to say, "wouldn't that just cause everything to alternately be born and then die?" :P
 
4:01 AM
@Doorknob Try it! :D
 
Try it where?
 
I also just found a period 8 oscillator!
 
ooh, I didn't consider the fact that the corners would affect the result
Oh, I should check "Toroidal"
 
I made mine toroidal, but yes.
 
I clicked a square and a flashy thing appeared
then I clicked another square and both of them died ;(
 
4:03 AM
That's one step of the period-8 oscillator in the upper left. The rest is a still life.
Haha, yeah, keep trying.
 
ooh, I got a period 2 oscillator
 
@Doorknob did you just not click anything
 
hahaha no
I clicked something nearby the oscillator and for a second it looked like I killed it but then it returned to the original state o.o
 
@ՊՓԼՃՐՊՃՈԲՍԼ pl and gs2 use CP437 also
 
Ooh, I made a period-4 one
 
4:06 AM
Sweet!
 
I think you will be best off with your own code page though since one of the nice things about ESMin is that it is rather pretty :P
 
0
Q: Cookie Balancing Act

TannerCookies are being served! Sibling rivalry ensues! Each of the twins wants the maximum quantity of cookie. The problem is that the cookies are of somewhat different sizes, not surprising since they are home baked. So you weigh each of the cookies and devise a program to help you allocate them to e...

 
I made it into a period-8 one :D
 
@NewMainPosts He....what.
He didn't fix it at all.
 
4:08 AM
@Mauris On the other hand, I foresee specialised langs tbh. Say hello to ChessLang, the golfing language specialised for solving problems about chess.
 
I made another period-8 oscillator. I wonder if there are any of an odd-numbered period...
 
@El'endiaStarman he changed it a little
not much
 
they did make it code-golf, which is somethig
 
Oooh, found a 12-period one
 
cool!
I should probably move permalinks up the list so these can more easily be shared... :P
 
4:10 AM
@Doorknob my gut says probably not because every second generation the "background" toggles which would affect it, right?
 
But then again, there's a lot of data to transfer, so...
 
@Doorknob ever played with CAs before?
 
You should add a "single tick" button too
 
i guess "every generation the 'background' toggles" would be more accurate than what i said
 
@quartata no, not really
 
4:11 AM
@Doorknob Oh yeah, that'd be easy.
 
@El'endiaStarman And a "run for x steps" button, and a generation counter perhaps
 
...[adds to list]
 
@El'endiaStarman can you make it cure cancer and/or let me print out pizza
 
Hmm, when you say "run for x steps", do you mean that it does x steps at once or that it does x steps in real time, then stops?
 
@quartata I know.
 
4:14 AM
someone tell the cookie guy challenges need 72 hours in the sandbox since apparently I cannot comment on mobile
 
@El'endiaStarman in this case i feel like it's actually probably pretty easy to explain why it's virtually impossible
 
@El'endiaStarman Could be both. If an "animate" box was checked it would run until stopped by the user or until it reaches x steps. If unchecked, it would do it instantly
 
Yeah, but.... xkcd!
 
woooah... try toroidal B12/S34 and then clicking a single square
 
4:15 AM
you've got me there
 
B04/S02 is also pretty nifty
 
@Doorknob Wow, that's really cool.
B3/S234 is one I found earlier that I thought was pretty cool.
 
oooh, that is neat
It creates maze-like patterns
 
@Doorknob Yeah, that's pretty neat.
 
I finally got that after letting it run for a long time
 
4:19 AM
Yup. That seems to be the defining characteristic of that rule. It tends to produce [almost] still-lifes that are maze-like.
 
haha B0/S8 is really fun
 
woooaaahh haha!
 
@ՊՓԼՃՐՊՃՈԲՍԼ I can help you with the logistics of setting up a code page (although not right now)
 
Oh you should also make the grid size configurable
 
Yep, that's on the list.
 
4:24 AM
Probably should pick what chars you want first. You will need 256 obviously, and 96 of them will be printable ASCII + newline
 
B1/S1 is... interesting
 
And really cool when you only click one square!
 
yeah
 
Check out B3/S012345678
 
Alright, well I'm going to sleep.
 
4:28 AM
! I clicked again in the same square about halfway through the oscillation and it happened to settle into another period-8 oscillation!
@quartata Oh that's fun.
 
@El'endiaStarman you should show @SuperJedi224 your simulator. He's really into this stuff.
 
Oh yeah, he is.
 
@El'endiaStarman It is called Life without death or Inkspot. I like it.
 
yeah
B3/S01234 is pretty cool too.
 
What was the rulestring for the maze one?
 
4:32 AM
B3/S0123 is just plain interesting.
B3/S234
 
@ETHproductions I nominated your first challenge for one of the "best of 2015" awards.
 
@El'endiaStarman Eventually settled down to a pure still life except for a tiny, 2-square period-2 oscillator. I toggled one of them and it stopped.
 
Poll: Do people consider Truth Machine my best challenge, or things like Florets/Confidant Numbers
 
Since popularity contests can be divisive, could we give this sandbox post as much feedback as possible? I think it could be really interesting if we get any objections addressed early.
 
@quartata I really liked truth machine.
 
4:35 AM
I know I got nominated with TM but i am not sure it really represents my work since I did not think of Truth Machines
 
Dennis didn't think of primes, nor did Martin think of "Hello, World!".
 
Maybe TM could be Less is More?
 
I think you did a really nice job with truth machines. It was well-presented and was very interesting.
 
Hm.
 
@AlexA. Clearly you've never heard of the sieve of Dennis.
5
 
4:37 AM
@quartata You could self-nominate for that category.
@Dennis I have a sieve in my kitchen. I use it for sifting flour. Does that count?
 
welp I cannot really change Riker's nomination so :P I'll roll with it
 
40 secs ago, by Alex A.
@quartata You could self-nominate for that category.
 
...wow. I just ran B3/S0123 for about 15 seconds at 20 ms per tick and it took that long to settle into a still life. But settle, it did.
B3/S012 after that looked never-ending.
 
Would it be of interest to have a stochastic rule? Maybe birth happens with a probability of 0.5 in any cell eligible for birth according to the birth rule? Maybe similarly for death?
 
@El'endiaStarman is that seeds
 
4:43 AM
@trichoplax I think that'd be a little too hard to try to do at this moment.
 
@quintopia it's notation for GoL-like cellular automata
 
I'd have to figure out how to provide input for that.
 
born with 3 neighbours, survive with 0, 1 or 2
 
@quintopia Yeah, the seed was the still life from the previous rule.
 
it's possible that i misunderstood the question
 
4:45 AM
@El'endiaStarman Fair enough. It seems like something someone somewhere would have tried at some point. I'll have a search...
 
I'm thinking that I misunderstood.
@trichoplax Oh, certainly.
@quintopia VTC as "unclear what you're asking". :P
 
@El'endiaStarman NVM, seeds is B2/S
 
Well, that was unexpected and really cool too.
 
I just realized TM will be 1 byte in NanoScript 0_0
 
4:48 AM
TM?
 
Oh wait. Rats.
 
@quartata Oh yeah thanks for reminding me! ESMin 1 can use a code page now. I'll work on it sometime.
 
It's 2.
still good
Maybe could make it one if I implemented something I just thought of
 
@ՊՓԼՃՐՊՃՈԲՍԼ Are there any characters in ESMin that are much more common than other? If not, it might make sense to encode all of them in a fixed number of bits, rather than some in 1 byte and others in 2...
 
@ՊՓԼՃՐՊՃՈԲՍԼ Already implemented?
@Dennis I do not think he has more than 256 chars
So they will all be 1
 
4:52 AM
@Dennis I understand that. There are way more than 256 chars, so only some can be 1 byte. I know which ones.
 
Just tossing an idea. It might make more sense to encode all characters in 1.5 bytes instead of 3% in 1 byte and 97% in 2...
 
You will need a no op to pad it though
 
I was thinking of that.
 
@ՊՓԼՃՐՊՃՈԲՍԼ how many chars are there?
curious
 
Estimated 600?
A bit less.
 
4:58 AM
Oh, that's way less than I expected.
 
Yeah, ESMin 2 has more.
 
How many, roughly?
 
Somewhere in the 600-700 range.
I think the last time I estimated, I overshot.
 
OK, that's ~35% in one byte and 65% in two. That probably makes sense.
 
Great! Anyway, I'll have to go. See y'all, and I'll work on the code page when possible.
 
5:01 AM
Bye!
Is there a join attribute for lists in Python?
I think I know the answer.
 
yes
well no
its string.join(list)
 
> yes, well no
2/10 very clear
 
Yes, I want list.join(list). Or any.join(list), really.
 
"".join(list) will join with no separator
 
Thanks, but that's not at all what I need. magic([1,2,3],4) should return [1,4,2,4,3].
Wth? Why what izip removed from itertools?
 
5:12 AM
13
Q: python: most elegant way to intersperse a list with an element

ClaudiuInput: intersperse(666, ["once", "upon", "a", 90, None, "time"]) Output: ["once", 666, "upon", 666, "a", 666, 90, 666, None, 666, "time"] What's the most elegant (read: Pythonic) way to write intersperse?

 
are you using python 3? if so it's because it's a builtin and it's called zip
 
"4".join(["1","2","3"])
gives "14243"
 
@Zgarb Perfect. Thanks!
 
@undergroundmonorail Does zip require a list of 4s? (instead of a single one)
 
@trichoplax ?
 
5:14 AM
@trichoplax Yes, it does. itertools' zip has fillvalue though.
 
@undergroundmonorail @Dennis cleared that up for me...
 
okay cool
 
Wait, that works?
def intersperse(seq, value):
    res = [value] * (2 * len(seq) - 1)
    res[::2] = a
    return res
You can actually do res[::2] = a? o_O
 
 NameError
 
666 rep! hail satan
 
5:23 AM
so metal \m/
 
lambda x, y: list(itertools.chain(*itertools.zip_longest(x, [], fillvalue = y)))
Ugh.
 
@Dennis I just downvoted that one because there is no mention of where a comes from
 
I left a comment.
 
First post by a new user, I don't know PHP so I haven't been able to verify whether it works. Can anyone verify?
 
@AlexA. That doesn't wait at all.
 
5:28 AM
Doesn't wait?
 
def intersperse(seq, value):
    res = [value]*(2*len(seq)-1)
    for i in range(len(seq)):
        res[i*2]=seq[i]
    return res
 
Parse error: syntax error, unexpected 'for' (T_FOR) in /run_dir/repl.php(64) : eval()'d code on line 1
 
It shouldn't have to wait for anything...
 
That worked for me, Dennis
 
@AlexA. Wait, I might be confusing the challenge with another one.
 
5:28 AM
lambda s,v:sum(([v,x]for x in s),[])[1:]
 
@Dennis Just checked and a[::2]=b works only if the slice of a is the same length as b
 
A map might be simpler
 
(I'm using Python 3)
 
@Dennis Yeah, I know the one you're thinking of. This is not that one. :P
 
5:29 AM
I don't know PHP either though, but that does appear broken
 
@Dennis Oop, that works
 
I also have no idea how to test PHP.
 
Wow
 
@AlexA. Seems to check out.
 
@trichoplax But since the res is length (2*len(seq)-1), it's guaranteed to work, since the slice of res[::2] is always the same length as seq
 
5:31 AM
@Dennis Yep, I just found an online test environment (which is pretty neat actually) and this works just fine. Thanks!
 
@Sherlock9 That can't work. a is not defined.
 
@Dennis You're supposed to use res[::2]=seq not a
 
@Sherlock9 Ah - that works
 
@feersum Neat. Thanks!
 
@Sherlock9 The typo in that answer (using a instead of seq) made me wonder if Python would automatically repeat a single character, but it doesn't.
 
5:34 AM
I wonder which one is faster.
 
I also tested it on codecademy (ughhhhhh), and it works.
¯\_(ツ)_/¯
 
One of these days we'll remember to escape that last backslash. But not any time soon, I'd wager
 
I typically do.
 
Staring at it seems to fix it every time
 
If anyone else wants to test, put this into a blank HTML document
<!DOCTYPE html>
<html>
<head>

</head>
<body>
<?php
for($x=0;$x<144;$x+=3)printf("'%02d:%d0'%c\n",$x/6,$x%6,$x<139?44:0);
?>

</body>
</html>
 
5:37 AM
@AlexA. Actually, that prints a NUL character at the end of the output.
 
Oh really?
 
Yes. $x<139?44:0 prints either a comma or a NUL.
 
:/
> ninja'd by Dennis♦ - 0.5 milliseconds ago
2
 
hahaha
Well, Jelly has join now. Next step: split.
 
\o@
 
5:53 AM
Is anyone ready to golf it down to ninjad yet?
 
njd
@AlexA. I'm tempted to edit in the correct diamond...
 
@trichoplax n
 
are you abbreviating ninjad or no??
 
@El'endiaStarman I was feeling exceptionally lazy and that's the diamond I can type with my keyboard. :P
@trichoplax ¯\_(ツ)_/¯
 
5:55 AM
:)
 
^^ copy-pasted from that profile box in chat.
There, fixed. ^_^
 
Are you happy now?!?! cries
 
Yes, yes I am.
 
Good.
> Pouring gnutls
Quoth Homebrew
What the hell are gnutls and why must one pour them?
 
Just crazy Mac talk.
Ignore it.
 
5:58 AM
 
Upgrade to Linux.
 

« first day (1808 days earlier)      last day (3027 days later) »