Re: ANN: Q language website (new)




Jon Harrop wrote:
> james.jdunne@xxxxxxxxx wrote:
> > IMHO, garbage collection is a sign of lazy
> > programming and loss of control over certain aspects of the program's
> > flow.
> >
> > A "high level language" does not need to provide garbage collection.
>
> You'll find it very difficult to implement lots of high-level languages
> features (e.g. closures) without GC.
>

This is a procedural model. I'm not interested in either the
object-oriented or the functional model. Also, I did say that I might
offer a GC solution, since the memory management functions are
user-defineable (in C).

I fail to see how *ONLY* a GC solution can enable certain high-level
features of a language.

> > This depends on how high off the metal you want to get. I'd like to
> > stay relatively close to it in order to achieve performance and
> > control.
>
> You don't get high performance by making it too tedious to code things
> properly.
>

I'm not sure I fully understand you here. Are you saying that explicit
memory management leads to slow(er) performance? That is entirely up
to the developer. The goal of my language is to offer the same
flexibility and control that C offers while removing most of the
tediousness of C.

> I recommend that you study the implementations of some modern languages
> before going any further. I think you'll find it a lot more productive and
> fun to implement more modern things. For example, read this lecture by
> Xavier Leroy (the current lead developer of the OCaml compilers):
>
> http://pauillac.inria.fr/~xleroy/talks/compilation-agay.pdf
>

Thanks for the read, but I'm not too interested in the functional
model.

IMO, the term "modern" when used with languages is very subjective.
"Modernizing" a language today seems to move it towards garbage
collection, object-orientation, and highly abstract concepts. Some may
see these as "progress" and "Good Things," while others may seem them
in a different light.

> --
> Dr Jon D Harrop, Flying Frog Consultancy
> http://www.ffconsultancy.com

.



Relevant Pages

  • Re: ANN: Q language website (new)
    ... > programming and loss of control over certain aspects of the program's ... > A "high level language" does not need to provide garbage collection. ... You'll find it very difficult to implement lots of high-level languages ... I recommend that you study the implementations of some modern languages ...
    (comp.lang.misc)
  • Re: C vs C++ in Embedded Systems?
    ... >>the garbage collection system be able to find every pointer that it needs ... >>ensuring that all pointer variables actually point to allocated memory. ... references, by definition, in these languages. ...
    (comp.arch.embedded)
  • Re: More on garbage collection
    ... but adding garbage collection is a disaster. ... on the memory layout. ... Please note that this is a theoretically soluble problem. ... All garbage collection languages that I know of fail ...
    (sci.crypt)
  • Re: Sony STR-V555ES HELP
    ... will get much higher and there is no way to control it,and some other ... There are very few languages in which it is acceptable to just ... grammar, than it did to string out that mess of gibberish above. ... volume and drives the digital display, ...
    (sci.electronics.repair)
  • Re: Ligurian ending "-asco"
    ... Impossible, because modern Portuguese ... Modern English, Latin and French), after 4000 years languages may ...
    (sci.lang)