Re:Nim – Python-like statically-typed compiled language
by swsieber on Sunday August 16, 2020 @01:57PM
(#24179741)
I think it's fair. We're not talking about that intrinsic language qualities, we're talking about what you can do. Or that's my take anyway. That's what I think of comparing when the lead line for the whole conversation is "tool belt".
[ Parent
| on HN ]
Re:Nim – Python-like statically-typed compiled language
by adamnemecek on Sunday August 16, 2020 @02:05PM
(#24179815)
The two are related. If i can't write fast code in the langauge itself but have to resort to another langauge, then that's very much a "what can you do with it" problem.
Re:Nim – Python-like statically-typed compiled language
by swsieber on Sunday August 16, 2020 @03:24PM
(#24180442)
And I'm saying doing stuff with numpy counts as doing stuff in python. Just because numpy is mostly implemented in c doesn't prevent me from writing ML in python.
Re:Nim – Python-like statically-typed compiled language
by adamnemecek on Sunday August 16, 2020 @04:28PM
(#24180986)
I understood. What if you need a feature that is not implemented in C and exposed? You need to write C.
Re:Nim – Python-like statically-typed compiled language
by swsieber on Sunday August 16, 2020 @07:42PM
(#24182368)
I agree with you there. I just haven't hit that need yet. I suspect most people don't.
Re:Nim – Python-like statically-typed compiled language
by dunefox on Monday August 17, 2020 @05:23AM
(#24185492)
I suspect many people do but just don't (yet) realise that there's an alternative.
Re:Nim – Python-like statically-typed compiled language
by michaelcampbell on Sunday August 16, 2020 @06:55PM
(#24182102)
Same issue with Julia, no?
Re:Nim – Python-like statically-typed compiled language
by swsieber on Sunday August 16, 2020 @07:41PM
(#24182362)
Julia is much more amenable to implemening it though in native Julia, so I think it's a lot easier to stay out of C even when there's a similar library hole between Julia and Python.
However, it's just a wall I haven't really bumped into. I suspect many people don't, and a part of that is popularity - so much exposure can do a lot to expose the warts. Though I think that goes for both Julia and Python.
But I think once you know numpy well you probably won't run into that restriction (can extend in the native python) unless you're an expert (for the ML usecase).