|
|
Up |
|
|
  |
Author: xahleexahlee Date: Aug 19, 2008 18:15
On Aug 19, 5:30 pm, Jon Harrop ffconsultancy.com> wrote:
> ssecorp wrote:
>> What are you LISPers opinion of Haskell?
>
>> Pros and cons compared to LISP?
In summary, Jon's blocg says the haskell compiler is GHC is dropping
the haskell-based darc as its source control system.
good news to know.
See also:
Distributed RCS, Darcs, and Math Sacrilege
http://xahlee.org/UnixResource_dir/writ/darcs.html
plain text version below.
-------------------------
Distributed RCS, Darcs, and Math Sacrilege
|
| Show full article (4.93Kb) |
|
| | 9 Comments |
|
  |
|
Author: xahleexahlee Date: Aug 19, 2008 21:57
|
| |
|
| | no comments |
|
  |
Author: namekuseijinnamekuseijin Date: Aug 19, 2008 22:09
On 19 ago, 22:15, "xah...@ gmail.com" gmail.com> wrote:
> I love math. I respect Math. I'm nothing but a menial servant to
> Mathematics. Who the fuck is this David guy, who proclaims that he's
> no mathematician, then proceed to tell us he doesn't fucking care
> about math? Then, he went on about HIS personal fucking zeal for
> physics, in particular injecting the highly quacky “quantum mechanics”
> with impunity.
Physics and engineers don't care much about math, it's just a useful
tool for their more pragmatic goals.
> Btw, Jon, you often attack Lisp, Haskell. However, i don't think i've
> ever seen you criticize OCaml.
Oh, he does criticize OCaml at every oportunity there is to sell
F#. :)
|
| |
| no comments |
|
  |
Author: Jon HarropJon Harrop Date: Aug 20, 2008 04:45
> Btw, Jon, you often attack Lisp, Haskell. However, i don't think i've
> ever seen you criticize OCaml.
Despite my foray into other FPLs, OCaml has remained my favourite language
for getting work done (F# is arguably better for making money) but OCaml
does have some problems:
. OCaml lacks a concurrent garbage collector and, consequently, is unable to
leverage shared-memory parallelism on a wide range of tasks. F# fixed this.
. OCaml's has unsafe built-in polymorphic functions such as equality,
comparison and hashing. These can silently break if they are accidentally
applied to abstract types and the subsequent bugs can be almost impossible
to fix.
. OCaml has a cumbersome foreign function interface.
. OCaml lacks run-time type information and, consequently, type-safe
serialization and generic printing. F# solved this problem.
. OCaml lacks operator overloading so mathematical expressions involving
many different numeric types are unnecessarily. F# solved this problem.
. OCaml lacks many basic types such as int8, int16, float32, complex32. F#
solved this problem.
|
| Show full article (2.71Kb) |
| no comments |
|
  |
Author: Jon HarropJon Harrop Date: Aug 20, 2008 04:53
namekuseijin wrote:
> Oh, he does criticize OCaml at every oportunity there is to sell
> F#. :)
|
| |
| no comments |
|
  |
Author: Andrew ReillyAndrew Reilly Date: Aug 20, 2008 06:48
On Wed, 20 Aug 2008 12:45:29 +0100, Jon Harrop wrote:
> OCaml's uniform generic representation includes tagged 31- and 63-bit
> integers. F#'s unboxed representation is ~3x faster.
I've wondered about this ever since you first mentioned it: given it's
supposedly wonderful type inference, and its lack of scheme/lisp-like
bignums, why doesn't OCaml use native integers, instead of tagged ones?
What is the tag bit used to disambiguate at run-time?
--
Andrew
|
| |
| no comments |
|
  |
Author: Torben Ægidius MogensenTorben Ægidius Mogensen Date: Aug 20, 2008 07:45
Andrew Reilly areilly.bpc-users.org> writes:
> On Wed, 20 Aug 2008 12:45:29 +0100, Jon Harrop wrote:
>
>> OCaml's uniform generic representation includes tagged 31- and 63-bit
>> integers. F#'s unboxed representation is ~3x faster.
>
> I've wondered about this ever since you first mentioned it: given it's
> supposedly wonderful type inference, and its lack of scheme/lisp-like
> bignums, why doesn't OCaml use native integers, instead of tagged ones?
> What is the tag bit used to disambiguate at run-time?
Pointers from integers, for the purpose of garbage collection and,
possibly, for the (unsafe) polymorphic equality operator.
Torben
|
| |
| no comments |
|
  |
Author: Grant RettkeGrant Rettke Date: Aug 20, 2008 08:53
Haskell is awesome. I heard it might be better to start with ML if it
is your first strongly-typed FP, though.
|
| |
| no comments |
|
  |
Author: Jon HarropJon Harrop Date: Aug 20, 2008 09:47
Andrew Reilly wrote:
> On Wed, 20 Aug 2008 12:45:29 +0100, Jon Harrop wrote:
>> OCaml's uniform generic representation includes tagged 31- and 63-bit
>> integers. F#'s unboxed representation is ~3x faster.
>
> I've wondered about this ever since you first mentioned it: given it's
> supposedly wonderful type inference, and its lack of scheme/lisp-like
> bignums, why doesn't OCaml use native integers, instead of tagged ones?
> What is the tag bit used to disambiguate at run-time?
The tag distinguishes integers from pointers. Integers have their least
significant bit set. Pointers have their least significant bit unset (they
are multiples of 4).
This is used primarily by the GC in order to determine that pointers must be
followed and integers must not.
|
| |
| no comments |
|
  |
|
|
  |
|
|
RELATED THREADS |
  |
|
|
|