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: GuileScript 0.2.0 released Date: Sun, 30 Jan 2022 00:40:21 -0800 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29044"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sun Jan 30 09:40:58 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 1nE5lZ-0007Ni-KV for guile-user@m.gmane-mx.org; Sun, 30 Jan 2022 09:40:57 +0100 Original-Received: from localhost ([::1]:39472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nE5lX-0001Ju-Of for guile-user@m.gmane-mx.org; Sun, 30 Jan 2022 03:40:55 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nE5lE-0001Io-Eo for guile-user@gnu.org; Sun, 30 Jan 2022 03:40:36 -0500 Original-Received: from [2607:f8b0:4864:20::102e] (port=52040 helo=mail-pj1-x102e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nE5lC-0007I4-Tl for guile-user@gnu.org; Sun, 30 Jan 2022 03:40:36 -0500 Original-Received: by mail-pj1-x102e.google.com with SMTP id q63so10742026pja.1 for ; Sun, 30 Jan 2022 00:40:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=RWx1fuCGs2G6wUZEbNPKnXs1PORkQN52IZhthWw+6lQ=; b=cMzppEb5N+JWWNgbBxtMOSXiT4W7ycl0CTbnxeJEZe5g74Bap3uVDl8wYQD2qzYasz V0LaQ0oCIDR2EpgWf8Z7HfVb3udP+q/BntlSezitCdd1FvX3Dlx0tayPdv+Ow61BjYvP o5VKVd/4QHg/znGaK4hti2NjQx6lBkoYJc3jVl2grgh2PzyL8pbib9CAH4CD+X/EmdQD EWmmgrWQwKX6rgKWCa8WZ7GSDdICIPL+PlLlEF7nnBUVKM9XfHnR17UPMPMyFMRYyCme ZwbsYN2gfLaBKpZZS+tZurPDp4Ax5OB/+uKFgju1TUOYwMAqFJkCTmOD+JEPcfJU8tL2 NULQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RWx1fuCGs2G6wUZEbNPKnXs1PORkQN52IZhthWw+6lQ=; b=D7i2MefbZkD0q5tEeXbtYZlPycwkZxTV6ACcnI1lqDb1Rt4ele7ySFq+WeivB5sJvD +3VgiWd7OpIxNMTp1Pz3T1vLZX2voOD86gDMAYpLkxGaFceBI6Jvkj6bCzTz5hlz1QHh 4HCHQxy2Y9jKZuICYzFH0xpKtPZC61R9NMtrOsNZW7S+X+dmK8Q0OcaS3cUztE9j0ESn BZKXcnWK8NedNVEdqufSodGNpGBGCZvyhtQmYSF59+iPQ2G9lwMG4RVPGJP+UkX5BhLl OExRR1pmY6n1PUUSZa3AjI6CGGRYXSe1J+Qp8aBq8xtPThJYOtk6LqKy3vWt/gfnnnLI YtXg== X-Gm-Message-State: AOAM532nUOIq/RgBTLyCYT9kFCNvv0gRKWf/5X9Mkti5ueR2ty9MgNmW d2i83DA0/+hXH4CitTZ8+moTO2sqrjcxII3izDdPnMQoeHA= X-Google-Smtp-Source: ABdhPJzT4CG+eOMHQDM2oImmTIit/H2gjRGb9lPLoKD1RWZjG7J9tiBtc4RmR5fgVj5k3ZF97SlrLD+KHV2bNdTacr8= X-Received: by 2002:a17:902:ba84:: with SMTP id k4mr15798662pls.142.1643532032599; Sun, 30 Jan 2022 00:40:32 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::102e (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::102e; envelope-from=aconchillo@gmail.com; helo=mail-pj1-x102e.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, T_SCC_BODY_TEXT_LINE=-0.01 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:17976 Archived-At: Hi, I'm pleased to announce GuileScript 0.2.0. This version supports macros and changes a few function names to make them more schemy (similar to BiwaScheme). Because of how macro expansion works in Guile (it's done while producing Tree-IL), GuileScript gets macro support for free (I just needed to avoid printing the macro definitions to JavaScript). https://github.com/aconchillo/guilescript So, this: (define-syntax gs-when (syntax-rules () ((gs-when condition exp ...) (if condition (begin exp ...))))) (gs-when #t (console-log "hey ho") (console-log "let's go")) converts to this: (function () { if (true) { console.log("hey ho"); return console.log("let's go"); } })(); Hopefully I have time to add more features soon. Happy hacking! Aleix