Re:Nim compiler — Pascal source code
by pjmlp on Sunday November 29, 2020 @07:32AM
(#25244785)
Not even written in C? Because language interop is a thing, unless one is religously following the mantra of being a X-lang developer instead of embracing polyglot skills.
[ Parent
| on HN ]
Or unless you're coding simply because you enjoy the experience and don't care about the interop and making a wide use language at that point.
When I find a issue that could be more practical do in C++ instead of Java or .NET, instead of throwing away my productivity out of the window and rewrite everything into something else, I just write a tiny wrapper for what is missing and write everything else in Java or .NET languages.
Just like I used to call Windows DLLs or COM libraries from TPW and Delphi.
Which incidently is how Google pushes everyone to write native code on Android, as little as possible, just tiny native libraries. Even the NativeActivity is just a regular Java Activity implementation with predefined native methods declarations that the shared object is expected to fill in, to be properly called from the framework.