From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?= Newsgroups: gmane.lisp.guile.user Subject: Re: GuileScript 0.0.0 released Date: Tue, 18 Jan 2022 11:33:45 -0800 Message-ID: References: <87czkp9zno.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: "Dr. Arne Babenhauserheide" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Jan 18 20:43:29 2022 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9uO8-0001ys-A3 for guile-user@m.gmane-mx.org; Tue, 18 Jan 2022 20:43:28 +0100 Original-Received: from localhost ([::1]:39718 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9uO7-00061c-8D for guile-user@m.gmane-mx.org; Tue, 18 Jan 2022 14:43:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9uF0-00010M-39 for guile-user@gnu.org; Tue, 18 Jan 2022 14:34:04 -0500 Original-Received: from [2607:f8b0:4864:20::1035] (port=34321 helo=mail-pj1-x1035.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9uEw-0001F0-51 for guile-user@gnu.org; Tue, 18 Jan 2022 14:33:59 -0500 Original-Received: by mail-pj1-x1035.google.com with SMTP id d10-20020a17090a498a00b001b33bc40d01so1739459pjh.1 for ; Tue, 18 Jan 2022 11:33:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Z4B5JlsbkdNBVURjAVNmcQAn7SxSyRZEPLwwAK8VBaQ=; b=K+OGCgZ2BjYf3cPBKTnAuJjf+OanuHYHp7plEiACsBjihAJXCl5GWoFCs2yI910v5D LCV6FPSNkEGosrdO3haNshq9g5+UJ+rXEfXHGuKDAspheS+F35P/6f0i26t+L4ZFf4vR Q0ZEm90Po70HbOHctUDP+Y9k9gkCJ5VxyLdUz38iaCdpEkq0Ur0RJlzfy3Ro5jxZiLtM Dgy4IPfKinF6bIkzZN6tDX1z0nWE/DS1tRyXWiW0cwoGMVn93d5H3MJSmTUptsX9fi82 9aWFdLEtu29JdxUFaejX2r52mXfoOodiGiKciUhd/rYbHcRxX6eBcZ6crvm/gjzOi7Ac 2aKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Z4B5JlsbkdNBVURjAVNmcQAn7SxSyRZEPLwwAK8VBaQ=; b=i6BYs1w8b8K10TEGxS8jL1vZUR0Hmfq0uudGLxiJkjF5v6C1SxNrzdFSt87VeDQ42A LaY7MXEpXw+YbhpxsATBfNz+3voNHCXYiN9vStQ9rJw/REyaH84+Fo1p33O7iJVTuu29 b90yHLnyw5NiVQ0mOiRMVxMBJRs7e7YM5EXuMtDvJhf7+Jmk3nQL0nUa31HUrazqr7aR ay/dUTmr6MaTVaD/kravXUJcZ6zeqO5JbS/M8zgS7WGu0oWT+bqFV3RkEVHhiNTXZZ9L QcjRhDr8lpMzlUSXHgof2Z1EDlEkz6WjDUDBVGxCApIGR9Va4vFDAEsXW48Ex4z4QFPh sH1g== X-Gm-Message-State: AOAM532oG1ZgoTTKjAWlnloJ1/GMe9VITdp31A+ffFDDKMi81ylrWgyQ b2GobNY/28hpn+CHGG0t+1F0YnXDPhDy3eihIi4= X-Google-Smtp-Source: ABdhPJytFCMnyyKjgcBsI+kMaLmNgQc6AeGkbNSUttVec4DXTL4YyXsnjQjky2NeQ34UxdmdxMZGTk9EB5H8080gPg0= X-Received: by 2002:a17:902:b110:b0:14a:197:dfea with SMTP id q16-20020a170902b11000b0014a0197dfeamr27829017plr.142.1642534436456; Tue, 18 Jan 2022 11:33:56 -0800 (PST) In-Reply-To: <87czkp9zno.fsf@web.de> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1035 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=aconchillo@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17970 Archived-At: On Tue, Jan 18, 2022 at 1:11 AM Dr. Arne Babenhauserheide wrote: > > Aleix Conchillo Flaqu=C3=A9 writes: > > > I'm excited to announce GuileScript 0.0.0. GuileScript aims to be a Gui= le > > to JavaScript compiler. It currently doesn't do much but there are some > > working examples like fibonacci, binary search and reversing a vector. > =E2=80=A6 > > https://github.com/aconchillo/guilescript > > > > Comments, suggestions, patches and full rewrites are welcomed. :-) > > That=E2=80=99s really cool! > > Thank you! > I currently use biwascheme=C2=B9 for simple tools,=C2=B2 and it would be = great to > be able to move from it to Guile, because biwascheme breaks Scheme=E2=80= =99s > scoping. > May be one day you can move to GuileScript :-D. > It might be pretty hard to really get this right, though. There=E2=80=99s= some > existing work for the compile with the full runtime: > https://lists.gnu.org/archive/html/guile-devel/2021-10/msg00018.html > > There are many things I haven't even thought about yet, like multiple return values. Basically all I did was based on my absolute ignorance of where I was getting into, I guess that's how some things start :-). I took a look at Guile's Tree-IL and it looked simple enough for me to do something with it. I have no idea how far Tree-IL will take me though, I don't know enough yet. I considered CPS, but opened the Tree-IL -> CPS compiler and it was too much for me to understand as I just wanted to get something working quickly. I also thought about also integration Google's Closure Compiler which will hopefully optimize the generated code. Also, the plan might just be to have a subset of Guile working. I might also try to mimic ClojureScript evolution, that's actually how I created Guilescript. I first checked Tree-IL then took a look at ClojureScript first commit and then created something similar. I don't know where they went next :-). Thank you for your feedback! Aleix