Threading / Pipe Macro

2019-07-07 Thread Zelphir Kaltstahl
Hi Guile Users! I recently looked at some online course about Elixir and saw an elegant use of pipes (the operator `|>` in Elixir). Then I remembered, that in Racket there are so called threading macros, which seem to accomplish the same: https://github.com/lexi-lambda/threading/blob/master/threa

Re: Threading / Pipe Macro (Chris Vine, Mark H Weaver)

2019-07-08 Thread Zelphir Kaltstahl
Hello Chris and hello Mark, Thank you both for posting your macros! This is really useful and I am looking forward to using this in the next situation where there would be deep nesting or where it seems appropriate in other ways. To understand what is going on in the macro, I wrote a lot of expla

Re: Threading / Pipe Macro

2019-07-08 Thread Zelphir Kaltstahl
Ah thanks! I did not find that before. Good to know where to look for more! I should link to other places, where one can find macros in my repo. On 7/8/19 2:49 AM, Erik Edrosa wrote: > On 7/7/19 6:42 AM, Zelphir Kaltstahl wrote: >> (1) Does something already exist? >> > This

Re: Re: Threading / Pipe Macro (Chris Vine, Mark H Weaver)

2019-07-09 Thread Zelphir Kaltstahl
ail.com> > Content-Type: text/plain; charset=US-ASCII > > On Mon, 8 Jul 2019 23:10:28 +0200t > Zelphir Kaltstahl wrote: >> Hello Chris and hello Mark, >> >> Thank you both for posting your macros! This is really useful and I am >> looking forward to using this in

Re: Write a macro which defines a procedure

2019-07-20 Thread Zelphir Kaltstahl
Hey Ricardo, Thanks for the advice! I did not remember, that I could use ,expand in the Guile REPL. This was I found out about an issue, but not sure how to solve it. It seems like `module-define!` wants to have a symbol as input. But I could not figure out how to create a symbol from an ident

Re: Write a macro which defines a procedure

