Re: New release of LSP server; LSP clients for Emacs and VSCodium available

2022-08-08 Thread adriano
Il giorno dom, 07/08/2022 alle 16.42 -0700, Aleix Conchillo Flaqué ha scritto: > The plan is to make it easy for everyone on macOS to hack on Guile > using > either Emacs or VSCode. > > Aleix The possibility to work with Guile with VSCode would nothing short than revolutionary

Re: Pretty Printing values from a hashmap

2022-07-21 Thread adriano
Il giorno gio, 21/07/2022 alle 12.13 +0300, Munyoki Kilyungi ha scritto: > > Hi!  Say I have a hashmap that has nested hashmaps > that I want to inspect.  Is there a way to just > printing it out on my display in a > straight-forward way without having to loop inside > the key-value pairs?  Printi

Re: Scripting for installing a module

2022-07-02 Thread adriano
Il giorno ven, 01/07/2022 alle 18.15 +0100, James Crake-Merani ha scritto: > Hello, > > I was just wondering what approach people tend to take when writing a > script which installs a module onto the load-path. I understand this > path might be different on different machines so how do you make su

Re: code review request

2022-02-27 Thread adriano
Il giorno sab, 26/02/2022 alle 11.36 -0500, Vijay Marupudi ha scritto: > > I get a result I don't understand: this return 2 values > > Reading the source code, the second value is an implementation > detail, > keeping track of the visited directories. > > > One is expected, it's the one I wanted

code review request

2022-02-26 Thread adriano
I wrote a brief piece of Guile code and it got me confused, I'd like to ask for a code review The code is here https://gitlab.com/humanitiesNerd/filesystembrowsing A few words about it I have a folder with 2 small files in it (included in the repo) I'd like to "browse" it programmatically and c

Re: Proposal: Deep Dive into the Guile Docs & Makeover Proposal

2022-02-19 Thread adriano
Il giorno sab, 19/02/2022 alle 10.33 -0500, Olivier Dion via General Guile related discussions ha scritto: > On Sat, 19 Feb 2022, Neil Jerram wrote: > > > Personally, I am now a big fan of Scheme-centric + FFI, as it means > > always writing Scheme and never having to hack C code.  If everyone >

Re: timestamp

2022-02-12 Thread adriano
Il giorno sab, 12/02/2022 alle 14.50 +0200, Eli Zaretskii ha scritto: > > Date: Sat, 12 Feb 2022 10:01:25 +0100 > > From: > > > >   (strftime "%Y-%m-%d %H:%m:%s" (localtime 1607841890)) > >   => "2020-12-13 07:12:1607845490" > > I guess you meant %H:%M:%S, not %H:%m:%s... > this could end up i

Re: Guile cookbook ?

2022-02-12 Thread adriano
Il giorno sab, 12/02/2022 alle 15.15 +0100, Ricardo Wurmus ha scritto: > > adriano writes: > > > Il giorno sab, 12/02/2022 alle 14.55 +0100, adriano ha scritto: > > > > > > > > Hint taken :-) > > > > Actually, I was thinking about a Gu

Guile cookbook ?

2022-02-12 Thread adriano
Il giorno sab, 12/02/2022 alle 14.55 +0100, adriano ha scritto: > > Hint taken :-) Actually, I was thinking about a Guile cookbook, rather than the Guix cookbook Can the Guix cookbook also contain examples of how o do things in Guile ? Even things that are no related to Guix ?

Re: timestamp

2022-02-12 Thread adriano
Il giorno sab, 12/02/2022 alle 14.49 +0100, Ricardo Wurmus ha scritto: > > adriano writes: > > > The argument of lack of examples in the Guile/Guix documentation > > has > > been made several times now, or at least, I've seen it being made > > several time

Re: timestamp

2022-02-12 Thread adriano
I brought up these arguments up today because the recent discussions about Guile/Guix documentation encouraged me Those make me feel that not all is lost :-)

Re: timestamp

