Re: [Chicken-users] code snippet (suggested for the wiki) - and several newcomer questions

2008-08-18 Thread F. Wittenberger
Am Sonntag, den 17.08.2008, 20:11 +0200 schrieb Tobia Conforto: Thank you for this commented version! I will raise my own novice questions if you don't mind. No matter how careful you are, switching to kernel mode and back is expensive in comparison to register arithmetic. Yes,

Re: [Chicken-users] Chicken with VIM

2008-08-18 Thread Wang Xin
2008/8/18 Tobia Conforto [EMAIL PROTECTED]: Yes, it's the new version shipped with Vim 7.2 and it's giving me trouble with the s-expr comment #; I cannot get it to work, no matter where I place it. S-expr comment hightlighting doesn't work well for me also. The patch pasted in the wiki is

Re: [Chicken-users] Chicken with VIM

2008-08-18 Thread Tobia Conforto
Wang Xin wrote: BTW, the way using screen to interact with Chicken is poor. I don't think it poor: in fact I prefer it to most other solutions I've seen, including Slime. Another solution, much more Slime-like, would be to use VimSh, a plugin that embeds a terminal session (or any other

Re: [Chicken-users] egg announcement: remote-repl

2008-08-18 Thread Alaric Snell-Pym
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17 Aug 2008, at 3:53 am, Elf wrote: many people on #chicken and the list have requested a simple remote- repl egg. some people have requested a not-so-simple remote-repl egg, too. :) Oh, yay! Will this do the job of the thing I was

[Chicken-users] Possible formating Bug in SRFI-19?

2008-08-18 Thread F. Wittenberger
Hi Kon, I ran into a problem with SRFI-19 formatting. (Being lazy) I'm not (yet) using the chicken egg, but the version I made up years ago. Now I found this bug, which - if there are no other tricks in your code - should affect the egg too: in date-string the ~s should hit (cons #\s

Re: [Chicken-users] Possible formating Bug in SRFI-19?

2008-08-18 Thread John Cowan
Jörg F. Wittenberger scripsit: Right now (time-second (date-time-utc (current-date))) is 1219068469. Which is bigger than a Scheme fixnum. That's the source of the trouble. -- Using RELAX NG compact syntax toJohn Cowan [EMAIL PROTECTED] develop schemas is one of the simple

Re: [Chicken-users] Possible formating Bug in SRFI-19?

2008-08-18 Thread F. Wittenberger
Am Montag, den 18.08.2008, 11:15 -0400 schrieb John Cowan: Jörg F. Wittenberger scripsit: Right now (time-second (date-time-utc (current-date))) is 1219068469. Which is bigger than a Scheme fixnum. That's the source of the trouble. Chickens's fixnum on 32bit platform, to be precise. But

Re: [Chicken-users] egg announcement: remote-repl

2008-08-18 Thread F. Wittenberger
Hi Elf, first of all: sorry about not having had the time to read your egg but anyway asking questions about it. Actually having such a facility and not being able to use it as I *want* to, made me ask for shared parameter objects at the first place in the other tread over there. My context:

Re: [Chicken-users] Chicken with VIM

2008-08-18 Thread Elf
#; is a very special sort of case. it would be a minimum of several lines to perform syntax highlighting correctly with it. give me a full list of whats missing from vim, and ill look at it. i dont use vim, but i do use vi :) -elf On Mon, 18 Aug 2008, Wang Xin wrote: 2008/8/18 Tobia

Re: [Chicken-users] egg announcement: remote-repl

2008-08-18 Thread Elf
On Mon, 18 Aug 2008, Alaric Snell-Pym wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17 Aug 2008, at 3:53 am, Elf wrote: many people on #chicken and the list have requested a simple remote- repl egg. some people have requested a not-so-simple remote-repl egg, too. :) Oh, yay!

Re: [Chicken-users] Possible formating Bug in SRFI-19?

2008-08-18 Thread Elf
srfi-19 is broken in several ways right now and will be refactored soon. -elf On Mon, 18 Aug 2008, Jörg F. Wittenberger wrote: Hi Kon, I ran into a problem with SRFI-19 formatting. (Being lazy) I'm not (yet) using the chicken egg, but the version I made up years ago. Now I found this bug,

Re: [Chicken-users] Possible formating Bug in SRFI-19?

2008-08-18 Thread Elf
chicken doesnt have bignums at the moment. it doesnt matter if other schemes can do it or not, the manual explicitly states that the full numeric tower is not present by default. the only way currently to represent integers larger than fixnum, without using the numbers egg, is to use doubles,

[Chicken-users] Dual-format macros

2008-08-18 Thread Tobia Conforto
On 6 Aug 2008, Jörg F. Wittenberger wrote: So far I've got (from watching the mailing list) the feeling that define-macro and define-syntax don't play well together. If it was better to have both versions available, the define-macro version for compatibility and define-syntax for the

Re: [Chicken-users] egg announcement: remote-repl

2008-08-18 Thread Elf
On Mon, 18 Aug 2008, Jörg F. Wittenberger wrote: Hi Elf, first of all: sorry about not having had the time to read your egg but anyway asking questions about it. please read the docs in the future, as this issue is addressed. Actually having such a facility and not being able to use it as

Re: [Chicken-users] egg announcement: remote-repl

2008-08-18 Thread Tobia Conforto
Jörg F. Wittenberger wrote: There are several timeout, counter and other parameters - within chicken and elsewhere in my program - if I want to set them from a remote-repl, which presumably runs in it's own thread Untested idea: you could thread-signal! a custom condition to the appropriate

Re: [Chicken-users] Dual-format macros

2008-08-18 Thread Elf
On Mon, 18 Aug 2008, Tobia Conforto wrote: On 6 Aug 2008, Jörg F. Wittenberger wrote: So far I've got (from watching the mailing list) the feeling that define-macro and define-syntax don't play well together. If it was better to have both versions available, the define-macro version for

Re: [Chicken-users] Possible formating Bug in SRFI-19?

2008-08-18 Thread Kon Lovett
On Aug 18, 2008, at 8:58 AM, Elf wrote: srfi-19 is broken in several ways right now and will be refactored soon. Please file bug reports. Also, the SRFI-19 egg uses the numbers extension. -elf On Mon, 18 Aug 2008, Jörg F. Wittenberger wrote: Hi Kon, I ran into a problem with

[Chicken-users] Embedded Chicken

2008-08-18 Thread John Van Enk
Has any one attempted to get Chicken working in an embedded environment? Mainly, something running directly on the hardware without an OS between Chicken and the registers. I've been quite interested in putting together a Scheme variant to replace C in embedded systems. Any

Re: [Chicken-users] Embedded Chicken

2008-08-18 Thread Elf
On Mon, 18 Aug 2008, John Van Enk wrote: Has any one attempted to get Chicken working in an embedded environment? Mainly, something running directly on the hardware without an OS between Chicken and the registers. I've been quite interested in putting together a Scheme variant to replace C in

Re: [Chicken-users] Embedded Chicken

2008-08-18 Thread John Van Enk
A better way to phrase it would be, I want Chicken to stand in for the kernel. Basically, I'd need a method for it to manage hardware level threads, understand what memory is mapped where, and other such low level things. On Mon, Aug 18, 2008 at 3:25 PM, Elf [EMAIL PROTECTED] wrote: On Mon, 18

Re: [Chicken-users] An alternative thread system?

2008-08-18 Thread Graham Fawcett
On Sun, Aug 10, 2008 at 9:42 PM, Vincent Manis [EMAIL PROTECTED] wrote: CPython uses a Global Interpreter Lock (GIL) to implement critical sections in the interpreter, thus rendering native threads in that system impossible. Some version of the Python interpreter (I think it was 1.6) was

Re: [Chicken-users] An alternative thread system?

2008-08-18 Thread Vincent Manis
On 2008-Aug-18, at 13:22, Graham Fawcett wrote: On Sun, Aug 10, 2008 at 9:42 PM, Vincent Manis [EMAIL PROTECTED] wrote: CPython uses a Global Interpreter Lock (GIL) to implement critical sections in the interpreter, thus rendering native threads in that system impossible. Some version of