Re: compiler types: records / collections interaction

2024-02-09 Thread Kon Lovett
> On Feb 9, 2024, at 11:59 AM, Al wrote: > > Suppose I need a record of a record type myrec, and collections (vectors-of, > lists-of and hash-tables) with values myrec. (define-type myrec (struct myrec)) (define-type myrec-vec (vector-of myrec)) (: myrv-ref (myrec-vec fixnum —> myrec)

Re: Deprecated current-milliseconds

2023-12-06 Thread Kon Lovett
> On Dec 6, 2023, at 1:58 PM, Lassi Kortela wrote: > > Hi, > > Version 5.3 csc gives the warning: > > Use of deprecated identifier `current-milliseconds' from module > `chicken.time'. > > for (at least) these modules: > > * scheme.time (r7rs) > * sendfile > * srfi-18 > > Is there a

Re: How to get help on commands

2023-08-24 Thread Kon Lovett
#613 $ chicken-doc scheme open-output-file -- procedure: (open-output-file filename [mode ...]) Takes a string naming an output file to be created and returns an output port capable of writing characters to a new file by that name. If the file cannot be opened, an error is signalled. If a file

Re: Question about how to check a symbol is bound

2023-06-23 Thread Kon Lovett
> On Jun 22, 2023, at 9:07 PM, Pan Xie wrote: > > Hello > > I am new to CHICKEN scheme and here is a (very) quick question of how to > check whether a symbol is bound. > > I know it doable but I can't find the way. > > I don't find the methods from the main CHICKEN manual document. Then I

Re: Problems with a program that uses SRFI-19 egg on Fedora 36 x86_64

2023-03-09 Thread Kon Lovett
> On Mar 8, 2023, at 7:39 PM, T. Kurt Bond wrote: > > I have a program that uses SRFI-19. It works fine when compiled on macOS > using CHICKEN from brew. However, when I compile it on Fedora 36 x86_64, > when run it issues the following errpr" > > Error: (file-exists?) system error while

Re: How does process-fork affect mailbox and threads

2022-09-22 Thread Kon Lovett
> On Sep 22, 2022, at 6:06 PM, Claude Marinier wrote: > > Allô, > > I am considering a different approach for an old project which collects IP > traffic addresses and counters. The old approach has serious flaws: the PCAP > handler calls Scheme to process each packet without buffering and

Re: After upgrade to 5.3.0 chickadee is broken

2021-12-24 Thread Kon Lovett
similar - https://bugs.call-cc.org/ticket/1721 > On Dec 24, 2021, at 8:49 AM, T. Kurt Bond wrote: > > Ok, I've figured out what went wrong, but I'm not sure why that happened. > Again, this is happening on macOS using homebrew to install CHICKEN Scheme > 5.3.0. > > The

Re: Qt-light compile error

2021-12-04 Thread Kon Lovett
try removing the VERSION file #! /usr/bin/env bash EGG=${1:-taglib} export CHICKEN_CSI=$(which csi) CACHE_DIR=$HOME/.cache/chicken-install chicken-install -retrieve $EGG rm $CACHE_DIR/$EGG/VERSION chicken-install -test $EGG > On Dec 4, 2021, at 7:34 AM, Michael JH wrote: > > Hi: > > I have

Re: Reository Path, FAQ, and Index Questions

2021-11-15 Thread Kon Lovett
> On Nov 15, 2021, at 6:06 AM, Christian Himpe > wrote: > > Hello, > > I would like to ask how I can programmatically determine the system location > of eggs? shell: chicken-install -repository scheme: (import (chicken platform)) (repository-path) > I ask because if I installed an egg

Re: message-digest-utils egg failing to install

2021-09-14 Thread Kon Lovett
> On Sep 14, 2021, at 4:38 PM, Jeff Moon wrote: > > Hi all, > I have some automation that is building chicken fairly regularly with the > eggs that I need for one of my projects, and I noticed that about a week ago > it started failing while installing the message-digest-utils egg. After a

[ANN] faster message-digest

2021-09-08 Thread Kon Lovett
to anyone* using the message-digest “suite” the new release shows a decent speedup of course this does nothing for the dependency bloat * P{user(message-digest)} x [user] ~ 1 ;-) - macOS 11.5.2 w/ 3.2 GHz 6-Core Intel Core i7 csc md-v-simple.scm -Dfile -Dsimple -o simple-file csc

Re: `utf8#string-length` hangs on eof octal

2021-05-05 Thread Kon Lovett
> On May 5, 2021, at 2:42 PM, Kon Lovett wrote: > > same behavior w/ C5 but #;1> (import utf8) #;2> (valid-string? "\377\354") #f > >> On May 5, 2021, at 2:20 PM, Henry Hu wrote: >> >> Hello CHICKEN users! >> >> I'm using CH

Re: `utf8#string-length` hangs on eof octal

