Thank you to all candidates who participated in the RO election, and thank you to all who voted. The election is now over, and we will instate the new room owners as soon as possible.
CMC: find a polynomial that maps the ROs by rank to their respective votes; that is, f(1) = 3, f(2) = 4, f(3) = 9, f(4) = 13, f(5) = 18, f(6) = 21, f(7) = 24, f(8) = 27 (indexing really does not matter because you could just apply it to (x - offset) and recalculate the polynomial)
also, it doesn't matter if you map top-down or bottom-up because you could just apply it to -x + (some offset) and recalculate the polynomial
we could use a chat bot instead of SE built-in feeds. i don't think this is smth enough people care about though, lol, but i would be willing to write one if it were so desired by the community
@cairdcoinheringaahing Thinking about it, it's probably best to bring it up on meta to have an actual discussion to sort the pearls from the crap. 47 questions is a lot and definitely meets my "take it to meta" threshold
@Lyxal "including taking a and b as a pair/list/tuple [a, b]"
I skimmed through all the posts' titles and my impression was "function could be simply removed, along with adding functional-programming to a couple of them which are actually relevant to FP but not yet tagged as such"
Huge omega thanks to @wasif for emailing me this challenge idea in it's basic form
Everyone knows that questions on StackExchange require tags - labels that allow posts to be grouped together by category. However, most of the time, I barely know which tags exist, because there's just so many of t...
Over is a higher-order function in multiple languages such as APL (⍥). It takes 2 functions and 2 values as arguments, applies the first function to both values, then applies the second to their result. For example, using ⍥ to represent Over:
1 ²⍥+ 2
We would first calculate ² of each argument: ...
There are a couple where I think having function would be helpful, with a usage of "Use this tag on challenges that are specifically about the behaviour of functions, in a mathematical sense" (example)
I could very easily see a new user posting a math related challenge (e.g. "solve the input for x") with code-golf, math, algebra, abstract-algebra as they see "algebra" and recognise it from what they learnt at school
@cairdcoinheringaahing for the "over" challenge, can i accept the inputs as the TIO header, footer, and command line args, or would that be stretching the input format :P
(specifically, for jelly)
or sorry not footer, just header, to take the blackbox funcs
I'm not saying this will definitely happens, but if you post a new feature request similar to what was done here we will look into it. — Taryn ♦Jan 25 '17 at 19:18
Also, status-review puts things on the To-Do list for SE staff no matter which meta site it's on, and in theory that's equally weighted across all metas
so it seems like this might be possible; definitely not a trivial change, but something that might happen if we try. is it worth trying to get this through (will probably need to bother staff about it for a while since it's probably not something that they can just go into the settings and make a few changes in)? if we're just removing bounty reasons, we can just ignore then unnecessary ones, at worst the box is small instead of very small, lol.
@hyper-neutrino I'd be in favour of tagging it status-planned in that case. It puts it on our "list" for the devs, and is a good balance of importance between status-review and status-deferred
Makes sense; most posts here are discussing things to do with CGCC and not things that require the attention of staff or other parts of SE in general :P
function is, in my opinion, an incredibly vague tag, that overlaps significantly with functional-programming. The tag wiki of function only has an excerpt that reads
For challenges that ask for a function or involve functions in some way. (Also known as methods or subroutines.)
Taking a browse ...
CMC: latest you've gone to sleep (be reasonable with definitions), or have you pulled a full all-nighter (and slept the next night after reasonable time; staying up until 11 AM and then immediately going to sleep doesn't really count as an all-nighter, that would count as 11 AM being your latest)
@Lyxal heh, i'm not a great person to ask for getting someone to sleep at a reasonable time
i maybe could've pulled an all-nighter but i still decided to go to sleep at 9:30 AM (i think i got up at about 10-ish AM the day before and probably went to sleep at like 4 AM that day)
not sure if i ended up more or less tired since i ended up deciding to sleep
200 rep for Vyxal answers
I'm basing this off the Japt bounty, so some of the wording is going to be the same
Vyxal has managed to get 21 stars on GitHub without much usage on the site. Let's change this by providing an incentive to answer! If any of y'all posts 5 Vyxal solutions in a 30 day peri...
for a while in middle school i was rather obsessed with grammar including correcting others over it but eventually i figured i didn't actually care, i probably just did that due to getting bullied every now and then about grammar and mostly pronunciation in elem school
since i learned a good amount of pronounciation from my parents whose english grammar and pronunciation both aren't spectacular (especially my dad)
I know it's been discussed, but now that I have New Posts it's especially easy to see first hand with the two most recent ones
E.g., Arnauld's answer to the over function one, which is just (f,g,x,y)=>g(f(x),f(y)), has 6 upvotes, while none on print every code golf tag have more than 3, despite all of them requiring quite a bit more effort.
the thing is the HNQ effect also amplifies the FGITW effect, because easier/trivial challenges get a lot of answers which puts it on HNQ and if it's easy, it gets a ton of answers in the main languages and therefore only the fastest people get an answer in and ninjas everyone else, and now when it hits HNQ, you're essentially rewarded for writing the fastest solution to the easiest problem so you get to the top and once you're there, ppl with sort-by-vote will just keep upvoting top answers
sort-by-vote makes a lot of sense on Q+A sites (once again, another incompatibility with CGCC and a Q+A-based network). that's why i immediately thought to suggest bringing attention to underappreciated answers on the blog, lol
Hey everyone! We're thinking of starting a CGCC blog; please take a look at this meta post to vote on what format the blog should be in if you're interested in this idea!
nice. would you consider adding it back to the LOTM nomination list then? i see that you removed it since it was still too heavily in dev for that when you initially added it
The flag of Bangladesh is very simple. It looks like below:
The flag will be in bottle green (#006a4e) and rectangular in size in the proportion of length to width of 10:6, with a red circle in near middle. The red circle will have a radius of one-fifth of the length of the flag. This image will...
I somewhat doubt a substantial amount of other vyxal questions will show up, but if it seems like that might happen, we can create the tag and retroactively add it
Vyxal is a golfing language that has 500+ different commands (achieved through overloads), and is a known beater of Jelly, 05AB1E and most golfing languages.
Henceforth, it seems like a good idea to share some of the tips and tricks of the industry used to get terse programs in Vyxal.
One tip per...
You are provided with a non-empty array \$A\$ of integers, all greater than 0. But what good is an array if the elements do not sum up to the number \$N\$ (also provided as input)...
So to change that, you can pick any integer of your choice present in the array and replace any of its digits with...
Filter json, with only few characters.
Filter the name of each dictionary in the json list.
You are allowed to use any package which can be installed on Ubuntu 20.04.
Example json:
[
{
"id":"d963984c-1075-4d25-8cd0-eae9a7e2d130",
"extra": {
"foo": false,
"bar": nul...
100-200 rep for good answers in interesting new languages
This is a bit subjective of course, but here are my criteria:
The language is fairly new, and is interesting (in my opinion)
The answer is clever, shows a lot of work put in, and shows off many features of the language (so no trivial post...
Brainfuck to ESOPUNKS
Brainfuck use 8 instructions
byte(or bigint, your choose) a[inf]; bigint i;
+ ++a[i];
- --a[i];
, a[i]=getchar();
. putchar(a[i]);
[ while(a[i]){
] }
< if(--i<0) undefined_behavior();
> ++i;
ESOPUNKS have two registers X and T, two I/O ports #STDI(stdin, read like h...
@hyper-neutrino english (uk) has all the punctuation in the right place for a start
also the latest I can remember must be about 9am or so, it's memorable because I ran into a table in the dark and had to walk back to my digs in pain (it was downhill all the way at least)
@hyper-neutrino UK bottom row: Shift \| Z X ..., middle row: Caps A ... L ;: '@ #~ Enter, top row: Tab Q ... P [ ] Enter, number row: backtick¬| 1! 2" 3£ 4$€ 5% ...
@hyper-neutrino I think I've pulled a full all nighter once. Went to school on Thursday, got back, couldn't sleep all night, then went to school on Friday. Crashed into bed after ~36hours of being awake at ~8pm on Friday and slept until about 2pm on Saturday
Worst experience of my life, staying up that long is not good