From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id /LuPBQyio2CfWwEAgWs5BA (envelope-from ) for ; Tue, 18 May 2021 13:16:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kO57AAyio2B6SAAAbx9fmQ (envelope-from ) for ; Tue, 18 May 2021 11:16:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 62CB510359 for ; Tue, 18 May 2021 13:16:27 +0200 (CEST) Received: from localhost ([::1]:46266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lixi6-0006Yx-G0 for larch@yhetil.org; Tue, 18 May 2021 07:16:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lixhs-0006W2-32 for guix-devel@gnu.org; Tue, 18 May 2021 07:16:12 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:54984) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lixhp-0005M4-Hp for guix-devel@gnu.org; Tue, 18 May 2021 07:16:11 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e8c58bf2; Tue, 18 May 2021 11:16:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:cc:from:message-id; s= dkim; bh=Qa95ESCmWxbHliqF9W8zxB5boKXOxbZMWBRDyrEkzEs=; b=B0uPs1q Mekk7kyk7smZNHuuTA+zQ/UHyN7IToStf8UamLgYB+AU3qhE4biu605UQosJtOnq kMfPoDDh6kr/QeDfhRxLMgY5X63NrCVEnlbf7IUZ9Dl+/idBHzN/kC+lIpBMWBAx 661m1AGAmKjq2gTtMZhOnoYDEGk029mbnt8dqjQgzYmvv7oqeZAi1M6SzHXbPcTJ g0XXqh3FYvsrCkgaddXVfxcoaLOUwpeZU2EY9ZLTn3vwigWriL5b6cu7aV+sacZQ eJF4664iWv3zmPvTCxz7n6WyIi+FHQhgiWaF9TFHunCM8QWIxBjPjpnX5BTvzPXm IbKoLfaKnFCd6Yw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id fc3f845d (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 18 May 2021 11:16:01 +0000 (UTC) Date: Tue, 18 May 2021 07:15:56 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <875yzgjrzp.fsf@elephly.net> References: <20210518010111.7eea541a@tachikoma.lepiller.eu> <875yzgjrzp.fsf@elephly.net> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----66LXA3J6U3KG0PORK1044WAERF3CF2" Content-Transfer-Encoding: 7bit Subject: Re: Scala package To: Ricardo Wurmus , Leo Prikler From: Julien Lepiller Message-ID: Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1621336587; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=GJftibHYO8y7qOYqzhr/zCPPYXHWQqtcq9zyo9He94w=; b=qhAevXgZb9S08Qs/v4SH7yXPqbhhotfOQU40OcanKg/yomQCLSwvH/N9Mzhln+Q3yfy7Uz WNlidesjgw3ePyJUwY3ZfKHrRu5jc2TkWcBj0oxJ8oljQm8yX8bB776tlAklcBz9Yj+7oF l9gE40TgMUHpSSpRtJc5D8CA+cAwGL51ml9wV5gWeopg2yffQLRRsPHfnJQFNBVL+p1jnN npCZEL2iT7h+es1Cd3q2dzMHfiyghlZ08IB7k9ac7D2KQUw0HMNVOXTBogKwjjI4Z/0O4m AsKxwoDwbz/GHQBkC21Q0aXXk+xXX4wtRW8ow6c2TzSkKV7qUfWSD0SxS2ElUg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621336587; a=rsa-sha256; cv=none; b=uVDWrTxJYW/vRYc6I6EzLbV9zsFZFOHs+xRJvnghXHdWTGd2SWLOaUMYmrj05p7Cy8Izta y2++4mZERQ7eNCQUgo4IAQL/2EEAf4wc71/ooNKfx6G+HdptY3h+Xc2r24CF0FVsFHZxb5 z0FhHDN/dgymjs1x9MZTM1Dq49DfYKB2y7d0xRJ0YfRkzCHTJCxTvWlR6mnm7gq3ZwdBBv ydEWPzDPjMtEzAVmjYq/zKLyHVtNMUGmVTyw3MP15LmspDrSho9wPvzIAH2+SGY8RUAeps LQ+HrgojEyKcjp2gtoZuVil3GfRaa8sg5q8XG3bVsWGhIfXkm+AVb0fAASVXnw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="B0uPs1q "; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -1.34 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b="B0uPs1q "; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 62CB510359 X-Spam-Score: -1.34 X-Migadu-Scanner: scn0.migadu.com X-TUID: XjCFI8QOuFDf ------66LXA3J6U3KG0PORK1044WAERF3CF2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable The old scala is written in a superset of java5, that requires PiCo to buil= d, and PiCo was built with JaCo=2E They were developped at EPFL, and you ca= n find a binary for it, but no source: http://zenger=2Eorg/jaco/ Apparently, JaCo was later reimplemented in Keris, whose source code is av= ailable=2E However, KeCo (the Keris compiler) is written in Keris=2E It is not even clear that building an old version of scala is going to wor= k, as the language evolved a lot since then=2E I think the best way to bootstrap would be to reimplement Scala in another= language=2E I tried that too, but even the parser is crazy=2E Le 18 mai 2021 05:44:42 GMT-04:00, Ricardo Wurmus a= =C3=A9crit : > >Leo Prikler writes: > >> Hi Julien, >> >> Am Dienstag, den 18=2E05=2E2021, 01:01 +0200 schrieb Julien=20 >> Lepiller: >>> Hi Guix! >>>=20 >>> I have the attached file that build Scala, although it's not >>> bootstrapped at all=2E It contains %binary-scala, a few=20 >>> dependencies of >>> Scala we haven't packaged yet, and the final scala, built from >>> %binary-scala, without sbt (which requires Scala too)=2E >>>=20 >>> Since I've tried and failed to bootstrap Scala for so long, I=20 >>> think >>> it's time to give up=2E I can't always create miracles=2E >> >> Some points relevant to bootstrapping: >> - The last version, that ships "scalai" written in Java seems to=20 >> be=20 >> v1=2E4=2E0+4=2E Perhaps one can use scalai to bootstrap scalac=20 >> within it=2E >> - The last version, that does not "require" sbt is 2=2E11=2Ex, >> though with your workaround we can also build later versions=2E > >We tried building a clean bootstrap chain for Scala for years=2E=20 >Back then I went down the rabbit hole and found that early scalac=20 >is written in Pizza; but it turned out that Pizza is written in=20 >Pizza and is released under the old Artistic License, which is=20 >considered non-free=2E > > https://logs=2Eguix=2Egnu=2Eorg/guix/2018-04-08=2Elog#230002 > https://logs=2Eguix=2Egnu=2Eorg/guix/2018-04-09=2Elog#073740 > >I pointed a branch at an old Scala commit that contains the old=20 >Socos compiler source, which ostensibly are written in Java, but=20 >actually are not: > > https://github=2Ecom/rekado/scala-bootstrap/tree/bootstrap > >This is at around version 1=2E4=2E0=2E4, as you wrote above=2E > >Since the old days Scala Native has grown considerably, and=20 >perhaps we can reuse some of its native libraries=2E I=E2=80=99m not too= =20 >hopeful, because the bulk of it is still written in Scala,=20 >obviously, but there are parts that are written in C / C++, which=20 >might come in handy=2E > > https://github=2Ecom/scala-native/scala-native > >--=20 >Ricardo ------66LXA3J6U3KG0PORK1044WAERF3CF2 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable The old scala is written in a superset of java5, t= hat requires PiCo to build, and PiCo was built with JaCo=2E They were devel= opped at EPFL, and you can find a binary for it, but no source: http://zenger=2Eorg/jaco/

Apparently,= JaCo was later reimplemented in Keris, whose source code is available=2E H= owever, KeCo (the Keris compiler) is written in Keris=2E

It is not e= ven clear that building an old version of scala is going to work, as the la= nguage evolved a lot since then=2E

I think the best way to bootstrap= would be to reimplement Scala in another language=2E I tried that too, but= even the parser is crazy=2E

Le 18 mai 20= 21 05:44:42 GMT-04:00, Ricardo Wurmus <rekado@elephly=2Enet> a =C3=A9= crit :

Leo Prikler <leo=2Eprikler@student=2Etugraz= =2Eat> writes:

= Hi Julien,

Am Dienstag, den 18=2E05=2E2021, 01:01 +0200 schrieb Jul= ien
Lepiller:
Hi G= uix!

I have the attached file that build Scala, although it's notbootstrapped at all=2E It contains %binary-scala, a few
dependencies o= f
Scala we haven't packaged yet, and the final scala, built from
%bin= ary-scala, without sbt (which requires Scala too)=2E

Since I've trie= d and failed to bootstrap Scala for so long, I
think
it's time to gi= ve up=2E I can't always create miracles=2E

Some points= relevant to bootstrapping:
- The last version, that ships "scalai" wri= tten in Java seems to
be
v1=2E4=2E0+4=2E Perhaps one can use s= calai to bootstrap scalac
within it=2E
- The last version, that = does not "require" sbt is 2=2E11=2Ex,
though with your workaround we = can also build later versions=2E

We tried building a cl= ean bootstrap chain for Scala for years=2E
Back then I went down the ra= bbit hole and found that early scalac
is written in Pizza; but it turne= d out that Pizza is written in
Pizza and is released under the old Arti= stic License, which is
considered non-free=2E

https://logs=2Eg= uix=2Egnu=2Eorg/guix/2018-04-08=2Elog#230002
https://logs=2Eguix= =2Egnu=2Eorg/guix/2018-04-09=2Elog#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://gi= thub=2Ecom/rekado/scala-bootstrap/tree/bootstrap

This is at arou= nd version 1=2E4=2E0=2E4, as you wrote above=2E

Since the old days S= cala Native has grown considerably, and
perhaps we can reuse some of it= s native libraries=2E I=E2=80=99m 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=2E

https://github=2Ecom/scala-= native/scala-native
------66LXA3J6U3KG0PORK1044WAERF3CF2--