2021-05-05 Thread Kon Lovett
same behavior w/ C5 > On May 5, 2021, at 2:20 PM, Henry Hu wrote: > > Hello CHICKEN users! > > I'm using CHICKEN 4.13.0 from 2017 December. When debugging why "send eof" > caused our server to hang indefinitely, I found out that utf8's string-length > was the culprit: > > ``` > $ csi >

Re: Orphan SRFI eggs and maintainership changes

2021-02-25 Thread Kon Lovett
srfis 27, 45, 111 & 195 (tbd)

Re: I ported the combinators egg to chicken 5

2020-12-18 Thread Kon Lovett
yes, please add to C5 (if you find it useful, maybe someone else ;-) > On Dec 18, 2020, at 4:04 AM, Alaric Snell-Pym > wrote: > > Hi there Kon, > > As I was porting something that needed it, I did a quick port of the > combinators egg to C5... I did it with cond-expand so the same codebase

Re: How to (eval ...) in a R7RS library?

2020-09-10 Thread Kon Lovett
(define-library (test-eval) (import (scheme base) (scheme eval) ; \ / \ / (only (scheme r5rs) scheme-report-environment)) (export my-eval) (begin (define (my-eval) (eval '42 (scheme-report-environment 5) > On Sep 10, 2020, at 12:26 PM, Lukas Böger wrote:

Re: 【Deployment】

2020-08-15 Thread Kon Lovett
appears using CHICKEN 5 but extras.c & data-structures.c are CHICKEN 4 modules > On Aug 15, 2020, at 2:42 AM, Kristian Lein-Mathisen > wrote: > > > Hi, > > I'm glad that helped. But I suppose I should have explained my process, > instead of just giving you the end result - which clearly

Re: srfi-19 for C5?

2020-01-15 Thread Kon Lovett
posix-utils should be available soon > On Jan 15, 2020, at 7:20 AM, Sven Hartrumpf wrote: > > Hi all. > > I found http://wiki.call-cc.org/eggref/5/srfi-19 > and assumed that SRFI-19 is supported by C5. > But chicken-install fails because a dependency leads to posix-utils > (and probably more

Re: [Chicken-users] How to use CHICKEN_apply function? Is there an example?

2019-08-30 Thread Kon Lovett
none that i know. but the general idea is C_word args = C_list( … ); C_word proc = C_closure( … ); /* example after http://wiki.call-cc.org/man/5/C%20interface#c_closure */ C_word result; if (CHICKEN_apply( proc, args, )) { /* do

Re: [Chicken-users] Constants via define-constant

2019-07-05 Thread Kon Lovett
> On Jul 5, 2019, at 4:23 AM, Amir Teymuri wrote: > > Can someone explain what the difference between define and > define-constant? I read the docs > https://wiki.call-cc.org/man/5/Module%20(chicken%20base)#define-constant > but i can't understand what its trying to say. Does define-constant >

Re: [Chicken-users] Segmentation violation with chicken 5.1.0

2019-06-22 Thread Kon Lovett
C5.1 on macOS w/ clang also fails > On Jun 22, 2019, at 8:50 AM, Sven Hartrumpf wrote: > > Hello. > > I have a strange problem with legacy code that works in many > other Schemes and Chicken 5 csi, but the binary compiled with Chicken 5 > crashes. > I have a reduced example: >

Re: [Chicken-users] [Chicken-announce] [ANN] CHICKEN 5.1.0 release candidate available

2019-06-09 Thread Kon Lovett
Operating system: macOS 10.14.5 Hardware platform: x86 C Compiler: clang 10.0.1 Installation works?: yes Tests work?: yes Installation of eggs works?: yes ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] more 'foreign' questions

2019-03-27 Thread Kon Lovett
> On Mar 27, 2019, at 12:14 PM, Christoph Lange wrote: > > i haven’t used the bind egg but the documentation "General Operation” > section beginining with "Structure and union definitions …” seems relevant. > > Haha, yes, thanks. Finding the relevant parts of the docs seems to be the >

Re: [Chicken-users] more 'foreign' questions

2019-03-27 Thread Kon Lovett
(gotta flight coming up so dashing but hth) probably need to use the length for make-blob & then move-memory! from pointer to the alloc’ed blob see (chicken memory) > On Mar 27, 2019, at 12:14 PM, Christoph Lange wrote: > > i haven’t used the bind egg but the documentation "General

Re: [Chicken-users] more 'foreign' questions

2019-03-27 Thread Kon Lovett
i haven’t used the bind egg but the documentation "General Operation” section beginining with "Structure and union definitions …” seems relevant. it rolls access routines, ex: mosquitto_message-mid, mosquitto_message-payload, ... #;1> (import bind) ; loading

Re: [Chicken-users] string interpolation

2019-03-25 Thread Kon Lovett
yeah, it shouldn’t eval on the fly unfortunately i cannot work on it until next week sorry > On Mar 25, 2019, at 2:30 PM, Phil Hofer wrote: > > Hi all, > > I'm looking to perform string interpolation identically to > the #<# multi-line reader macro, but for single-line strings. > The

Re: [Chicken-users] Timezone Handling in Chicken

2018-11-28 Thread Kon Lovett
i will not be able to fix this for a few days > On Nov 28, 2018, at 12:53 PM, Jeff Moon wrote: > > If I run the following code under csi: > (use posix locale) > (locale-current#current-locale-components) > It runs fine, and returns the expected info. However, if I do the following: > export

Re: [Chicken-users] directory-utils egg has dependency that appears to not exist

2018-04-07 Thread Kon Lovett
> On Apr 7, 2018, at 9:26 AM, Matt Welland wrote: > > Directory utils 1.1.0 depends on typed-define which does not appear to > exist. If I install 1.0.6 it works. sorry. try 1.1.1, when available.. > > Thanks. > > ___ >

Re: [Chicken-users] Memory allocation and limits in chicken scheme programs

2017-12-13 Thread Kon Lovett
> On Dec 13, 2017, at 4:16 PM, Matt Welland wrote: > > > > On Wed, Dec 13, 2017 at 12:41 PM, Peter Bex > wrote: > On Wed, Dec 13, 2017 at 11:13:54AM -0700, Matt Welland wrote: > > I'm using Chicken 4.10.0 and with

[Chicken-users] [ANN] updated apropos : 2.5.0

2017-11-05 Thread Kon Lovett
looks like this now (sort by module is new): #;1> ,a print qualified macros sort module ##sys#record-printersvariable ##sys#print-length-limit procedure args ##sys#print-to-stringprocedure (xs) ##sys#repl-print-hook

Re: [Chicken-users] Printing Problem

2017-07-14 Thread Kon Lovett
> On Jul 14, 2017, at 11:46 AM, Daniel I Hong wrote: > > Hi all, > > I just recently began using Chicken, and I ran into a problem when trying to > write something to a file. Is there any function identical to 'write' from > from the 'extras' unit, except it prints literal

Re: [Chicken-users] strange behavior with SRFI-19 date arithmetic

2017-03-04 Thread Kon Lovett
> On Mar 4, 2017, at 11:29 AM, Todd Roth wrote: > > When using the date arithmetic functions in srfi-19 I’m getting incorrect > results when specifying ‘days or any smaller DATE-KEY parameter. The ‘year > DATE-KEY returns the correct date/time. Below is an example from a

Re: [Chicken-users] mathh failure with csc -optimize-level 3

2017-01-15 Thread Kon Lovett
> On Jan 15, 2017, at 4:12 AM, Peter Bex wrote: > > On Sat, Jan 14, 2017 at 10:17:14PM -0500, Robert Altenburg wrote: >> Is this a bug that others can replicate? Any idea what's going on? > > Hello Robert, > > This looks like either a bug in the "mathh" egg, or a bug in

Re: [Chicken-users] set! on unbound variable

2016-09-23 Thread Kon Lovett
> On Sep 23, 2016, at 6:31 PM, Dan Leslie wrote: > > Sounds like a Chicken Bug, Chicken calls this a “convenience”. Yes, a std violation but handy using a REPL. Should be able to defeat. > from the docs[‎0]: > > > is evaluated, and the resulting value is stored in the >

Re: [Chicken-users] Having trouble statically compiling code

2016-09-01 Thread Kon Lovett
> On Sep 1, 2016, at 10:57 AM, Peter Bex <pe...@more-magic.net> wrote: > > On Thu, Sep 01, 2016 at 10:52:42AM -0700, Kon Lovett wrote: >>> Kon, if you're reading this: It would be nice if setup-helper could >>> detect this deprecated usage and simply error.

Re: [Chicken-users] Having trouble statically compiling code

2016-09-01 Thread Kon Lovett
> On Aug 31, 2016, at 11:44 PM, Peter Bex wrote: > > On Thu, Sep 01, 2016 at 02:03:26AM +0100, stugol wrote: >> Hi Peter, >> >> We're close, but not quite there yet: >> >> Error: (require) cannot load extension: setup-api >>Call history: >>

Re: [Chicken-users] ARM web sockets extension compile error

2016-09-01 Thread Kon Lovett
> On Sep 1, 2016, at 7:40 AM, Jarrod Bourlon wrote: > > I am trying to compile the websockets extension for ARM using the typical > ‘arm-linux-gnueabi-gcc’ cross-compilation method by generating a special > cross-compilation Chicken as described here: >

Re: [Chicken-users] [ANN] New egg: color - a port of Aubrey Jaffer's SLIB color module

2016-04-30 Thread Kon Lovett
> On Apr 29, 2016, at 10:10 PM, Erik Falor wrote: > > On Fri, Apr 29, 2016 at 05:32:48PM +, Alex Charlton wrote: >> This is awesome! I was just about to play with some colour related >> stuff and I was feeling sad that I didn't have easy access to different >>

Re: [Chicken-users] ANN: [geiser] Version 0.8

2015-10-12 Thread Kon Lovett
> On Oct 12, 2015, at 8:39 AM, Dan Leslie wrote: > > > A great many bugs in the Chicken Scheme support have been addressed; > many thanks to the users who reported issues! > > Also, completions are, on average, much faster for REPLs with very large > environments. It could

Re: [Chicken-users] sequential version of set!

2015-08-12 Thread Kon Lovett
On Aug 12, 2015, at 4:50 AM, Alexej Magura amagur...@gmail.com wrote: Is there a sequential version of set!, as in setq? See http://wiki.call-cc.org/eggref/4/moremacros#stiff-set ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] u8vector to numbers bignum

2015-05-28 Thread Kon Lovett
On May 27, 2015, at 3:53 PM, chi chic...@verge.info.tm wrote: How would I convert a u8vector to a bignum? I'd like a good large random number, and there's srfi 27 for decent random sources, and there's 'numbers' for bignum support, but srfi-27 only produces fixnums or u8vectors. The

Re: [Chicken-users] testing if a symbol has been interned

2014-12-19 Thread Kon Lovett
On Dec 19, 2014, at 10:38 PM, Alexej Magura agm2...@gmail.com wrote: In Common Lisp, clisp specifically, you can test whether a symbol has been bound, that is interned, or not using boundp; is there a way to do this in Chicken? (boundp 'a) ; nil (defvar a 1) (boundp 'a) ; t I

Re: [Chicken-users] How to pass a list to amb?

2014-08-24 Thread Kon Lovett
On Aug 24, 2014, at 12:48 PM, Sascha Ziemann cev...@gmail.com wrote: I tried to pass a list to amb but I do not know how to use amb-thunks. I tried this: (require-extension amb) (let ((names '(a b c))) (amb-collect (let ((name (amb-thunks (map (lambda (x) x) names)))

Re: [Chicken-users] Install error on variable-item - custom repository

2014-06-06 Thread Kon Lovett
(Forgot to CC the group) On Jun 6, 2014, at 10:26 AM, maresp m...@cubeball.net wrote: Hi, when I try to install srfi-19 with a custom repository location, chicken-install halts when installing variable-item with the following error Sorry you are having trouble installing. Please try

Re: [Chicken-users] CHICKEN 4.9.0rc1 is available

2014-04-18 Thread Kon Lovett
On Apr 18, 2014, at 8:13 AM, Mario Domenech Goulart mario.goul...@gmail.com wrote: Hi Daniel, On Fri, 18 Apr 2014 08:08:57 -0700 Daniel Leslie d...@ironoxide.ca wrote: Could we get the following C functions exposed to scheme? C_find_symbol_table C_enumerate_symbols Unless I'm

Re: [Chicken-users] mutate-procedure documentation

2014-03-08 Thread Kon Lovett
On Mar 8, 2014, at 10:12 AM, pluijzer . pluij...@gmail.com wrote: Hello everybody, I was reading the documentation for mutate-procedure in the lolevel unit (http://wiki.call-cc.org/man/3/Unit%20lolevel#mutate-procedure) but got confused by the example given. Should 'new' not be called

Re: [Chicken-users] Nested hash-tables, and so on..

2014-02-09 Thread Kon Lovett
On Feb 9, 2014, at 11:12 AM, .alyn.post. alyn.p...@lodockikumazvati.org wrote: On Sun, Feb 09, 2014 at 03:29:09PM +0100, mfv wrote: Hi, I've been fooling around a bit with chicken, and now I am on towards a small project. I have a question regarding the performance of list and

Re: [Chicken-users] Error: unbound variable: read-line

2013-12-13 Thread Kon Lovett
as a criticism, sorry. Needed an emoticon since intended an exclamation of wonder that the exact same procedure is in question in exactly 1 week. Thank you for your help. On Fri, Dec 13, 2013 at 6:44 PM, Kon Lovett konlov...@gmail.com wrote: (Wasn't the exact same issue asked answered

Re: [Chicken-users] alist-update

2013-09-26 Thread Kon Lovett
On Sep 26, 2013, at 6:59 PM, Matt Gushee m...@gushee.net wrote: Hi, I am just wondering if alist-update from data-structures is guaranteed to preserve order (assuming all keys to be updated are present in the original). Yes. But not tail-recursive result shares the source list tail.

Re: [Chicken-users] Big integers as statement parameters in sql-de-lite

2013-07-22 Thread Kon Lovett
On Jul 22, 2013, at 3:26 PM, Matt Gushee m...@gushee.net wrote: Hi, chickenists-- I am working on an application that stores data in a SQLite3 database, and am currently using the sql-de-lite egg to interface with the DB. I have a few fields that represent dates, and I have defined their

Re: [Chicken-users] representation of a procedure

2013-06-27 Thread Kon Lovett
On Jun 27, 2013, at 9:52 AM, Daniel Ajoy da.a...@gmail.com wrote: Hi, Is there a function that gives the content of a procedure (it's definition)? The interpreter doesn't save the original s-expr neither does the compiler. Reflection facilities are slim. You can recover, sometimes, the

Re: [Chicken-users] dynamic scoping

2013-06-26 Thread Kon Lovett
See http://api.call-cc.org/doc/chicken/special-forms#def:fluid-let #;1 (define a 1) #;2 (define (add x) (+ x a) ) #;3 (let ((a 100) ) (add 10) ) 11 #;4 (fluid-let ((a 100) ) (add 10) ) 110 On Jun 26, 2013, at 2:47 PM, Daniel Ajoy da.a...@gmail.com wrote: add binds a to 1 at the moment of

Re: [Chicken-users] dynamic scoping

2013-06-26 Thread Kon Lovett
had to be different. ;) The related SRFI is withdrawn, is it safe to assume that fluid-let will be available outside of Chicken? -Dan On 6/26/2013 2:56 PM, Kon Lovett wrote: See http://api.call-cc.org/doc/chicken/special-forms#def:fluid-let #;1 (define a 1) #;2 (define (add x) (+ x

[Chicken-users] ANN: apropos egg 2.0.0

2012-12-16 Thread Kon Lovett
Works w/ the new Chicken. Long time in the wilderness I know. My apologies. Best Wishes, Kon ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] error with srfi-19: /usr/lib/chicken/6/locale-posix.so: undefined symbol: C_fixnum_modulo

2012-12-13 Thread Kon Lovett
Cannot reproduce with CHICKEN Version 4.8.1 (rev 19a6b5b) But I will make a version that doesn't use the %proc routines. On Dec 13, 2012, at 7:20 AM, Hugo Arregui hugo.arre...@gmail.com wrote: On Thu, Dec 13, 2012 at 12:20 PM, Hugo Arregui hugo.arre...@gmail.com wrote: Oh sorry, i left the

Re: [Chicken-users] Apropos dependency error

2012-12-03 Thread Kon Lovett
On Dec 3, 2012, at 11:29 AM, Matt Gushee m...@gushee.net wrote: Hello, Chickenistas-- I am going through my egg installation and updating some old ones, but I am getting an error with apropos: Syntax error (import): cannot import from undefined module memoized-string

Re: [Chicken-users] hash table questions

2012-11-23 Thread Kon Lovett
On Nov 23, 2012, at 1:58 PM, Kevin Wortman kwort...@gmail.com wrote: Hi, This may or may not be helpful, but I'll add that, if it were me, I'd represent an IP address as a list of four fixnums rather than a u8vector. Then the default hash function will work out of the box, and many of

Re: [Chicken-users] hash table questions

2012-11-22 Thread Kon Lovett
On Nov 22, 2012, at 4:56 PM, Claude Marinier claudem...@gmail.com wrote: Greetings fellow Schemers, Having established in a previous post that using a u8vector as a key for a hash table is expected to work, I have some specific questions. I am still learning how to post questions

Re: [Chicken-users] hash table questions

2012-11-22 Thread Kon Lovett
On Nov 22, 2012, at 7:32 PM, Kon Lovett konlov...@gmail.com wrote: On Nov 22, 2012, at 4:56 PM, Claude Marinier claudem...@gmail.com wrote: Greetings fellow Schemers, snip or would it just create a new record without complaining? This would look like duplicate keys but they would

Re: [Chicken-users] Modules in shared libs?

2012-11-21 Thread Kon Lovett
On Nov 21, 2012, at 1:13 PM, Matt Gushee mattgus...@gmail.com wrote: Hi-- I am developing a project that is going to use plugins. It's at a very early stage, and I am not at all sure how the details of the system will work, but my thinking at this point is that the plugins: - may be

Re: [Chicken-users] Why doesnot (+ 1/2 1/3) equal to 5/6 ?

2012-11-07 Thread Kon Lovett
On Nov 7, 2012, at 4:17 PM, .alyn.post. alyn.p...@lodockikumazvati.org wrote: On Wed, Nov 07, 2012 at 11:57:33PM -, z_axis wrote: (+ (+ 1/2 1/3) Warning: cannot represent exact fraction - coerced to flonum: 1/2 Warning: cannot represent exact fraction - coerced to flonum: 1/3

Re: [Chicken-users] Problem with uuid-lib egg

2012-08-19 Thread Kon Lovett
Please try uuid-lib 1.4.1 It passes the Linux platform Salmonella run. On Aug 17, 2012, at 7:11 PM, Kon Lovett wrote: On Aug 17, 2012, at 1:47 PM, John Maxwell wrote: Hi all- I'm writing some code which needs to generate uuids, so naturally I turned to the uuid-lib egg. My problem

Re: [Chicken-users] Problem with uuid-lib egg

2012-08-17 Thread Kon Lovett
On Aug 17, 2012, at 1:47 PM, John Maxwell wrote: Hi all- I'm writing some code which needs to generate uuids, so naturally I turned to the uuid-lib egg. My problem is, the egg needs libuuid.so (since the egg is basically a thin wrapper around that library), and this is causing me

Re: [Chicken-users] Building a web store in Chicken scheme

2012-05-08 Thread Kon Lovett
On May 8, 2012, at 12:50 PM, Christian Kellermann wrote: * Christian Kellermann ck...@pestilenz.org [120508 21:45]: I need functions like my_sql_real_escape_string and htmlspecialchars in php. I also need to know how to add ssl support (is it only configuration?). If someone is willing to

[Chicken-users] Ignore -rpath for mingw macosx

2012-04-28 Thread Kon Lovett
Attached is a patch that ignores the '-rpath directory' option for mingw macosx; MacOS X ld doesn't understand '-R'. ignore_rpath_for_macosx.patch Description: Binary data ___ Chicken-users mailing list Chicken-users@nongnu.org

Re: [Chicken-users] Regexp egg compilation error

2012-03-12 Thread Kon Lovett
I think the extension is called regex: http://wiki.call-cc.org/eggref/4/regex BTW, this is for temporary backwards-compatibility. New code should use irregex: http://wiki.call-cc.org/man/4/Unit%20irregex On Mar 12, 2012, at 8:14 PM, Arthur Maciel wrote: Hello! I'm getting the following

Re: [Chicken-users] Regexp egg compilation error

2012-03-12 Thread Kon Lovett
regex is a thin wrapper over irregex I suspect the result of an irregex constructor will be accepted. Thanks, Arthur 2012/3/13 Kon Lovett konlov...@gmail.com I think the extension is called regex: http://wiki.call-cc.org/eggref/4/regex BTW, this is for temporary backwards-compatibility

Re: [Chicken-users] case vs. eq? - just curious ....

2012-03-02 Thread Kon Lovett
On Mar 2, 2012, at 3:52 PM, Matt Welland wrote: I expected this to work: (define (comp-text comp) (case comp ((=)=) (()) (()) ((=) =) ((=) =) (else unk))) But had to convert to a cond with (eq? comp =) etc... Are =, , etc variables? 'case' quotes

Re: [Chicken-users] Installing on Mac OS 10.7.3

2012-02-15 Thread Kon Lovett
On Feb 15, 2012, at 7:21 AM, Jim Ursetto wrote: Ok, then also add ARCH=x86-64 like you had originally. It was my understand this wasn't needed on 10.6 or 10.7 Not needed in my experience. (Lion on a MacBook Pro). I use make PLATFORM=macosx C_COMPILER=gcc-4.2 and I thought I confirmed

Re: [Chicken-users] md5 egg documentation wrong

2011-12-15 Thread Kon Lovett
On Dec 15, 2011, at 10:16 AM, obscurolocon...@googlemail.com wrote: The documentation for the md5 egg states: Any Scheme-object can be the SOURCE for a digest. But that seems to be wrong: It is wrong, or at least incomplete, without the sentence below it in the doc: See

Re: [Chicken-users] numeric-macros: -- increments instead of decrementing

2011-12-02 Thread Kon Lovett
On Dec 2, 2011, at 7:31 AM, Markus Klotzbuecher wrote: Hi All, I just noticed the following: #;1 (use numeric-macros) ; loading /var/lib//chicken/6/numeric-macros.import.so ... ; loading /var/lib//chicken/6/numeric-macros.so ... #;2 (++ 3) 4 #;3 (-- 3) 4 #;4 This doesn't seem

Re: [Chicken-users] inline vectors vs. srfi-9 records vs. non-inlined vectors -- or -- anything faster than srfi-9?

2011-10-09 Thread Kon Lovett
On Oct 8, 2011, at 6:40 PM, Matt Welland wrote: I'm in the habit of using inlined vector access for poor mans records: (define-inline (db:test-get-id vec) (vector-ref vec 0)) (define-inline (db:test-get-run_id vec) (vector-ref vec 1)) on the assumption that it is as

Re: [Chicken-users] chicken hangs and uses 100% cpu (mac os x lion)

2011-09-13 Thread Kon Lovett
This might be relevant - was for me: http://lists.nongnu.org/archive/html/chicken-users/2011-08/msg5.html But what is actually the problem would be good to know. On Sep 13, 2011, at 5:56 PM, Topher Cyll wrote: Hey everyone, Like a previous poster, I'm having issues with Chicken on Mac

Re: [Chicken-users] catching a cannot import undefined module error

2011-08-20 Thread Kon Lovett
On Aug 20, 2011, at 7:59 AM, Hugo Arregui wrote: Hi guys, is there a way to catch cannot import undefined module error? I tried with catch and with-exception-handler procedures, but they don't seems to work. This is raised as a syntax-error these do not use the exception machinery.

Re: [Chicken-users] About peformance of user defined procedures

2011-07-30 Thread Kon Lovett
On Jul 30, 2011, at 4:43 PM, Pedro Henrique Antunes de Oliveira wrote: Hey. I have a file map.scm, which contais this code: (define (mymap1 op ls) (let loop ((ls ls) (acc '())) (if (null? ls) (reverse acc) (loop (cdr ls) (cons (op (car ls)) acc) (define

[Chicken-users] About egg version identifier

2011-07-20 Thread Kon Lovett
Hi Folks, Please be aware the version identifier information from a .setup file is parsed using `read'. So be careful with a version identifier which will be interpreted as an inexact number, e.g. 1.10 will be version 1.1! To preserve meaning use a string form - 1.10. Thank you, Kon

