Skip to content

Adds more languages supported by MOSS#2

Merged
mbg merged 3 commits intombg:masterfrom
robstewart57:more-languages
Nov 12, 2020
Merged

Adds more languages supported by MOSS#2
mbg merged 3 commits intombg:masterfrom
robstewart57:more-languages

Conversation

@robstewart57
Copy link
Contributor

No description provided.

@mbg
Copy link
Owner

mbg commented Nov 12, 2020

Thanks the update, this is an improvement! I don't want to be difficult about such a small change, but the indentation is still changed from 4 to 2 spaces which doesn't match the rest of the code. I can change this myself before merging if you like / let me know if you'd like any help with any of this.

BTW. you could have updated #1 with this change by pushing the new commit to the corresponding branch, no new PR was required.

@robstewart57
Copy link
Contributor Author

@mbg Done.

An additional commit indents the new code with 4 white spaces.

Copy link
Owner

@mbg mbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! That's made the diff clearer to read as well. Just one quick comment regarding TCL (see below).

| Modula2
| Ada
| Perl
| TCL
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The moss website lists TCL as a supported language. Have you removed this because you tried it and it didn't work? (I note that it and HCL2 are mentioned on the website, but not in the perl script.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mbg indeed, I spotted this too.

The web page includes TCL, but the perl script (as of 24 October 2019) Stanford send out does not include it:

@languages = ("c", "cc", "java", "ml", "pascal", "ada", "lisp", "scheme", "haskell", "fortran", "ascii", "vhdl", "perl", "matlab", "python", "mips", "prolog", "spice", "vb", "csharp", "modula2", "a8086", "javascript", "plsql", "verilog");

Should this Haskell moss library include TCL, or not?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment in the perl script I received (6 February 2018) notes that the website should be the authoritative source for supported languages:

# As of the date this script was written, the following languages were supported.  This script will work with 
# languages added later however.  Check the moss website for the full list of supported languages.

If that's still the case in the script you received, I think it would be best to leave TCL in as I suspect that they have updated the website, but not the script whenever it was they added TCL.

@mbg mbg self-assigned this Nov 12, 2020
@mbg mbg added the enhancement New feature or request label Nov 12, 2020
@robstewart57
Copy link
Contributor Author

@mbg I've added TCL back in 2321228

Copy link
Owner

@mbg mbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

@mbg mbg merged commit 9152747 into mbg:master Nov 12, 2020
@mbg
Copy link
Owner

mbg commented Nov 12, 2020

FYI v0.2 of the library, which includes your contribution, is now live on Hackage.

@robstewart57
Copy link
Contributor Author

@mbg Thanks!

FYI I'm using your moss library in a command line program gitlab-tools, to bridge projects in GitLab instances out to MOSS: https://gitlab.com/robstewart57/gitlab-tools . The intended purpose of that bridge is when GitLab is used for hosting assessed programming projects, in the context of Computer Science education. So, thanks for writing this moss library!

That tool uses the gitlab-haskell library: https://hackage.haskell.org/package/gitlab-haskell

@mbg
Copy link
Owner

mbg commented Nov 12, 2020

Nice! I am glad you find the library is useful and it's seeing some usage! I originally built it around 3 years ago for a similar tool as your gitlab-tools, but that has since evolved into a fairly large CI-like system that's deeply integrated with our systems at Warwick (around 22k lines of Haskell).

@robstewart57
Copy link
Contributor Author

@mbg

since evolved into a fairly large CI-like system that's deeply integrated with our systems at Warwick (around 22k lines of Haskell).

I'd be very interested in learning more about what you've developed at Warwick. Have you written about it?

@mbg
Copy link
Owner

mbg commented Nov 13, 2020

I haven't written about it anywhere (unfortunately), but I'd be happy to have a chat about it - feel free to send me an email with times that would work for you and we can arrange a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants