Re: Some kind of Lisp targeting J2ME?

From: Christophe Turle (cturle_at_nospam.fr)
Date: 09/24/04


Date: Fri, 24 Sep 2004 11:04:54 +0200

Antonio Menezes Leitao wrote:
> Christophe Turle <cturle@nospam.fr> writes:
>
>
>>Sure. My goal is to make my tool programs in java not me ! But i
>>want to expose all the layers. And the basic one is java
>>s-expr. From it, i (or others) will perhaps converge to Linj but
>>with the possibility to hack each level to suit your own taste.
>
>
> Linj also expose several layers. They are just not documented well
> enough (because I must also spend my time on other projects). But
> whenever someone asks me how to do something I explain how to access
> the lower levels. Fortunately, it is rarely needed.
>
>
>>If i'm right, lot's of code may also be used to write other 's???'
>>module (sphp, sharp, s++, ...). Opening Lisp to all other
>>language. It's a different approach from the FFI one. At the end
>>there's no more lisp code. Of course, if you can use Lisp directly,
>>the better ;-)
>
>
> Been there, done that. I might have been unsufficiently smart for the
> task but my conclusion was that if you want to achive good-looking
> code on the target language from good-looking code on the source
> language you must include lots and lots of knowledge about the target
> language on the translator _and_ on your source language. This means
> that you will have to build one different translator for each target
> language and, moreover, your source language will only be 'general
> purpose' in the intersection of the features common to all target
> languages. The larger the number of target languages, the smaller the
> intersection. In the end, you might end up with a incredibly huge
> language that has very similar (but different) constructs.

> The bad
> news is that each source program will only be translatable to one
> specific target language.

one counter-example : you !

If i give you a spec ( the source program ) i'm sure you are able to translate it to lots
of specific languages. And i'm pretty sure that beside some specific knowledge about each target language
you also have lots of general (design) knowledge you can apply for each translation.
 
The goal is to express it in lisp (through specific DSL). So it can be re-used.
 
>>And when you have this foundation, you can really rock : what about
>>a S2ME module using SAVA with all Sun J2ME idioms. I bet you can win
>>most run contests with them.
>
>
> I wish you luck.

luck ? i hope it is not a requirement ;-) but thx.

> António Leitão.



Relevant Pages

  • Re: Compilers vs. translators (was Re: C as a Platonic pathology)
    ... be executable machine language. ... The distinction between a compiler and a translator is somewhat vague. ... to target language, where the target language itself requires a ...
    (comp.lang.c)
  • Compilers vs. translators (was Re: C as a Platonic pathology)
    ... be executable machine language. ... The distinction between a compiler and a translator is somewhat vague. ... to target language, where the target language itself requires a ...
    (comp.lang.c)
  • Re: n versioning
    ... They have code generators that will give you C, C++, Java and Ada. ... After one or two years of learning to model you will discover that you need a team maintaining the model compilers just as large as your modelling team. ... Implementing some mathematical algorithms will be a real problem and may perhaps be better to do directly in the target language and bridge into your models. ...
    (comp.lang.ada)
  • Re: Problem with RTW
    ... I'm using Matlab Simulink R14SP3 and I'm compiling software with RTW for a Micro-Autobox board. ... A %implements directive must appear within a block template file and must match the %language and type specified ... target language different from that specified in your System Target ...
    (comp.soft-sys.matlab)
  • Re: Lets start again
    ... If each translator had one source and one target ... language, or some definite maximum, I would say to put it ... Whether you add Specialty to the tblContactDetails table ... >language) and German (target language), ...
    (microsoft.public.access.gettingstarted)