On the subject of parallel code and functional programming, F# has two cool
features...

1) units for variables.

> let distance = 123.5<m>               // using meters

- let time = 5.0<s>                      // using seconds
- let speed = distance / time;;          // mixing units

If we enter this code in the F# Interactive Console, F# provides the
following feedback:

val distance : float<m> = 123.5
val time : float<s> = 5.0
val speed : float<m/s> = 24.7"

from http://www.ctocorner.com/fsharp/book/ch3.aspx


2) Built in framework for parallel processing,
http://www.ctocorner.com/fsharp/book/ch16.aspx

Unfortunately, the language follows in the style of it's predecessors in
term of cludgy, clunky, ugliness though. Also, some of it sounds like a bit
of a hodge-podge, e.g. the "pattern matching" "sub language"... But I
suppose that just like C# .NET has become the defacto requirement on CV's,
maybe F# is going to be the next buzz?

Personally I wish the world would just use J and develop extensive open
source libraries for it etc... but unfortunately we do not live in Brand
land :-(.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to