From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4AmWKvMIEWDeQQAA0tVLHw (envelope-from ) for ; Wed, 27 Jan 2021 06:32:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2CFJJvMIEWC2cgAAbx9fmQ (envelope-from ) for ; Wed, 27 Jan 2021 06:32:19 +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 31242940250 for ; Wed, 27 Jan 2021 06:32:18 +0000 (UTC) Received: from localhost ([::1]:59276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4eNE-0005q8-Vm for larch@yhetil.org; Wed, 27 Jan 2021 01:32:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46122) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4eN1-0005pw-2O for guix-patches@gnu.org; Wed, 27 Jan 2021 01:32:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60155) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4eN0-0007QY-A5 for guix-patches@gnu.org; Wed, 27 Jan 2021 01:32:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l4eN0-00068Y-6J for guix-patches@gnu.org; Wed, 27 Jan 2021 01:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46124] [PATCH] Idris 2 Resent-From: raingloom Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 27 Jan 2021 06:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46124 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46124@debbugs.gnu.org X-Debbugs-Original-To: Guix Patches Received: via spool by submit@debbugs.gnu.org id=B.161172911723314 (code B ref -1); Wed, 27 Jan 2021 06:32:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jan 2021 06:31:57 +0000 Received: from localhost ([127.0.0.1]:43468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4eMu-00063j-OD for submit@debbugs.gnu.org; Wed, 27 Jan 2021 01:31:57 -0500 Received: from lists.gnu.org ([209.51.188.17]:53426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l4eMr-000615-Mf for submit@debbugs.gnu.org; Wed, 27 Jan 2021 01:31:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4eMq-0005oT-RI for guix-patches@gnu.org; Wed, 27 Jan 2021 01:31:53 -0500 Received: from mx1.riseup.net ([198.252.153.129]:42308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4eMo-0007Fk-B7 for guix-patches@gnu.org; Wed, 27 Jan 2021 01:31:52 -0500 Received: from fews1.riseup.net (unknown [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4DQYfV0lh9zFdtV for ; Tue, 26 Jan 2021 22:31:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1611729106; bh=7zdSXsWWuB7e3t41wohuMyt05BMJmiaORR3SannEAEI=; h=Date:From:To:Subject:From; b=RytrKUKmhd25vrYExuSpWwTCCXp6/oOW+ah30ESulYLrbonWy9B5ZdZHrG+Ek5IzU 5cldwzbV1NqHH51HcG3/HaMYrzUrk9Z5F3H218LQ3TARvFveZApBwNZQPmTotJNt+K U7j7qQymALQLPgJ90mKncV5Fw3p+UbcuNgR+iJbw= X-Riseup-User-ID: 1C9A1DACFC11D9DEDC54C2F630DC1A35FF850E777CA9251D062000E093E4723A Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4DQYfT2sYMz5wFM for ; Tue, 26 Jan 2021 22:31:45 -0800 (PST) Date: Wed, 27 Jan 2021 06:43:37 +0100 From: raingloom Message-ID: <20210127064337.6a226301@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.25 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=riseup.net header.s=squak header.b=RytrKUKm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 31242940250 X-Spam-Score: -1.25 X-Migadu-Scanner: scn0.migadu.com X-TUID: gPyjW2lxPsvP Now that Idris 2 has had some proper tagged releases, I thought I'd move it from my channel to Guix proper. I've been using this package for quite a few months now and it pretty much works. REPL works, building things works. Couldn't try IDE functionality but I suppose it probably works if you can set it up in Vim. That reminds me, I still haven't packaged the Vim mode, but I don't use Vim so I don't really know its module system. ## Still TODO for the package: search paths: There are no 3rd party Idris 2 modules yet, but it should be done soon. output prefix weirdness: Output is a bit odd, having an idris2-0.3.0 directory in its root, but since this is Guix, I suppose that's not really a problem. Everything else is in its proper place, in bin, lib, and share. clang-toolchain support: Right now CC=gcc is hardcoded. Auto detection would be preferable. bootstrap: Right now it's bootstrapped from auto-generated Chez or Racket. It **can** be built with Idris 1, but it uses such on obscene amount of RAM that I refuse to consider building it that way ever again. If someone wants to incorporate that step into Guix, they are free to do so. Or we could generate it once and then freeze it and use it as an input. Just leave my poor laptop out of it, it already suffered enough. And probably leave the CI infrastructure out of it too. ## Bigger TODO: Build system. Eventually it will need one. Considering that it has multiple code generation backends, this is not trivial, as each backend uses a different existing language, the official ones (that I can remember right now) being: * Chez * Racket * Gambit * Chicken * JavaScript/Node * C It might also make sense to compile Idris 2 itself with different backends. It "officially" supports bootstrapping with Chez and Racket, but others might be possible too. Anyways, here's the patch, have fun with it, and/or suggest changes, etc!