Re: Questions about JVM to Scala.js IR compiler (GSOC project)

Andrea Francesco Iuorio <[email protected]> Tue, 1 Mar 2016 23:55:23 -0800 (PST)
Newsgroups gmane.comp.lang.scala
Message-ID <[email protected]>
Hi, in the last few days I played a little with Scala.js building it and 
understanding the IR format and compilation. I've some new questions:

1) Am I correct to assume that the .sjsir file is structured with an 
"header" (containing things like the Scala.js version ecc. ecc.) and the 
serialization of the IR AST ? This means the GSOC project should parse the 
JVM code and generate the IR AST: then it can use the printers and 
serializers already existing. Obviously the “generate” phase is not this 
straightforward because it seems to me that the IR is much more “high 
level” than the JVM bytecode.
2) I don't really understand why the JS backend needs the .class files. At 
this phase I thought we don't have any dependency to the compiled Scala 
code and, while exploring a .sjsir file with scalajsp, it seems to me that 
all the necessary informations are already present.
3) Any suggestions about anything that I should look at ?

Il giorno lunedì 22 febbraio 2016 19:43:29 UTC+1, Andrea Francesco Iuorio 
ha scritto:
>
> Hi, I'm currently a MSc student in Computer Science. I would like to try 
> to submit a proposal for this year's GSOC under Scala, more precisely for 
> the JVM -> Scala IR Compiler (for my BSc. thesis I had to develop a JVM 
> compiler for a toy language, so I kinda know the JVM bytecode), however I 
> have some questions:
>
> 1) Do you require, as an organization, any prerequisite for apply ?
> 2) If I understand correctly, the purpose of the project is writing a 
> compiler in Scala that compile JVM bytecode (or, maybe better, a .class 
> file ?) into Scala.js IR. Correct or there is something that I've missed ?
> 3) There is some kind of documentation about the IR that I can read for 
> getting an idea about its complexity ?
>

-- 
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.