Re: [Chicken-users] What is the charset of the characters of a string literal?

2011-07-16 Thread Kon Lovett
On Jul 16, 2011, at 5:35 PM, Pedro Henrique Antunes de Oliveira wrote: What is the charset of the characters of a string literal? Is it the source file's charset? Yes, since it only understands Unicode in the UTF-8 encoding. So the following is valid (embedded \u44A5 codepoint):

Re: [Chicken-users] remote-mailbox

2011-07-09 Thread Kon Lovett
(I responded directly forgot to CC the list.) On Jul 9, 2011, at 6:22 PM, David N Murray wrote: $ csi CHICKEN (c)2008-2011 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.7.0 linux-unix-gnu-x86 [ manyargs dload ptables ] compiled 2011-07-09 on localhost (Linux) #;1 (use

[Chicken-users] Problem w/ a new egg

2011-07-05 Thread Kon Lovett
Hi Folks, Having a me too stupid problem: I added an egg - csv-xml - to the svn repo Sat. Attempts to install yield: Warning: extension `csv-xml' has no .meta file - assuming it has no dependencies My initial save did not list the .meta in the files manifest so the above msg made some

Re: [Chicken-users] where move-file is?

2011-06-30 Thread Kon Lovett
On Jun 30, 2011, at 6:04 AM, Hugo Arregui wrote: Hi guys, I want to use move-file procedure, ( http://api.call-cc.org/doc/chicken/eggs/move-file ), but i cannot find it as an egg or as an procedure. I mean, seems an egg, but chicken-install cannot find it, and doesn't seems installed

[Chicken-users] ANN: The `str#' macro

