« first day (4582 days earlier)      last day (555 days later) » 

00:01
So American "jello" is Australian "jelly"?
They're called "jelly" also in Korean so
00:12
American Jello is Australian Jelly. Australians also call many things an american would call a "Jelly", Jam.
00:24
challenge: given a number output how many digits it has, then how many digits that has until it reaches 1
also no golflangs since they're all soulless
what
@Joao-3 "how many digits that has until it reaches 1" is unclear
define "golflang"
@Joao-3 you say that despite the fact you use them yourself :p
i only use them when the question is real complex
00:38
so they aren't completely soulless then :p
also, yeah what do you mean by "how many digits that has until it reaches 1"?
answer to my question in python: x=input();while x!='1':print(x:=str(len(x())
correction:x=input();while x!='1':print(x:=str(len(x)))
challenge 2:print the unfunny emojis:💀🤯🖕🤓👁️👄👁️🤣😃
HIYAA
wb!
it's been a while
long time no see yall
00:44
@DialFrost hi there hello :p
@lyxαl wait
ur a mod?
when were you last here? I need to know how much to fill you in on
yeah that happened
NO WAY
GGS
so I take it you haven't heard about PLDI?
00:45
in mobile you have to scroll chat 💀💀💀💀💀💀💀💀💀💀💀
@Joao-3 Generic Stack Lanuage: input while dup 1 >: len dup print end pop
all you need to do to type 💀 is 🪟➕▪️skull↩️
@lyxαl esolang article for Generic Stack Language?
well first, do you think it has soul?
dang
00:50
i regret for saying that
because it's actually not "Generic Stack Language" at all
it's Vyxal 3 literate mode :p
am i illiterate
no
what is your timezone
utc+10
@Joao-3 literate meaning it uses keywords not sbcs
00:51
BUT AM I ILLITERATE? NO OF COURSE NOT
._.
@DialFrost yooo havent seen u around for a while
also answer in english: sneaky api call to stackexchange to retrieve challenge and do what it says
using better writing i can shorten it: sniki api col chu stekexchenj chu rechriv chelenj end du wat it sez
ok i have to sleep
Sandbox posts last active a week ago: 2D Percolation Model
anyone have any ideas how to be mapping numbers from 0 to n!-1 to unique permutation of 1...n specifically for desmos, i know there is factoradic thingy but thats hard if not impossible to do in desmos cuz u removing stuff one at a time from a list to get permutation. maybe theres some purely mathematical formula of sorts that exists
@DannyuNDos thx but i just mentioned that its hard if not impossible to implement in desmos
it isn't too hard with a recursive function, but iirc desmos doesn't let you write one?
yea no recursion
and the factoradic thing doesnt help too much cuz to convert from factorial base to permutation u have to repeat remove from 1...n to form a new list
and thats like infeasible without some sort of recursion or loop
i already have another idea to generate permutations but was wondering if theres faster way cuz the method im thinking will be O(n^n)
ok well its code golf so like its probably not gonna matter that im gonna loop 823543 times instead of 5040 times lmfao
my method for doing this is somewhat cursed, i generate base-n numbers and check if sorted it is 0...n-1, then simply just add 1
so yea as u can imagine most of these wont be valid permutations
ok wait this is slower than O(n^n) actually cuz i have to sort
each time
O_O
or maybe unique and check if its length is n, that might be golfier and faster
wait im being so dumb
i only need length n lists, so its not 0 to n^n lmfao
hmm wait but if i unique and check length it should filter those out anyways, at the cost of being inefficient
01:34
I doubt that would work, because you can't construct a list of lists
nor perform a filter
@Bubbler i dont need a list of lists, im looping over a summation
@Bubbler i have 0 for if its not a permutation and 1 if it is, i plan to multiply this by the rest of the summation stuff
im doing the most recent permutation challenge btw
i dont need to actually store permutation
just access when needed
hope that clears it up
the reason im doing it this way is becuz converting to a base-n number isnt hard in desmos
@AidenChow which challenge is it?
@Bubbler count n-rich permutations
it looks doable in desmos
except very inefficient
and probably gonna look ugly as hell
@Ginger heck no
hi bubbler and aiden!
@DialFrost pldi is a new site, programming lang design and smth, i forgot lol
01:44
oooh
damn someone alr has 10k rep on it
looks like pldi has already been taken
it was intentionally named the same as the conference
@Bubbler yo bubbler <3
@Bubbler bruh actually, damn
I was thinking about Lehmer code decoding to get k-th digit of n-th permutation, but it seems to require a proper loop over the list, uhh
01:56
ah ok got a convoluted factorial function going on here: desmos.com/calculator/fcjszudpfh
aw darn bubbler ignored me :(
@Bubbler oooh whats this?
how does it work
factoradic to permutation
ah interesting
"this requires maintaining a list of available elements, from which each chosen element is removed" thats pretty much the conversion i was saying earlier
(from wikipedia btw)
not sure if its exactly what i was thinking but it seem pretty close
if so it doesnt seem feasible to do in desmos
cuz u need to keep track of previous state of the list and keep grabbing based on the factoradic digits, that require some recursion stuff i think
given a factoradic [1 4 0 3 1 1 0], the last digit in the corresponding permutation can be computed as follows:
cur = 0
for val in v[6..1]:
  if val <= cur:
    cur += 1
02:04
v[6..1] is the factoradic digits?
yes, [1 4 0 3 1 1] in reverse order
seems really simple but i cant really think of a way to do it in desmos :\
cant just do some list comprehension hack or list indexing shenanigans cuz u need to keep track of cur which probably require some recursion
yeah, that's the problem
sad, ok i think im gonna stick with my cursed base-n conversion hack for now, not really that golfy but at least i got it working lol
@AidenChow with this graph i basically take in l and to find permutations of 1...l, loop through 0 to l^l convert to base l and check if its a permutation with unique length = l, if done correctly it should return l! cuz there are l! permutations of 1...l
very inefficient but at least it show my method would work
man i can already see it, this code will only run for like the first test case and nothing else
Aug 12 at 2:40, by Aiden Chow
hey guys so i just realized that some of the answers including link bubbler-4.github.io/piet have broken links, there are only 20 links to edit it seem like but i just want to say that cuz itll flood the homepage if i edit all at once now
wait i just realized i never finished this lol
im gonna do the rest of the edits now hopefully thats ok with yall
@AidenChow Goofy :p
02:21
@lyxαl lol ya, im gonna edit them now
ok done, homepage successfully flooded :p
 
1 hour later…
03:42
Any golfing language has builtin general inverse function, and for those questions impractical running time but code is short?
Brachylog (a Prolog derivative) can run whole programs in inverse, i.e. solve for the input when a desired output is given
APL has ⍣¯1 which can solve scalar functions, and similarly J has ^:_1 but only works with compositions of built-ins
Prolog's thing would best fit the description of "impractical running time" as it is often forced to do bruteforcing in golfing contexts
wtf, when did the polyglot thingy hit 400 languages
@Bubbler lmao idek how this stasoid guy is even managing 400+ langs in this polyglot
like idek 400 langs
let alone be able to make a polyglot in that many langs
03:58
stasoid even opens PRs if your language doesn't work as expected when polyglotting
04:51
@Joao-3 You should be able to build it yourself for any version
05:32
can someone else say if 33 being outputted here or smth wrong with my browser: vyxal.pythonanywhere.com/…
cuz if it do output 33 then a lot of the answers here dont work anymore, unless u say its for an older version of vyxal: codegolf.stackexchange.com/questions/247975/…
i remember it used to work but maybe some update broke that
@AidenChow it's a you problem
@lyxαl ok good to know, i suspected that was the case
does this output 3
Prints 43
rip
its output 43 for me too
However it might have previously worked
05:46
can u try running the vyxal link here: codegolf.stackexchange.com/a/250031/96039
@lyxαl nah its some code i make, can u try link above
bruh
thats so confusing
my browser has some issue make some output wrong but also some of them are actually wrong O_O
it might have worked at some point in time
_ in numeric literals has been reworked a few times
It used to be for number grouping
But now it's unary negation
ok so how im gonna fix this, im pretty sure the code i make works for every other lang
except for vyxal
and idk anything about vyxal
putting a space like 4 _3 looks like it work at least on my end, but that breaks some other stuff like ruby
@AidenChow it would work for pushing 4, popping it then pushing 3
05:56
and 4_3 without space doesnt pop the 4 or what?
<number>_ pushes negative number
So 4_3 pushes negative 4, then 3
Could use v2.4.1
Probably still works
It used to push 43, but that's been changed
Because _ in numbers was a grouping thing
But now it's unary minus
wait it used to push 43?
what about 3, is there some way it used to output just 3
@emanresuA is there some link to that, or is have to run local?
@AidenChow possibly
There's probably a version where _ wasn't a number grouping thing and >=2.6.0
That hosts 2.4.1
06:02
@lyxαl are you sure that it's lyxal but not vyxal?
This link doesn't work, you need to remove www. :P
@AidenChow version 2.19.2 and earlier
2.19.3 was when it was added as a number grouper
You'll need to run that locally
Only 2.4.1 and the latest commit can be tried online
crap
ok that sucks
ok what if i just add a 3 in a new line at the bottom
That'd work
nope, broke jelly, frick
Heh
06:09
my brain is too smooth to figure this out lol
06:28
I'm confused about Seggan and naffetS. Is they the same users or no?
Different users
hmm, but very similar
Especially if you turn vice-versa: Seggan and Steffan is almost the same :p
A coincidence :p
Should I try golfing more? 'Cause I've golfed only 2 challenges so far.
One peculiar thing about me is, I have much more questions than answers on the entire Stack Exchange overall.
If you think you'd enjoy it
06:49
Do we have a challenge whose title is creepy?
Why do you want a creepy title?
81
Q: Is this relationship creepy?

LeoAccording to this XKCD comic, there is a formula to determine whether or not the age gap in a relationship is "creepy". This formula is defined as: (Age/2) + 7 being the minimum age of people you can date. Therefore a relationship is creepy if either of the people in said relationship are you...

'Cause I kinda wanna set a challenge that asks to phonetically reverse the input, and title it "Turn me on, dead man". It's a reference to The Beatles – Revolution 9.
I don't know what phonetically reversing means
Like, treat the input as a spoken audio, reverse-play it, and parse the result.
Seems quite difficult
06:54
Yeah
Need some advanced auto processing and transcribing libraries
Not quite. The input and output are strings.
Yea, so turn them indo audio, reverse the audio, then transcribe the result right?
...or just emulate that process.
There is no real pattern to the pronunciation of letters to exploit
07:00
Yeah, the English language is too hard to incorporate into this challenge. Japanese would be much more manage-able tho.
I don't know Japanese but even the more regular languages I know have a few weird words pronounced differently from what the spelling would suggest
07:50
@DLosc this was based on an incorrect assumption about how type statements worked
I thought you could abuse them to write functions like type f[x]=x+2 and then call it with f[3] == 5 but in fact f[x] just gives f[x] (a types.GenericAlias)
 
1 hour later…
08:57
CMC write code to produce the smoothest version of a vertical line rotating using Unicode
 
1 hour later…
10:04
@mousetail japanese written in all kana would afaik only need special handling for は, へ, and いう... but it would also be nontrivial to actually determine if it's seeing those if it's written in all kana, though i guess it would at least be simpler (but not foolproof) if you add spaces for word boundaries old video game style
my vote's for, uhh
finnish or something like that
Maybe some conlang could work? Finish isn't that consistent
good point :P
could also just take raw ipa restricted to a fairly small inventory and simple phonotactics
I'm semi-surprised about that none of you actually crept out.
I'm crawling out right now
My autocorrect insists "creeped" is wrong and "crept" is right so
10:18
crèpe'd
How do you pronounce crepè in reverse?
èperc or èperk
 
2 hours later…
 
3 hours later…
15:05
Hi guys I posted my first question on PLDI
But I'm not sure how to exactly phrase my question, any help? :P
Hi! This is the chatroom for CGCC, not PLDI
You may want to check out The Garbage Collector
^
(@Bbrk24 DialFrost isn't new here, they've just been on hiatus since before you joined)
Oh
Yeah I only started using chat in like March of this year
I asked here kinda because a lot of ppl here also use pldi lol
But oh well
That is true
15:14
@mousetail Esperanto?
16:04
hello
uh chat?
is anyone currently in chat
You can see the list of people in the top right corner
i hate people who use the default pfps
@Joao-3 Why? They're just PFPs.
i mean, the patterns are cool and all but it's just a single color with no character
16:12
._.
mini-challenge: implement /// in your fav language
my answer in ///:
16:28
@Joao-3 you can hate gravatar but there's no need to hold something against people who like those patterns or don't want to set their avatar to something different
16:42
Hello all
I think my CMC got no replies :(
The Unicode one
16:57
Hi @hyper-neutrino!
17:26
8 hours ago, by Simd
CMC write code to produce the smoothest version of a vertical line rotating using Unicode
That's the CMC Simd was talking about
17:53
I discovered a new error in Python. It's a BrokenPipeError.
@Joao-3 Done ;)
that reminds me, I still have to decide which of my new pfps to stick with
 
1 hour later…
19:16
chat
hello?
sigh
@Joao-3 The chatiquette says:
> Sometimes, there isn't anybody talking in chat. That's perfectly fine. Don't send messages just because the room is quiet.
CMC: Write a StopLoop compiler. In StopLoop, the empty programme immediately halts (while printing nothing) and any other programme never halts (again, while printing nothing).
from itertools import *
for i in cycle(input()):pass
Not the shortest solution but interesting side effect of cycle
jelly transpiling to jelly: ”ßṁ
19:31
a simple while should do it in vyxal, cant get it to work tho
@mousetail unfortunately haskell's cycle errors on empty lists :P
Probably a more reasonable behavior
oh also you can golf the for loop to just *cycle(input()),
@mousetail I know, but it’s kinda trivial to golf: import* is one byte shorter.
For some reason I keep adding that space every time, it's like the 10th time someone has suggested that specific code on one of my answers, I really should know better by now
19:36
@UnrelatedString imo it should return an empty list
That's what it does in python
what is a cmc
Chat Mini Challenge
19:53
CMC: implement a really bad sorting algorithm (like stooge sort) in the least bytes possible
the haskell example code on the wikipedia page for stooge sort makes me unhappy
Jelly, 6 bytes: ẊṢƑ¬$¿ (Try It Online!)
bogo sort implementation (which is especially funny because I check if the list is sorted by using the one-byte sort built-in)
it manages to define THREE functions that have as their first argument what should really be the last
@hyper-neutrino ikr
to avoid that you could \»Ƒ but that's also more efficient and we don't want that
lol
20:01
efficiency is boring anyway
true, that's why we do the funny sorts
Bogosort but it checks sortedness by checking if all subsets are sorted
unfortunately sleepsort isn't really easy because jelly isn't multithreaded so it just prints them in order and takes sum(array) seconds
lol
@emanresuA and it has to bogosort every subset if ONE isn't
ahh beadsort
20:08
I came up with a solution to the above problem
we can instead sort the list and then before each number, sleep by the difference between it and the previous one
Jelly, 12 bytes: ṢµIŻœSṄ¥@"µ“ (Try It Online!)
gotta love the sheer ridiculousness of sorting the set and then spending 11 bytes doing nothing and claiming it's "sleep sort" :P
SORT IN PARALLEL WITH SUM WAIT AND PRINT THE SORT
20:23
JS: x=>x.map(k=>setTimeout(_=>console.log(k),k*9)) (the 9 might need to be increased lol)
@Joao-3 PSEUDOCODE: split list into sqrt(length(list)) parts. Apply bogsort on each until they are all sorted. concatenate the lists together. bogsort this list.
21:02
i almost wonder if there's some way to do it with a grade up as the final step but the 2,2,2 case wrapping around seems to more strongly require actually building it iteratively/with a scan
 
2 hours later…
22:36
lmaooo some of the most horrendous desmos code I have written: desmos.com/calculator/b3vvd7mewq
im sure there are many golfs available but right now im just happy to have done it
22:47
@TheEmptyStringPhotographer Vyxal, 3 bytes: {ḃ|
@Seggan ^ is how you do it
23:30
@lyxαl your bio may have a typo
> funding it in a another way
also did you know you have 1669 rep on PLDI
@lyxαl ah
@Ginger fits the context of the quote perfectly :p
🅱️🅾️🅱️☪️🈁

« first day (4582 days earlier)      last day (555 days later) »