Re:Nim – Python-like statically-typed compiled language
by adamnemecek on Sunday August 16, 2020 @01:21PM
(#24179472)
No, interop is so much simpler in julia. Not to mention cpp interop.
Re:Nim – Python-like statically-typed compiled language
by klyrs on Sunday August 16, 2020 @01:37PM
(#24179595)
Yeah, won't argue there; I was responding to the notion that python is somehow cheating by using numpy. Python has at least 3 paths to cpp interoperability now, but they've all got their warts.
Re:Nim – Python-like statically-typed compiled language
by adamnemecek on Sunday August 16, 2020 @01:40PM
(#24179619)
And they are require you to write wrappers. Peep the julia interop https://github.com/JuliaInterop/Cxx.jl you just import your cpp code and it works.
Re:Nim – Python-like statically-typed compiled language
by newswasboring on Monday August 17, 2020 @07:48AM
(#24186296)
This has been broken since v1.4 at least. You might want to peep CxxWrap
Rust does it too, calling external unsafe code so they don't need to rewrite the world all in one go. I'd say that the extendability of a language isn't just fair, but a crucial aspect in comparing languages because that's what people do in the real world.