El 18/5/21 a las 11:44, Ricardo Wurmus escribió:
Leo Prikler <leo.prik...@student.tugraz.at> writes:
Hi Julien,
Am Dienstag, den 18.05.2021, 01:01 +0200 schrieb Julien Lepiller:
Hi Guix!
I have the attached file that build Scala, although it's not
bootstrapped at all. It contains %binary-scala, a few dependencies of
Scala we haven't packaged yet, and the final scala, built from
%binary-scala, without sbt (which requires Scala too).
Since I've tried and failed to bootstrap Scala for so long, I think
it's time to give up. I can't always create miracles.
Some points relevant to bootstrapping:
- The last version, that ships "scalai" written in Java seems to be
v1.4.0+4. Perhaps one can use scalai to bootstrap scalac within it.
- The last version, that does not "require" sbt is 2.11.x,
though with your workaround we can also build later versions.
We tried building a clean bootstrap chain for Scala for years. Back
then I went down the rabbit hole and found that early scalac is
written in Pizza; but it turned out that Pizza is written in Pizza and
is released under the old Artistic License, which is considered non-free.
https://logs.guix.gnu.org/guix/2018-04-08.log#230002
https://logs.guix.gnu.org/guix/2018-04-09.log#073740
I pointed a branch at an old Scala commit that contains the old Socos
compiler source, which ostensibly are written in Java, but actually
are not:
https://github.com/rekado/scala-bootstrap/tree/bootstrap
This is at around version 1.4.0.4, as you wrote above.
Since the old days Scala Native has grown considerably, and perhaps we
can reuse some of its native libraries. I’m not too hopeful, because
the bulk of it is still written in Scala, obviously, but there are
parts that are written in C / C++, which might come in handy.
https://github.com/scala-native/scala-native
Hi all! My name is Daniel, I'm from Spain, this is my first contribution
to Guix (well, to a discussion, actually)
I've seen this thread about Scala, and I would like to know more about
the progress in bootstrapping in Scala. Scala (2) is my main language
right now, but I want to try other purest options, Lisp being one of
them, and also want to transition to Guix and contributing packages,
eventually. I love what you, people, built.
Probably you know about this, but here is a link to an IRC channel about
this: https://www.bootstrappable.org/projects/jvm-languages.html
It would be nice to have an exact dependency graph so that we can easily
see the dead ends, and find the the most cost-effective solution.
Probably translate old Scala code to a similar, already bootstrapped
language would be a better option than building a compiler for Scala...
Thank you!
Dani.