« first day (3744 days earlier)      last day (1096 days later) » 
00:00 - 11:0011:00 - 00:00

11:04 AM
@hyper-neutrino Kaddath maybe?
 
@Ausername @Ausername I found a package - someone clearly did this before me
 
@Stackmeter Ok good.
@hyper-neutrino And will you ever find out? No.
 
I second that motion
HN must never find out
 
@hyper-neutrino so you can't farm badges
there
 
hello I just earned chat privileges nice to meet all of you
 
11:13 AM
Welcome @HuỳnhTrầnKhanh !
 
@Ausername That's a known issue, its why @hyper-neutrino changed their username from HyperNeutrino
 
i want to add this community to my long list of communities I'm in good terms with lol
 
@hyper-neutrino No, and because SE is buggy
 
i wanna learn golfing languages where can i get started
 
@cairdcoinheringaahing what's the issue exactly?
28
Q: Sandbox instructions for new users

xnorWe now have a nifty new info-box to point new users to the Sandbox. Hooray! But when a new user does go to the Sandbox for the first time, the instructions there don't give them much to work from to write their Sandboxed challenge. I think the Sandbox post itself is prime real estate for chall...

thats for asking Qs
 
11:16 AM
@AncientSwordRage SE typically "cuts off" usernames in chat to fit the screen size. It tries to do that after the first non-letter character, but for some mods (like you, or HyperNeutrino) there isn't a non-space character before the diamond, so it just shows the diamond
 
@cairdcoinheringaahing oh weird
 
@HuỳnhTrầnKhanh What kinda golfing language do you want to learn?
Or, a better question would be, do you have any specific golfing lang you want to learn?
 
26
Q: Community FAQ for Programming Puzzles & Code Golf

DoorknobCommunity FAQ For the Programming Puzzles & Code Golf site For official guidance from Stack Exchange, visit the Help Center. Posting Challenges/Solutions How can I incorporate good-looking mathematical exposition into my question/answer? Posting Challenges What details should always be given ...

 
I'm very new so... anything goes really. preferably Turing complete (and is actually a golfing language not something weird like brainfuck and whitespace where an average program is orders of magnitude longer than a program written in a conventional language)
i can't really be more specific lol as i know nothing at all
 
05AB1E is a good golfing lang to get started
It's not overly complex to get started, but typically requires some lateral thinking to get really short answers
 
11:21 AM
I recommend lots of reading
 
yeah I'm p good at binge reading stuff but hey i need something to read lol, can you link to interesting stuff about code golf that i should read
 
points at questions on this website
 
@HuỳnhTrầnKhanh alternatively, you can start with (shameless self promotion) Vyxal, which has a few features 05ab1e doesn't have like functions as objects and lambdas
 
Reading explanations of other answers is a good way
6
 
oh okay, what do you think about the esolangs wiki? is it a decent place to get started
or is it outdated or something
 
11:25 AM
Esolangs wiki can be a tiny bit brief most times
But it's a good starting point
 
@HuỳnhTrầnKhanh I think the 05AB1E page is fairly up to date
 
thank you, i gtg now. you are an awesome bunch ❤️🙌
 
o/ bye for now!
 
11:45 AM
Announcement about the APL Problem Solving Competition: A blog post about last year's phase II has been published. You still have three months to learn APL and enter the 2021 round. Ping me if you need pointers.
4
 
I think that's ok to have pinned, at least for a few days?
 
can anyone recommend a good queue-based programming language to learn from?
 
12:03 PM
What you replied looks okay
Taking input by inserting into source code is probably not allowed on codidact either
 
no, and "ABC" "DEF" just concatenates, it doesn't actually solve the challenge
 
0
A: Sandbox for Proposed Challenges

Matt SanchezDrawing the Mathematics Stack Exchange logo (ASCII Logos 2) The goal is to create the Mathematics Stack Exchange logo using ASCII characters. It looks like this. The exact output should look like this: _ /=/ \=\ /=/ \=\ | ...

 
12:24 PM
@AncientSwordRage queue based?
I can't really remember too many
 
Brain-Flueue? :P
 
12:42 PM
@Razetime as opposed to stack based
esolang wiki has a bunch, but it's hard to know where to begin
 
Conor O'Brien has a lot of esolangs
bound to be a deque there somewhere
 
