From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Artyom V. Poptsov" Newsgroups: gmane.lisp.guile.user Subject: [ANN] Guile-SMC 0.6.2 released Date: Fri, 11 Aug 2023 12:32:56 +0300 Message-ID: <87350prkjb.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28872"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) To: Guile Users' Mailing List Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Fri Aug 11 11:33:48 2023 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 1qUOWi-0007Fr-BG for guile-user@m.gmane-mx.org; Fri, 11 Aug 2023 11:33:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUOWA-0007MC-Ny; Fri, 11 Aug 2023 05:33:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUOW9-0007M2-Dk for guile-user@gnu.org; Fri, 11 Aug 2023 05:33:13 -0400 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qUOW2-0003wS-FE for guile-user@gnu.org; Fri, 11 Aug 2023 05:33:10 -0400 Original-Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4fe0d5f719dso2900425e87.2 for ; Fri, 11 Aug 2023 02:33:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691746383; x=1692351183; h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc :subject:date:message-id:reply-to; bh=+sEwmngNrM4EVj4OgnAlzS9vRHYG1NWpmwdIG1EEyrc=; b=SlB5cpgrfmu9QYOvCfyeIRWQCmL4ELHdf7yrjAOW/1BEFQVrbgUs+oNWgCYCxQ/adJ GEyu68yl8ljfodVAOgdxAENEukurfmBSxwB/CoD7xgAa/mcEfnd8cLP23dAhgJ1kVO6K HBYqGFkEYDQ5JG59ABZ+1BF3Es2frFNl9KcmIfy8Jd2IpwsmaO3AEbXW0bnXQqY5/yd3 4cH+qjkIiloCg4qBIXIfZz9ewaiefk7QA5rUPGIYIMBC1Uegsvzp4HHHvPQHWd2AYwXF rf2Pthx/jVfqKreG8ZPYN1a3GNzNTBQ4x6hVQb8TTGZ4G/cJ951VmESxIlyHMUdme4q/ 0iTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691746383; x=1692351183; h=mime-version:user-agent:message-id:date:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+sEwmngNrM4EVj4OgnAlzS9vRHYG1NWpmwdIG1EEyrc=; b=GG9/IoIk/qEpQgIYT2r1XnY380n6QcPPLlNIBSuLSaCpHa+1JqVaIjIMfUe93nPma4 EQIHS7HOlvCXkMmRVthD455bs/wb4Jmr8Gvb/lVbZcviSvDxiHvvrNG/ljDa6tuCeVVl X8L4GSV7ufapTupIHq5fH+IVQDIvta8nAQIjzBvnVrJBOau3pGrLa0Gc0uUAZlhrA190 TOD2stLw5VHroVsfJieWGTC+9h4shHZiQ11R+6XKyRplFO/TbtMPp7POwAjeL/uQmh/2 m6PJQxMCjWs90FNE6xe8VjM9iQrDtQHqUa9eV+w1d7f6nqEj2wlfVMfX30vACGn+NWWc Xh+w== X-Gm-Message-State: AOJu0YzWFF2mHsQ57HgqzYpBJMNN8EEl551khbvRH2elSIhQOrbmNJTz v0h2k5P5zKh2F6BUPcF0H9nC9nQpfFA= X-Google-Smtp-Source: AGHT+IERT9G7Ac+UppgN0yFjUVJAh4Eiq2PKrXS4BrUPeYyW9v5YBA3tnEX6UeUCOyfuI/rJTfYZrg== X-Received: by 2002:a05:6512:3414:b0:4f8:6d53:a68f with SMTP id i20-20020a056512341400b004f86d53a68fmr1087336lfr.64.1691746382910; Fri, 11 Aug 2023 02:33:02 -0700 (PDT) Original-Received: from elephant ([5.166.203.208]) by smtp.gmail.com with ESMTPSA id b17-20020ac25631000000b004fe4a4c61f0sm650194lff.191.2023.08.11.02.33.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 02:33:02 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=poptsov.artyom@gmail.com; helo=mail-lf1-x134.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, 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-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-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19146 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello Guilers, I'm pleased to announce Guile State Machine Compiler (Guile-SMC), version 0.6.2: https://github.com/artyom-poptsov/guile-smc/releases/tag/v0.6.2 This release fixes some new-found bugs, namely in the state-machine profiler. Also now it's possible to specify "pre-action" and "post-action" procedures in PlantUML "legend" block. Please see the list of notable changes below. Guile-SMC 0.6.2 is backward-compatible with 0.6.0 and 0.6.1. * What is Guile-SMC? Guile-SMC is a state machine compiler that allows to describe finite state machines (FSMs) in Scheme in terms of transition tables. It is capable to generate such transition tables from a PlantUML state diagrams. [1] Some of the key features: =2D A transition table can be verified and checked for dead-ends and infinite loops. =2D Guile-SMC FSMs gather statistics when they run (steps/transitions); the statistics can be used can be used to compare/analyze FSMs.. =2D There's an FSM profiler that runs on FSMs trace logs. The profiler output shows how much time the FSM spends in each state. This can be useful for optimization. =2D The state machine compiler supports three "targets" for compilation: a regular "guile" target where the output FSM depends on Guile-SMC; "guile-standalone" target that produce an FSM that does not depend on Guile-SMC. =2D Guile-SMC allows to run a FSM on-the-fly with a single "smc run" command -- see the docs and the examples for more information. =2D Common context code for parsers that work with characters or bytes. This includes special data structures to provide memory for FSMs (although it is not required to use them; FSMs can use custom procedures and data structures.) Guile-SMC comes with a Scheme program called 'smc' -- a state machine compiler itself. It produces a Scheme code for an FSM from the PlantUML format. This tool is meant to be called on a PlantUML file when a program with a FSM is being built (for example, from a Makefile.) I'm hoping that it will ease the burden of writing format parsers and other useful GNU Guile libraries for the community. * User-visible changes =2D-8<---------------cut here---------------start------------->8--- * Version 0.6.2 (2023-08-11) ** Bugfixes *** =3D(smc context functional char)=3D: =3Dpre-action=3D now always return= s context The procedure would return an undefined value when the input character is an EOF object. Now =3Dpre-action=3D procedure always returns a context instan= ce. Also now the procedure handles cases when the input character is equal to =3D#f=3D. *** =3D(smc trace-context)=3D: Fix timestamp calculation Procedures from the module now ensure that timestamps are always have posit= ive values. When a negative value is detected then an error is issued. *** =3D(smc cli command-profile)=3D: Fix time calculation The profiler would fail to calculate correct time ranges. Now the time is calculated properly. *** =3D(smc context oop generic)=3D: Add missing =3D(smc core log)=3D import ** Allow to set the FSM pre- and post-action in a PlantUML "legend" block Guile-SMC now allows to set the pre/post actions for an FSM in the PlantUML= "legend" block. #+BEGIN_EXAMPLE plantuml legend pre-action: custom-pre-action post-action: custom-post-action endlegend #+END_EXAMPLE ** Add missing procedures for the =3D=3D to get/set pre/post actions Now the =3D(smc fsm)=3D module provides procedures to get and set pre- and = post-actions. ** =3D(smc core log)=3D now registers the default logger =3D(smc core log)=3D now registers the default logger under the name "guile= -smc". ** =3D(smc core log)=3D: New procedure: =3Dsmc-log-default-logger=3D This procedure allows to get the default logger instance. ** Update the documentation =2D-8<---------------cut here---------------end--------------->8--- * Usage examples =2D Guile-INI -- INI[2] format parser: https://github.com/artyom-poptsov/guile-ics =2D Guile-ICS -- iCalendar (RFC 5545) and vCard (RFC 6350) parser: https://github.com/artyom-poptsov/guile-ics =2D Guile-PNG -- Pure Scheme Portable Network Graphics (PNG, RFC 2083) library: https://github.com/artyom-poptsov/guile-png Happy hacking, =2D Artyom References: 1: https://plantuml.com/state-diagram 2: https://en.wikipedia.org/wiki/INI_file =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFNBAEBCgA3FiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmTWAEgZHHBvcHRzb3Yu YXJ0eW9tQGdtYWlsLmNvbQAKCRDpxaLZCJigLw5FB/4yJsbLDAidVuWn6828LwVw GMVWVWKPZQLdMyaEtPJTsnrFd11PW+s+XbiC4oxqKyssb/a2GMlhPLbDQ/SR45uy nUjmczkQLIj596RjpycFRcbgDc7cnPDQLWPP5S8NeQ1RZfmB1BduR7F2RDohKFiZ 6P6g50Z4AixNyl8Shj5+tZTJLyfByEK9mS1eyIYgeXSArlNghLUExleikLOtk4j9 vZc9B60k3qfotjYdBD5xyci+JB3IBbuDwp2HNTb7SnjOeJ10pOPTd3PNwsbSffeK IOhAByVGACIERDSvugWzRr9x5AwdipC5MHy3gDTPYmZSsNx6n2RgogxYuxWqRLG0 =UwHW -----END PGP SIGNATURE----- --=-=-=--