Re:Android Lighthouse: Android Qt Port
by sid0 on Friday February 11, 2011 @11:25AM
(#2206874)
A developer who is so dependent on one language/framework that he cannot learn another in a reasonable amount of time is one I have no sympathy for.
[ Parent
| on HN ]
Learning Java is easy - porting 20years of libraries from C/C++ to Java is trickier.
We only just got done porting them all from Fortran!
You could always use some sort of FFI. I don't think it's that big a deal, since you can still use C and C++ libraries on any desktop platforms + on Android.
Re:Android Lighthouse: Android Qt Port
by xpaulbettsx on Friday February 11, 2011 @12:12PM
(#2207171)
FFI to C++ is a frustratingly difficult task for a number of reasons (there's a great presentation from FOSDEM where the Mono guys try to do this, can't find it right now though). There's a reason why FFI is mostly done against C libraries.
Fair enough: I was thinking more about C than C++ there. I guess that for at least some libraries an FFI + a C to C++ glue layer might work.
Now that I think of it, I'm happy with a C + high-level language future, and C++ programmers should pick up one or both of them.
It's not so much dependency as not seeing the point of relearning the same stuff under a different name.
Neither C# nor Java offer tangible benefits over C++ for me. I don't learn anything new, I just have to memorize new APIs. Terribly wasteful.