Actually deque-based ones are not very different from tape-based ones
 
@AncientSwordRage esolangs.org/wiki/Kepler
weee
deque based golfing language
 
Dotcomma has a queue but I got rid of it
Actually I didn't, I just stopped using the "newer" version that had one
But it does have a queue
(not a deque)
EnderShadow has doubled their rep from the XKCD KotH lol
 
48 upvotes in <2 days is wild
 
12:48 PM
half the answers there are memes
 
That's the best thing about KotHs :P
 
i haven't seen this many in one before
 
It's similar to my first KotH, I think the title is one of the main things that draws people into those
Yeah, this KotH is particularly susceptible to meme answers
 
@Razetime investigating!
 
The skill ceiling isn't particularly high
 
12:50 PM
It's been top of the HNQ for a solid day now
 
But the low entry barrier is good for a different reason
 
It's a perfect storm of meme's and low barrier to entry
 
@AncientSwordRage 1+ is deque based and very hard to use competently
 
Add in xkcd and you get a lot of new users trying their hand at it
 
The better I've got at designing KotHs the fewer people have competed in them lol
My first one was like this one
All my recent ones have been averagely good, with just a few answers
 
12:51 PM
Honnold took like 5 minutes to make and took many days to beat
 
I guess clickbaity titles is the trick (although you'd think Political Simulator would have been clickbaity enough)
I have to leave to go to school now :/
 
@Razetime that's my experience so far
 
1:20 PM
[can anyone help me fix this] (tio.run/##K6gsycjPM9YtqCyo/P@/WMFWQakgryy/…)
 
ruins dramatic entrance
good morning
 
@StackMeter You haven't close the quotes properly
 
@StackMeter Try it online!
 
s = "pnvos\"R\"+"v(c"+"\'" is s = "pnvos\"R\"+" v( c "+" \'" with some spaces
You can't have \ in function calls
 
Lol I really don't get why the spammer trying to sell opioids is talking about how you should pay attention to pain...isn't the point of painkillers to do the opposite?
 
1:24 PM
the first mistake is actually reading the words of the spammer
 
> The term “pain” refers to the high unpleasant physical sensation in any part of the body.
Thanks, I had no idea
CMC: Golf a program which meets the requirements for the AP compuer science performance task. Write a program or function which: takes meaningful input, produces meaningful output, includes a list which is necessary for the functioning of the program, and contains a function or procedure which makes use of both selection and iteration (or recursion) and is used within the main program/function
(M for Medium Difficulty)
 
is it required to halt
 
No, but you'd still have to produce meaningful output
 
@RedwolfPrograms Jelly, 2 bytes ỊƇ. The input is a list of integers. The output is the elements of the list that are -1, 0 or 1. Ƈ (filter) does both selection and iteration.
I don't know what "includes a list which is necessary for the functioning of the program" means
 
1:31 PM
yeah just submit that ^ XD
 
The inner function has to be one defined in the program (didn't clarify that right)
 
@RedwolfPrograms Jelly, 4 bytes Ị¶ÇƇ
 
And the list part means that you have to make use of a list or collection type in some manner (other than I/O), in a place where anything other than a list would be difficult to use
 
The inner function is called with Ç :P
 
here, take this function, now wait a sec while I ruin golf it
 
1:33 PM
@RedwolfPrograms That seems to be the only "difficult" bit of the CMC
The rest just boils down to "write a filter function"
 
In JS, I could probably do something like: f=i=>(g=j=>j?g(j-1)*2:1)([...Array(i).keys()])
(sum of the first n powers of two I think)
Maybe they won't notice 2**i-1 works
(I've already got mine finished, so don't worry that you're helping me cheat or anything)
 
@RedwolfPrograms Slightly more interesting: Jelly, 7 bytes Try It Online!
That takes a list of lists and returns the lists with exactly one maximal element. M fails on integers, so if any of the elements of the inputs aren't lists it'll error: Try it online! (M is one of a few builtins in Jelly which doesn't promote integers to arrays, and breaks instead)
 
# [Python 3 (PyPy)], 70 bytes

<!-- language-all: lang-python -->

def a(n):
k = 0
for i in range(len(n)):
k += n[i]
print(k/(i+1))

[Try it online!][TIO-ko4d63ip]

[Python 3 (PyPy)]: http://pypy.org/
[TIO-ko4d63ip]: https://tio.run/##FcpBCoAgEEbhvaf4lyMSFe0CTxIthLQGYxRx4@nNdg@@l1t9kmxTbrn1fvkAR6J3hQiLRSGkAgYLipPb0@tl8O9jMBZy8Dk6F5ZKcSY2q9a9fw "Python 3 (PyPy) – Try It Online"
this takes the rolling average of the list
 
can't you just use sum(n)?
 
@Wezl that isn't upto AP standards
 
1:45 PM
true glares at python for having a sum builtin anyway
 
@Razetime it requires some obfuscation
 
just implement a bf interpreter and perfornt he same thing
 
2:04 PM
@RedwolfPrograms Haskell, reverses a list: rev l = go l [] where go [] a = a ; go (h:t) a = go t (h:a)
 
good example
 
2:20 PM
@RedwolfPrograms Scala, multiplies every element by 2: _ map 2.*
 
:( :( :( "Title must be at least 15 characters." SE doesn't support golf
 
Btw thanks @cairdcoinheringaahing, now my most upvoted answer is frickin' Crab :P
@Wezl ikr
More proof that we need a dedicated site for Code Golf with a different model
 
does anyone know a simple an strightforward FRACTRAN interpreter?
 
Trying to answer Bubbler's question? :P
 
I just need something that takes a comma separated list of fractions and a single integer input
@user oh no no
that's awfully difficult
only 3 people in the world have made such a thing
 
2:30 PM
Oh lol
 
but a general fractran interpreter is pretty easy
 
0
Q: CDGLF: TMN to APL

WezlIn this challenge you will remove one of my least favorite features, operator precedence from traditional math notation, to acheive the syntax of one of my favorite languages, APL. The APL subset we will be working with includes only a few functions and single digit numbers. (No arrays!) Here is ...

 
2:48 PM
@Wezl btw i find the comment length threshold annoying as well, on PPCG comments can be chatty right? so what's the point 😂
 
it stops things like +1 which aren't helpful
but it also blocks simple "yes"s and "no"s
 
I don't know about allowing chatty comments, but it's very annoying for TIO links
 
Just convince them that a minimum length doesn't lead to more quality by using you fricking idiot as padding :p
[Try it online!] you idiot
Trailing whitespace is allowed you blithering buffoon
Turned in my AP computer science project, it's 30% of the final score so I hope I did it right :p
 
You can always add a superellipsis.........
 
>:| Vyxal
it's probably a good language but it's cutting in line and I don't want to admit that there's a good reason
 
2:57 PM
hmm wdym by cutting in line
nvm
 
@JohnDvorak Uh: ………
 
@user Your Top 3 voted answers are all thanks to me :P (2 are answers on my challenges, one is Crab)
 
:P
And all of them are low-effort
 
CMC: Given a non-negative number, produce that many "leader dots" (from and and ) using as few characters as possible. E.g. for 4: ․… or …․ or ‥‥ and for 6: ……
 
So it's kinda converting to base 4, but without zeroes? (edit: that's wrong, nvm)
 
3:13 PM
i keep wondering how ppcg people can come up with a computer architecture for the game of life, their work is amazing
 
that was a long collaboration afaik, some of the people who made that are in the discord
#quest-for-tetris has their logs
 
@Adám Simple solution in Scala: n=>"…"*(n/3)+"‥"*(n%3/2)+"."*(n%3%2)
Might be a cooler way to do it, but for only three distinct characters, it's probably longer
 
@Razetime that sounds cool! i can't run the actual golly file though
the file is p huge but when i open it there are some mysterious figures that don't resemble tetrominos at all
i can't really figure out a way to actually play the game
 
4:01 PM
Does anyone have suggestions or feedback regarding
0
A: Sandbox for Proposed Challenges

fasterthanlightKoTH - JS WarBots king-of-the-hilljavascript Based on King of the Hill: Robot Battle Rules and Instructions Program a bot as an object in JavaScript. The functions that can be called are: left(name) Moves left 1 unit (x position -1) right(name) Moves right 1 unit (x position +1) up(name) Moves ...

 
You should be able to remove the need to pass the bot's name for the functions, just set a variable in the controller that holds the name of the currently running bot.
 
0
A: Sandbox for Proposed Challenges

fasterthanlightKoTH - JS WarBots king-of-the-hilljavascript Based on King of the Hill: Robot Battle Rules and Instructions Program a bot as an object in JavaScript. The functions that can be called are: left(name) Moves left 1 unit (x position -1) right(name) Moves right 1 unit (x position +1) up(name) Moves ...

 
@Adám Try it online! Python 2, 21 bytes
If you meant this
 
no, using multi dot characters like ……
 
???
 
4:14 PM
…… is one character
so for 6 you output ...... but you should output ……
 
eh.... no
 
wdym
 
@rak1507 if it is three chars for one byte then how in world we would output one of them
 
I'm not sure what your question is, the challenge is to output a number of dots using as few characters as possible, ...... is 6 characters, …… is 2 characters
@rak1507 sorry this should have been clearer, it uses … which is 1 character
 
@Wasif is a single character, a unicode ellipsis, that looks like 3 dots but is really only one character
 
4:19 PM
oh now I understand
 
CM?: Is 'fish' pronounced with a long or short 'i'? Same question for 'Hi'.
 
@Wezl short i sound
 
right, I pronounce 'Hi' that way too
 
lol
 
4:27 PM
Then something like this in python for the dot question
 
are KoTH challenges always in JS? why can't KoTH challenges be language agnostic?
 
it's harder to write a controller that works for any language
 
@HuỳnhTrầnKhanh no it can be in any language
i prefer python
 
@HuỳnhTrầnKhanh JS is popular and portable
plus there are still other ways to get other languages to run on JS, though people rarely use them (maybe because of the packaging involved?)
 
i was thinking about something along the lines of the bots communicating with the controller over standard streams, would that be doable
 
4:37 PM
Yes
But you probably won't get as many submissions
 
but irritating and you'll have to install multiple new languages to run the submissions
 
ah ok thanks 👋
 
5:00 PM
If f and g are functions, should f g x be f(g(x)) or f(g)(x)?
Right associative is better, right? So it'd be the first, f (g x) not (f g) x?
 
@flawr Hey there, long time no see! I think you've been in chat a couple of times since I got it but we just missed each other here by coincidence :)
hope you're doing well
 
@RedwolfPrograms I'm in favor of currying and the first one, but the second is fine, especially if arguments are tupled (arguments are passed in a list)
 
For anyone who's interested - Mast has been added as a mod on CR; following the election, there was universal support to just add them in as a mod alongside the two elected candidates (there was a 0.035% margin between Mast and Peilonrayz anyway :P)
 
for golfing reasons the second one is better because some things can't be called
 
5:20 PM
Anyone know how to add a single keyword to a language's syntax highlighting in Sublime Text?
I wanted to add enum as a keyword, so I tried taking the Scala syntax file and adding ..|enum|... wherever keywords were mentioned, but now it's acting up
 
5 minutes to make an interpreter for a language that uses only Z and z as commands
 
oh no, not another Brainfuck dialect!
 
it doesn't have to be
 
@Wezl Lemme just write up an interpreter for Zunary :P
 
s => s |> window.atob |> eval
 
5:31 PM
whirl but replace z with 0 and Z with 1
 
@Wezl but it will be
 
I'll make one like iota
 
I just downvoted all the answers on a question. I feel happy now :)
 
5:47 PM
why (as in why does that make you happy) :P
 
@Adám Retina, 23 bytes: Try it online!
 
6:22 PM
@Wezl fwiw here's my (late) submission
const Zz=(p,s=[])=>!p?s:Zz(p.slice(1),p[0]==="z"?[...s.slice(0,s.length-2),s[s.length-1](s[s.length-2])]:[...s,p[0]==="Z"?(f=>f(x=>y=>z=>x(z)(y(z)))(a=>b=>a)):p[0]]);
unfortunately it's not golfed at all
What does this link show for you?
 
@hyper-neutrino I like destroying people's lives /s
I was mostly joking, low-quality questions and answers like that don't actually make me happy
:57835582 const last=a=>a[a.length-1]

const I=a=>a;
const K=a=>b=>a;
const S=x=>y=>z=>x(z)(y(z));
const i=f=>f(S)(K);
const Zz=(p,s=[])=>!p?s:Zz(p.slice(1),p[0]==="z"?[...s.slice(0,s.length-2),s[s.length-1](s[s.length-2])]:[...s,p[0]==="Z"?i:p[0]]);
const Kp=Zz("ZZzZzZz"); // This is K but defined in Zz.
/*
 * From this, one can recover the usual SKI expressions, thus:
 * K = (ι(ι(ιι)))
 *     zZzZzZZ    (reversed because Zz works on a stack (which is so input can be taken))
 * (from wikipedia: en.wikipedia.org/wiki/Iota_and_Jot#Universal_iota )
 
6:37 PM
okay thanks (you can edit that to a stub now)
 
would it not be easier to have z=S Z=K? also how do you close brackets like in case you want to do i(i(ii)i) or smth like that
 
@hyper-neutrino there needs to be a command for application (which is z)
 
oh okay
 
@hyper-neutrino you just have to use combinators (not sure exactly how)
so, you have to make your own flip
 
 
2 hours later…
8:47 PM
@hyper-neutrino Any updates?
 
9:22 PM
Have we fully retired the "non-competing" label? Now that answers are no longer non-competing because they post-date the challenge, do we have any usage for it?
 
9:46 PM
Finally repcapped!
 
10:02 PM
@cairdcoinheringaahing Update from Catija: there is an internal request for it, but there's some needed info before it can be changed but assuming there are no unexpected circumstances, they should get to it soon.
@cairdcoinheringaahing Yes, the label should no longer be included on any answers. The only reason it exists is because we can't remove it from every answer that already has it, but it should not be included in any new answers.
 
10:24 PM
@Wezl Too late :( @hyper-neutrino Can you delete it for me?
 
now people can see my beautiful code :P
 
Yeah, just leave it
 
it's code about a CMC which is far more on-topic than a lot of the stuff in this room that we don't delete :P
 
That must've been nice to see on HNQ.
 
10:34 PM
I love Arqade questions for the titles
 
There's a whole post on their meta about listing weird titles
 
The many memes of Arqade? Yeah, that's how I first found out about those
 
10:59 PM
ah I'm really scraping the bottom of the barrel for memes this week
 
11:40 PM
Hey does there exist a challenge which requires answers to print/return the number of minutes left until the next hour?
 
Yes
Legen... wait for it...
 
According to my handy CGCC moderator election countdown I forgot to take down, the voting ends in -5115 hours :p
 
@Lyxal Link
@RedwolfPrograms So, I still have a chance :P
 
11:52 PM
Learning about SKI combinators
> What happens if we self-apply the operation that applies α to the self-application of something?
I think I need some paper lol
 
see this. It didn't actually teach me much about combinators, but it's fun :) (it does teach a little)
 
not much to learn really, i = x => x, k = x => _ => x, s = x => y => z => x(z)(y(z))
 
@rak1507 except that doesn't teach you what S is useful for
 
doing everything that i and k can't do :P
 
@rak1507 That's kinda like saying that there's not much to learn about computers cause it's just electricity, metal and plastic
 
11:55 PM
K and I are really useful for tacit programming like in haskell, SML, or APL
I = monadic ⊣ and ⊢, K = dyadic ⊣ or ⊢
 
@cairdcoinheringaahing eh, I disagree, those definitions fully define what SKI are
there's literally nothing more to it than that, by definition
 
I think S is bqn's before / after
 
@Wezl K is really more like ⍨
like a⍨ b
 
@rak1507 Yes, but the definitions tell you literally nothing about how to compose those meaningfully
 
@rak1507 how?
makes a dumb joke about S, K, and I
 
11:58 PM
You still need a solid amount of background knowledge for them to actually mean anything
 
@Wezl ⍨ produces a constant function, which is basically what K does
 
I tried playing that game Wezl linked but I don't know what the Y one does and I made an infinite loop and lost :|
 
@rak1507 oh, the new operator
 
@cairdcoinheringaahing you can derive that, whereas you can't derive what computers do knowing it's electricity metal and plastic
 
did you see the "how to play"?
 
11:59 PM
is there a way to restart that game that's not refreshing?
you can get a fairly reasonable score by just holding right
 
not as far as I've seen
 
00:00 - 11:0011:00 - 00:00

« first day (3744 days earlier)      last day (1096 days later) »