4 ms·
Hi Marcus, have you ever taken a look at Nim? It's quite similar to Swift in several respects, but it has a primarily Python-like syntax (including indentation
by jboy 10y ago
Hi Marcus, have you ever taken a look at Nim? It's quite similar to Swift in several respects, but it has a primarily Python-like syntax (including indentation by blocks rather than braces) with bits of Ruby & others mixed in.
Useful links: http://nim-lang.org/ http://nim-lang.org/ , http://nim-lang.org/docs/tut1.html http://nim-lang.org/docs/tut1.html , https://nim-by-example.github.io/ https://nim-by-example.github.io/ , http://nim-lang.org/docs/manual.html http://nim-lang.org/docs/manual.html
At work, we use Python as our interpreted language & Nim as our fast, strongly-typed, compiled language. We created Nim-Pymod to enable Nim code to be compiled into Python modules: https://github.com/jboy/nim-pymod https://github.com/jboy/nim-pymod
There's also a web-framework in Nim called Jester, which describes itself as "a Sinatra-like web framework": https://github.com/dom96/jester https://github.com/dom96/jester
- schappim 10y agoThanks for the tip, I'll have to check it out!
- laingc 10y ago> At work, we use Python as our interpreted language & Nim as our fast, strongly-typed, compiled language. You most likely didn't mean to, but your sentence implies that Python is not strongly typed.
- JustUhThought 10y agoJust in case anyone else is tired and drew a blank and needs to google that, the confusion was that of strong vs weak not dynamic vs static. Strong vs weak applies to explict vs implicit type changes. Dynamic vs static applies to run time or compile time type assignment. http://stackoverflow.com/questions/11328920/is-python-strongly-typed http://stackoverflow.com/questions/11328920/is-python-strong...
- jboy 10y agoAh yes, good catch. I meant "statically-typed".
- JustUhThought 10y agoEmbarrassing confession. I've looked at Nim before and don't want to use it because I think the crown is a ridiculous logo. Not being big on authority and not being big on people that think too highly of themselves, I'm suspicious of the entire project simply because of that poorly drawn crown.