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

Erlang problems #874

Closed
tmcgilchrist opened this issue Oct 18, 2013 · 10 comments
Closed

Erlang problems #874

tmcgilchrist opened this issue Oct 18, 2013 · 10 comments

Comments

@tmcgilchrist
Copy link

Basically just a marker for the porting effort from the https://github.com/erlsyd members.

If anyone would like to chip in and help, let me know.

You can view our work in progress here:
erlsyd#1

@kytrinyx
Copy link
Member

✨ ❤️ ✨ I'm very excited about this effort, thanks so much for kicking it off!

@etrepum
Copy link

etrepum commented Oct 18, 2013

Let me know if you want any help, I have Erlang expertise and have been helping out here for a few months (mostly with the Haskell curriculum)

@tmcgilchrist
Copy link
Author

That'd be super Bob if you have time.

We started porting at a hack night recently as a way of introducing people
to erlang. So some of the code might not be as idiomatic as I'd like but
for the moment we were focusing on getting through them.

Feel free to jump in and start an exercise or leave some feedback on the
existing solutions. We have been checking in an empty directory/file to
show which problem were working on, so if you could follow that I'd help.

Do you need access to our fork?

Cheers

On Friday, October 18, 2013, Bob Ippolito wrote:

Let me know if you want any help, I have Erlang expertise and have been
helping out here for a few months (mostly with the Haskell curriculum)


Reply to this email directly or view it on GitHubhttps://github.com//issues/874#issuecomment-26570722
.

@etrepum
Copy link

etrepum commented Oct 23, 2013

A short way for running the Erlang examples would be:

erl -make
erl -noshell -s bob_tests test -s init stop

To get the right exit status you could do it like this:

erl -make && erl -noshell -eval 'init:stop(case bob_tests:test() of ok -> 0; _ -> 1 end).'

Or from the Erlang shell:

1> make:all([load]).
Recompile: bob
Recompile: bob_tests
up_to_date
2> bob_tests:test().
  All 12 tests passed.
ok

@tmcgilchrist
Copy link
Author

@etrepum thanks for the tips, I didn't remember the make:all([load]) function.

@kytrinyx what is your preferred format for getting this work merged?
Shall I break it up on an exercise by exercise basis?

What about for the rails website side of things?

@rubysolo
Copy link

@tmcgilchrist Take a look at the files in lib/exercism/curriculum -- you'll want to create a new one for Erlang specifying the currently available exercises.

@etrepum
Copy link

etrepum commented Oct 23, 2013

You'll also need to add a lib/app/views/setup/erlang.erb with setup instructions, and a logo in lib/app/public/img/

@etrepum
Copy link

etrepum commented Oct 23, 2013

I rebased and started reviewing/refactoring some of the examples here: https://github.com/etrepum/exercism.io/tree/erlang (just the first two so far)

I'd like to get Erlang integrated with travis-ci as well, as I have done with Haskell and Rust (see .travis.yml and test/{haskell,rust}/*).

@etrepum
Copy link

etrepum commented Oct 24, 2013

I've gone through and cleaned up the Erlang tests/examples that were listed in the erlang.rb file (bob rna-transcription word-count anagram beer-song). Current branch is at https://github.com/etrepum/exercism.io/tree/erlang and is rebased on top of the current master.

@kytrinyx
Copy link
Member

Superseded by exercism/erlang#4

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

4 participants