2022-02-12 Thread adriano
Hi Ricardo, thank you for chiming in :-) Il giorno sab, 12/02/2022 alle 12.49 +0100, Ricardo Wurmus ha scritto: > > Hi adriano, > > I’ve got no good answers as to “why” things are the way they are, but > the manual explains the range of these values: You're right, the man

Re: timestamp

2022-02-12 Thread adriano
Il giorno sab, 12/02/2022 alle 10.01 +0100, to...@tuxteam.de ha scritto: > On Sat, Feb 12, 2022 at 09:37:17AM +0100, adriano wrote: > > This > > > > scheme@(guile-user)> (stat:ctime (stat "cat.jpg")) > > $5 = 1607841890 > > > > How do I get a t

Re: timestamp

2022-02-12 Thread adriano
Vivien, thank you ! Il giorno sab, 12/02/2022 alle 09.52 +0100, Vivien ha scritto: > > (use-modules (srfi srfi-19)) ;; Time and date stuff > (time-utc->date (make-time time-utc 0 1607841890))  > ;; Zero for nanoseconds comes before the seconds > > Vivien I also found this scheme@(guile-user)

timestamp

2022-02-12 Thread adriano
This scheme@(guile-user)> (stat:ctime (stat "cat.jpg")) $5 = 1607841890 How do I get a timedate from that number ($5) ? Thanks

Re: Newbie thoughts on Guile Hall + Guix

2022-02-07 Thread adriano
Il giorno dom, 06/02/2022 alle 21.34 +, Zelphir Kaltstahl ha scritto: > On 2/6/22 16:29, Vijay Marupudi wrote: > > Ognen Duzlevski writes: > > > > > Have you tried Racket? If you haven't - try that and you will > > > find > > > recommending Guile to beginners to be much easier ;). On a > > >

Re: return macro

