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 +OdfH9rko2DqbgAAgWs5BA (envelope-from ) for ; Tue, 18 May 2021 18:01:30 +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 8BEQG9rko2B8EAAAbx9fmQ (envelope-from ) for ; Tue, 18 May 2021 16:01:30 +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 DE7F115C27 for ; Tue, 18 May 2021 18:01:29 +0200 (CEST) Received: from localhost ([::1]:58392 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lj29w-0006BJ-Nx for larch@yhetil.org; Tue, 18 May 2021 12:01:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj0Gy-0004Ik-En for guix-devel@gnu.org; Tue, 18 May 2021 10:00:36 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:52827) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lj0Gt-0001w1-At for guix-devel@gnu.org; Tue, 18 May 2021 10:00:36 -0400 Received: by mail-wm1-x333.google.com with SMTP id z130so5492915wmg.2 for ; Tue, 18 May 2021 07:00:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=ocZR/GOw8QJugaz3bgVY+33f/HypPvn0ArDkyeqrFJU=; b=IRDbQzMBFmFI5bCL2lucgV1WPEzB/QvkQRYz//ADBgyriBp4nEbg/4Zv2OLlIYfrW5 jQnc4n+aacliQPS2NVMfDu0oH+Qy3Y8iCvdPAumIYx7hqBW5A0ox4t9s+agC6Y593N3s qKI6lGCzy5zfn+CvgUVBlyahzZTvafKrALAsmDoyCpRlFT733n1P/yVyKqUhKAA/kk2K V/BwZ/ZCWqdtd+cCEA/A87aMOxQzd6CcakJVQ+tfzfWQpt1Fqtcy3w8vp4icFAyiykMQ 8LOsCp6qjy1bykBeoA9yTZB1DymNCnMqAQGN1QDsWJ/fGW9RVDIGnHnt1TEeBD8/jjpE F64Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ocZR/GOw8QJugaz3bgVY+33f/HypPvn0ArDkyeqrFJU=; b=HVYAWbp1orfDRrtJRy3Rscw4xvMx6300H54ChDdi5BMC4/18Ex2YVokPey5nqOxVRS iAH3Qri7r48hq24SNo/N9Gzoy0tgrPJE3XPIk0o4cQd2UIg3D0j7bprZ2BQHCNRC2iY5 N7YElQ7gCFnWJvwhQhpfpO14XmCQa15tbBIXX3d8mSh9afKoxy2rms5VsefabIJVA+1E /VC3NQ+8F61XS33HXr4/0Sv/R+fZtN9h3aSQazEaN3sN2ccgUEcnYwb9mX8GWOzFhd/w CaiC5GtAqMgTYKMiIiq65nqL3yXbg/sHEMUzYxmI8IafBcKSItKGXXwkiH1EGviZ1oem P+xg== X-Gm-Message-State: AOAM532mbidHVgOHDIqN/oWhDFongriASgU9LTBw9U5wuLMH/4PbKVZz SeH57yqwUi/LtWx28qy+LPXpTHazRIi7Bg== X-Google-Smtp-Source: ABdhPJw8oyLq8Y1PI99Sf+ZKvpezVyzqlUjiBcBPJy2yfymZPJO+F0qsm+Cw7FvlwM5UCpNtUMTRSg== X-Received: by 2002:a7b:ca58:: with SMTP id m24mr1430768wml.151.1621346428911; Tue, 18 May 2021 07:00:28 -0700 (PDT) Received: from [192.168.0.13] ([37.223.232.139]) by smtp.gmail.com with ESMTPSA id f1sm24230605wrr.63.2021.05.18.07.00.28 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 18 May 2021 07:00:28 -0700 (PDT) Subject: Re: Scala package To: guix-devel@gnu.org References: <20210518010111.7eea541a@tachikoma.lepiller.eu> <875yzgjrzp.fsf@elephly.net> From: Daniel Trujillo Viedma Message-ID: Date: Tue, 18 May 2021 16:00:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <875yzgjrzp.fsf@elephly.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=dtviedma@gmail.com; helo=mail-wm1-x333.google.com 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, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 18 May 2021 11:56:02 -0400 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: , 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=1621353690; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=ocZR/GOw8QJugaz3bgVY+33f/HypPvn0ArDkyeqrFJU=; b=Ha70+GfrIY+c3piwtFPzz1QDPS+HRU5JRYy6z4zbQIx9PkrSCw8O6lnf4q7VXW+JX5vsCc sJEII6j8qKbrykzdnuJH5LtLzQBT32pOasIMIm+c8HINvDOkfjyiEjUvNoPpzl7Wc+GCRg b2WnCAgZVv47DSnX2tdEx7VZ8Hj7jwVw7s7olmZEoP9aoIlIkuVLY6YVarqyOxZ//iuG1o wwuuDcR3FsUitu88DZIISF8/S+TA6udzi/l8fxRnoZQbZeeoe76t4dP354CsxN8B3EgLEN T5EyTEOfm5oqHEc2WM7BukhVq4Z1eLUbswr0qxC21UPdHeYmTIQcEF4/LNG+jQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1621353690; a=rsa-sha256; cv=none; b=i5BFBIH1uXHZ46mYg1KnILTe+b4ysl8RdBKYkEQsMBCOnSEH7dQO8lD+Eh+eXSxnfkGdVQ 8a89DTC+lMa2/Gv08FTAqvLSmbx5KaxKHDpWk6Fsj6Y7BtEFXpMYE447AUsmAy1I44SdxN qY22JEGsRHBvI36nOfvjgg+PuuzDcfhVm3GYHnA1e2KgsRfV+X1Z5HouJVxicGzQx/XW+I cqLSp7r2IIP1nSmQRQocLiICBk6lWSIHaf/wjWpR/3hz6TgOfV1JE8dQ8M3cTyUno9qAAq t/gChc32SfzMIH4Z53LndQsdkHZOKytxyjbjTuLlaR+a5Blf9BqHKyZGKPdTNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=IRDbQzMB; 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.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=IRDbQzMB; dmarc=pass (policy=none) header.from=gmail.com; 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: DE7F115C27 X-Spam-Score: -1.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: c8KzbK6/ILXr El 18/5/21 a las 11:44, Ricardo Wurmus escribió: > > Leo Prikler 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.