[Chicken-users] complex library package issue

2007-09-01 Thread Terrence Brannon
Hello, the complex package is turning the addition of two lists which start with zero into a complex result when it should just be another list. Case synopsis: (Plus '(0 1 2 3) '(0 1 2 3)) ;; yields a complex! (Plus '(1 2 3) '(1 2 3)) ;; yields a list, as expected (Plus 3 '(1 2 3))

[Chicken-users] (array-strict? (make-array '#() 7)) ; should return #t right?

2007-09-04 Thread Terrence Brannon
(require-extension array-lib) (array-strict? (make-array '#() 7)) ; should return #t However, it returns false... it seems to be a strict array to me. I do need for a 1-dimensional structure created by make-array to be testable by some predicate for a procedure I have written called Shape, anal

Re: [Chicken-users] synonyms for "module" sought

2007-09-08 Thread Terrence Brannon
On 9/7/07, Peter Bex <[EMAIL PROTECTED]> wrote: > How about 'yolk'? It's what eggs are made of/what's inside eggs. > yes, I think yolk is an awesome name. ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinf

[Chicken-users] array-lib-hof - array-map! - not sure it's working

2007-09-08 Thread Terrence Brannon
(require-extension array-lib) (require-extension array-lib-hof) (define (quikary shape) (let ([element-count (apply * shape)]) (apply array shape (iota element-count (define h (quikary '(2 3))) ; (array-map! h (lambda (z y x) "ho")) doesnt throw an arity error. doesnt change h ; (

Re: [Chicken-users] array-lib-hof - array-map! - not sure it's working

2007-09-09 Thread Terrence Brannon
On 9/9/07, Kon Lovett <[EMAIL PROTECTED]> wrote: > > On Sep 8, 2007, at 2:49 PM, Terrence Brannon wrote: > > > (require-extension array-lib) > > (require-extension array-lib-hof) > > > > (define (quikary shape) > > (let ([element-count (apply * shap

[Chicken-users] highlevel macros are not supported error

2007-09-09 Thread Terrence Brannon
When I attempt to use pos.scm I get this error - #;9> ; loading /usr/local/lib/chicken/1/pos.scm ... Error: (define-syntax) during expansion of (define-syntax ...) - highlevel macros are not supported Call history: (require-extension pos) (

[Chicken-users] does protobj work?

2007-09-09 Thread Terrence Brannon
it does not seem to work: (require-extension protobj) (define a (%)) ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] Re: does protobj work?

2007-09-09 Thread Terrence Brannon
I got some help off-list. I did not do (import protobj) as I was supposed to. it seems to be working fine now. On 9/9/07, Terrence Brannon <[EMAIL PROTECTED]> wrote: > it does not seem to work: > > (require-extension protobj)

[Chicken-users] A scheme library for J programming is not re-inventing the wheel is it?

2007-09-10 Thread Terrence Brannon
I've been a fan of J for a long time, and have an implementation of monadic array processing in J fashion finished. has this sort of thing been done before? i'm planning on extending it to other J processing idioms as well. If you want to play with the source, d/l and install instructions are at h

Re: [Chicken-users] A scheme library for J programming is not re-inventing the wheel is it?

2007-09-11 Thread Terrence Brannon
On 9/11/07, Sunnan <[EMAIL PROTECTED]> wrote: > Terrence Brannon wrote: > > I've been a fan of J for a long time, and have an implementation of > > monadic array processing in J fashion finished. has this sort of thing > > been done before? i'm planning

[Chicken-users] array-lib - reversing a rank-1 array issue

2007-09-14 Thread Terrence Brannon
array-split/shared is having an issue, saying rank must be lower than dimensionality 1) I'm assuming dimensionality means (length dimension) since it is not defined in the docs and that would make the rank and dimensionality equal, hence the error 2) Should it be possible to reverse a rank-1 array

[Chicken-users] array->list does not return a list for a rank-1 array

2007-09-14 Thread Terrence Brannon
Re: http://www.call-with-current-continuation.org/eggs/array-lib.html Quote: procedure: (array->list ARRAY) Returns the array elements as a rank-nested list. For rank 0 arrays returns just the element. == This implies a list should be returned for rank-1 arrays == However For a rank-1 list con

[Chicken-users] mathh does not compile on cygwin

2007-09-17 Thread Terrence Brannon
[EMAIL PROTECTED] /tmp : chicken-setup mathh The extension mathh does not exist. Do you want to download it ? (yes/no/abort) [yes] downloading mathh.egg from (www.call-with-current-continuation.org eggs 80) gunzip -c ../mathh.egg | tar xf - . /usr/local/bin/csc -feature compiling-extension -s -

[Chicken-users] (issue) array-lib - array-copy of rank-1 array with complex elements

2007-09-18 Thread Terrence Brannon
(require-extension array-lib) (define (rank-1 . elems) (apply array (list (length elems)) elems)) (define a (rank-1 (make-rectangular 3 4) (make-rectangular 6 8))) ;;; http://www.call-with-current-continuation.org/eggs/array-lib.htm ;; procedure: (array-copy [PROTOTYPE] ARRAY) ;; Returns a copy

[Chicken-users] array-lib - reversing a rank-1 array issue

2007-09-22 Thread Terrence Brannon
array-split/shared is having an issue, saying rank must be lower than dimensionality 1) I'm assuming dimensionality means (length dimension) since it is not defined in the docs and that would make the rank and dimensionality equal, hence the error 2) Should it be possible to reverse a rank-1 ar

Re: [Chicken-users] array-lib - reversing a rank-1 array issue

2007-09-22 Thread Terrence Brannon
IGNORE THIS. I think GMANE sent it. It has already been addressed. On 9/14/07, Terrence Brannon <[EMAIL PROTECTED]> wrote: > array-split/shared is having an issue, saying rank must be lower than > dimensionality > > 1) I'm assuming dimensionality means (length dim

Re: [Chicken-users] emacs editing mode for chicken ?

2007-09-24 Thread Terrence Brannon
On 9/19/07, Tony Sidaway <[EMAIL PROTECTED]> wrote: > If you do use quack.el, you should perform the following edits: > > In ~/.emacs > > Add (load-file "~/quack.el") I think byte-compiling quack.el and putting: (require 'quack) would make things faster and more memory efficient. _

[Chicken-users] array-lib : array-join when innermost datum is an array itself

2007-09-25 Thread Terrence Brannon
If I have an array with dimension-list '(2 3) whose contents at each position is an array of dimension-list '(4 5), how can I use array-join to create an array of dimension-list '(2 3 4 5) I would post the code, but: 1 - I think this question is easy for anyone who knows the API well [Kon :)] 2 -

Re: [Chicken-users] Choosing a programming language for a web project

2007-09-29 Thread Terrence Brannon
On 9/29/07, Jean-Philippe Théberge <[EMAIL PROTECTED]> wrote: > So the question is: Is programmer recruitement that important and are good > scheme programmer so rare? Must the programmers be on-site? If so, what location? ___ Chicken-users mailing li

[Chicken-users] array-lib : empty arrays advertise indices that they cannot be indexed by

2007-10-04 Thread Terrence Brannon
Re: http://www.call-with-current-continuation.org/eggs/array-lib.html We read: (make-array []) will construct an empty array, not a rank 0 array. Such arrays cannot be used with any setter or getter. However, property queries will work, and they can be used as a PROTOTYPE. So I have several quest

[Chicken-users] egg creation - documentation and finishing touches help needed

2007-10-09 Thread Terrence Brannon
I need some mentoring to get my first egg finished. Documentation - what is the protocol for documenting an egg? It looks like an external HTML file is supplied, but is there some text->html converter? Testing - how do I test this egg before uploading it? There doesnt seem to be a way to point ch

[Chicken-users] array-lib : how to make a rank-1 array with no elements?

2007-10-11 Thread Terrence Brannon
I tried a few things, but couldnt get it to work (array '#() '(1)) ; Error: (array) wrong number of elements to construct array (make-array '#() '(1)) ; Error: (vector-ref) out of range ___ Chicken-users mailing list Chicken-users@nongnu.org http://li

[Chicken-users] numbers egg - (angle y) feedback

2007-10-11 Thread Terrence Brannon
I tried to re-open the ticket on trac, but was told my submission was potential spam. The (angle) function does not coredump. But it gives a result of 0.0 for an argument of 2, which I do not think is correct. The same function in J gives -0.416147+0.909297i Here is a link to the J function,

[Chicken-users] the effect of set! on the top-level namespace

2007-10-15 Thread Terrence Brannon
I would like to know: * what is happening to the symbol afunc in line 1 versus line 3. In particular is the same memory location being over-written? * Also, in line 2 is first-func being set to a value which is not destroyed by the set! call in line 3? * I think I was anticipating that first-func w

[Chicken-users] complex? call hangs function

2007-10-18 Thread Terrence Brannon
The following function works perfectly fine until I add ((complex? x) (steps (real-part x))) (use srfi-1) (use numbers) (define steps (lambda (x) (cond ((zero? x) (list 0)) ((negative? x) (reverse (steps (abs x ((complex? x) (steps (real-part x))) (else (le

[Chicken-users] changing default directory for csi

2007-10-22 Thread Terrence Brannon
The csi takes relative load commands based on the directory that csi was started in. Is there a procedure call I can make after invoking csi that will change the default directory to somewhere else? ___ Chicken-users mailing list Chicken-users@nongnu.or

[Chicken-users] unit-extras random - is it a uniform distribution

2007-10-28 Thread Terrence Brannon
Re: http://galinha.ucpel.tche.br:8080//Unit%20extras#random Do the numbers from the unit extras random function follow a uniform distribution? ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-user

[Chicken-users] srfi-27 - producing pseudo and truly random numbers over a uniform distribution

2007-10-28 Thread Terrence Brannon
In addition to the bug I filed on this egg - http://trac.callcc.org/ticket/346 I have a question about common usage of this module. I would like to produce one function, roll-fixed, which produces pseudorandom numbers in the documented fashion of random-real and random in SRFI-27. Such that the s

Re: [Chicken-users] srfi-27 - producing pseudo and truly random numbers over a uniform distribution

2007-10-28 Thread Terrence Brannon
On 10/28/07, Ivan Raikov <[EMAIL PROTECTED]> wrote: > > Hello, > >Does the random-mtzig egg do what you need? It looks better, because you just seed the state as you please and then consistently pass the state. This means I can have one RNG that uses the same seed across interpreter invocation

Re: [Chicken-users] srfi-27 - producing pseudo and truly random numbers over a uniform distribution

2007-10-28 Thread Terrence Brannon
On 10/29/07, Ivan Raikov <[EMAIL PROTECTED]> wrote: > > > What platform is this on? cygwin > Instead of commenting out the typedefs, > could you please rename all the type definitions in randmtzig.c and > random-mtzig.scm as follows: > > Original: > > typedef signed char int8_t; > ... > > Modifi

Re: [Chicken-users] srfi-27 - producing pseudo and truly random numbers over a uniform distribution

2007-10-28 Thread Terrence Brannon
On 10/29/07, Ivan Raikov <[EMAIL PROTECTED]> wrote: > > > Uniformly-distributed integers can be generated with the > random-mtzig:random! procedure. procedure: random-mtzig:random! :: STATE -> INTEGER Returns a random integer value between 0 and the largest machine-representable unsigned integer

Re: [Chicken-users] srfi-27 - producing pseudo and truly random numbers over a uniform distribution

2007-10-28 Thread Terrence Brannon
Ok, I'm getting build problems between data definitions in stdint.h and some of the source code in random-mtzig Here was the first error I got: downloading random-mtzig.egg from (www.call-with-current-continuation.org eggs 80) . gunzip -c ../random-mtzig.egg | tar xf - /usr/local/bin/csc -fea

[Chicken-users] csc / compile - how to pass things to gcc?

2007-10-28 Thread Terrence Brannon
I want all calls to gcc from Chicken csc to pass -D__uint32_t_defined -D__int8_t_defined but I do not know how to modify this compile call so that happens. please advise: (compile -O -d2 -X easyffi -s -o random-mtzig.so ,@(if has-exports? '(-check-imports -emit-exports random-mtzig.exp

[Chicken-users] stepwise visual execution of functions

2007-11-04 Thread Terrence Brannon
After I develop a function, I want to see what happens to the input data as it hits each step of the function to make sure it is working correctly. For example, in the following function: (define (mraze a) (let* ([unboxed-a (unbox-array a)] [unboxed-l (array->list unboxed-a)] [

[Chicken-users] array-lib : prepending unit axes

2007-11-04 Thread Terrence Brannon
i wrote a function to prepend unit axes onto an array. this is oftentimes necessary to get arrays to the same rank before applying some sort of operation to them. if there is a better way to do this, I'm all ears. Please, no comments about my parenthesizing style :) (define prepend-unit-axes (l

[Chicken-users] gettings roots (and multiplier) of a polynomial equation and vice versa + Gnu Scientific Library

2007-11-11 Thread Terrence Brannon
I'm wondering if I overlooked an egg that can do this: 1 - given the (real) coefficients of all terms of a polynomial equation, it returns the roots and multiplier representation of it: For example, the polynomial 2x + 2x^2 factors down to 2 * (x-(-1))(x-0), so the multiplier is 2 and the roots a

[Chicken-users] chicken.wiki.br - an anti-IE site

2007-11-11 Thread Terrence Brannon
If you visit chicken.wiki.br - http://chicken.wiki.br/Accessing%20external%20objects with IE or an IE-compatible browser, all the code samples do not render, but instead put up scrollable boxes with small windows. ___ Chicken-users mailing list Chicken

[Chicken-users] Fwd: gettings roots (and multiplier) of a polynomial equation and vice versa + Gnu Scientific Library

2007-11-11 Thread Terrence Brannon
ttings roots (and multiplier) of a polynomial equation and vice versa + Gnu Scientific Library To: Terrence Brannon <[EMAIL PROTECTED]> [Feel free to forward this to the Chicken mailing list (I would myself if I were subscribed)] Terrence Brannon wrote: > I'm wondering if I overlooke

[Chicken-users] foreign-lambda - how to declare double array as argument and how to pass things to it?

2007-11-11 Thread Terrence Brannon
I have this function in C: double polevl( x, coef, N ) double x; double coef[]; int N; { ... } and I am trying to create foreign-lambda for it: (define polevl (foreign-lambda double polevl double f64vector int)) But I know that double[] is wrong. My guess was f64vector. That compiled, but p

[Chicken-users] #(a b c) not accepted as vector of symbols

2007-11-11 Thread Terrence Brannon
why would chicken not accept that syntax as a vector of symbols? plt did. ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] foreign-lambda - how to declare double array as argument and how to pass things to it?

2007-11-12 Thread Terrence Brannon
11, 2007 10:37 PM, Zbigniew <[EMAIL PROTECTED]> wrote: > Did you try passing in an f64vector instead of a vector? > > > On 11/11/07, Terrence Brannon <[EMAIL PROTECTED]> wrote: > > My guess was f64vector. That compiled, but passing a Scheme vector in > > failed:

[Chicken-users] Chicken 2.732 on Cygwin : chicken.o:chicken.c:(.text+0x9): undefined reference to `__imp__C_temporary_stack'

2007-11-16 Thread Terrence Brannon
Hi, I was having problems with the optional function in chicken 2.6 so I got the latest official release but am having problems building it on Cygwin. The entire compile transcript is here : http://www.metaperl.com/tmp/chicken-cygwin-compile-transcript ___

[Chicken-users] Chase's Sequence updates by Mario

2007-11-16 Thread Terrence Brannon
1 - Mario fixed the code for Chase's Sequence - http://galinha.ucpel.tche.br:8080/Chase%20Sequence - so that it compiles - http://paste.lisp.org/display/50948#1 It had some parenthesis issues. Probably best to update the wiki with the fixed version. 2 - Could some typical usage examples of this b

Re: [Chicken-users] build on Windows with cygwin

2007-11-19 Thread Terrence Brannon
On Oct 2, 2007 1:41 AM, felix winkelmann <[EMAIL PROTECTED]> wrote: > Hi, Shawn! > > > The problem is that I don't know how to link dlls properly. > The build log you've sent me only generated the static > libs, due to a missing libdl.so (dll, or whatever). > > I need to see the exact build steps f

Re: [Chicken-users] build on Windows with cygwin

2007-11-20 Thread Terrence Brannon
On Nov 20, 2007 2:12 AM, felix winkelmann <[EMAIL PROTECTED]> wrote: > On Nov 20, 2007 4:06 AM, Terrence Brannon <[EMAIL PROTECTED]> wrote: > > > > Is there anybody who can send me a build log for a full > > > dynamic build? > > > > Do you mean lik

Re: [Chicken-users] Re: chicken lottery!

2007-12-14 Thread Terrence Brannon
wner of their very own Chicken T-shirt! This > > time we're inviting you all to witness the choosing live. > > ... and the winner is Terrence Brannon, author of the > matpack egg! Wow! Against all odds... one lil' egg takes the cake! A few thoughts: * I think Ivan would&