« first day (4265 days earlier)      last day (561 days later) » 

12:31 AM
is that what those lyrics are
til
 
whoops, that's off topic
and yes
 
12:45 AM
oh noo ill never find out what i was being pinged in lol
 
it was not for mortals to know
 
1:00 AM
Sandbox posts last active a week ago: Construct Digit From Digits, Implement the Hamming algorithm
 
1:35 AM
@thejonymyster it may or may not have been a quote of yours on tumblr :p
 
2:13 AM
I've got mixed feelings about currying as a JS byte save
'cause on the one hand it's a save that only works due to our specific I/O rules, which makes it really boring, but on the other hand, it's necessary to allow the cool x=>(f=y=>f(y)) stuff, and if that's allowed then currying on its own has to be
 
wait whats x=>(f=y=>f(y)) all about
 
Which is why I like it being a separate class; sure, you can use x=>y=> to save a byte, but unless that's allowing you to do some other neat trick to save further bytes, you're just putting yourself in your own category and making a meaningless save
@thejonymyster Recursion, but with only one thing you keep track of, which is provided as the second argument
 
2:29 AM
i feel like in the praclang examples you gave, it's generally a good thing to have i/o methods scored together because
- while an always-optimal i/o method isn't a meaningful form of golfing, an always-suboptimal i/o method isn't a meaningful form of language variation
- it's nice to generally know what you're looking for when reading submissions
but i definitely see where you're coming from
also going a bit further, where choosing different i/o does change the general approach, our culture as a site is pretty happy about just posting that anyways even if it does "lose" to an existing solution
 
@RadvylfPrograms people would still judge it like that
same problem as std i/o: too many categories to cover
 
2:51 AM
@RadvylfPrograms One case for loose I/O
If the input is just single-space-separated words, why not simply allow a list of words? And if so, why require list processing and not just give a single word as input? — Adám Jul 4 at 15:40
 
That's not what I'm talking about
That's just bad I/O
Space separated strings are just mandating a specific representation of a list that's only convenient for certain languages
 
