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))
(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
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
(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
; (
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
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)
(
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
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)
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
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
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
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
[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 -
(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
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
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
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.
_
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 -
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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)]
[
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
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
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
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
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
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
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:
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
___
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
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
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
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&
46 matches
Mail list logo