2019-07-20 Thread Zelphir Kaltstahl
Hi, At first I had the macro use `define`, but then I thought: "What if I want to conditionally define a route procedure?". My guess is, that then the define form would be inside some `cond` or `if` form and then it would not work (I did not check this assumption though, because my macro did not w

Re: Write a macro which defines a procedure

2019-07-20 Thread Zelphir Kaltstahl
Ah thanks! Sometimes one does not see the simple solution. I was thinking that it would have to be something complicated. On 2019-07-20 22:37, Ricardo Wurmus wrote: Hi Zelphir, This was I found out about an issue, but not sure how to solve it. It seems like `module-define!` wants to have a sy

Re: Write a macro which defines a procedure

2019-07-21 Thread Zelphir Kaltstahl
Hi Mark! On 7/21/19 4:56 AM, Mark H Weaver wrote: > Hi Zelphir, > > Zelphir Kaltstahl writes: > >> At first I had the macro use `define`, but then I thought: "What if I >> want to conditionally define a route procedure?". My guess is, that then >> the de

Re: Write a macro which defines a procedure

2019-07-21 Thread Zelphir Kaltstahl
Hello Arne! Thanks for posting those links! I think your "already defined macro check" is part of what I was looking for. I say part, because I was looking for something, that probably does not exist: Something that checks for existing macros and for existing procedures or other after compile-tim

syntax-case identifier name predicate in guard expression

2019-07-22 Thread Zelphir Kaltstahl
Hi Guile Users! In previous e-mails I inquired about macros defining procedures. Afterwards I noticed, that I need my macro to check whether some regular expression is inside the name of an identifier. For example I have an two identifiers (not strings and no values bound to them yet):

Re: syntax-case identifier name predicate in guard expression

2019-08-04 Thread Zelphir Kaltstahl
Hi Guile Users! I made some progress in writing a procedure defining macro for creating procedures which talk to an API. I now have working code, which checks the name of an identifier in a guard expression: 8<8<8< (use-modules (web uri) (web client) (js

Re: syntax-case identifier name predicate in guard expression

2019-08-05 Thread Zelphir Kaltstahl
, Mark H Weaver wrote: > Hi Zelphir, > > Zelphir Kaltstahl writes: > >> Hi Guile Users! >> >> I made some progress in writing a procedure defining macro for creating >> procedures which talk to an API. >> >> I now have working code, which checks th

Re: guile-user Digest, Vol 201, Issue 5

2019-08-09 Thread Zelphir Kaltstahl
Hi Thomas! I don't have a solution for you, but maybe an idea. Can you check that  your PATH does not "shadow" the installed Guile? Regards, Zelphir On 8/9/19 6:00 PM, guile-user-requ...@gnu.org wrote: > Message: 1 > Date: Thu, 8 Aug 2019 22:19:50 +0200 > From: Thomas Morley > To: guile-user@g

Re: Diversification [ branched from Re: conflicts in the gnu project now affect guile]

2019-10-22 Thread Zelphir Kaltstahl
Hi! I just want to share my experience with Riot. I have used it before. In fact, I used it to communicate with only one person so far for reasons I will mention below. Today there was a strange thing, when Riot showed an error and warned, that it could be a replay attack. This is not the first t

Re: Diversification [ branched from Re: conflicts in the gnu project now affect guile]

2019-10-22 Thread Zelphir Kaltstahl
On 10/23/19 1:24 AM, Chris Vine wrote: > On Tue, 22 Oct 2019 21:23:32 +0200 > Zelphir Kaltstahl wrote: > [snip] >> The reason however, why I have only ever used Riot with one person is, >> surprise surprise, that most people are not willing to sacrifice the >>

Re: Diversification [ branched from Re: conflicts in the gnu project now affect guile]

2019-10-23 Thread Zelphir Kaltstahl
ian It would be an interesting project, for an example of how to do a Guile server side. What kind of library/framework/tool would you use for the server side? I think the standard library webserver is still very bare bones. So far I've not tried GNU Artanis. Would it be a good idea to use that?

Use core or SRFIs?

2019-10-24 Thread Zelphir Kaltstahl
Hello Guile Users! I have a question regarding usage of SRFIs in Guile code. Sometimes there are core functions, which are also available from an SRFI implementation. One example I am currently dealing with are bitwise operations for integer numbers. There is SRFI 60 and there are the core functi

Re: Use core or SRFIs?

2019-10-24 Thread Zelphir Kaltstahl
t the standard doesn't have. > > On Thu, Oct 24, 2019 at 11:56 PM Zelphir Kaltstahl > mailto:zelphirkaltst...@posteo.de>> wrote: > > Hello Guile Users! > > I have a question regarding usage of SRFIs in Guile code. > > Sometimes there are core fu

Re: mailmam, web bridge, forum, p2p (was: Diversification)

2019-10-24 Thread Zelphir Kaltstahl
Hi Tomas! Do you still remember some of the issues you came across when making such a shop? If I am not mistaken, Racket's continuation based webserver does something like this. It also stores state in the URL, which then looks a bit strange. I think that state even encodes the continuation. Reg

Re: mailmam, web bridge, forum, p2p (was: Diversification)

2019-10-24 Thread Zelphir Kaltstahl
Hi Nala! I have a question regarding this IP check. Does this mean that both, the IP address and (logical and) the cookie need to be correct, or is it an inclusive logical or? I sometimes find myself switching location of the server of the VPN I am using. In such a case, would I still be logged

Re: Use core or SRFIs?

2019-10-24 Thread Zelphir Kaltstahl
te: > > Personally, I prefer srfi. But sometimes I mix with RnRS. > I think it's better to avoid Guile specific things, however, Guile > provides > many good things that the standard doesn't have. > > On Thu, Oct 24, 2019 at 11:56 PM Zelphir Kaltstahl &

Re: Use core or SRFIs?

2019-10-24 Thread Zelphir Kaltstahl
le.  Easy-peasy. > > It's a lot less work to port a SRFI implementation than to do things > from scratch. > > On Thu, Oct 24, 2019 at 2:26 PM Zelphir Kaltstahl > mailto:zelphirkaltst...@posteo.de>> wrote: > > Ah, but SRFI 151 is not implemented in my version of Guile: &

Re: Use core or SRFIs?

2019-10-24 Thread Zelphir Kaltstahl
Thanks for your input! This also reads reasonable. On 10/24/19 7:01 PM, Taylan Kammer wrote: > On 24.10.2019 17:55, Zelphir Kaltstahl wrote: >> Hello Guile Users! >> >> I have a question regarding usage of SRFIs in Guile code. >> >> Sometimes there are core fu

Re: Use core or SRFIs?

2019-10-24 Thread Zelphir Kaltstahl
the other files. > > On Thu, Oct 24, 2019 at 3:47 PM Zelphir Kaltstahl > mailto:zelphirkaltst...@posteo.de>> wrote: > > Sorry, I am a bit clueless right now. I have the following questions: > > Where would I find srfi-151.sld? > > What is a *.sld fi

Re: Diversification [ branched from Re: conflicts in the gnu project now affect guile]

2019-10-26 Thread Zelphir Kaltstahl
On 10/26/19 1:26 PM, to...@tuxteam.de wrote: > On Sat, Oct 26, 2019 at 11:03:12AM +0200, pelzflorian (Florian Pelz) wrote: >> On Sat, Oct 26, 2019 at 10:14:22AM +0200, to...@tuxteam.de wrote: > [...] > >>> only become aware of that when you try to live at the rift. >> Yes, this is something we shou

Re: mailmam, web bridge, forum, p2p

2019-10-27 Thread Zelphir Kaltstahl
On 10/27/19 3:26 PM, Keith Wright wrote: > Mike Gerwitz writes: > >> To make sure I see replies, please include me in the recipient list (not >> just the mailing list). I missed this at first. >> >> On Sat, Oct 26, 2019 at 09:48:37 +0200, to...@tuxteam.de wrote: Passing session tokens via GE

Re: guile-user Digest, Vol 204, Issue 2

2019-11-05 Thread Zelphir Kaltstahl
This is great! A solid JSON parsing and outputting library is important for a programming language these days! Thanks for your work! On 11/5/19 6:00 PM, guile-user-requ...@gnu.org wrote: > Message: 1 > Date: Mon, 4 Nov 2019 22:28:12 -0800 > From: Aleix Conchillo Flaqué > To: guile-user > Subject

guile-json, SRIFs and licenses

2019-11-06 Thread Zelphir Kaltstahl
On 11/6/19 1:28 AM, John Cowan wrote: > +1. If only it weren't GPL3, which makes it ineligible to be a SRFI > implementation > > Is there any chance of dual-licensing it under MIT? > > On Tue, Nov 5, 2019 at 7:03 PM Zelphir Kaltstahl > wrote: > >> This is gr

Re: guile-user Digest, Vol 204, Issue 2

2019-11-06 Thread Zelphir Kaltstahl
I also cannot download that tarball and on: https://bigsearcher.com/mirrors/nongnu/guile-json/ it does not exist. (http://download.savannah.gnu.org/releases/guile-json redirects to https://bigsearcher.com/mirrors/nongnu/guile-json/) On Github one can download it. On 11/6/19 7:12 AM, Greg Coladon

Re: guile-json, SRIFs and licenses

2019-11-06 Thread Zelphir Kaltstahl
under the BSD license, but you can compile and distribute > a Chicken program under any license — unless it incorporates one of > the 31 GPLed eggs. > > What looks like a commons from inside the GNUverse looks more like a > walled garden to the rest of FLOSS. > >

Weird behavior of hash-table

2019-11-23 Thread Zelphir Kaltstahl
Hi Guile Users! I've noticed a strange behavior of hash tables. I put in symbols as keys and integers as values, but when I try to get the integers out again by using the same symbol, I get back a #f instead. Here is the code I am using: (use-modules ;; SRFI 60: procedures for treating

Re: Weird behavior of hash-table

2019-11-24 Thread Zelphir Kaltstahl
9:04 AM, Mark H Weaver wrote: > Hi Zelphir, > > Zelphir Kaltstahl writes: > >> I've noticed a strange behavior of hash tables. I put in symbols as keys >> and integers as values, but when I try to get the integers out again by >> using the same symbol, I get back

Re: Weird behavior of hash-table

2019-11-24 Thread Zelphir Kaltstahl
Hi Tomas! On 11/24/19 9:57 AM, to...@tuxteam.de wrote: > Yikes. I'd fall into this trap, too. Thanks you both for illustrating > it so well -- and thanks, Mark, for your unfailing sharp vision :-) > > So the best thing for one's brain is to train it to read #(...) > as some weird relative of '(...

Guile fibers return values

2020-01-04 Thread Zelphir Kaltstahl
Hello Guile users! I have questions regarding the usage of the fibers library. It seems, that I cannot find any way to get a computation result back from a fiber. I also cannot find anything about how to get a value back from a fiber, except for channels. The examples include one example using the

Re: Guile fibers return values

2020-01-04 Thread Zelphir Kaltstahl
Hello Guile Users, so I figured out an example for using channels, but I am not sure, if that is the only way to get results from a fiber: 8<8< (use-modules (fibers) (fibers channels) (ice-9 match)) ;; Define a procedure to run in a fiber. (define fiber1-proc (lambda (in-chan ou

Re: Guile fibers return values

2020-01-05 Thread Zelphir Kaltstahl
2020 at 5:50 PM Zelphir Kaltstahl > mailto:zelphirkaltst...@posteo.de>> wrote: > > I have questions regarding the usage of the fibers library. It seems, > that I cannot find any way to get a computation result back from a > fiber. I also cannot find anything

Re: Guile fibers return values

2020-01-05 Thread Zelphir Kaltstahl
uot;. It would be good to know that. I guess it depends on how data sent on channels is handled in the fibers library. Regards, Zelphir On 1/5/20 1:33 PM, Chris Vine wrote: > On Sun, 5 Jan 2020 02:30:06 +0100 > Zelphir Kaltstahl wrote: > [snip] >> This way of communication between t

Re: Guile fibers return values

2020-01-05 Thread Zelphir Kaltstahl
Hi Chris! On 1/5/20 3:23 PM, Chris Vine wrote: > On Sun, 5 Jan 2020 13:58:24 +0100 > Zelphir Kaltstahl wrote: >> Thank you for the detailed explanation! >> >> By "process" I meant only "sequence of steps performed", the main thunk >> in run-f

Re: Guile fibers return values

2020-01-06 Thread Zelphir Kaltstahl
Sun, 5 Jan 2020 19:22:14 +0100 > Zelphir Kaltstahl wrote: >> I think the decision tree calculations, which I want to parallelize, are >> not I/O related. However, I am not quite sure I understand the whole >> suspendable port thing, but here is what I think it is: >> >&

Re: Guile fibers return values

2020-01-06 Thread Zelphir Kaltstahl
Hello John! Thanks for your reply! On 06.01.2020 22:47, John Cowan wrote: > Conceptually, parallelism and concurrency are two different and partly > independent things.  Parallelism refers to physically simultaneous > execution, as when you throw a ball into the air in each hand and > catch it in

Limiting parallelism using futures, parallel forms and fibers

2020-01-07 Thread Zelphir Kaltstahl
Hello Guile users! I thought about what I need for parallelizing an algorithm I am working on. Background: I am working on my decision tree implementation (https://notabug.org/ZelphirKaltstahl/guile-ml/src/wip-port-to-guile), which is currently only using a single core. Training the model splits t

Re: SRFI-151 (Bitwise Operations) Implementation

2020-01-08 Thread Zelphir Kaltstahl
Hello Frank, I think I might find good use for this library in one of my projects! Thanks for sharing! Regards, Zelphir On 09.01.2020 05:28, Frank Terbeck wrote: > Hey Guilers! > > Since I got a project that uses (potentially large) integers to encode > bits in registers, I was looking at SR

Re: Limiting parallelism using futures, parallel forms and fibers

2020-01-09 Thread Zelphir Kaltstahl
Thanks for your suggestion, I will take it into account. Regards, Zelphir On 1/8/20 9:11 AM, Linus Björnstam wrote: > Hi! > > I don't have much more input than to say that futures use a built in thread > pool that is limited to (current-processor-count) threads. That could maybe > be modified

Re: Limiting parallelism using futures, parallel forms and fibers

2020-01-09 Thread Zelphir Kaltstahl
Hi Chris! On 1/8/20 12:44 PM, Chris Vine wrote: > On Wed, 8 Jan 2020 08:56:11 +0100 > Zelphir Kaltstahl wrote: > [snip] >> So my questions are: >> >> - Is there a default / recommended way to limit parallelism for >> recursive calls to parallel forms? >> &

Re: Re: Limiting parallelism using futures, parallel forms and, fibers (Chris Vine)

2020-01-11 Thread Zelphir Kaltstahl
On 1/10/20 6:00 PM, guile-user-requ...@gnu.org wrote: > Message: 1 > Date: Fri, 10 Jan 2020 16:08:25 + > From: Chris Vine > To: Zelphir Kaltstahl > Cc: Guile User > Subject: Re: Limiting parallelism using futures, parallel forms and > fibers > Mes

Re: Pure (side-effect-free) calls into c/c++?

2020-01-11 Thread Zelphir Kaltstahl
Hello Linas, On 1/10/20 11:36 PM, Linas Vepstas wrote: > So, I've got lots of C code wrapped up in guile, and I'd like to declare > many of these functions to be pure functions, side-effect-free, thus > hopefully garnering some optimizations. Is this possible? How would I do > it? A cursory googl

Re: GNU Guile 2.9.9 Released [beta]

2020-01-13 Thread Zelphir Kaltstahl
I am already super excited about Guile 3.0.0 and JIT. I've not had to complain about Guile's speed so far and there are low-level things like using integers as bits to enable high performance things, but hey, if simply by upgrading to a new version most Guile programs run faster, that's great! I'

Logging in Guile

2020-01-13 Thread Zelphir Kaltstahl
Hi Guile Users! Is there any library for logging in Guile? What I imagine is something, where I can log messages of various levels, like debug, info, error and such. Currently I am using display and simple-format for all the things, but it would be nice to be able to run a program and give it som

Bug in Guile 2.2.6 parallel forms implementation?

2020-01-14 Thread Zelphir Kaltstahl
Hi Guile Users! For my project of implementing a decision tree algorithm, which I ported to Guile, I am trying ways of parallelizing the algorithm. Since I did not make use of mutation or global state in the algorithm, it should be fairly simple to parallelize: "Simply split execution into 2 parts

Re: Logging in Guile

2020-01-14 Thread Zelphir Kaltstahl
Hi Alex! Thanks for the hint, I forgot about checking whether there is something in guile-lib. I will have a look. Regards, Zelphir On 1/13/20 7:17 PM, Alex Sassmannshausen wrote: > Hi Zelphir, > > Zelphir Kaltstahl writes: > >> Is there any library for logging in Guile? &g

Re: Logging in Guile

2020-01-14 Thread Zelphir Kaltstahl
Posix API through the FFI.  It is very basic > and leaves log rotation etc. to the syslog infrastructure. > > On Mon, Jan 13, 2020 at 1:10 PM Zelphir Kaltstahl > mailto:zelphirkaltst...@posteo.de>> wrote: > > Hi Guile Users! > > Is there any library for loggi

Re: Logging in Guile

2020-01-14 Thread Zelphir Kaltstahl
Hi Roel, A simple short code is always tempting, thanks. I will check it out! Regards, Zelphir On 1/13/20 10:42 PM, Roel Janssen wrote: > On Mon, 2020-01-13 at 19:06 +0100, Zelphir Kaltstahl wrote: >> Hi Guile Users! >> >> Is there any library for logging in Guile? &g

Re: Guile fibers return values

2020-01-14 Thread Zelphir Kaltstahl
from the description or comments it looks promising for my use case. Thanks, Zelphir On 1/14/20 11:59 AM, Amirouche Boubekki wrote: > Hello Zelphir! > > Le sam. 4 janv. 2020 à 22:49, Zelphir Kaltstahl > a écrit : >> Hello Guile users! >> >> I have questions regarding t

Re: Bug in Guile 2.2.6 parallel forms implementation?

2020-01-16 Thread Zelphir Kaltstahl
t else can I try? Regards, Zelphir On 1/14/20 10:55 PM, Zelphir Kaltstahl wrote: > Hi Guile Users! > > For my project of implementing a decision tree algorithm, which I ported > to Guile, I am trying ways of parallelizing the algorithm. Since I did > not make use of mutation or gl

Re: Announcing the first actually stable release of guile-for-loops

2020-01-23 Thread Zelphir Kaltstahl
Hi Linus! Although I just ported multiple usages of those kind of loops from a previously Racket project to a Guile project, I think this is quite cool! When I ported those usages in my code, it also resulted in some named lets (I guess quite naturally, as an available looping construct), so I can

Not understanding spawn-fiber's parallel? keyword argument

2020-01-26 Thread Zelphir Kaltstahl
Hi Guile Users! I am experimenting with guile-fibers and hit some behavior that seems weird. Have a spawn-fiber call in a run-fibers call inside a call-with-new-thread, to spawn and run fibers without blocking the whole execution of the program. The code is probably very similar to amirouche's ba

Re: Logo proposal

2020-01-27 Thread Zelphir Kaltstahl
On 1/27/20 2:03 PM, Marc Chantreux wrote: > hello, > > On Mon, Jan 27, 2020 at 12:30:51AM +0100, Arne Babenhauserheide wrote: >> Did you try it? > i never seen λ used in the documentation or code so what i actually > wrote a macro: > (define-syntax λ > (syntax-rules () > ((λ sign

Re: Logo proposal

2020-01-28 Thread Zelphir Kaltstahl
Hmmm, I tried again and it worked in command line REPL and Geiser. Weird, I was remembering something did not work. Perhaps it was only when I needed lambda* or something. Great, I can use it more often again! On 1/28/20 1:44 AM, Jose A. Ortega Ruiz wrote: > On Tue, Jan 28 2020, Zelphir Kaltst

Re: stis-data

2020-02-11 Thread Zelphir Kaltstahl
Hi Stefan! Would this be a good option for a binary format for transmission of data over network, or is there anything, that would make it less suitable for such purpose? Regards, Zelphir On 2/11/20 11:16 PM, Stefan Israelsson Tampe wrote: > HI, > > I just want to announce my pure guile safe ser

Re: Happy birthday, Guile! - grid printing

2020-02-16 Thread Zelphir Kaltstahl
Hi Guile Users! Guile is my go to programming language for my free time projects : ) While it's sometimes not as easy to find answers for problems as in some other programming languages, usually it is worth the research, as I come out more knowledgeable on the other side. The documentation is usua

Re: Happy birthday, Guile! - grid printing

2020-02-17 Thread Zelphir Kaltstahl
Hey Linus! Huh, interesting! This does more than my little tool. I don't understand all of it right now, but perhaps it can be used to make grids too. Thanks for the hint. I did not know of its existence! On 2/17/20 9:01 AM, Linus Björnstam wrote: > Hi Zelphir! > > You should check out SRFI 166

Lenses in Guile?

2020-02-18 Thread Zelphir Kaltstahl
Hi! This reminds me of something: Is there something like https://docs.racket-lang.org/lens/index.html for Guile? Or perhaps an easy to understand tutorial on implementing it? Regards, Zelphir On 2/18/20 2:38 PM, Christopher Lam wrote: > A bit late, and perhaps not as sophisticated as some bigge

Re: Lenses in Guile?

2020-02-19 Thread Zelphir Kaltstahl
Hi Alex! Thanks for that! On 18.02.20 15:04, Alex Sassmannshausen wrote: > Heya, > > Zelphir Kaltstahl writes: > >> Hi! >> >> This reminds me of something: Is there something like >> https://docs.racket-lang.org/lens/index.html for Guile? Or perhaps

Re: How to correctly load modules from runtime defineable locations?

2020-03-06 Thread Zelphir Kaltstahl
Hi! I am not sure this will help you, but here is what I observed and what works best for me: * For running Guile programs use: `guile -L `. * For using libraries: o If Guile is installed via GUIX, try to install the library through GUIX as well, then it should be available

Re: How to correctly load modules from runtime defineable locations?

2020-03-06 Thread Zelphir Kaltstahl
more robust choices than passing options through command line? Could the > passing paths through environment variables be more reliable option? > > On Fri, Mar 06, 2020 at 12:53:37PM +0100, Zelphir Kaltstahl wrote: >> Hi! >> >> I am not sure this will help you, but here i

Re: syntax taste: use of unquote in macros

2020-03-29 Thread Zelphir Kaltstahl
On 3/29/20 5:11 PM, Matt Wette wrote: > Hi All, > > I'm not sure if you know about this, but there is a discrepancy in the > way some folks define macros to use unquote (aka ,).   For example, > > > (use-modules (system base pmatch)) > > (pmatch '(foo "bar")  ((foo ,val)  (write val) (newline)))

Re: SRFI-37 and short-name option with optional argument

2020-05-15 Thread Zelphir Kaltstahl
Hi Simon! Perhaps this will help? https://notabug.org/ZelphirKaltstahl/guile-examples/src/master/command-line-arguments Regards, Zelphir On 5/15/20 5:21 PM, zimoun wrote: > Dear Linus, > > On Tue, 12 May 2020 at 22:29, Linus Björnstam > wrote: >> I Sony have an answer to your question, but usi

Re: guile-json 4.0.0 released

2020-05-17 Thread Zelphir Kaltstahl
Hi! Congrats to the new version! Your project has made quite some progress! Best regards, Zelphir On 5/17/20 8:42 AM, Aleix Conchillo Flaqué wrote: > Hi! > > I'm super excited to announce guile-json 4.0.0. This new version comes with > a couple of small breaking changes and huge performance imp

Re: C programs in Scheme syntax

2020-05-29 Thread Zelphir Kaltstahl
Hi, There is also Schemetran: https://gitlab.com/codetk/schemetran Perhaps that was it? Regards, Zelphir On 29.05.20 05:23, Keith Wright wrote: > I am thinkging about a project that uses Scheme macros > to generate C code. To this end I want to encode C > programs as S-expressions. For examp

Normal distribution random numbers

2020-05-30 Thread Zelphir Kaltstahl
Hi Guile Users! I recently wrote a little program involving lots of uniformly distributed random integers. For that I used SRFI-27 and it works fine. Then I thought: How would I get normal distributed random numbers? I don't have a project or program in mind for this, but it struck me, that I do

Re: Normal distribution random numbers

2020-05-30 Thread Zelphir Kaltstahl
30.05.20 22:21, Zelphir Kaltstahl wrote: > Hi Guile Users! > > I recently wrote a little program involving lots of uniformly > distributed random integers. For that I used SRFI-27 and it works fine. > > Then I thought: How would I get normal distributed random numbers? I > do

Re: Normal distribution random numbers

2020-05-30 Thread Zelphir Kaltstahl
Hi Arne! Thanks for the pointers! On 5/30/20 11:30 PM, Arne Babenhauserheide wrote: > Hi Zelphir, > > Zelphir Kaltstahl writes: >> Then I thought: How would I get normal distributed random numbers? I >> don't have a project or program in mind for this, but it struck

Re: Normal distribution random numbers

2020-05-31 Thread Zelphir Kaltstahl
Hi! Interesting technique, that when thinking about it, intuitively makes sense to me. Thanks for sharing! Regards, Zelphir    On 31.05.20 17:12, tantalum wrote: > surely not the ideal way to generate numbers with a normal > distribution, but there is a way to use custom probabilities from a > l

Re: Normal distribution random numbers

2020-06-04 Thread Zelphir Kaltstahl
I did not check what Guile implements as > non-SRFIs. I found: > https://www.gnu.org/software/guile/manual/html_node/Random.html which > has `random:normal`! I should have checked that first. Still good to > know, what a can of worms normal distribution implementation can b

Re: What is the status of guile-gnome, or gtk\guile?

2020-06-07 Thread Zelphir Kaltstahl
This is what I have been looking up just yesterday as well! I remember some e-mails here on the Guile user list definitely later than 2017. However, they also did not turn up on my search engine search yesterday. I also wonder, if there is a tutorial somewhere, which shows the basics of using gui

Re: What is the status of guile-gnome, or gtk\guile?

2020-06-07 Thread Zelphir Kaltstahl
Ah right! Might have been guile-gi, what I read about on this mailing list! Thanks for that pointer. On 07.06.20 12:57, Dale Mellor wrote: > On Sun, 2020-06-07 at 10:39 +0200, Zelphir Kaltstahl wrote: >> This is what I have been looking up just yesterday as well! >> >> I

Re: guile-json 4.1.0 released

2020-06-07 Thread Zelphir Kaltstahl
Really thanks a lot for building this part of Guile ecosystem! On 07.06.20 02:09, Aleix Conchillo Flaqué wrote: > Hi! > > I'm happy to announce guile-json 4.1.0. This version improves number > parsing performance by a 2x factor and cleans up and simplifies the builder > code specially unicode rela

Re: Blog post about Hall

2020-06-11 Thread Zelphir Kaltstahl
So far I've not figured out how to use guile-hall and have been looking forward to some nice tutorial. This will come in handy! On 11.06.20 17:10, Jérémy Korwin-Zmijowski wrote: > Dear hackers, > > I want to share with you my last blog post about Hall ! > > Hope it can be helpful. > > Here is the

guile-hall error on probably every command

2020-06-11 Thread Zelphir Kaltstahl
Hi Guile users! I was about to follow the guile-hall tutorial posted on the list today, but unfortunately, I get an error the first time I need to input a guile-hall command: xiaolong@xlx200:~/dev/Guile/guile-hall-example-project$ hall init dummy --author="Red Nose Hacker" --license="gp

Re: guile-hall error on probably every command

2020-06-11 Thread Zelphir Kaltstahl
I believe... > > https://gitlab.com/a-sassmannshausen/guile-config/-/commit/0c6335194db214ad6ef20e13805008bf389b44c4 > > The fix is in guile-config. > > Aleix > > On Thu, Jun 11, 2020, 11:59 AM Zelphir Kaltstahl > mailto:zelphirkaltst...@posteo.de>> wrote: > >

Re: guile-hall error on probably every command

2020-06-11 Thread Zelphir Kaltstahl
I see! I also haven't seen [a-Z] before, anywhere, I think. Thanks for the explanation! On 11.06.20 21:09, to...@tuxteam.de wrote: > On Thu, Jun 11, 2020 at 08:59:35PM +0200, Zelphir Kaltstahl wrote: >> Hi Guile users! >> >> I was about to follow the guile-hall tutoria

Re: guile-hall error on probably every command

2020-06-12 Thread Zelphir Kaltstahl
a new release yet. > > I will attempt to release a new version this weekend and push the new > release to Guix. > > I'll make an announcement when it's done! > > Best wishes, > > Alex > > On Thu, 2020-06-11 at 20:59 +0200, Zelphir Kaltstahl wrote: >>

Re: guile-hall error on probably every command

2020-06-14 Thread Zelphir Kaltstahl
Hi Ludo! That would be "MATE Terminal 1.12.1". Regards, Zelphir On 12.06.20 22:34, Ludovic Courtès wrote: > Hi Zelphir, > > Zelphir Kaltstahl skribis: > >> xiaolong@xlx200:~/dev/Guile/guile-hall-example-project$ guix search >> guile-hall >> guile: w

Re: guile-hall error on probably every command

2020-06-16 Thread Zelphir Kaltstahl
Thanks, I will look out for it! On 14.06.20 22:16, Ludovic Courtès wrote: > Hi, > > Zelphir Kaltstahl skribis: > >> That would be "MATE Terminal 1.12.1". > Thanks, hopefully it was fixed in the meantime: > > https://issues.guix.gnu.org/41811 > > Ludo’.

Re: guile-json 4.2.0 released

2020-06-30 Thread Zelphir Kaltstahl
Hi Aleix! On 6/30/20 9:26 AM, Aleix Conchillo Flaqué wrote: > Hi! > > I'm happy to announce guile-json 4.2.0. This new version introduces a new > feature to allow converting a JSON object into a record type and vice > versa. This feature works well, for example, when creating REST APIs. The > code

Re: Naming conventions

2020-07-07 Thread Zelphir Kaltstahl
Hi Simen! (comments in between) On 07.07.20 13:05, Simen Endsjø wrote: > > Hi, I'm quite new to scheme/lisp and haven't coded in a dynamic > language in many > years. I notice there are some naming conventions, but I'm not sure > how they are > used/supposed to be used. > > - *symbol* :: ? Global

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-08 Thread Zelphir Kaltstahl
Hi Simen! On 7/8/20 6:00 PM, guile-user-requ...@gnu.org wrote: > Hi, I'm new to scheme/lisp, so I'm trying to find out how to do > things the "lisp > way". On the other hand, I like things from other ecosystems too, > and I'm having > problems finding this for Guile. It might be because there's

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-09 Thread Zelphir Kaltstahl
Hi Leo! On 7/9/20 8:12 PM, Leo Butler wrote: > Zelphir Kaltstahl writes: > > > >> To what others already have written I will add: >> >> From time to time one can copy ideas from Racket or look at what exists >> in Racket for solving a problem or seeing

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-10 Thread Zelphir Kaltstahl
Hi all! On 7/10/20 1:20 PM, Catonano wrote: > Il giorno ven 10 lug 2020 alle ore 12:21 Chris Vine > ha scritto: > >> On Fri, 10 Jul 2020 10:49:37 +0200 >> Catonano wrote: >>> Il giorno mer 8 lug 2020 alle ore 20:22 Zelphir Kaltstahl < >>> zelphirka

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-10 Thread Zelphir Kaltstahl
The comments about exception handling also reminded me of the following blog post: https://blog.sulami.xyz/posts/common-lisp-restarts/ Pretty cool concept as well. If there anything like it in Guile or is something like it possible (probably, right?)? On 7/11/20 2:19 AM, Zelphir Kaltstahl

Re: "Missing" libraries/concepts found in other languages/ecosystems?

2020-07-12 Thread Zelphir Kaltstahl
Hi! On 7/12/20 6:08 PM, Catonano wrote: > Il giorno sab 11 lug 2020 alle ore 12:14 Chris Vine > ha scritto: > >> On Sat, 11 Jul 2020 02:19:43 +0200 >> Zelphir Kaltstahl wrote: >> [snip] >>> I would be glad, if any non-optimal example was extended or updated b

Starting a GNU Guile awesome list

2020-07-13 Thread Zelphir Kaltstahl
Hello Guile Users, I followed up on that idea I mentioned recently on the mailing list and started creating an awesome list: https://notabug.org/ZelphirKaltstahl/awesome-guile I'd prefer to render only the org-mode file, as that is what I write and feel most comfortable in, but I decided that th

Re: Starting a GNU Guile awesome list

2020-07-14 Thread Zelphir Kaltstahl
Hi Dmitry! On 7/14/20 11:00 AM, Dmitry Alexandrov wrote: > Zelphir Kaltstahl wrote: >> I ‹…› started creating an awesome list >> https://notabug.org/ZelphirKaltstahl/awesome-guile > +1! > > However, even if you are not going to apply for inclusion¹ in meta-list &g

Re: Starting a GNU Guile awesome list

2020-07-14 Thread Zelphir Kaltstahl
Hi Aleix! On 14.07.20 00:56, Aleix Conchillo Flaqué wrote: > > > On Mon, Jul 13, 2020 at 2:20 PM Zelphir Kaltstahl > mailto:zelphirkaltst...@posteo.de>> wrote: > > Hello Guile Users, > > I followed up on that idea I mentioned recently on the mailing >

Re: Starting a GNU Guile awesome list

2020-07-15 Thread Zelphir Kaltstahl
Hi Arne, On 15.07.20 08:36, Dr. Arne Babenhauserheide wrote: > Zelphir Kaltstahl writes: > >> One can write whole scientific books in org-mode > Or roleplaying books, which actually have higher requirements :-) > (I did both) > >>>> * Do you think license info

Re: Starting a GNU Guile awesome list

2020-07-15 Thread Zelphir Kaltstahl
Hi Arne! On 14.07.20 16:14, Dr. Arne Babenhauserheide wrote: > Zelphir Kaltstahl writes: > >> https://notabug.org/ZelphirKaltstahl/awesome-guile >> >> If you know more things, which should be added to the list, please tell >> me or create a PR or open an issue

Re: A licence for an ‘awesome list’ (was: Starting a GNU Guile awesome list)

2020-07-16 Thread Zelphir Kaltstahl
Hi Dmitry! On 16.07.20 11:18, Dmitry Alexandrov wrote: > Zelphir Kaltstahl wrote: >> On 15.07.20 08:36, Dr. Arne Babenhauserheide wrote: >>> Zelphir Kaltstahl writes: >>>>> First at foremost, the list _itself_ has to be licensed as a free >>>>> d

Re: Handling object communication in GOOPS

2020-07-17 Thread Zelphir Kaltstahl
Hello Jan, to me this sounds like you need to implement perhaps 2 things: 1. a setter for the , which takes care of updating things, when a completely new is added. 2. some kind of observer pattern, where the registers itself as a listener to changes in the . Probably a method at the , somethi

Another find for Guile software

2020-07-21 Thread Zelphir Kaltstahl
Hi Guile Users! Today evening I accidentally found http://sph.mn/foreign/guile-software.csv, when searching for guile-web-diver. Thought it could be a good find for people on the list. I'll go through it and add things from it to the awesome list as well. (Thanks Tantalum!) Regards, Zelphir --

Re: test anything? (Re: My Guile Hacker Handbook)

2020-07-23 Thread Zelphir Kaltstahl
Definitely. Already marking e-mails as "extract information" to add to the list later. I also already added your tutorial in the tutorial category. ; ) On 23.07.20 12:40, Jérémy Korwin-Zmijowski wrote: > Hi Frank and Marc, > > I've never tried to use these frameworks. I will give them a try. > > T

  1   2   3   4   >