Next: Diffrences against Popcorn
Up: General, conceptual, differences
Previous: C compatibility
  Contents
How is Gont different from Caml or SML? (Caml and SML are functional
languages, with imperative features from ML family) Hm... generally all
languages are interchangeable, what can be written in one, can be written
in all other. What is different is: how easy can you get the code to
work, how much bugs will compiler detect, and how much will be left for
the programmer and how fast will it run. Gont places accents on these
things somewhere between Caml and C. Generally it does not provide as
much support for functional programming as Caml does, similar can be told
about Gonts module system (which is a toy, compared to functors and other
ML machinery) and restricted polimorphism. On the other hand, linking
Gont code with C is very easy, the only thing you need to remember,
is not to put pointers from Gont, in malloc()
'ed area - save
it on stack, or in GC_malloc()
'ed area. Interfacing OCaml is...
ghm... nightmare, mainly because of its precise garbage collector.
Also Gont code will probably run faster, as it uses highly optimizing
back end (gcc), and because of restrictions put on the language itself
(this is probably not true yet).
Next: Diffrences against Popcorn
Up: General, conceptual, differences
Previous: C compatibility
  Contents
Micha³ Moskal
2001-11-29