Settings

Theme

Iterated Prisoner's Dilemma in myriad languages

jacquesfuentes.com

16 points by jpfuentes2 11 years ago · 4 comments

Reader

lectrick 11 years ago

I think I will try my hand at an Elixir version, based off the (very functionally well written!) Ruby version.

Also, you should have test suites for these. :)

Elixir's pretty cool if you haven't played with it yet- http://elixir-lang.org

It's like Ruby, but 100% functional, immutable, concurrent, and faster. :)

  • jpfuentes2OP 11 years ago

    Thanks for the compliment and please do submit an Elixir version. I'm played around a bit with Erlang/Elixir but not substantially. I try to follow the Elixir community a bit and have done extensive reading of the OTP/actor system in Erlang :) Also, one of the reviewers of the article, Daniel Farrell, does Elixir for fun: https://github.com/danielfarrell/sass.ex.

    Regarding test suites: yeah, I agree but it's a first pass and right now the "test" is "does running the program produce the correct output?" and that's sufficient for now:)

    • lectrick 11 years ago

      that "test" is literally 1 step away from a "proper" test :) Slap an "assert_equal" in there and boom, tested! Or heck even "raise unless expected == actual"

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection