Replies: 4 comments 2 replies
-
We have solutions to project-euler in the repo, so I think aoc solutions and rosalind solutions should be fine too ? Though we have to stop at some point..
Tests are very important :) they are present for project euler solutions for example: extra/project-euler/001-tests.factor
You can do what you want for explanations, my preferred approach would be directly code comments but everything works I guess.
I think it's ok.. I feel like something like this was already suggested, maybe with erg's new parser ? Don't remember.
I agree, I must have implemented these at least 50 times now :p There's something coming up in array.shaped though, haven't used it yet. |
Beta Was this translation helpful? Give feedback.
-
Also, side note, I'm looking at your solutions every day, congrats they are really nice ! |
Beta Was this translation helpful? Give feedback.
-
We’ve talked about character syntax a fair amount. I’m not sure yet what’s the best option, some ideas include:
- single quote like Java 'ch'
- backtick `ch
- shorter tag C: ch
- lowercase tag char: ch
- strings of length 1 like Python
Then there is a whole conversation about code point characters versus graphemes based characters.
So far it hasn’t been so restrictive, albeit I would suggest this is a nice area to improve as you pointed out. If we use single quotes, that has the potential downside of removing that syntax from other possible use cases including using it the way Python does.
Love to continue your lessons learned through the rest of the month.
Regarding problem solving in the core, I like having one giant repo. At some point maybe we have to split it out into a separate official project repo under the Factor organization. However, it’s great to run the tests and use the solution examples to improve our standard library.
… On Dec 12, 2020, at 2:42 AM, Jon Harper ***@***.***> wrote:
Also, side note, I'm looking at your solutions every day, congrats they are really nice !
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
All Factor solutions for AoC 2020! The original problems can be found here (though you need to log in/create an account and solve part 1 of each problem to access part 2). My solutions also have help files containing the brief summary of each problem, and the approach used to solve it (for mostly harder ones; spoilers ahead). |
Beta Was this translation helpful? Give feedback.
-
As I already mentioned, I'm uploading solutions to various problems to Bubbler-4/factor-problem-solving. I have some questions and a few feature requests:
Questions
fib
for the problemFIB
) as the word name for Rosalind solutions. One issue with this is that some problem codes clash with built-in words, such asgc
. Is it OK to keep the names as-is?Feature requests
CHAR: x
for every single char that matters is pretty cumbersome to my experience. One example is aoc2020.day12, where one has to select one of seven quotations by the given char.array[row][col]
syntax, having something likedeep-nth
ormatrix-mnth
would be nice.Beta Was this translation helpful? Give feedback.
All reactions