« first day (2919 days earlier)      last day (1917 days later) » 

12:02 AM
@Downgoat didn't we have different null coalesce? i'd say ?: would be good
@Downgoat or even any other language
@Adám :O using dzaima apl?
@DJMcMayhem setInterval XD
 
12:16 AM
@dzaima Which neighbour counts?
@dzaima What is an "other modifying states"?
 
12:30 AM
@ASCII-only oh smart
 
1
A: Restricted Polyglot

R. KapBash + sh + zsh + ksh, 4 bytes: echo Really simple and satisfies every rule: Outputs a newline in each of the languages. Output currently does not vary in any way between the languages. Does not produce an error in any of the languages... ...except when any of the characters are removed/chan...

0
A: Restricted Polyglot

user75200Bash + sh + zsh + ksh + Windows Batch, 4 bytes: echo Really simple and satisfies every rule: Outputs a newline which doesn't vary in each of the languages (but Windows Batch, which outputs ECHO is on, on the language you use), doesn't error, except when any letter is removed or changed.

?
There's duplicate answers
 
@ASCII-only @ASCII-only should things be auto-wrapped as optoinal? e.g. should let a = 1; let b: Int? = a work or should it be let a = 1; let b: Int? = a?
 
@dzaima For example (in RLE, copy.sh/life format) 2o$2o! --> 3o$3o! --> 4o$4o! --> 5o$5o! and so on
 
1:19 AM
@ASCII-only is it me or do I use AtIndex(u, Negate(1)) a lot?
 
1:47 AM
Every single other challenge I've had died after like three days but codegolf.stackexchange.com/questions/177454/… still regularly gets answers and votes despite last being touched over a month ago by me
 
Anonymous
2:46 AM
@Downgoat IMO auto-wrapping into optionals where it's unambiguous is fine and expected
 
@Mego This seems related, C# 8 is supposed to have a feature where (condition ? 42 : null) evalueates to int? instead of a compiler error and that's nice
 
 
1 hour later…
4:10 AM
@AdmBorkBork Sledgehammer, 4 bytes: ⡤⢶⡸⡿
 
@Neil thinking about it, I've seen that pretty often. When I get access to a computer again, I'll take a look to see what I might be able to overload
@Downgoat auto wrapped, yes
 
Shalom
 
42
Q: Code that runs the Game of Life on itself

Calvin's HobbiesWrite two rectangular blocks of code, each w characters wide and h characters tall, that implement Conway's Game of Life when arranged in a grid. (w and h may be any positive integers) For example, the two code blocks might be: (w = 3, h = 2, not actual code) XX| --+ and | --+ Treat the ...

I thought this would be impossible
 
 
2 hours later…
6:15 AM
Dammit libreoffice how is U.S. not a word ._.
 
Anonymous
6:29 AM
@Pavel Because it's an initialism :P
 
Anonymous
7:00 AM
 
8:03 AM
@Adám How about this: ⊢*⍸*⊣
It does run when both sides are 1D arrays with same length, though I can't really describe what it does
 
 
3 hours later…
11:27 AM
@MilkyWay90 one of those in the message.. i.e. it wants to die but another tells it to not
@MilkyWay90 oh i thought a glider meant that it leaves nothing behind :|
@MilkyWay90 looks like this is doing something like that
@ASCII-only probably for the one byte save so i wouldn't nag about -1 byte in dzaima/APL :p
 
 
1 hour later…
12:50 PM
@Mego do i need to get something special to run rules with 24 neighbors?
 
1:18 PM
0
Q: Coloring problem [dynamic programming]

John LingardStatement You have a table with N rows and M columns. For each of the N rows you know the number A_i. Now, you can color first A_i cells, or last M - A_i cells. The "boredness" of a column (not row) is product of number of colored cells and number of empty cells of this column. So, "boredness" o...

 
 
3 hours later…
4:07 PM
@dzaima Yeah, I miscalculated and realized when I actually typed it out
@dzaima Use an OR gate. Here, 0 is die and 1 is become alive. Therefore, the cell would become alive
@Mego Thanks, I'll try it
@dzaima Yeah, sort of like my cellular automaton (maybe exactly, I dunno)
 
@MilkyWay90 it should be your cellular automaton if i did everything right
 
Oh ok
@dzaima Do you have the .rule file for that
I'm currently opening Golly to test Mego's solution
 
@MilkyWay90 that's not golly, the rule is hardcoded in java
 
@dzaima oof
I got an error saying bad basic values
So how do I run it in Java
 
@MilkyWay90 yeah me too
 
4:16 PM
I have it installed
Let me see the .py file
 
@MilkyWay90 what .py file, all i've written is Processing
 
