public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: "Germán Arias" <germanandre@gmx.es>
To: kawa@sourceware.org
Subject: Re: Approach to add a new language
Date: Sat, 26 Sep 2015 03:41:00 -0000	[thread overview]
Message-ID: <1443238891.2513.13.camel@german-HP-245-G2-Notebook-PC> (raw)
In-Reply-To: <56044CD1.2050802@bothner.com>

El jue, 24-09-2015 a las 12:19 -0700, Per Bothner escribió:
> 
> On 09/24/2015 11:28 AM, Germán Arias wrote:
> > Hi all, I'm new at Kawa, although I have some experience in scheme, but
> > not in java. I read that Kawa can be used to implement other programming
> > languages in java platform. So I would like hear your suggestions to do
> > this. I'm thinking on implement Objective-C, but I don't know how this
> > works. Parse the objective-C files to generate the corresponding Sheme
> > files is enough? Or is necessary other considerations? Thanks in advance
> > for your help.
> 
> Objective-C might be a challenge on the JVM, partly because C is a challenge
> on the JVM.  Plus you have to define a mapping from the Objective-C class/object
> model to the Java model.
> 
> Perhaps you could implement a subset of Objective-C - but why?
> 
> I wouldn't use Scheme as an intermediate language (though one could).
> One problem is that makes it hard to get line number information correct.
> Better (and faster) to parse Objective-C  and generate the Expression
> objects that Kawa uses.

Thanks for your advice. 

P.S. After trying again, I'm able to compile an Objective-C runtime to
android. So, I will be able to compile directly Objective-C on
android :)

Thanks
Germán


      parent reply	other threads:[~2015-09-26  3:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-24 18:29 Germán Arias
2015-09-24 19:20 ` Per Bothner
2015-09-25  9:04   ` packaging classes in kawa Damien Mattei
2015-09-25  9:09     ` Damien Mattei
     [not found]       ` <CAE4XeMCHZVDNEMeHXbBHvsgtUXTTzqknZxuTyWp0og8BWuC_mQ@mail.gmail.com>
2015-09-25 13:10         ` Damien Mattei
2015-09-25 15:15           ` Per Bothner
2015-09-25 15:49             ` Damien Mattei
2015-09-25 16:21               ` Per Bothner
2015-09-26  3:41   ` Germán Arias [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1443238891.2513.13.camel@german-HP-245-G2-Notebook-PC \
    --to=germanandre@gmx.es \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).