3:35 AM
from
 
 
3 hours later…
6:18 AM
@Seggan You could do that but instead 1 represents a closing parenthesis so means go up one level, then add a implicit opening ( before each 0. I think this is unambiguous but it limits you to store characters in a fixed order which would not be optimal always
 
 
1 hour later…
7:31 AM
is there any way to find questions that one has not answered?
 
8:04 AM
As in questions that you specifically haven't answered?
 
9:06 AM
 
9:21 AM
Is $$ on a *nix OS random enough so long as you don't read from it sequentially?
(I say that because if you echo it in a loop on TIO then it's sequential, but if you are just relying on the user pressing RUN you might consider it random enough?)
 
In that range it's probably close to uniform but when creating bigger numbers you run into the issue that PIDs tend to fall in a certain range
Probably follows a normal distribution approximatly I'm guessing
 
@mousetail I might see if I can check that actually
 
10:06 AM
Happy German Unity Day!
 
Cookie points if you get the reference
 
@emanresuA I only understand churches full of peanut butter
@mousetail I couldn't conclusively check without TIO timing out
 
 
2 hours later…
11:59 AM
Why can we search for but not for e.g. , when I’m sure it appears in multiple answers? Same for loads of other symbols
Nevermind you need to add "code:" before and it works
but that doesn’t answer why it works without it for the first search, which returns answers with that symbol only in code blocks
 
Wanna know what's fun - how powershell decides it's a good idea to treat the same as "
really helpful when you're debugging a SBCS golfing language
 
0
Q: Generate Parity bits

mathcatGiven a binary message, and the number of parity bits, generate the associated parity bits. A parity bit is a simple form of error detection. It's generated by counting the number of 1's in the message, if it's even attach a 0 to the end, if it's odd attach 1. That way, if there's a 1-bit error, ...

 
12:48 PM
CMQ: whats the word for this transformation?:
abc, def =>
ad ae af
bd be bf
cd ce cf
i know how to do it in APL before someone just says that code but what would i like.... what do i say it is in english
 
Cartesian product, but arranged into a grid
 
thank you
i knew it was one of those things which had a name for sure but i was just forgetting
seeing as how fundamentally straightforward it is
CMC: inverse of cartesian product (you can choose the domain, input will always be rectangular and the result of applying cartesian product)
TIL you cant bold a string of punctuation marks in the back half of a word
 
1:06 PM
@thejonymyster Vyxal, 3 bytes: Try it Online!
Probably
 
seems to work
 
since these are short; what do these do in english? :-)
 
transpose, uniquify each list
 
aha
thats clever
 
1:10 PM
Interestingly, it only works if the input is a "flat" list of pairs, rather than a "grid" of pairs
 
right makes sense, but you could probably just flatten first if it was a grid
 
Yeah, it's +1 byte ( at the start) in Jelly
 
If you're using a WSL, is it better to move your most used folders to Linux and use Linux python?
 
1:27 PM
are we updating the language of the month? Are we waiting for someone?
 
At this point, anyone who wants to can post the LOTM post
 
seems to be nim
 
0
A: Sandbox for Proposed Challenges

py3programmerWhich weekday was it?code-golfdatedate-manipulating This challenge, I hope, is simple to understand. Given a date-string (given in any format you prefer, so long as it has 4 digits of year and 2 digits of day and month), calculate the weekday for the particular date-string. You must output 7 diff...

 
1:41 PM
@mathcat yes
 
gud
 
and if you ever want to do gui/graphics, then use vcxsrv
 
wth
 
use wslg if you are on windows 11
 
@PyGamer0 nah my processer is too old
 
1:43 PM
@mathcat if you want to make graphics in python or something, use vcxsrv to render x11 windows so you can see graphics
@mathcat lol same :p
 
i use turtle
and tkinteer
 
I hope Pygamer0 uses Pygame.
 
i use pyglet, its very obvious to guess from my name
@mathcat i. don't. like. pygame.
 
Oh, you're python-gamer0?
 
yes
except now i also hate python
so am i
... kgamer0 ?
 
1:47 PM
@PyGamer0 Pythonieers, attack!
 
throws magic powder and disappears
 
writes code to show pygamer0
 
@PyGamer0 Pygame is good though
 
@mathcat is it true your bad at math
 
definitely
@mousetail yeah I like pygame
 
1:55 PM
in what exactly
 
-1
Q: Language of the Month for October 2022: Nim

RazetimeIn accordance with our meta agreement, since one candidate received more votes than the others, we have a new featured language! Throughout October 2022, our Language of the Month will be: Nim What's a Language of the Month? See the meta post for nominations. In short, during October, those who...

 
Why was it downvoted?
 
2:12 PM
perhaps people hate nim
 
A lot of the LotM posts are also downvoted.
It's not unique to Nim.
 
I guess some people just hate months
 
The downvoters just don't like to be reminded of the passage of time.
 
Every time a LOTM gets posted I get a month older, so please stop posting them
11
 
I’m guessing some people don’t want obscure languages/golflangs to be advertised even more
 
2:21 PM
Is Nim an obscure language?
 
Nim is a mainstream language though
 
but loads of languages in past LOTM were not
so they don’t like the concept
 
My complaint about Nim for LotM is chiefly that it is a very boring language.
2
 
It's barely been used so the tricks are not widely explored yet
 
And sure Nim isn’t a golflang but it’s not exactly a "mainstream" language
so most people I’m sure have never heard of it
 
2:24 PM
It's a practlang actually used in production by companies, that's my definition of mainstream
 
by that argument APL is a mainstream language then, ridiculous
hides from Adám
 
APL is technically mainstream, or at least used to be
 
I wouldn't call Nim or APL mainstream, but I wouldn't call them obscure either. Just minor praclangs.
 
I mean, APL is very niche, barely anyone has heard of it, even less people are proficient with it, and it has very few commercial applications
 
Ok sidestream
 
2:26 PM
doesn’t make it bad or useless, but that’s not my definition of mainstream
 
It's used by people with no interest in esolangs, language design or golfing
 
From the character set alone, I’m sure most programmers would call APL obscure
 
don't let adam hear that
 
Adám has an acute accent in his name as an hommage to APL’s ridiculous character set
 
Petition to change @Adám 's name to ⍋dam
Or ⍲dam
 
2:30 PM
Maybe a good twist on the LOTM formula would be to push actual popular languages like Python/JS. Many regular users of CGCC never use them (too mainstream), and it would attract more casual programmers from SO
 
@mousetail I'll immediately sign it
 
Those languages get plenty of answers already
Even by regular CGCC users
 
a certain few regular CGCC users
 
Which includes me
 
I’ve never used normal languages for golfing
 
2:33 PM
Matter of opinion, I mainly golf to learn languages better to use that information again in my day job
 
In the recent "repeat values" challenge, there are more answers in APL/J/K/BQN (very related languages) than in Python or JS for example
Which is not very representative of the number of people knowing these languages even on this site
 
But pretty much every question has a python and JS answer
there are more golfy answers but also a lot more golfy languages
 
@RadvylfPrograms and newline separator for lists isnt?
 
@Fatalize If we do this we should pick a less used mainstream language, maybe PHP or C# or something
 
My point is there are less and less different answers with the same language, and more and more single answer for each language with many obscure ones
 
2:35 PM
@Fatalize i use kotlin/clojure every once in a while
 
@Seggan They are
They're basically identical
 
@Fatalize Yes, you would generally only answer in the same language if you have a radically different approach, otherwise most people just leave a comment
so most questions have just 1 answer per language
 
23 hours ago, by Radvylf Programs
E.g., one guideline could be "using functions is reasonable", and another could be "taking arrays as a newline separated string is reasonable if your language has no more reasonable way of doing this"
 
@mousetail When I first got here in 2015, I think there was much more multiple answers with the same language
At that point there was basically only Pyth/CJam/Golfscript as golflangs though
 
Yea the language design element seems to have expanded a lot
A lot of answers nowadays are also people promoting their own language
 
2:39 PM
Don’t know who you’re talking about
:p
 
@Seggan I don't think languages should be forced to use a format that isn't convenient for them, nor should they be allowed to use something that isn't the most convenient for the sake of offloading input processing to the user
 
@RadvylfPrograms what is your definition of "convenient"? to me, offloading the input processing to the user is very convenient
 
If you're using STDIO, you need to use a string representation of a list, so newline or space separated is reasonable. In a challenge that involves ASCII art, where joining a list of inputs by spaces would make the program shorter, if you're using a function, taking a space separated string instead of an array is basically cheating.
@thejonymyster "Convenient" as in "getting the proper input without a lot of boilerplate or complexity", not "getting input that's already been processed in some way so you have to do less work"
 
@RadvylfPrograms Very hard to define in a loophole free way that applies to every language though
 
Loopholes are perfectly fine
If people take advantage of them they get downvoted, simple solution
 
2:43 PM
@RadvylfPrograms "convenient" seems too broad a term is my issue really :-) what is "convenient" and what is "cheesy"? could be up to upvotes, but i think we can make the distinction verbally before taking it to user opinions
at least a little bit clearer
 
