Activity for trichoplax
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #293933 |
The new title more than covers it. I like it. (more) |
— | 1 minute ago |
Comment | Post #293933 |
(Alternatively maybe something other than "Convert" in the title, such as "Bijection from"?) (more) |
— | about 3 hours ago |
Comment | Post #293933 |
Interesting challenge. The spec seems complete to me, but I can imagine it being easy to make an incorrect assumption because "Convert" could lead to some people assuming that $f(x)$ is expressing $x$ as a binary fraction. Would it be worth stating explicitly that this is in general impossible so peo... (more) |
— | about 3 hours ago |
Edit | Post #293927 |
Post edited: Add next steps |
— | about 11 hours ago |
Comment | Post #292168 |
As there has been no preference expressed after some time, I've [added a fix](https://github.com/codidact/qpixel/pull/1616) (pending review) that sorts undefined scores to the bottom so they don't interfere with the order of the other scores.
I'm guessing this was the originally intended behaviour... (more) |
— | 2 days ago |
Edit | Post #293927 | Initial revision | — | 2 days ago |
Question | — |
Formating an answer to work with the automated leaderboard How should I format my answer so that it works correctly with the automated leaderboard that shows under a challenge? - What is the required format? - How much flexibility is there? Once this has a comprehensive answer consider: - Adding it to the help system. - Linking to it from the an... (more) |
— | 2 days ago |
Edit | Post #293883 | Initial revision | — | 11 days ago |
Question | — |
Missing usernames on leaderboard The automated leaderboard for each challenge previously showed the username for each answer row, but now it does not. I'm guessing a recent change to page layout has caused the JavaScript that generates the leaderboard to become incompatible. For comparison, there is a Meta question from a year ag... (more) |
— | 11 days ago |
Edit | Post #293823 |
Post edited: Split long sentence |
— | 11 days ago |
Comment | Post #293823 |
I've added an explanation and some worked examples. (more) |
— | 11 days ago |
Edit | Post #293823 |
Post edited: Add explanation and worked examples |
— | 11 days ago |
Edit | Post #293823 |
Post edited: Reduce challenge wording prior to considering adding a specification |
— | 12 days ago |
Comment | Post #293823 |
I was torn between specifying an algorithm and leaving it as a part of the challenge to work out how to calculate the pattern. In the end I decided on not specifying at first, but adding an answer of my own as an example if no one answers for a while.
Do you think it would be better to have a spec... (more) |
— | 12 days ago |
Edit | Post #293867 |
Post edited: Typo |
— | 14 days ago |
Edit | Post #293867 | Initial revision | — | 14 days ago |
Question | — |
Transferable golfing skills We have many questions about how to golf in a specific programming language. These result in tips that apply only to that language or closely related languages. What advice do you have on golfing that applies more generally, to most languages? These may be algorithmic tricks or general approaches,... (more) |
— | 14 days ago |
Edit | Post #293859 |
Post edited: Improve wordings |
— | 16 days ago |
Edit | Post #293859 | Initial revision | — | 16 days ago |
Question | — |
Estimating demand for challenge types Most challenges are code golf. Apart from being the name of the community, code golf is also easier to write both answers and challenges for (while a lot of time and effort can go into golfing, writing a valid answer is generally quick, and measuring its score is trivial). All of my challenges so far... (more) |
— | 16 days ago |
Edit | Post #293858 | Initial revision | — | 16 days ago |
Answer | — |
A: Should we delete the code-golf-tips tag? Yes, it has already been decided There was discussion of this previously in [Should [code-golf-tips] be replaced with [tips] + [code-golf]?](https://codegolf.codidact.com/posts/283176) and there is clear consensus there that the preferred tag usage should be separate [tips] and [code-golf]. The... (more) |
— | 16 days ago |
Edit | Post #293742 |
Post edited: Remove tag that is advised against by [Should [code-golf-tips] be replaced with [tips] + [code-golf]?](https://codegolf.codidact.com/posts/283176) |
— | 16 days ago |
Edit | Post #293791 |
Post edited: Mark as finalized |
— | 23 days ago |
Edit | Post #293823 | Initial revision | — | 23 days ago |
Question | — |
Awkward Ordinals Write code that takes a positive integer and outputs the awkward ordinal name from the test cases. Notice that these are not the conventional ordinal names. Input - A positive integer from the test cases. - You are not required to support any input not listed in the test cases. Output - The ... (more) |
— | 23 days ago |
Edit | Post #293791 |
Post edited: Emphasise these are not conventional ordinal names |
— | 23 days ago |
Edit | Post #293791 |
Post edited: Remove promise of explanation |
— | 23 days ago |
Edit | Post #293791 |
Post edited: Remove redundant backstory |
— | 23 days ago |
Edit | Post #293791 |
Post edited: Clarify wordings |
— | 23 days ago |
Edit | Post #293791 |
Post edited: Make test cases shorter but also cover required patterns exhaustively |
— | 23 days ago |
Edit | Post #293791 |
Post edited: Replace test cases with better distribution of inputs and more golfable outputs |
— | 26 days ago |
Edit | Post #293791 | Initial revision | — | 27 days ago |
Article | — |
Awkward Ordinals [FINALIZED] Now posted: Awkward Ordinals Write code that takes a positive integer and outputs the awkward ordinal name from the test cases. Notice that these are not the conventional ordinal names, although there is significant overlap. You are free to use any approach that happens to pass all the test... (more) |
— | 27 days ago |
Comment | Post #293752 |
While I was writing that, the challenge rules were updated, which I think now excludes use of `τ`. (more) |
— | about 1 month ago |
Comment | Post #293752 |
There's a [comment thread](https://codegolf.codidact.com/comments/thread/10711#comment-26764) that gives a different impression of the rules than the challenge specification, so I've asked for the challenge to be updated to remove any ambiguity.
Until that's done, I'm not certain whether `τ` is pe... (more) |
— | about 1 month ago |
Comment | Post #293750 |
Ambiguity is common when designing challenge specifications. For this reason I post my challenges first to the [Sandbox category](https://codegolf.codidact.com/categories/50) so as much ambiguity as possible can be pointed out before answers start arriving. This makes it easier to make changes to the... (more) |
— | about 1 month ago |
Comment | Post #293750 |
The challenge says:
> No built-in hexadecimal functions.
However, this comment thread suggests a stronger rule:
> `.toString(16)` would be banned.
Since `toString` can convert to different bases depending on that argument, this suggests general base conversion functions are banned.
Ple... (more) |
— | about 1 month ago |
Edit | Post #293746 |
Post edited: Typo |
— | about 1 month ago |
Edit | Post #293747 | Initial revision | — | about 1 month ago |
Answer | — |
A: Rust golfing tips Replace `reduce` with `fold` Unlike some languages, Rust's reduce returns an `Option`, requiring additional bytes to `unwrap` the output. However, Rust's fold does not. If you can find a suitable neutral initial value that will keep your output the same (such as the additive identity `0` for a ... (more) |
— | about 1 month ago |
Edit | Post #293746 | Initial revision | — | about 1 month ago |
Answer | — |
A: Rust golfing tips Avoid assignment & semicolon of unnamed closure Closure (15 bytes) If you need to call a closure using it's name (such as if it is recursive) then you need the bytes required to assign it to a variable, including a trailing semicolon to end the assignment. ```rust let f=|a,b|ab; ``` Tes... (more) |
— | about 1 month ago |
Comment | Post #293741 |
We have questions tagged "tips" and "code-golf", and we also have questions tagged "tips" and "fastest-code" or "tips" and "king-of-the-hill".
Does this work well enough, or is there demand for "fastest-code-tips" and "king-of-the-hill-tips"? I was guessing the separate tags for "tips" and the cha... (more) |
— | about 1 month ago |
Edit | Post #293743 | Initial revision | — | about 1 month ago |
Answer | — |
A: Rust golfing tips Avoid type annotations with a closure instead of a fn Function (24 bytes) A function requires types to be specified for its return value, and for any arguments it takes. ```rust fn f(a:u8,b:u8)->u8{ab} ``` Test function on Rust Playground Closure (15 bytes) A closure does not genera... (more) |
— | about 1 month ago |
Edit | Post #293742 | Initial revision | — | about 1 month ago |
Question | — |
Rust golfing tips What tips do you have for saving bytes in Rust? Please post one tip per answer for ease of voting and commenting. (more) |
— | about 1 month ago |
Edit | Post #293741 | Initial revision | — | about 1 month ago |
Question | — |
Should we delete the code-golf-tips tag? The code-golf-tips tag seems redundant since we already have code-golf and tips. It also has zero usages. Should this tag be deleted to avoid its future usage? (more) |
— | about 1 month ago |