codewars / runner

Issue tracker for Code Runner
34 stars 8 forks source link

Add Odin #159

Open crabbo-rave opened 2 years ago

crabbo-rave commented 2 years ago

Odin is a Data Oriented, general purpose open source System Language. Meant to be a “C Alternative” and has the simplicity of Nim and Go, and is made for high performance, modern systems, and data-oriented data types. It’s a really cool language.


Frameworks for Unit Testing:


:+1: reaction might help to get this request prioritized.

crabbo-rave commented 2 years ago

I'm guessing that the unit-testing frameworks I provided are not sufficient for codewars...

kazk commented 2 years ago

You didn't need to close it. There's some interest, and I'm not against adding. I'll add help wanted label.

wardjm commented 1 year ago

Is there an article somewhere on what exactly is needed to make this happen? I can do some stuff.

kazk commented 1 year ago

Can you create a repository similar to https://github.com/codewars/riscv for Odin under your account?

The repo should include:

  1. Dockerfile: Install Odin, then add a user codewarrior and /workspace.
  2. bin/run: A Bash script with commands to run an example kata in a container.
  3. examples/*: Some example kata with passing tests, failing tests, errors, etc.
  4. The tests should produce outputs described in CodeRunner Messages. If that's not possible, we can discuss alternatives, like other machine readable formats or post processing.

You can test how the output is rendered on Codewars with Kumite.

  1. Open https://www.codewars.com/kumite/new?language=python
  2. Disable tests
  3. Print the output

    print("""
    
    <PASTE THE OUTPUT HERE>
    
    """)
  4. Run

Please let me know if you have any questions or need help.