@RadvylfPrograms Ideally I'd like to know if my approach is valid before I put a ton of effort into it
 
@thejonymyster you could build a neural network which decides that
2
 
Yeah, ofc. I'm just talking in somewhat vague terms now since specifying everything with extreme clarity is time consuming and not worth it for chat messages :p
@mousetail And you should
If you're taking advantage of loopholes, you know it
 
@RadvylfPrograms fair enough, reasonable, makes sense, swag, etc
 
But then what if I decide to do it the hard way then someone else does it with a different input method but doesn't get downvoted
Then I handicapped myself for nothing
 
2:45 PM
That's an unrecognized interesting solution, which is a whole other issue
 
@RadvylfPrograms assuming "less golfy" = "more interesting"
 
Lets completely ignore any votes I got, assume I'm purely going for score not votes
The more pre-processing I do in the input the shorter my solution
there is a imaginary line that people view as "not acceptable"
 
No, there's imaginary shades of gray :p
 
if I stop too soon someone beats me, but if I stop too late I'll be disqualified after puting a lot of effort in
 
@RadvylfPrograms lol
 
2:47 PM
@RadvylfPrograms I wouldn't consider APL to be a practical language. I think APL is a category of it's own, for languages that were meant to be practical but but ended up esoteric.
 
@mousetail ah yes, loophole chicken
 
That'd only happen extremely rarely. What should happen is that what's considered "reasonable" will sort itself out pretty quickly
And anyone deviating from that will need a good justification
 
@RadvylfPrograms Disagree, different people will always have different opinions and as people come and go the consensus can shift all over the place
if it's not written down
 
And it will be written down
 
@mousetail this
 
2:49 PM
Ok well then you go back to the original problem: How do you write a loophole free definition that works for all languages?
 
I'm not proposing total anarchy, I think there should be a list of guidelines for various types of languages and situations, which can be used as a baseline, and a set of comparisons for similar edge cases to ones listed
 
yknow, you said "preprocessing" but like. that implies theres some challenge where its difficult to distinguish input format from input processing. how does that happen?
 
@RadvylfPrograms Which is what we have now right?
 
@mousetail no we have specific rules, not guidelines
 
Yeah, I'm proposing more of a case law than a legal code
 
2:53 PM
Not a huge fan but I'm not your boss
 
Right now our rules are also very unspecific; input methods don't specify a scope, so taking input via variables isn't allowed for any language, while taking input with unary (example, not sure if that's actually true) is allowed for all languages, when neither of those are really reasonable
 
There are already some rules that apply only to some classes of languages
 
And that's because languages like regex need unary input being allowed to work, while for most praclangs, variables was judged as too cheaty
 
You can make a coutnerproposal to disallow/allow a input method in some cases
 
Honestly I don't like that regex was grandfathered in with special rules.
 
2:54 PM
@mousetail Yeah, but not nearly enough, and having them be basically entirely objective makes it very difficult to avoid the situations I mentioned
 
If you want to golf like that in regex you can make your own language.
 
I think they should be objective 100%, code golf is basically finding loopholes in languages, that should be encouraged
 
I mean, CGCC-regex is sort of like a "proxy language" for regex
@mousetail Loopholes in languages, not challenge rules
There's a reason we started banning loopholes. After the first time, they're boring.
 
Loopholes in challenge rules too
Loopholes are fun once, then they should be banned
but they should always be allowed the first time
 
That's inconsistent then
You say you're fine with 100% objective rules since they allow loopholes
But you don't want to allow loopholes after the first time
 
2:57 PM
Yes
 
Those are incompatible
 
Then the 100% objective criteria need to be updated to ban that particular loophole
but the answer stands
that's how the standard loopholes currently works
 
confused? loopholes are loopholes, and loopholes are not permitted
 
@mousetail That cannot be done objectively
@mousetail Not a fan of those either
 
The list of standard loopholes is not permitted
 
2:59 PM
They mask a ton of subjectivity, aren't really enforceable, and are just as big of a mess as standard I/O
 
here at code golf we are all about nondeterministic rules
 

« first day (4265 days earlier)      last day (561 days later) »