News for hackers. Stuff that matters.
Re:Coconut: Pythonic functional programming by elcomet on Thursday January 03, 2019 @09:50AM (#18815455)
You should check nim out, it's a python-like language that compiles to C.
Re:Coconut: Pythonic functional programming by azhenley on Thursday January 03, 2019 @10:13AM (#18815653)
I also recommend looking at Nim. It has Python-like syntax but it feels very different than Python for me when using it. Stellar language though that has been getting a lot of attention!
Re:Coconut: Pythonic functional programming by weberc2 on Thursday January 03, 2019 @10:29AM (#18815772)
Thanks for the recommendations, folks. I'll take a look!
Re:Coconut: Pythonic functional programming by JoBrad on Thursday January 03, 2019 @11:11AM (#18816142)
Whoa - Nim seems really cool! Thanks for mentioning it. I like that it also compiles to JS, and seems to be pretty active (latest release was just on Dec 31).
Re:Coconut: Pythonic functional programming by bakery2k on Thursday January 03, 2019 @11:26AM (#18816282)
Isn't Nim, like Python, a large, complex language? Looking at the documentation, it seems to include a huge number of features.
Re:Coconut: Pythonic functional programming by dom96 on Thursday January 03, 2019 @11:46AM (#18816489)
It is a little large, yes. The creator's goal was always to create a language with a small core but a rich set of features for extending the language (metaprogramming). Nim has bloated a little and we're now trying to remove as many features as we can without annoying too many people :)
Re:Coconut: Pythonic functional programming by weberc2 on Thursday January 03, 2019 @11:53AM (#18816573)
Glad to hear it. I've been skimming the documentation and definitely got the impression that it is a feature-rich language to put it politely :). In the words of Bjarne Stroustrup, it seems like there is a small core language that wants to get out. I imagine you could create a linter that catches uses of extraneous features and foster a culture of "Good nim code passes this linter"--you could create badges for repositories that show the percent of the code that adheres to the linter or something. Over time, you could deprecate and then remove these extraneous features.
Re:Coconut: Pythonic functional programming by mattbreeden on Thursday January 03, 2019 @06:50PM (#18820589)
This is part of what turned me away from Nim, so it's good to hear that. Can you give some examples of some features you've removed recently? I notice you're not at 1.0, so are you comfortable ignoring the 'annoying too many people' part if you think there's enough of a reason to remove something?
Re:Coconut: Pythonic functional programming by dom96 on Friday January 04, 2019 @05:57PM (#18828548)
One thing I can think of is the likely little known {.this.} feature, that's been removed. We definitely need to do more, and yeah, it's hard :)