From v|tekj @end|ng |rom |c|oud@com  Tue Mar  5 21:43:34 2019
From: v|tekj @end|ng |rom |c|oud@com (jan Vitek)
Date: Tue, 5 Mar 2019 15:43:34 -0500
Subject: [Rd] 
 Should CRAN accept packages with non-R code that transcompiles
 into R code?
In-Reply-To: <CAB8pepyoR_UdCq2djH4FSaGrJM0VP1+0ZzDTK8rCDfffyMr4=w@mail.gmail.com>
References: <CAB8pepx3d3faRfPTDo97ebOKA1f4v=GO6_dbL7QC2DtkqZV0=w@mail.gmail.com>
 <34031A85-4458-4DA4-89D7-B30EEC94CED7@icloud.com>
 <CAB8pepyoR_UdCq2djH4FSaGrJM0VP1+0ZzDTK8rCDfffyMr4=w@mail.gmail.com>
Message-ID: <0FCB9AF8-2907-433A-900A-0B7C6479DB72@icloud.com>

As long as the semantic models are close, then such a translation is
possible and not even very difficult. Syntactic sugar is cheap. 
The challenge that you will run into is that there is a temptation
to change the semantics when designing a new language. R has many
warts that, if one were to start today, one could imagine removing.
But any change to semantics is really hard to implement by 
source to source translation. My guess is that before you know it
you will have a very different language that runs extremely slowly.




Jan Vitek, Professor 
Computer Science, 
Northeastern University

> On Mar 5, 2019, at 3:34 PM, Abs Spurdle <spurdle.a at gmail.com> wrote:
> 
> On Tue, Mar 5, 2019 at 12:49 PM jan Vitek <vitekj at icloud.com> wrote:
> 
>> Everything is possible. One can compile C++ into JavaScript.
>> 
>> But why?
>> 
>> 
> I would like to support Java style syntax for class definitions.
> (Then it could transcompile into either S3 or S4).
> 
> And possibly change some other things while I'm at it.
> Maybe, integers (rather than numerics) as defaults, and * for standard
> matrix multiplication (and ** for R style vectorized multiplication).
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-devel&amp;data=02%7C01%7Cj.vitek%40northeastern.edu%7Ca94a44aafef146067cc208d6a1aa5dd8%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C636874150443008540&amp;sdata=%2B%2Bxg06eGYgC64vfJIy%2BJeBYKZvCD1LiK5HIGFN2XrP4%3D&amp;reserved=0


	[[alternative HTML version deleted]]



[Rd] Should CRAN accept packages with non-R code that transcompiles into R code?
jan Vitek