News for hackers. Stuff that matters.

Ask HN: Just finished my dissertation, what language should I learn for fun?

After working so much on my PhD dissertation, I finally want to take a break and code some things for fun. I want to start by learning a new language (I have been using C#, Python, and JavaScript). I'm not looking for a job, just a fun and capable language for side projects.

Nim and Crystal have been getting a lot of praise on HN, but I am also considering Go, Rust, and Elixir. While there is no perfect answer, I am open to suggestions.

( 11 comments | 11 points | on HN )
Re:Ask HN: Just finished my dissertation, what language shou... by pepper_sauce on Wednesday July 04, 2018 @04:27AM (#17455967)
+1 Rust, but be warned: the learning curve is high. I work with similar language to you and Rust not only sheds light on low level concerns and safety, but also has an excellent type system. Programming Rust by Blandy and Orendorff, the online Rust Book, and the Rust By Example website are all good resources.

Rust is a lot more verbose than a language like Elixir so it might feel like wading through mud for a while.

I'm also throwing out the suggestion of a Lisp. Homoiconic macros are interesting and difficult. I'm currently reading Let Over Lambda by Doug Hoyte and it's like there's a whole world of technique I had no idea existed.

Re:Ask HN: Just finished my dissertation, what language shou... by GenKali on Monday July 02, 2018 @11:19AM (#17442393)
My votes go to Rust and Elixir. I'd say I've had the most fun in Elixir recently, but Rust comes a very close second - especially once the borrow-checker and I started seeing eye to eye.
Re:Ask HN: Just finished my dissertation, what language shou... by azhenley on Monday July 02, 2018 @02:53PM (#17444408)
I’ll definitely look into Elixir some more. I don’t have a lot of experience with functional languages so it could be a worthwhile choice for me.
Re:Ask HN: Just finished my dissertation, what language shou... by karmakaze on Tuesday July 03, 2018 @11:33PM (#17455114)
My current curiosity is Pony. I read the early history[0] and tutorial[1] and was immediately hooked. At work, I would tend to choose Go for lowish-level applications but for personal exploration choose something with greater future potential where everything hasn't already been built.

[0] https://news.ycombinator.com/item?id=14280565 [1] https://tutorial.ponylang.org/

Re:Ask HN: Just finished my dissertation, what language shou... by mathieubordere on Wednesday July 04, 2018 @01:53PM (#17458567)
Reading `Structure and Interpretation of Computer Programs` and doing all the exercises in Scheme is quite fun.
Re:Ask HN: Just finished my dissertation, what language shou... by dom96 on Monday July 02, 2018 @12:32PM (#17443083)
If you want something that's really fun then I would say Nim is a good choice (jobs are still rather rare for Nim, although they do also exist). If you've got a particular project in mind then I would happily give you some resources on how to implement it in Nim :)
Re:Ask HN: Just finished my dissertation, what language shou... by azhenley on Monday July 02, 2018 @12:57PM (#17443334)
I just started going through the Nim tutorial! I'll let you know how it goes.

After looking at some projects on github that use Nim, I'm very impressed. Thanks for all your work on this!

Re:Ask HN: Just finished my dissertation, what language shou... by slipwalker on Tuesday July 03, 2018 @02:34PM (#17452629)
since you haven't used any purely functional language yet, given your choices, i would recommend Elixir. Different programming paradigms ( procedural, oop, fp, declarative, etc... ) teaches different ways to approach a given problem domain, it's an useful skill to have.
Re:Ask HN: Just finished my dissertation, what language shou... by simplecomplex on Tuesday July 03, 2018 @10:41PM (#17454958)
Learn something totally different from what you’re used to, like PureScript or Haskell.
Re:Ask HN: Just finished my dissertation, what language shou... by nextos on Tuesday July 03, 2018 @05:36PM (#17453784)
Mozart/Oz
Re:Ask HN: Just finished my dissertation, what language shou... by hackerpacker on Monday July 02, 2018 @11:36AM (#17442556)
done any assembly yet?