2021-10-01 Thread adriano
Il giorno gio, 30/09/2021 alle 20.55 +, dsm...@roadrunner.com ha scritto: > From: "adriano" > > >   (import (ice-9 control)) >  > >  >   (define (test x) >  >     (let/ec return >  >   (cond >  >     ((= x 3) (return 7)) >  &

Re: return macro

2021-09-29 Thread adriano
Il giorno lun, 28/06/2021 alle 03.15 +0200, Taylan Kammer ha scritto: > On 28.06.2021 01:10, Damien Mattei wrote: > > hi, > > > > i wanted to create a macro that is used like a function definition > > and > > allow return using call/cc: > > > > (define-syntax def > > (syntax-rules (return) > > ((

Re: foreign objects and the garbage collector

2021-09-21 Thread adriano
Il giorno mar, 21/09/2021 alle 10.25 -0400, Olivier Dion ha scritto: > On Tue, 21 Sep 2021, adriano wrote: > > Hi Olivier, > > > > thank you very much for your reply > > > > Il giorno dom, 19/09/2021 alle 14.11 -0400, Olivier Dion ha > > scritto: &g

Re: foreign objects and the garbage collector

2021-09-21 Thread adriano
Hi Maxime, Il giorno dom, 19/09/2021 alle 20.23 +0200, Maxime Devos ha scritto: > Olivier Dion via General Guile related discussions schreef op zo 19- > 09-2021 om 14:11 [-0400]: > > On Sun, 19 Sep 2021, adriano wrote: > > > > If you want to avoid the problem, you

Re: foreign objects and the garbage collector

2021-09-21 Thread adriano
Hi Olivier, thank you very much for your reply Il giorno dom, 19/09/2021 alle 14.11 -0400, Olivier Dion ha scritto: > On Sun, 19 Sep 2021, adriano wrote: > > > > > > It'd be so nice to have an example > > (define (with-my-resource token proc) >   (let

Re: Can system modify an environment variable in the current environment?

2021-09-18 Thread adriano
Il giorno gio, 02/09/2021 alle 22.06 +0200, Roel Janssen ha scritto: > > Or in this particular case, use the "add-to-load-path" procedure: > https://www.gnu.org/software/guile/manual/html_node/Load-Paths.html > An example usage of "add-to-load-path" is avalilable in Haunt, the static blog bu

Re: macro syntax-error works in prefix but not curly-infix

2021-09-18 Thread adriano
Il giorno sab, 04/09/2021 alle 16.41 +0200, Damien Mattei ha scritto: > hi, > > i have this macro: > > (define-syntax <+ >   (syntax-rules () >     ((_ var expr) (define var expr)) >     ((_ err ...) (syntax-error "Bad <- form")) ;; does not work in > infix ! >     )) > > why my syntax-error pat

Re: foreign objects and the garbage collector

2021-09-18 Thread adriano
Il giorno sab, 04/09/2021 alle 15.35 +0200, Vivien Kraus via General Guile related discussions ha scritto: > Hello, > > Le samedi 04 septembre 2021 à 07:41 -0500, Tim Meehan a écrit : > > I'd rather not compile anything in C, and just use the tools in > > Guile to > > interact with libgps. Is ther

Re: guile studio - question

2021-06-18 Thread Adriano Peluso
Il giorno ven, 18/06/2021 alle 11.25 +0200, Ricardo Wurmus ha scritto: > Would you prefer a button in the toolbar that will always send the > code from the main buffer to the REPL? Personally, I would prefer a toolbar with a button in it, yes The simple reason is that this solution would be si

Re: guile studio - question

2021-06-18 Thread Adriano Peluso
Il giorno gio, 17/06/2021 alle 12.21 +0200, Ricardo Wurmus ha scritto: > > Adriano Peluso writes: > > > I press c-x c-e because I know this is just a distribution of > > Emacs and > > that works > > > > In DrRacket there's the "run" butto

guile studio - question

2021-06-16 Thread Adriano Peluso
I press c-x c-e because I know this is just a distribution of Emacs and that works In DrRacket there's the "run" button In Guile Studio I can't find it Is the intended user of guile studio supposed to know about c-x c-e ?

Re: guile studio

2021-06-04 Thread Adriano Peluso
Il giorno mer, 02/06/2021 alle 12.40 +0200, Ricardo Wurmus ha scritto: > > Adriano Peluso writes: > > > Il giorno lun, 31/05/2021 alle 11.45 +0200, Ricardo Wurmus ha > > scritto: > > > > > > > > > Hmm, this is a little confusing.  Perhaps so

Re: Guile 3.0.7 compile cache messages

2021-06-02 Thread Adriano Peluso
Il giorno mer, 02/06/2021 alle 12.20 +, Zelphir Kaltstahl ha scritto: > > > > > > How do I go about it? Simply removing the cache folder the messages > point to? > > And what commands would that alternative workflow entail? I skimmed your project and I see that there's only one dependenc

Re: guile studio

2021-06-02 Thread Adriano Peluso
Il giorno lun, 31/05/2021 alle 11.45 +0200, Ricardo Wurmus ha scritto: > Hmm, this is a little confusing.  Perhaps something is missing in > Guile Studio to prevent accidental loading of existing Emacs > packages.  The wrapper overrides EMACSLOADPATH and then launches a > particular version o

Re: Guile 3.0.7 compile cache messages

2021-06-01 Thread Adriano Peluso
Il giorno mar, 01/06/2021 alle 08.14 -0400, Olivier Dion via General Guile related discussions ha scritto: > On Mon, 31 May 2021, Zelphir Kaltstahl > wrote: > > Hello Guile Users! > > > > It seems my Guile (version 3.0.7, installed via GNU Guile, updated > > today) is > > doing something weird, o

Re: guile studio

2021-05-30 Thread Adriano Peluso
Il giorno dom, 30/05/2021 alle 08.04 +0200, Adriano Peluso ha scritto: > Il giorno sab, 29/05/2021 alle 22.23 +0200, Ricardo Wurmus ha > scritto: > > > > Ricardo Wurmus writes: > > > > > Hi Adriano, > > > > > > thank you for the report

Re: guile studio

2021-05-29 Thread Adriano Peluso
Il giorno sab, 29/05/2021 alle 22.23 +0200, Ricardo Wurmus ha scritto: > > Ricardo Wurmus writes: > > > Hi Adriano, > > > > thank you for the report! > > > > > In this picture you can see in the minibuffer the > > > writing:"Can

Re: guile studio

2021-05-27 Thread Adriano Peluso
I forgot: this is the version of Guile studio I'm running 0.1.0-1.93622e7

guile studio

2021-05-27 Thread Adriano Peluso
In this picture you can see in the minibuffer  the writing:"Cannot open load file: File o directory non esistente, Ivy" https://0x0.st/-2PK.png and in the terminal where I launched guile studio: $ guile-studio Gtk-Message: 13:49:52.811: Failed to load module "canberra-gtk-module" Gtk-Message: 1

tracepoint

2021-05-10 Thread Adriano Peluso
I can't get tracepointing to work. What follows is on Guile 3.0.5 fron Guix the package manager but the same happens with the Guile 3.0.4 from Ubuntu I have 2 procedures One of them makes a so called recursive process and the other one makes an iterative process I can trace them This is the re

Re: use module does not works in .guile

2021-05-02 Thread Adriano Peluso
Il giorno dom, 02/05/2021 alle 13.32 +0200, Damien Mattei ha scritto: > i have this .guile: > > ;; Guile config file > > > > ;; history > (use-modules (ice-9 readline) >     ;; does not works: >     ;; guile object oriented programming system >     ;;(oop goops) (oop goops) is commented out. I

Re: How to use guile in a development process

2021-04-29 Thread Adriano Peluso
Il giorno gio, 29/04/2021 alle 10.35 +1000, Anthony Quizon ha scritto: > Hello, > > I'm having trouble finding a good development process with guile. > > I have a file foo.scm and I'm trying to load it into the repl. > However, I couldn't find any documentation on how to easily do this. > I tried

Re: Help making a GNU Guix package for pure GNU Guile library

2021-02-03 Thread Adriano Peluso
Il giorno dom, 31/01/2021 alle 04.19 +0100, Zelphir Kaltstahl ha scritto: > Hello Ricardo! > > At first I thought "How could I overlook that guide?", but then I > realized it is the one I tried following before. This fails for my > library at the `guix package --install-from-file=my-hello.scm` ste

Re: build system for pure Guile library (was Re: Help making a GNU Guix package for pure GNU Guile library)

2021-02-03 Thread Adriano Peluso
Il giorno dom, 31/01/2021 alle 15.16 +0100, Zelphir Kaltstahl ha scritto: > > > However, if anyone told me a good reason to also use autotools to > manage > a build process of my code, and I can get it working and understand > how > to do it, then why not. One good reason could be that your Guil

Re: guile-json 4.4.1 released

2020-11-29 Thread Adriano Peluso
Il giorno dom, 29/11/2020 alle 00.20 -0800, Aleix Conchillo Flaqué ha scritto: > Hi! > > I'm happy to announce guile-json 4.4.1. This version fixes a few > parsing issues found after running the parser against the JSON > Parsing > Test Suite (https://github.com/nst/JSONTestSuite). Thanks to Nicolò

Re: guile-user Digest, Vol 216, Issue 19

2020-11-25 Thread Adriano Peluso
Il giorno mar, 24/11/2020 alle 15.26 -0600, Tim Meehan ha scritto: > Matt - thanks for the help making the FFI pointers work! Would you mind publishing the working version of your code ?

Re: eof-object? documentation

2020-11-22 Thread Adriano Peluso
Il giorno dom, 22/11/2020 alle 19.57 +0100, Zelphir Kaltstahl ha scritto: > I did not find the repository of the Guile reference manual yet. Can > anyone point me to it? Then I could perhaps add examples, notes or  > remove  the "?" from the page and that phrase other stuff via pull > request. >