From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Zhbanov Newsgroups: gmane.lisp.guile.user Subject: Lepton EDA 1.9.14 announce and misc questions Date: Tue, 20 Apr 2021 12:29:54 +0300 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="35525"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Apr 20 11:32:41 2021 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 1lYmkK-00095w-Ez for guile-user@m.gmane-mx.org; Tue, 20 Apr 2021 11:32:40 +0200 Original-Received: from localhost ([::1]:51412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYmkJ-0008Ry-Ho for guile-user@m.gmane-mx.org; Tue, 20 Apr 2021 05:32:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYmhj-00071b-Ij for guile-user@gnu.org; Tue, 20 Apr 2021 05:29:59 -0400 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:41740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYmhh-0005Zo-J4 for guile-user@gnu.org; Tue, 20 Apr 2021 05:29:59 -0400 Original-Received: by mail-lf1-x130.google.com with SMTP id f41so37065502lfv.8 for ; Tue, 20 Apr 2021 02:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:subject:message-id:mail-followup-to:mime-version :content-disposition; bh=GFsAMkjy28jv8a3+yICQfy3LWICj91e4TvEqC6WsxJI=; b=Iy6i0Uj3BNnYggGqDXKYQXAC+8xui4AlkdfOiCIHM/+Z2w3vaLkYW6e3RrD83ixB8b XQqdDRpcom697tvshvUv3jZiJ9UZ9h2/W0suhL1sVRmikx76S9k3lvUbO6OJWZfp/LeA tm5gWG8T+ING8BqH1tTNJ+8EK3R8CfRys6DXdYDqd0Wz+aYZituPMntwC1/tl8Pruas+ fT2TspvHwf0MViT/N2TIjE3To+ho0ey5RpsmCFdumWvjmA2w1D5KNNH7jtWONNEidSBt DsnSET3jOB5Eqk7rTjaaOmj04Hdvk8L3LVTTa1ueVI7HNYlIl01HmCv/SK72DXoJu+q6 rsDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mail-followup-to :mime-version:content-disposition; bh=GFsAMkjy28jv8a3+yICQfy3LWICj91e4TvEqC6WsxJI=; b=YMlzsXAyg3YEjlcvlinMBLX3m05cwdJNlgPyGhhF7eYKhkuNwoEMeJy7uJcDWC+N4s LMM9LGdKxF8U1csqihfSVEL6L+dw3L55+MB4GrT5+d8/UMiO8618VLik4RgIYbMZM+R2 OzG+ck999gaE2IS+hJ0H2P3ABSXWeCnInEjoGUN+Aii/TErWIBaJk96MQ5m0vK3wQdrI bEe+BSU1NgbtNsxBKeenXjKCadkclTWuyMOZXbpR1bQVeU6d4ACZ95WvyRlrL5+Oj+FH u+5uL79wQ1NKxRwXehq4fVf1SwmpsAf++TgDNj1TT/C4HgqPgAm3E+L0kgTdUf1UxEDw dTGA== X-Gm-Message-State: AOAM5304wFdMlQyMV7Kns8DgRx5eMl36VV/f8T5n8pwRfjBJwRuTF9DZ 7XJmYATuOxmx7K5jz9oGgmno5y7YEAo= X-Google-Smtp-Source: ABdhPJxa4v3Ruen/navRi1dm/xt6zeQMb2ailSjg9G9YE/14b338OMp0dlm8dnJViO09LqaM1zZi5g== X-Received: by 2002:a19:c7cf:: with SMTP id x198mr15936705lff.372.1618910995023; Tue, 20 Apr 2021 02:29:55 -0700 (PDT) Original-Received: from lepton ([95.179.127.11]) by smtp.gmail.com with ESMTPSA id t12sm64534lfe.33.2021.04.20.02.29.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Apr 2021 02:29:54 -0700 (PDT) X-Google-Original-From: Vladimir Zhbanov Original-Received: from vzh by lepton with local (Exim 4.94) (envelope-from ) id 1lYmhe-000U58-6n for guile-user@gnu.org; Tue, 20 Apr 2021 12:29:54 +0300 Mail-Followup-To: guile-user@gnu.org Content-Disposition: inline Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=vzhbanov@gmail.com; helo=mail-lf1-x130.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.23 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:17424 Archived-At: Hi Guile users and devs, I'm the current maintainer of Lepton EDA suite, an about five year old fork of geda-gaf with accent to moving more functionality to Scheme code. I'm not sure if it is acceptable to advertise it here, please let me know if not. I just know several Guix packagers are reading this mailing list and would like to announce a new version of Lepton, 1.9.14 has been released on April, 7: https://github.com/lepton-eda/lepton-eda/releases/tag/1.9.14-20210407 Lepton supports Guile 2.0, 2.2, and 3.0. There are lots of C code involved and one of our current goals is untangling it and moving our Scheme functionality to FFI as much as possible. Hence, the issue I recently stumbled upon. Having the following code: (define-public (sys-data-dirs) "Returns a list of search directories for system data." (let ((pointer (eda_get_system_data_dirs))) (let loop ((num 0) (ls '())) (let ((string-pointer (dereference-pointer (make-pointer (+ (pointer-address pointer) (* num (alignof '*))))))) (if (null-pointer? string-pointer) (reverse ls) (loop (1+ num) (cons (pointer->string string-pointer) ls))))))) is it permissible to use 'alignof' (or 'sizeof') this way here, if at all? Or some pitfalls may exist? The function gets the C array of strings and translates them into a Scheme list. I just don't want to write an additional C layer to process the array, but I'm in doubt if it could shoot me in the foot on some OS/arch combinations. Thanks in advance, Vladimir