From: John Barham <jbarham@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] MIPS LSB compiler
Date: Thu, 12 Nov 2009 22:01:29 -0800 [thread overview]
Message-ID: <4f34febc0911122201x1fb48b86t7f5e7aff2b56a77f@mail.gmail.com> (raw)
In-Reply-To: <e763acc10911122112t725f030crc94f84f60d8b57d5@mail.gmail.com>
On Thu, Nov 12, 2009 at 9:12 PM, Roman Shaposhnik <roman@shaposhnik.org> wrote:
> On Thu, Nov 12, 2009 at 8:34 PM, <lucio@proxima.alt.za> wrote:
>> "Go" has added a cat amongst the pigeons :-)
> ...
> * A ducktyping of sorts with interfaces and such. On the surface
> it just saves
> you a bunch of "extends XXX", but it actually seems to bridge
> the gap between
> dynamically typed world and a statically typed one to an extent
As a long-time Python programmer, Go's interfaces are what I find most
immediately appealing as they give you the speed and safety of a
compiler w/ the flexibility of swapping in arbitrary types provided
they satisfy the interface. It's trivially easy compared to C++
(inheriting from a common base class--hah, try doing that w/
std::fstream) or Java (explicitly implementing an interface). This is
such a common idiom in dynamic languages that it's second nature to
talk about "file like" objects.
And goroutines w/ channels is just icing on the cake. Although you
take a slight hit vs C or C++ in terms of single threaded performance,
as soon as you're on multi-core, and who isn't nowadays, Go wins.
I see Go pushing C usage down even further to the
embedded/kernel/bootstrap space and rapidly displacing C++ as the
language of choice for developing new high performance
systems--already its out of the box library is much richer than what
C++ gives you, especially for network programming where standard C++
is mute.
Go overlaps w/ a lot of what I've used Python for in systems and
network programming. Python is very nice when it works but if you
have to escape out to C for speed it quickly becomes a drag. SWIG
helps but machine generated code is not fun to debug.
And I can't be the first person to wonder when the Go ARM compiler
will be available on Android...
Interesting times indeed.
John
next prev parent reply other threads:[~2009-11-13 6:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-13 4:34 lucio
2009-11-13 5:12 ` Roman Shaposhnik
2009-11-13 6:01 ` John Barham [this message]
2009-11-13 17:48 ` Tim Newsham
2009-11-13 18:19 ` Iruata Souza
2009-11-13 18:36 ` Tim Newsham
2009-11-15 16:52 ` lucio
2009-11-15 17:26 ` Paul Lalonde
2009-11-15 22:25 ` ron minnich
2009-11-15 22:43 ` Bruce Ellis
2009-11-16 4:34 ` lucio
2009-11-16 10:11 ` Bruce Ellis
2009-11-16 4:28 ` lucio
2009-11-13 19:41 ` Andre Guenther
2009-11-15 17:55 ` lucio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4f34febc0911122201x1fb48b86t7f5e7aff2b56a77f@mail.gmail.com \
--to=jbarham@gmail.com \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).