[erlang-questions] The Beauty of Erlang Syntax
Fri Feb 27 03:50:43 CET 2009
On Feb 26, 3:40 pm, Zvi <> wrote:
> ...article "Erlang for Concurrent Programming"  there is a list of things
> for which Erlang tends to be not good.
Took a quick look at that link to "queue magazine", and they seemed to
be scratching around a bit to find reasons to pad out their list...
" Concurrency more appropriate to synchronized parallel execution"
I guess that sounds good. But I'd need to see an example of what the
author actually means to understand and make any judgment as to
whether it's actually true.
"• Code requiring an aggressive compiler (Erlang entries in language
benchmark shoot-outs are unimpressive — except for process spawning
and message passing) "
Does he mean "serial performance" here. If so see below, as this is at
the heart of most of the list items.
"• Floating-point-intensive code"
Most code (in any language) isn't particularly "performance sensitive"
you gotta measure measure measure. Also, I think the author
specifically means "serial/linear code performance"... ok, but in
those rare bottlenecks (and they are rare) where beam/hipe are not
enough, there's always (easy to make) C ports for your escape
"• Code requiring nonportable instructions "
Why would you want this? *REQUIRING* when does code (rather than
managers/architects) *require* non-portability. Isn't non-portability
just a inconvenient compiler design fact for certain platforms? The
exception here could be embedded processors, so I guess that's where
this came from. However, I don't often code for embedded processors
(in fact, I never have and I'm unlikely to do so in the future).
"• Projects to implement libraries that must run under
other execution environments, such as JVM (Java Vir-
tual Machine) or CLR (Common Language Runtime) "
I've noticed that Java isn't too good on CLR/Mono or on BEAM, and that
C# isn't so good on the JVM or BEAM.
"• Projects that require the use of extensive libraries written in
other languages "
This isn't necessarily true. jinterface and ports are more than
adequate for 90% of purposes.
All in all, I find this list pretty unconvincing.
More information about the erlang-questions