2011-06-25 Thread Kon Lovett
Hi, Just added `str#' to the moremacros egg. It behaves like ## but for regular strings. Might be useful. (str# (+ 1 2) = #{(+ 1 2)}) = (+ 1 2) = 3 = (conc (+ 1 2) = (+ 1 2)) (str# (+ 1 2) = #(+ 1 2)) = (+ 1 2) = 3 = (conc (+ 1 2) = (+ 1 2)) (str# #{23}###{45}) = 23#45

Re: [Chicken-users] Different factorial results

2011-06-03 Thread Kon Lovett
On Jun 3, 2011, at 9:49 AM, John Cowan wrote: Steve Graham scripsit: Thanks, Mario. Worked like a charm. Why is that not part of the base package? Licensing. The numbers egg has to be GPL, because it depends on the GMP (GNU Multi-precision Library) which is GPL. The overall

Re: [Chicken-users] Possible numbers bug

2011-05-27 Thread Kon Lovett
On May 27, 2011, at 1:58 AM, Dominic Pearson wrote: Hello folks, I am trying to compute the sum i = 0 to n where n = 1000 of n^n, but chicken seems to return the incorrect answer. http://paste.call-cc.org/paste?id=e0884580a684d1220f3dedb819f63201b6f5eb1a Racket and scheme48 both seem to

Re: [Chicken-users] Possible numbers bug

2011-05-27 Thread Kon Lovett
: 520cbadfbf1e95567b1b49bd543fa8ab Note that using the RSA utility md5 string literals I get the same digest value. On Fri, May 27, 2011 at 10:21 AM, Kon Lovett konlov...@gmail.com wrote: On May 27, 2011, at 1:58 AM, Dominic Pearson wrote: Hello folks, I am trying to compute the sum i = 0 to n where

Re: [Chicken-users] Cleaning up SRFI support claims

2011-05-26 Thread Kon Lovett
On May 26, 2011, at 6:47 AM, Jim Pryor wrote: Apologies if this has already been discussed, I haven't been following the list steadily and a cursory search didn't show anything. I'm seeing some inconsistent information at different places on the wiki about what SRFIs Chicken currently

Re: [Chicken-users] Cleaning up SRFI support claims

2011-05-26 Thread Kon Lovett
On May 26, 2011, at 10:46 AM, Jim Pryor wrote: Hi Kon, thanks for your reply. On Thu, May 26, 2011 at 10:06:26AM -0700, Kon Lovett wrote: 3. This page http://wiki.call-cc.org/man/4/Getting%20started lists a variety of SRFIs Chicken allegedly supports. snip each of these SRFI covers

Re: [Chicken-users] Check for NULL struct

2011-03-29 Thread Kon Lovett
On Mar 29, 2011, at 9:46 AM, Cosme Enmanuel Zamudio Salazar wrote: Is there a way to check for a NULL structure returned from a C function? this is the structure (define-record sdl-surface pointer) (define-record-printer (sdl-surface s out) (for-each (lambda (x) (display x out))

Re: [Chicken-users] Big Randoms

2011-03-10 Thread Kon Lovett
On Mar 10, 2011, at 7:26 PM, David N Murray wrote: $ csi CHICKEN (c)2008-2010 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.6.0 macosx-unix-gnu-x86-64 [ 64bit manyargs dload ptables ] compiled 2010-12-08 on sauron.local (Darwin) #;1 (use srfi-27) [snip loadings] ; loading

Re: [Chicken-users] SRFI-19 Error

2011-02-01 Thread Kon Lovett
Hello Thomas, This is a bug. I will look into it. Sorry but thank you for reporting. Kon On Feb 1, 2011, at 5:03 PM, Thomas Hintz wrote: Using csi and GNU readline (I don't think I'm doing anything wrong...): # (use srfi-19) # (date-subtract-duration (current-date) (make-duration days:

Re: [Chicken-users] compiling multiple scheme files into one module?

2010-12-15 Thread Kon Lovett
On Dec 15, 2010, at 8:34 AM, Alan Post wrote: I would like to compile two separate scheme files, with different (declare ...) options, into a single module. Is it possible to do this? How do I format the (module ...) code and arrange for separate compilation of the two .scm files? I think

Re: [Chicken-users] Problems Installing the lookup-table Egg

2010-12-11 Thread Kon Lovett
On Dec 11, 2010, at 3:59 AM, Ehsanul Hoque wrote: snip Awesome, it works now. Thanks! I'll probably compile from source anyhow. I guess the zmq egg might just have the very same compatibility problem then? No, not the same issue as lookup-table, the module body string inclusion

Re: [Chicken-users] Problems Installing the lookup-table Egg

2010-12-10 Thread Kon Lovett
Sorry, I suspect this is caused by the use of backwards incompatible module syntax on my part. Specifically the string as body feature for textual inclusion. I will fix this and release a new version. Kon On Dec 10, 2010, at 5:43 AM, Ehsanul Hoque wrote: I'm just starting to learn

Re: [Chicken-users] Problems Installing the lookup-table Egg

2010-12-10 Thread Kon Lovett
On Dec 10, 2010, at 3:03 PM, Ehsanul Hoque wrote: snip Sorry I hadn't mentioned all this information earlier. I'm using the chicken package from Ubuntu 10.04, so `chicken -version` tells me it's 4.2.0. I suppose it's recommended to compile the latest stable from source? Well, yes. Due

Re: [Chicken-users] docstrings

2010-12-03 Thread Kon Lovett
On Dec 3, 2010, at 11:23 AM, David Dreisigmeyer wrote: I've been going through The Scheme Programming Language (4e), and was doing some experiments with define-syntax. Can I do something like the following (like in CL): (define-syntax my-set! I WANT TO PUT SOME DOCUMENTATION HERE. [ --

Re: [Chicken-users] Check SRFI 19 localized strings

2010-11-04 Thread Kon Lovett
On Nov 4, 2010, at 6:26 AM, Moritz Heidkamp wrote: Sven Hartrumpf hartru...@gmx.net writes: I guessed from the Dutch version that was sent around by Kon yesterday. Sorry, if my guess was wrong. Indeed, I see it. Kon, what is correct? :-) `may-long' is the key for the long month name.

