News for hackers. Stuff that matters.
Re:Nim compiler — Pascal source code by HacklesRaised on Sunday November 29, 2020 @06:08AM (#25244430)
I read "I couldn't find libraries that did most of what I needed and I couldn't be bothered to contribute said libraries"
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.
Re:Nim compiler — Pascal source code by cy_hauser on Sunday November 29, 2020 @09:35AM (#25245304)
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.
Re:Nim compiler — Pascal source code by pjmlp on Sunday November 29, 2020 @09:55AM (#25245415)
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.