reasonml icon indicating copy to clipboard operation
reasonml copied to clipboard

Migrate practice exercises to rescript

Open tejasbubane opened this issue 4 years ago • 6 comments

  • [x] accumulate - #173
  • [x] acronym - #174
  • [x] all-your-base - #175
  • [x] allergies - #179
  • [x] anagram - #180
  • [x] armstrong-numbers - #182
  • [ ] binary-search
  • [ ] bob
  • [ ] change
  • [x] hello-world - #172
  • [ ] isogram
  • [ ] leap
  • [ ] minesweeper
  • [ ] pangram
  • [ ] phone-number
  • [ ] protein-translation
  • [ ] raindrops
  • [ ] resistor-color
  • [ ] rna-transcription
  • [ ] roman-numerals
  • [ ] run-length-encoding
  • [ ] space-age
  • [x] two-fer - #184
  • [ ] word-count

tejasbubane avatar Oct 31 '21 18:10 tejasbubane

@tejasbubane Hi. I made a PR #219 to migrate to ReScript. Can you review? If you review it, I will try to work on other examples as well.

JsonKim avatar Aug 03 '22 02:08 JsonKim

Hello all, Thanks for the effort in making these updates 🔥

How can we access them? For example, downloading the anagram exercise downloads the old version based on reasonml

exercism download --track=reasonml --exercise=anagram

and trying to specify it as rescript doesn't work too

 exercism download --track=rescript --exercise=anagram
Error: The track you specified does not exist

Also now that we have options like Melange is this still effort worth it or would it be better to update the current exercises to use Melange which is fully compatible with ReasonML?

Happy to help out in any of these approaches

kevgathuku avatar Feb 17 '25 21:02 kevgathuku

Did you already start the exercise before the anagram files were changed? You should have an upgrade the exercise banner if you go to the exercise page on the Exercism website. Click that and if you run the exercism download command again, you should see the new files.

BNAndras avatar Feb 17 '25 22:02 BNAndras

Hi @BNAndras thanks for the pointers. Yes, I believe I have a recent version of the CLI installed

❯ exercism version
exercism version 3.5.4

After checking a bit further it seems the new rescript exercises live in the rescript branch so maybe that could be why they are not available from the CLI yet

kevgathuku avatar Feb 17 '25 22:02 kevgathuku

Yeah, the CLI doesn't directly pull from Github. The main branch of this repo gets synced with the Exercism website, and the CLI downloads from the website. You could grab the files from the rescript branch though and solve them locally, but you won't be able to submit your solution to the website successfully.

All tracks are volunteer-built and managed so if you're interesting in helping out the migration, I'd recommend making a discussion thread on the Exercism forums (https://forum.exercism.org/c/programming/reasonml/110).

BNAndras avatar Feb 17 '25 22:02 BNAndras

Awesome. Thanks a lot once again for the detailed info.

I will definitely try it out locally and will also try to follow up on the discussion in the forums

kevgathuku avatar Feb 17 '25 22:02 kevgathuku