Re: [Chicken-users] Check SRFI 19 localized strings

2010-11-04 Thread Kon Lovett
On Nov 4, 2010, at 3:20 AM, Moritz Heidkamp wrote: Hi Kon, while we're at it, I figured I could contribute a German locale file. Thank you. I was going to specifically ask for one since we have a number of German speaking users. Note that there is no AM/PM in Germany (don't know about

Re: [Chicken-users] Check SRFI 19 localized strings

2010-11-04 Thread Kon Lovett
On Nov 4, 2010, at 1:22 AM, Peter Bex wrote: On Wed, Nov 03, 2010 at 07:50:38PM -0700, Kon Lovett wrote: snip Dutch is fine. (we don't capitalize our month or day names) What does separator separate? From the SRFI 19 document: ~f seconds+fractional seconds, using locale's decimal

Re: [Chicken-users] General newbie query about tspl execise

2010-11-04 Thread Kon Lovett
On Nov 4, 2010, at 10:09 AM, Enwin Thun wrote: Please redirect me if this is inappropriate for this forum. The following code appears in the tspl book. http://www.scheme.com/tspl3/start.html#./start:s185 It is an implementation of a queue use[ing] a tconc structure. To put new elements into

Re: [Chicken-users] Check SRFI 19 localized strings

2010-11-04 Thread Kon Lovett
On Nov 4, 2010, at 8:25 AM, Moritz Heidkamp wrote: Kon Lovett klov...@mac.com writes: `may-long' is the key for the long month name. There is only a single bundle so the keys must be unique ... and they were not. So I just added `-long' to distinguish long from the abbreviated month `may' key

[Chicken-users] I think fixed in srfi-27 3.1.2

2010-11-03 Thread Kon Lovett
Hello, I think the compile errors w/ entropy-windows are fixed in release 3.1.2 of the srfi-27 egg. However, I do not have access to Windows so I cannot check this. Sorry for the problem, Kon ___ Chicken-users mailing list

  1   2   3   4   5   6   >