Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for trichoplax‭

Type On... Excerpt Status Date
Comment Post #288548 I think I see. The main body of your answer is to say "It doesn't matter", and the final section is to say "the official score should be the ceiling of the fractional byte count". This does not appear to be what the leaderboard currently does. See the [example answer linked from this Meta questio...
(more)
10 months ago
Comment Post #288548 Have I understand correctly that your only objection to fractional scores being official is the lack of leaderboard support? If so, bear in mind that the leaderboard (like the rest of Codidact) is open source. If the community supports the idea of fractional scores, anyone can update the code to r...
(more)
10 months ago
Comment Post #288526 I love the approach of a single pattern that can just be offset depending on dimensions. There seems to be a misalignment for height 3 and width 4N+2. It works fine for height 3 and width 2, but for width 6, 10, 14, ... it breaks. It looks like the pattern will still work fine for those widths, b...
(more)
11 months ago
Comment Post #288398 Thanks for clarifying. Note that the current answer does not give correct output when the input has a hole, but it works for all the examples in the challenge, so it might be worth adding at least 1 test case with a hole.
(more)
11 months ago
Comment Post #288403 [Attempt This Online!](https://ato.pxeger.com/run?1=nVJLboMwEFW3nIKwsOzEIExSKYKSXiLqJmJhXJMgEYgSp1IEnKSbLFqpF2gO09N0-EUpygKVxcx4xvM88x7vH_vjQX2vDNOUr7GKs9SguuHYDjOCS5TqWx6nmOi5psOXSKVv_M-jisz5z8NXwd1lwa1YyT0mFk9PuAh7Z1GIkR8iFGHEKXqTYrQah0EXiYAQ4sEra8xdtKRhZURlpIvjOY3nhJiLMMuSfIVtygjFjNpgzcbZ1GQk-PPgu...
(more)
11 months ago
Comment Post #288398 Does code need to support inputs with holes? If so, here are some potential test cases for n=16: Not prime: ```text XXXXX X X X X X X XXXXX X XXXX XX X XXXX XXX X X XXXXX XX X XXXX XXX X XXXXX XX X XXXX XXX ``` Prime: ```text XX XX XX ...
(more)
11 months ago
Comment Post #288403 In Rust, the trailing semicolon after assigning an anonymous function to a variable name is not part of the function definition, so does not need to count towards your byte count. In a program where the anonymous function is used immediately, and never assigned to a variable name, there would be no s...
(more)
11 months ago
Comment Post #288398 I think that this misunderstanding (that all the smaller polyominoes need to be the same shape) could make an interesting separate challenge. Either that they all need to be identical, or that they need to be identical up to rotation and/or reflection.
(more)
11 months ago
Comment Post #287925 I'm very interested to see how this competition goes either way, but my personal opinion is that it would be more interesting as a fastest-code challenge than an asymptotic-complexity challenge.
(more)
about 1 year ago
Comment Post #287925 Asymptotic complexity is intentionally simplified. That's what makes it so useful for analysis. However, this also takes away the fine tuning aspect of optimisation competition. Measured time leads to open ended competition where the contestant can continually find little ways to shave off a few mill...
(more)
about 1 year ago
Comment Post #287925 Measured time introduces the possibility of friendly rivalry between different programming languages. Coding challenges often have more than one aspect of competition: both competing between different answers in the same language, and competing between different languages. With asymptotic complexity,...
(more)
about 1 year ago
Comment Post #287925 Measured time is concrete - there is no doubt who is at the top of the leaderboard. Asymptotic complexity is only objective in a mathematical setting. In the real world people can often disagree on what counts as a given complexity. Even for relatively simple programs the use of built in methods may ...
(more)
about 1 year ago
Comment Post #287925 I notice the scoring method has been changed from measured time to asymptotic complexity. This is a perfectly valid choice - I just wanted to mention my thoughts on the difference in case it affects your decision:
(more)
about 1 year ago
Comment Post #287925 The main diagonal in the example is listed as having no zeros, but the output shows 4 zeros. The antidiagonal in the example is listed as having 2 zeros, but the output shows no zeros (all ones). The main diagonal and antidiagonal in the second test case are both listed as having no zeros, but ...
(more)
about 1 year ago
Comment Post #287925 > **S** integers corresponding to the number of 0s in each line (top-to-bottom) > > **S** integers corresponding to the number of 0s in each column (left-to-right) The example and the test cases appear to be showing the number of 1s in each line and column, rather than the number of 0s. Shoul...
(more)
about 1 year ago
Comment Post #287925 Might also be handy to have at least one test case with more than one matrix as output. In addition to being a useful test of the code, it will also show the output format you expect for multiple matrices.
(more)
about 1 year ago
Comment Post #287925 This is looking good. For the Time constraints section, it would be helpful to specify what size input we need to beat 20 seconds for. It would be good to have at least one test case of this size so we can make sure our solutions are acceptable before posting them.
(more)
about 1 year ago
Comment Post #287928 I'd focus on making sure the limit is low enough that it doesn't use up too much of your time. Provided you have that covered, a slightly higher limit just allows more people to enter, and I'd expect more competitors on the leaderboard to be more likely to drive more competition.
(more)
about 1 year ago
Comment Post #287928 I don't know whether it applies to this particular problem, but in general there is a subtle potential difference between asking for solutions to be output, and asking for just the total number of them: For some types of problem it's possible to count how many solutions exist, without actually fin...
(more)
about 1 year ago
Comment Post #287928 With the zero solution cases, I understand that there exist inputs that have zero solutions. What I meant was that you could choose whether such inputs will ever be used as measuring cases. You could either say "Your code must work correctly with inputs that have zero solutions" or "You may assume...
(more)
about 1 year ago
Comment Post #287928 Standardising the input and output sounds good. Hosting a fastest code contest is a lot more work than hosting a code golf contest - best to minimise the additional work you have to do...
(more)
about 1 year ago
Comment Post #287928 It's your decision what limit to set, but it might be easier to manage with just one consistent limit for all languages. There are some languages which are difficult to categorise as esolangs or not, so you can save yourself that problem by setting, for example, 20 seconds for all languages.
(more)
about 1 year ago
Comment Post #287928 If you want to include more languages (perhaps some [esolangs](https://esolangs.org/wiki/Main_Page) that are very slow and impractical but that some people enjoy optimising), it might be worth increasing the time restriction from 1 second. Probably still best to have *some* limit though, so you don't...
(more)
about 1 year ago
Comment Post #287928 (Having said that, a test case that runs too quickly risks measuring mostly how fast the input can be read, rather than how fast the calculation can be performed, so there's a balance to be found.)
(more)
about 1 year ago
Comment Post #287927 The reason I'm posting this is that I'd like there to be guidance for anyone thinking of posting a fastest-code challenge, particularly since someone has posted [an interesting idea in the sandbox](https://codegolf.codidact.com/posts/287928 "Decoding a non injective bit matrix encoding").
(more)
about 1 year ago
Comment Post #287928 > The goal is to make a decoder that processes on or more 25x25 encodings under a second (on fairly modern hardware, I suppose). Now that you have added the Evaluation section explaining that you will be using your machine for measuring, is it worth rephrasing this sentence with that in mind? (Thi...
(more)
about 1 year ago
Comment Post #287928 I'm putting these suggestions in a comment thread instead of editing it myself, so anyone can comment if I've misinterpreted anything, and you can ignore any you disagree with: > Hello! > > I have come across this very interesting programming challenge I thought I'd share. I'd probably skip ...
(more)
about 1 year ago
Comment Post #287928 How much flexibility is there in the input? Does it need to be in the exact format shown in the challenge, or can it be taken as command line arguments as numbers without the labels? Can it be taken in a different order? Also, will inputs always have at least one solution, or does the code need to...
(more)
about 1 year ago
Comment Post #287928 It's worth providing some test cases to reduce the barrier to entry (less work to get started might mean more submissions). Perhaps some small test cases similar to the example case, to help with getting a working algorithm, then some gradually larger test cases including some at the size you inte...
(more)
about 1 year ago
Comment Post #287928 To avoid distracting from the main task, it might be better to have the output always be in the same format, regardless of the number of possible solutions. So for example, instead of outputting the solution if it is unique, or the number of solutions if not, the output could always be the number of ...
(more)
about 1 year ago
Comment Post #287928 If you're happy to run each submission on your own machine then it's worth specifying a few things: Which programming languages is this open to? I like the idea of challenges being open to as many as possible, but you might want to consider whether to exclude languages that cost money. Also, are y...
(more)
about 1 year ago
Comment Post #287928 As we don't have any prior examples of [fastest-code](https://codegolf.codidact.com/categories/50/tags/5329 "Posts tagged fastest-code") challenges, I've posted in the Q&A section asking for general advice on [Hosting fastest code challenges](https://codegolf.codidact.com/posts/287927) to see what id...
(more)
about 1 year ago
Comment Post #287925 (You can always "undelete" your own posts that you have deleted, so it works as a way of temporarily preventing answers.)
(more)
about 1 year ago
Comment Post #287925 I missed your post while typing - sounds like you're fine with running on your own machine. Once you have copied this into the sandbox you can simply press delete on this one - it will remain visible to you but no one will be able to post an answer which means you'll be free to change whatever you ch...
(more)
about 1 year ago
Comment Post #287925 We don't yet have any examples of [fastest-code](https://codegolf.codidact.com/categories/49/tags/5329) challenges - yours would be the first. If you made this a code golf challenge (shortest code) then it would be simpler for you, but would still benefit from some test cases. If you keep it as...
(more)
about 1 year ago
Comment Post #287925 Welcome to Code Golf Codidact! This looks like an interesting challenge. It might need some fine tuning to make it clear how to calculate the score for generating the automated leaderboard. For example, the run time will differ on different machines. We usually post our challenge ideas in the [San...
(more)
about 1 year ago
Comment Post #287816 If we label an answer as invalid but don't delete it, then currently I'm guessing it still appears on the automated leaderboard? If it's decided to go with this approach maybe we could look into amending the leaderboard to not include invalid answers.
(more)
about 1 year ago
Comment Post #287816 Is it straightforward to remove this reaction once the answer has been fixed? I guess the thread could remain as history as long as the reaction badge can be removed?
(more)
about 1 year ago
Comment Post #287790 I think it's worth taking into account that an answer appears in the per language leaderboard below the question, so allowing it to remain in place can give a casual observer (particularly one not familiar with that language) the impression that it is officially approved and correct. For example, ...
(more)
over 1 year ago
Comment Post #287087 There is a guide on Wikipedia to [Converting repeating decimals to fractions](https://en.wikipedia.org/wiki/Repeating_decimal#Converting_repeating_decimals_to_fractions), which also mentions application to other bases.
(more)
over 1 year ago
Comment Post #287283 I agree that there is extra work for someone reading the question for the first time (which is why I wanted to get feedback before deciding whether to use this more). The potential upside I'm weighing against that is the ease of getting to the answers for someone who has already previously read th...
(more)
over 1 year ago
Comment Post #287173 Looking at the input section I now realise I left it implicit that the input could be a string (since I used Y and Z as digits but didn't explicitly say string). I'll edit to make clear that a string of digits or the usual alternatives (any ordered data structure of characters) is fine as an alternat...
(more)
over 1 year ago
Comment Post #287173 Thanks for catching this. Now edited to fix.
(more)
over 1 year ago
Comment Post #287253 I appreciate that making the code changes to allow cross-category duplicates may not happen in the short term, but this does seem like the ideal solution long term. Even without the ability to close as a duplicate (so the sandbox post does not automatically link to the finished challenge), it woul...
(more)
over 1 year ago
Comment Post #287210 Can you save a byte by using `fromCharCode` instead of `fromCodePoint`?
(more)
over 1 year ago
Comment Post #287207 Looks like you've already solved this for yourself though since you've posted 2 answers that both work correctly for all these cases... I'll leave the explanation up in case anyone else bumps into the same confusion I did.
(more)
over 1 year ago
Comment Post #287207 I had this same thought myself after producing the test cases, but I found it was because I was looking at binary strings without leading zeroes, which makes it easy to look at the digit one from the left, instead of five from the right. This causes a problem because the character codes less than 64 ...
(more)
over 1 year ago
Comment Post #287182 Unless there's a default on Meta to allow `null` as a substitute for an empty string / empty data structure I'm going to say no. I want the input and output formats to be as flexible as possible to keep the competition open to as many languages as possible (and so people can explore alternative ap...
(more)
over 1 year ago
Comment Post #287153 I've updated to show a `.` instead of a space for the background. It makes the boundary of the rectangle much clearer - thanks. I'm now half considering using a character that is more central so it aligns better with the `#` but I haven't settled on one yet.
(more)
over 1 year ago
Comment Post #287133 Apart from the choice of outputs it's identical, but the same applies to Kolmogorov complexity challenges in general. That's not to say this new challenge is worth posting, but I wanted to get some feedback to see how different a challenge would need to be to be well received. No plans to post thi...
(more)
over 1 year ago