`# uses Moore neighborhood with radius 2

def transition function(a):
# NW NNW N NNE NE
# WNW nw n ne ENE
# W w c e E
# WSW sw s se ESE
# SW SSW S SSE SE
c,n,ne,e,se,s,sw,w,nw,N,NNE,NE,ENE,E,ESE,SE,SSE,S,SSW,SW,WSW,W,WNW,NW,NNW = a
n = n + ne + e + se + s + sw + w + nw
if n in (0,1,6,7,8):
return 0

s_n = w + c + e + se + SSE + S + SSW + sw
if s and s_n == 2:
return 1

w_n = WNW + nw + n + c + s + sw + WSW + W
if w and w_n == 3:
return 1

n_n = NNW + N + NNE + ne + e + c + w + nw
oh oof
Markdown has failed me
 
@MilkyWay90 pad lines with 4 spaces. markdown doesn't work in multiline messages. also that's megos .py file
 
@dzaima Oh ok
 
0
A: Sandbox for Proposed Challenges

gwaughAdventure ASCII Adventure Growing up, my first console game system was an Atari 2600 and I will always have a love for some of those games I so enjoyed as a child. Many of the graphics are still memorable, some I might even describe as iconic. It turns out that these sprites were stored as ver...

 
4:27 PM
@mego Is a in your python script supposed to be a list of lists?
Anyways
I am going to make a CMC
CMC : code-golf Given a two-dimensional array, output the elements on the array, sorted from least to greatest from their absolute distance from the origin
For example:
as       -->  abs or bas
 b
 
4:47 PM
@Adám Jelly, 9 bytes: d1ḋ3,5÷72
The port to Sledgehammer is 8.625 bytes
 
abc  --> aabbc
  b
  a
And you divide your score by ONE if you can make a version which works for this:
|m
|d      f w
| p w d
|                m
|
|         d
|
|     f             w
|_ _ _ _ _ _ _ _ _ _ _ _
 
5:30 PM
@Adám Jelly, 7 bytes: ḅ60÷⁽¢Ẓ
 
@EriktheOutgolfer the input must be a number in the format HH.MM, not an array
 
ah, so a float?
I read that as "HH.MM format"...
 
6:07 PM
@MilkyWay90 Jelly, 9 bytes: ṚŒĖḢ’ÆḊƊÞ
 
6:34 PM
@MilkyWay90 Jelly, 8 bytes: ṚŒJSÞœịƊ
 
ngn
@MilkyWay90 that pattern looks familiar :) so you cracked ox.txt?
 
Anonymous
@MilkyWay90 1d list, with 25 elements - the current cell state, plus the neighbors' states
 
Anonymous
@dzaima Shouldn't need to. Golly should know that it's Moore2
 
@ASCII-only It saves a single byte of Dyalog (a trailing no-op )
@Bubbler Very nice looking, but it raises the right argument to the power of the intervals in the left that the right's elements fall into — raised to the power of the left argument. Hardly meaningful, though.
 
6:52 PM
@Mego dragging it in golly gives me "Bad basic values" and loading trough "set rule" gives me "The given rule is not valid in any algorithm."
 
Anonymous
That's weird
 
Anonymous
I generated it with the generator that comes with Golly
 
@Mego i can generate a 24-neighbor rule file too, but can't seem to open it
 
Anonymous
Odd
 
Anonymous
Maybe the tree format doesn't like r2? I'll make a table rule
 
Anonymous
7:03 PM
Oh, Moore2 isn't supported by Golly yet... RIP
 
Anonymous
7:13 PM
Well, the Python transition function will work, even if the rule won't
 
7:46 PM
@EriktheOutgolfer e should come before i, unless OP meant Manhattan distance, in which case we still want ṚŒĖḢS$Þ (7 bytes)
 
you mean real distance?
because that's prone to floating-point inaccuracies
also... hadn't thought of enumerating :P
 
Yeah I used real distance
 
I see :P
 
8:15 PM
CLEAN UP ON AISLE ELEVEN
 
@NewMainPosts umm... that's not on hold...
@NewMainPosts TRASH ALERT (cc @Mego show your flipper :P)
whoops last RO ninja'd
 
8:31 PM
@ngn Hopefully my approach works, then yeah
@ngn No, my idea didnt work
@lirtosiast I mean absolute distance, as in a cell 2 units away for x and 3 away for y would have an absolute distance of sqrt(2^2 + 3^2)
 
Jelly might not win then
Jelly is 1 indexed which wastes a byte, and its Euclidean distance builtin is 2 bytes, and so is its multidimensional enumerate.
 
oh
Is there already an XOR two images contest
CMC: Xor two images from two URLs on the web or files in the file system. The images can have color in them
 
8:51 PM
as in, take the bitwise xor of the binary representations of the images?
 
Yes
 
@ASCII-only actually in this particular case I was able to use Push(u, PushOperator(Pop(u), ...)) anyway
 
It's all input format then... just convert image to integer and back
 
i guess so
 
Image[BitXor@@ImageData/@#]& works in Mathematica if the ImageType is not a float
 
10:01 PM
ok
 
 
1 hour later…
11:30 PM
@Adám just kinda surprised you know dzaima/APL at all lol
 
@ASCII-only It is mostly based on Dyalog + my extensions.
 
@MilkyWay90 including the _ and |?
@Adám oh, huh. how different is it from Extended?
@Mego wait what
 
@ASCII-only It adds a shortcut for 1-char strings, allows omitting a trailing and retracts on a couple of unfortunate decisions from APL's history, while Extended, as the name implies, only adds features.
 
ah
@MilkyWay90 done
@dzaima >:D charcoal beats canvas on extendify the sun
 

« first day (2919 days earlier)      last day (1917 days later) »