setvbuf can't make it unbuffered
Hi guys! I'm playing Guile 'cat' for Guile-100, but I found that 'setvbuf' seems can't make it unbuffered. Anyone folks could help it for me? Here is the code: https://gist.github.com/NalaGinrut/5151115
Re: setvbuf can't make it unbuffered
On Wed 13 Mar 2013 12:05, Nala Ginrut writes: > I'm playing Guile 'cat' for Guile-100, but I found that 'setvbuf' seems > can't make it unbuffered. > Anyone folks could help it for me? > > Here is the code: > https://gist.github.com/NalaGinrut/5151115 I made some notes there. FWIW if in the future you want comments or review, please append the code as an attachment to the mail. Makes review easier. Thanks, Andy -- http://wingolog.org/
Re: setvbuf can't make it unbuffered
To whom may interested in Guile-100, I have to explain that I'm not the volunteer this week, I wrote 'cat' just because the code strike me. And I'm sorry to bother folks with this code. 在 2013-3-13 PM9:09,"Andy Wingo" 写道: > On Wed 13 Mar 2013 12:05, Nala Ginrut writes: > > > I'm playing Guile 'cat' for Guile-100, but I found that 'setvbuf' seems > > can't make it unbuffered. > > Anyone folks could help it for me? > > > > Here is the code: > > https://gist.github.com/NalaGinrut/5151115 > > I made some notes there. > > FWIW if in the future you want comments or review, please append the > code as an attachment to the mail. Makes review easier. > > Thanks, > > Andy > -- > http://wingolog.org/ >
Re: setvbuf can't make it unbuffered
> From: Andy Wingo >I made some notes there. > Hi Andy, I noticed in your comments to Nala G that you recommend using `print-exception'. Is that intended to be public API? It doesn't appear in the manual. Thanks, Mike
On quitting and exiting
Hello. There seem to be four ways to force an exit. In boot-9, a function `quit' is defined. It appears in the manual, but, in boot-9 it can take an argument. In the manual it never takes an argument. In boot-9, `exit' is aliased to quit. In the manual `exit' is undocumented; however, in the documentation in (rnrs programs), it notes that (rnrs programs)'s version of exit is the same as the "core" version of exit. And then there is primitive-exit and primitive-_exit, which are described in the manual. So clearly, there's some confusion here. Are 'quit' and 'exit' supposed to be API? Is the fact that they can take an argument supposed to be documented? Or is 'primitive-exit' the generally the way to go? Thanks, Mike
Re: On quitting and exiting
On Wed, 2013-03-13 at 21:40 -0700, Mike Gran wrote: > Hello. > > There seem to be four ways to force an exit. > > In boot-9, a function `quit' is defined. It appears in the manual, > but, in boot-9 it can take an argument. In the manual it never > takes an argument. > > In boot-9, `exit' is aliased to quit. In the manual `exit' is > > undocumented; however, in the documentation in (rnrs programs), > it notes that (rnrs programs)'s version of exit is the same > as the "core" version of exit. > > And then there is primitive-exit and primitive-_exit, which are > described in the manual. > > So clearly, there's some confusion here. Are 'quit' and 'exit' > supposed to be API? Is the fact that they can take an argument > supposed to be documented? > > Or is 'primitive-exit' the generally the way to go? > > [Out of topic] Many cool things in Guile lacks of document, maybe I should drop to look forward to adding new features to Guile but do some help for manual first... > Thanks, > > Mike > >
Re: On quitting and exiting
() Nala Ginrut () Thu, 14 Mar 2013 13:14:42 +0800 Many cool things in Guile lacks of document, maybe I should drop to look forward to adding new features to Guile but do some help for manual first... That is basically the labor of love that i did (and have since been trying to recover from the subsequent correlated side{h,tr}acking) for Unofficial Guile 1.4.x. For example, both ‘quit’ and ‘exit’ are documented (and have been so for many years) at: http://www.gnuvola.org/software/guile/doc/Procedure-Index.html Probably this year (knock on wood) i will get around to forward porting some of the doc-manglement-fu from 1.4.x to 1.8.x. The hardest part is letting go of the "docstrings must differ from manual documentation" mentality (inspired by Emacs) that is IMHO no longer valid for Guile. Once that is done, the rest is pleasantly pedestrian text toolsmithing. -- Thien-Thi Nguyen GPG key: 4C807502 pgp2bBZ8NrHcT.pgp Description: PGP signature