A little Go => Python story
OlliP
jeti789 at web.de
Sun Jun 23 10:36:01 PDT 2013
I knew a little Go and then by chance had a look at Python. The
similarities in syntax were striking. Because of the very quick
build times, Go feels like a scripting language. However, it
really falls short on OOP. Delegates in Go can mimic inheritance
to some extend, but method overriding (aka virutal methods)
remains impossible. I believe many Python/C++ developers won't
pick Go due to its lack of OOP and more andvanced language
features. Maybe as a scripting language or a languagee to write
little tools or concurrent stuff.
I think just being a modernized C is not enough. Even in systems
programming people look for more advanced language constructs as
in C++ or D. If it's about performance alone, you would just
stick to C. Currently Go can compete in performance just with
Java. To define a business case in spite of the simplicity of the
language IMHO speed would have been to be quite better as in Java.
Besides that thread multiplexing as in Go would also make a lot
of sense in D. It already exists for Java (see
http://hawtdispatch.fusesource.org/,
https://github.com/lmax-exchange/disruptor). Maybe porting
HawtDispatch to D can be done without having the approach in
hatDispatch).
-- Oliver
More information about the Digitalmars-d
mailing list