Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for rust programming language #12

Open
WaDelma opened this issue Sep 2, 2015 · 5 comments
Open

Support for rust programming language #12

WaDelma opened this issue Sep 2, 2015 · 5 comments
Milestone

Comments

@WaDelma
Copy link
Contributor

WaDelma commented Sep 2, 2015

Support for rust could be added.
https://www.rust-lang.org/

@jamo
Copy link
Member

jamo commented Sep 2, 2015

I actually like this proposal. I feel like this could make to a really nice project - do you feel like starting to work on adding support for this language?

@WaDelma
Copy link
Contributor Author

WaDelma commented Sep 3, 2015

Yeah I would like to start working on it. Not sure how fast it's going progress due other courses. Also this should be probaply split into multiple tasks.

@jamo
Copy link
Member

jamo commented Sep 3, 2015

Awesome!
I see a few things we need to figure out on the rust side, and a bunch of tasks for the tmc-langs.
I have added some of the tasks here.
Let's plan this a bit more before creating a bunch of issues and a milestone for this.

Rust:

  • Figure out a way to nicely implement the available points, test method relation; like the @Points annotation in java.
  • Maybe a niceish lib for making testing nicer e.g. read/write stdin - maybe reflection like "hey, do you have method X, ok cool you do. let's call it with these params"

In Java it takes in a string of different point names, where each point is separated by white space. e.g @Points("124.1 124.2 124.3 124.4 test-point")
And in C we have tmc_register_test(s, test_sum, "1 test-point")

I see at least following sub tasks:

  • New maven module (I wouldn't include it to the tmc-langs-util just yet, but we can include it to the main pom.xml..) ((other products depend on the tmc-langs-util to include all langs modules))
  • Compiling code from langs
  • Running tests from langs
  • Parsing test results from langs
  • Generating the STUB, MODEL SOLUTIONS etc. (we have another issue refactoring this atm.)
  • Having figuring out available points

@jamo
Copy link
Member

jamo commented Sep 3, 2015

@nygrenh @Mession you were creating the C and python support for langs. Did I overlook some tasks; do you have anything to add?

@jamo jamo added this to the rust-support milestone Sep 3, 2015
@ljleppan
Copy link
Member

ljleppan commented Sep 3, 2015

Aside from implementing all the methods specified in LanguagePlugin (most likely by extending AbstractLanguagePlugin), the plugin also has to implement a StudentFilePolicy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants