Eval with local environment?

2017-08-19 Thread Christopher Howard
I was just curious: Is there something you can pass to eval procedure that using the local environment? e.g., (let ((foo 12)) (eval 'foo (this-environment))) to get it to return 12. Of course, you could just (let ((foo 12)) foo) But suppose you were working with the identifier 'foo instead for

Guile Release Signing Key?

2017-09-15 Thread Christopher Howard
of the project admins, but no luck. -- Christopher Howard Computer Assistant Alaska Satellite Internet 3239 La Ree Way Fairbanks, Alaska 99709 1-888-396-5623 https://alaskasatelliteinternet.com personal web site: https://qlfiles.net https://emailselfdefense.fsf.org/en/ signature.asc Description

Guile Release Signing Key?

2017-09-15 Thread Christopher Howard
of the project admins, but no luck. -- Christopher Howard Computer Assistant Alaska Satellite Internet 3239 La Ree Way Fairbanks, Alaska 99709 1-888-396-5623 https://alaskasatelliteinternet.com personal web site: https://qlfiles.net https://emailselfdefense.fsf.org/en/ signature.asc Description

Listing request: guile-aa-tree module

2017-09-14 Thread Christopher Howard
Hello, I am making a request to have my new module listed on . The project name is Guile AA Tree, which is of course an AA tree implementation available at https://savannah.nongnu.org/projects/guile-aa-tree/ Advantages: - immutable search, insert, and delete operations - Convenient nested-list

Re: Listing request: guile-aa-tree module

2017-09-16 Thread Christopher Howard
On Sat, 2017-09-16 at 14:25 +0200, Ludovic Courtès wrote: > Hello, > > Christopher Howard <christopher.how...@qlfiles.net> skribis: > > > Hello, I am making a request to have my new module listed on > > > ww.gnu.org/software/guile/libraries/>. The proj

Re: SRFIs

2017-09-18 Thread Christopher Howard
Do the SRFIs typically require any C hacking? It seems in Guile there is usually a C function for each built-in scheme function, but I'm not sure how that applies to SRFIs. On Mon, 2017-09-18 at 16:49 +0200, Ludovic Courtès wrote: > Hello Christopher, > > Christopher Howard <chr

Re: Comparison operators for strings /and/ numbers?

2017-09-18 Thread Christopher Howard
On Thu, 2017-08-24 at 10:05 +0200, David Kastrup wrote: > Christopher Howard <christopher.how...@qlfiles.net> writes: > > > Hi, in another lisp I have been working with, it has <, >, and == > > (structure equality) operators which can take string arguments, > >

Re: procedure docstrings / documentation

2017-09-23 Thread Christopher Howard
No thoughts related to this subject? On Wed, 2017-09-20 at 16:18 -0800, Christopher Howard wrote: > Is there any convention on content/formatting for a procedure > docstring? E.g., should I repeat the procedure name and arguments? > Should I insert newlines to maintain a certain t

procedure docstrings / documentation

2017-09-20 Thread Christopher Howard
Is there any convention on content/formatting for a procedure docstring? E.g., should I repeat the procedure name and arguments? Should I insert newlines to maintain a certain text width? I'm not really clear on how document is done in Guile, overall. I see Gieser has ways to look up documention

SRFIs

2017-09-17 Thread Christopher Howard
Hi, I was just wondering if Guile developers are planning to implement all the SRFIs eventually, or if they are just picking and choosing a few here and there? Put another way, is it just a matter of someone volunteering the time to do each SRFI, or are some not being done on purpose? --

Re: Interactive programming with Event Loop?

2017-10-06 Thread Christopher Howard
t 1:23 AM, Christopher Howard > <christopher.how...@qlfiles.net> wrote: > > Hi, I want to code a game using theChickadee framework, but I want > > to > > do it in an interactive programming environment, where I can > > evaluate > > things in the REPL while the Chickade

Enter REPL inside catch...?

2017-10-06 Thread Christopher Howard
Is it possible when catching an exception to enter the REPL, so that after you continue (",q") the code just keeps running at the point after the catch? -- https://creation.com/ signature.asc Description: This is a digitally signed message part

Goops: Setting Immutible Classes?

2017-10-06 Thread Christopher Howard
Hi, is the a way I could use goops such that I the classes are non- mutating, but have setters that simply return a new instance of the class (instead of modifying the original)? I suppose I could simply use define-method to create setter methods which create a new instance of the object; but

Compiling - won't use from site-dir?

2017-09-12 Thread Christopher Howard
Hi, as reading in guile manual section "Modules and the File System", I installed my-module.scm to %site-dir and then my-module.go to %site- dir. But when I run guile interpreter and use-modules my-module, it ignores that one, and instead acts as though the cache in my home directory is the only

Re: Compiling - won't use from site-dir?

2017-09-13 Thread Christopher Howard
On Wed, 2017-09-13 at 10:41 +0100, Chris Vine wrote: > On Tue, 12 Sep 2017 20:05:54 -0800 > Christopher Howard <christopher.how...@qlfiles.net> wrote: > > > Hi, as reading in guile manual section "Modules and the File > > System", > > I installed my-mo

Re: procedure docstrings / documentation

2017-09-25 Thread Christopher Howard
On Sun, 2017-09-24 at 00:47 +, tantalum wrote: > * i don't repeat the procedure name and parameter names because that > can  > be queried at run-time or automatically extracted > On this particular point: how do you query the parameter names at run- time? Or do those have to be extracted

Interactive programming with Event Loop?

2017-09-29 Thread Christopher Howard
Hi, I want to code a game using theChickadee framework, but I want to do it in an interactive programming environment, where I can evaluate things in the REPL while the Chickadee kernel is running, rather than needing to restart the kernel after each modification. The Chickadee kernel runs update

Self balancing trees

2017-08-21 Thread Christopher Howard
Hello, where do I find a self-balancing tree structure to use with guile? I'm new to guile, but I can't seem to find what I'm looking for in the guile info document, or in the gnu guile library collection. signature.asc Description: This is a digitally signed message part

Re: Self balancing trees

2017-08-21 Thread Christopher Howard
On Tue, 2017-08-22 at 07:31 +0300, Marko Rauhamaa wrote: > Christopher Howard <christopher.how...@qlfiles.net>: > > > Hello, where do I find a self-balancing tree structure to use with > > guile? I'm new to guile, but I can't seem to find what I'm looking > > for

scsh or similar?

2017-08-26 Thread Christopher Howard
Hi, I was intrigued by the idea of replacing my default shell with some scheme based shell. I guess there used to be something call scsh but it hasn't been maintained in years. Has some other project taken the baton? Or would I have to resurrect scsh myself? -- https://qlfiles.net

Comparison operators for strings /and/ numbers?

2017-08-24 Thread Christopher Howard
Hi, in another lisp I have been working with, it has <, >, and == (structure equality) operators which can take string arguments, number arguments, or a mixture of both. But it seems in guile that there are separate comparison operators for strings and for numbers. This makes sense but is not very

underscores in debug output?

2017-08-30 Thread Christopher Howard
Hi, what does the underscore character mean in this debug output?    159:37  5 (delete ((3 . "c") (((2 . "b") (()) 1) (5 . "e") (()) 1) 2) 2)    163:49  4 (delete ((2 . "b") (()) 1) _) 152:9  3 (delete _ _) 86:11  2 (skew _)  64:6  1 (horizontal-left-link? _) 46:11  0 (left-tree

Re: underscores in debug output?

2017-08-30 Thread Christopher Howard
Ok, okay. Is there some way to affect that? Perhaps I have to use some debug printing or stop points to see those values? On Wed, 2017-08-30 at 22:46 +0800, Alex Vong wrote: > Christopher Howard <ch.how...@zoho.com> writes: > > > Hi, what does the underscore character mean in

Re: underscores in debug output?

2017-08-30 Thread Christopher Howard
Ok, okay. Is there some way to affect that? Perhaps I have to use some debug printing or stop points to see those values? On Wed, 2017-08-30 at 22:46 +0800, Alex Vong wrote: > Christopher Howard <ch.how...@zoho.com> writes: > > > Hi, what does the underscore character mean in

Re: underscores in debug output?

2017-08-30 Thread Christopher Howard
Ok, okay. Is there some way to affect that? Perhaps I have to use some debug printing or stop points to see those values? On Wed, 2017-08-30 at 22:46 +0800, Alex Vong wrote: > Christopher Howard <ch.how...@zoho.com> writes: > > > Hi, what does the underscore character mean in

Re: Repeat syntax

2017-11-25 Thread Christopher Howard
On Sat, 2017-11-25 at 07:06 -0800, Matt Wette wrote: > > On Nov 25, 2017, at 6:47 AM, Matt Wette > > wrote: > > > > you probably want named let > > > > ((_ n exp exp* ...) > > (let loop ((n n)) > > (unless (<= n 0) > >    exp exp* ... > >    (loop (1- n))) > >

Repeat syntax

2017-11-24 Thread Christopher Howard
Hi list, I want to have a function (repeat n exp exp* ...) That calls the expressions n times for side effect, like for-each, but without the bother of dealing with a list. It seems like somebody else must have thought of this before, but I couldn't find the equivalent procedure. After reading

Re: Signals / Messages / Events / ...?

2018-01-03 Thread Christopher Howard
On Wed, 2018-01-03 at 11:53 +, Neil Jerram wrote: > > Well, one Lispy mechanism in that area is hooks.  For example, from > some  > of my old code: > > ;; Changes to modem registration state are indicated by calling this > ;; hook with args STATE and PROPERTIES.  STATE can be 'none, meaning

Signals / Messages / Events / ...?

2018-01-02 Thread Christopher Howard
Hi list, forgive me if this is a somewhat vague question... but is there some kind of framework/system/approach for Guile where you could have different parts of your code register callback functions to react to a certain signal or message raised by any other part of the code? I'm thinking like

Interactive Debugging

2019-10-17 Thread Christopher Howard
ile-user) [1]> ,locals  No local variables.scheme@(guile-user) [1]> ,upIn current input:700:4  1 (foo)scheme@(guile-user) [1]> ,locals  No local variables.``` --  Christopher Howard p: +1 (907) 374-0257 w: https://librehacker.com social feed: https://gnusocial.club/librehacker xmpp:

Interactive Debugging

2019-10-17 Thread Christopher Howard
ile-user) [1]> ,locals  No local variables.scheme@(guile-user) [1]> ,upIn current input:700:4  1 (foo)scheme@(guile-user) [1]> ,locals  No local variables.``` --  Christopher Howard p: +1 (907) 374-0257 w: https://librehacker.com social feed: https://gnusocial.club/librehacker xmpp:

Re: Interactive Debugging

2019-10-18 Thread Christopher Howard
> processing  > but it's not working and I probably won't work on it anytime soon. > > Apparently the best option for debugging is to use guile-1.8. > > Matt > > For posterity: the required modules are ``` (use-modules (system repl repl)  (system repl debu

Re: Interactive Debugging

2019-10-19 Thread Christopher Howard
> Below is something I played with years ago.  I'm not sure kill-opt is > up to date.   Try with > > >   > (load "jtd.scm") >   > (foo) >   [1]> ,loc The code seems to evaluate fine, but does not produce useful results: ``` scheme@(guile-user)> ,use (potluck jtd) scheme@(guile-user)> (foo)

srfi-64 apathetic test-error

2019-10-22 Thread Christopher Howard
Hi, I was just wondering: `test-error' from (srfi srfi-64) gives a pass if it catches an exception, but it doesn't seem to care whether or not the exception caught matches what you told it to expect. Is this a bug? --  Christopher Howard p: +1 (907) 374-0257 w: https://librehacker.com social

Exception on Hang?

2019-10-14 Thread Christopher Howard
-yielding i/o block, and freezing all the other actors in that OS process. --  Christopher Howard p: +1 (907) 374-0257 w: https://librehacker.com social feed: https://gnusocial.club/librehacker xmpp: creation...@member.fsf.org otr: E9685B53 01F038DD D29281C9 30FDA71E BD0095D4 gnupg: 23FD5CC5

Re: resolving anonymous procedures in statprof

2020-03-01 Thread Christopher Howard
What, none of the Great Ones know the answer to this? Surely I can't be the first to have anonymous functions in statprof'd code. -- Christopher Howard p: +1 (907) 374-0257 w: https://librehacker.com social: https://gnusocial.club/librehacker gpg: ADDEAADE5D607C8D (keys.gnupg.net) On Fri, 2020

resolving anonymous procedures in statprof

2020-02-28 Thread Christopher Howard
embler (,x) on the code I am profiling with statprof, but the addresses given by the dissassembler do not match the ones given by statprof. -- Christopher Howard p: +1 (907) 374-0257 w: https://librehacker.com social: https://gnusocial.club/librehacker gpg: ADDEAADE5D607C8D (keys.gnupg.net)

Unsafe Conversions and Inlining

2020-02-22 Thread Christopher Howard
g? (2) Is there anything I can do as far as inlining those core conversion functions that might be useful? -- Christopher Howard p: +1 (907) 374-0257 w: https://librehacker.com social: https://gnusocial.club/librehacker gpg: ADDEAADE5D607C8D (keys.gnupg.net)

Incomplete backtrace

2020-03-14 Thread Christopher Howard
ent was re-used by some other variable. ''' I do not know if there is a way to disable slot reuse, for debugging purposes. Anyone...? -- Christopher Howard p: +1 (907) 374-0257 w: https://librehacker.com social: https://gnusocial.club/librehacker gpg: ADDEAADE5D607C8D (keys.gnupg.net) > >

How best to produce a standalone executable with Guile?

2020-04-05 Thread Christopher Howard
Are you a Guix user? One you come up with a Guix package definition, it is I think a one line command to generate an exportable executable with a full dependency chain included, or a docker image. -- Christopher Howard p: +1 (907) 374-0257 w: https://librehacker.com social: https