Hacker Newsnew | past | comments | ask | show | jobs | submit | more maikklein's commentslogin

I was pleasantly surprised by the combination of pure functions..

But Rust doesn't have pure functions.


Well, rust does have pure functions (as most programming languages) you just can't tag a function as such to have the compiler enforce the purity for you (it used to, though).

That being said I'm not sure why the author mentioned that point in particular. Maybe he feels that having immutable-by-default semantics encourages writing pure functions?


You've hit the nail on the head!


Hmm, perhaps I was a little overzealous in my attribution, I'll amend that, thank you.


He wrote

  either :: (LoginError -> Text) -> (Text -> Text) -> (Either LoginError Text -> Text)
But shouldn't it be

  either :: (LoginError -> Text) -> (Text -> Text) -> (Either LoginError Text) -> Text


In Haskell, `a -> b -> c` and `a -> (b -> c)` are the same types.


Funny I just started to learn Clojure 2 days ago and dropped it because I lost interest in it.

I always wanted to join some AI competition and this might actually be fun.

The sad part is, there are no game rules. Yes he explained them a little bit in the blog but it was way too broad.

Also there is no tutorial on how to get started anywhere. I am assuming I need this https://github.com/codecombat/codecombat


Hey Maikklein, did you start playing? We built a mini-tutorial into the level itself, along with documentation and API details. We also have a rules tab on the ladder page that describes how the tournament works in broad strokes. If you still have questions, drop us a line at team@codecombat.com


Oh, then it was my fault! I didn't even think to press the play button because I haven't written any code yet.

Now I am seeing the interactive tutorial. Thanks


I love you. I was thinking how awesome it would be to use tmux on my windows machine so I tried pact install tmux and it worked.

Thank you so much, that's pretty awesome.


I saw that you can even generate C++ code from nimrod and that you can automatically generate c wrapper with c2nim, but how does it play with C++? Can you easily use C++ libraries in Nimrod or do you have to write a C interface?


C wrappers are still generally better supported, or at least that's what I assume because that's what most people still use. I haven't personally tried wrapping any C++ code yet. c2nim does support C++ now so in theory it should be just as easy as wrapping C.


It's not "easy" per se, but totally doable (if a little rough last time I tried, but that was 6 months ago) to interface with C++. There is even a C++ backend from what I recall. Pop into the IRC or just have a play yourself :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: