Re: Static site generator

2023-01-13 Thread Dr. Arne Babenhauserheide
Sascha Ziemann writes: > All you need is quasiquote, unquote and a function which formats SXML as XML. > > (html > `("" I use something like this with Guile: https://hg.sr.ht/~arnebab/guile-freenet/browse/fetchpull-standalone.scm?rev=tip#L604 (define (website-content port) (define title "F

Re: Static site generator

2023-01-13 Thread Sascha Ziemann
Am Fr., 13. Jan. 2023 um 18:33 Uhr schrieb James Crake-Merani : > > I was wondering if you guys are aware of any static site generators > written in Guile. I'm looking for something that can be extended in > Guile so I can write my own code for it in Scheme. > All you need is quasiquote, unquote a

Re: Static site generator

2023-01-13 Thread david larsson
On 2023-01-13 18:03, James Crake-Merani wrote: Hi, I was wondering if you guys are aware of any static site generators written in Guile. I'm looking for something that can be extended in Guile so I can write my own code for it in Scheme. I'm aware of GNU Artanis but to my knowledge this is only

Re: Static site generator

2023-01-13 Thread Massimiliano Gubinelli
Hi all, this is tangentially related to the topic, but I would like to mention that you can use TeXmacs with some guile script to create websites. An example is the main TeXmacs blog which is a set of hyperlinked TeXmacs documents which can be navigated and edited within the program and then e

Re: Static site generator

2023-01-13 Thread James Crake-Merani
On 13/01/2023 17:53, Jack Hill wrote: On Fri, 13 Jan 2023, James Crake-Merani wrote: Hi, I was wondering if you guys are aware of any static site generators written in Guile. I'm looking for something that can be extended in Guile so I can write my own code for it in Scheme. I'm aware of G

Re: Static site generator

2023-01-13 Thread Jack Hill
On Fri, 13 Jan 2023, James Crake-Merani wrote: Hi, I was wondering if you guys are aware of any static site generators written in Guile. I'm looking for something that can be extended in Guile so I can write my own code for it in Scheme. I'm aware of GNU Artanis but to my knowledge this is o

Re: Static site generator

2023-01-13 Thread Olivier Dion via General Guile related discussions
On Fri, 13 Jan 2023, James Crake-Merani wrote: > Hi, > > I was wondering if you guys are aware of any static site generators > written in Guile. I'm looking for something that can be extended in > Guile so I can write my own code for it in Scheme. I'm aware of GNU > Artanis but to my knowledge

Static site generator

2023-01-13 Thread James Crake-Merani
Hi, I was wondering if you guys are aware of any static site generators written in Guile. I'm looking for something that can be extended in Guile so I can write my own code for it in Scheme. I'm aware of GNU Artanis but to my knowledge this is only for dynamic websites if I'm not mistaken.

Re: fibers,questions about thread id and mutation of vectors

2023-01-13 Thread Maxime Devos
for (i=start; i<=stop; i++) { /* i is private by default */ scm_init_guile(); scm_call_1( func , scm_from_int(i) ); IIUC, you are calling scm_init_guile once per index, whereas calling it once per thread would suffice. For better performance, I propose doing it once per thread.

Re: fibers,questions about thread id and mutation of vectors

2023-01-13 Thread Damien Mattei
i made some test of openMP and Guile with Guile 3.0.8.99-f3ea8 on MacOS M1 and Linux Intel because i was not sure of the performances. I find a problem on Linux the code is slower (could be a factor of 5) with openMP and in Mac OS the gain is is of 100% (divide by 2) or 15% depending of computation