[Chicken-users] Win32 Threading Issue

2008-03-27 Thread Raymond Medeiros


can someone give me a reasonable explanation as to why this would not  
work on Win32 but works properly on Linux?

what am i missing here?

(use tcp-server)

(thread-start!
  (make-thread
(lambda ()
  ((make-tcp-server
 (tcp-listen 9000)
 (lambda ()
   (write-line (conc "response: " (read)
   #t))
))
(thread-yield!)

(define send-data
  (lambda (ip port msg)
(define-values (i o) (tcp-connect (->string ip) port))
(write msg o)
(let ((result (read-line i)))
  (close-input-port i)
  (close-output-port o) result)))


(letrec ((loop
   (lambda ()
 (pp (send-data "127.0.0.1" 9000 "hi"))
 (loop
  (loop))



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Chicken For Ruby Programmers

2008-02-19 Thread raymond medeiros
this is a good outline.  hopefully i'll have some time tomorrow to  
start writing a few sections and we'll see how it goes.


On Feb 19, 2008, at 11:06 PM, Mark Fredrickson wrote:


Hi Raymond,

I've added my 1st draft presentation outline:

https://galinha.ucpel.tche.br/cgi-bin/svnwiki/default/chicken-for-ruby-programmers

This is just my rambling thoughts on what my Ruby group might be  
interested in.


On Feb 19, 2008, at 9:37 PM, raymond medeiros wrote:
I actually have a profile page.  Well specific correlations between  
languages would be good, I think for this document it would be best  
to show how things like

map work in ruby and in scheme.


Agreed. I think showing how Ruby knowledge is immediately applicable  
in Scheme is a good tack to take. For example, Hash.new is like  
(make-hash-table).


There are a few articles out there under various names you might  
want to read up on.  Search for "functional programming in ruby"
and also "ruby lisp".  I was thinking something along those lines,  
because we can relate those paradigms in both languages.  Also what  
i'd like to see is
emphasis on meta-programming in Ruby vs meta-programming in lisp.   
That's just off the top of my head.


While I don't disagree that showing off metaprogramming would be  
useful, I think I may focus on more "immediate" task needs: shell  
scripting, regexes, various object systems, eggs vs. gems. I think  
this balance of quick-start, immediate needs with a higher level  
idiom and meta-programming comparison would make a very strong  
introduction. Divide and conquer!


something else to consider, would it be prudent to create an  
introductory tutorial on
spiffy/web-unity/mettle and show how one might pursue web  
development for

people who currently use a framework like RoR?


Certainly. It's not my area of expertise, but perhaps we can draft  
some more individuals. I think such a tutorial could have more value  
if it also addressed other web frameworks such as Struts or CakePHP.


Cheers,
-M



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Chicken For Ruby Programmers

2008-02-19 Thread raymond medeiros


something else to consider, would it be prudent to create an  
introductory tutorial on
spiffy/web-unity/mettle and show how one might pursue web development  
for

people who currently use a framework like RoR?

On Feb 19, 2008, at 10:14 PM, Mark Fredrickson wrote:


Hi Raymond,

On Feb 19, 2008, at 7:16 PM, Raymond Medeiros wrote:

Hi, myself and my friend Liam Irish were considering working on  
this portion of the hack-a-thon.
So I'm throwing it out there, I noticed that Mark Fredrickson is  
already on the list for Ruby.


Great! I know Peter Bex also expressed a willigness to help. The  
more help the better. I have absolutely no intention of monopolizing  
this work! I would encourage you to add your name(s) to the list.  
Also, Mario is encouraging people to add profile pages, and this  
might be a good time to do both.


We both have extensive "real world" experience with Ruby as a  
language, might not be so
strong on the scheme side, but could possibly lend a hand in  
fleshing this out.


Cool. I have less Ruby experience, but I agreed to give a  
presentation on Scheme to my local Ruby user's group. I would  
greatly value your experience.



BTW,
I love the "Chicken for X Programmers" I think that this is  
precisely the kind of thing Chicken
needs to gain more exposure.  I welcome any comments suggestions on  
this.


Neither a comment nor suggestion, but a question: As a Ruby  
programmer, what would you like to see in an introductory document?  
I was brainstorming ideas tonight, and I find it hard to decide  
whether to focus on very specific topics (e.g. "Instead of a Hash  
class, you can use (make-hash-table)") vs. higher level concepts  
(e.g. "Blocks are like anonymous functions.").


I suspect these intro docs will be a combo of the two.

Cheers,
-Mark





___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Chicken For Ruby Programmers

2008-02-19 Thread raymond medeiros

http://www.randomhacks.net/articles/2005/12/03/why-ruby-is-an-acceptable-lisp
http://tech.rufy.com/2006/11/functional-programming-in-ruby.html

were the articles i was thinking about in particular, might make for a  
good starting place
for ideas on how to organize the wiki entry.  we should probably start  
with an outline,
what i don't want is a table of "this in ruby vs this in lisp", I'd  
rather see idiom

comparison.

On Feb 19, 2008, at 10:14 PM, Mark Fredrickson wrote:


Hi Raymond,

On Feb 19, 2008, at 7:16 PM, Raymond Medeiros wrote:

Hi, myself and my friend Liam Irish were considering working on  
this portion of the hack-a-thon.
So I'm throwing it out there, I noticed that Mark Fredrickson is  
already on the list for Ruby.


Great! I know Peter Bex also expressed a willigness to help. The  
more help the better. I have absolutely no intention of monopolizing  
this work! I would encourage you to add your name(s) to the list.  
Also, Mario is encouraging people to add profile pages, and this  
might be a good time to do both.


We both have extensive "real world" experience with Ruby as a  
language, might not be so
strong on the scheme side, but could possibly lend a hand in  
fleshing this out.


Cool. I have less Ruby experience, but I agreed to give a  
presentation on Scheme to my local Ruby user's group. I would  
greatly value your experience.



BTW,
I love the "Chicken for X Programmers" I think that this is  
precisely the kind of thing Chicken
needs to gain more exposure.  I welcome any comments suggestions on  
this.


Neither a comment nor suggestion, but a question: As a Ruby  
programmer, what would you like to see in an introductory document?  
I was brainstorming ideas tonight, and I find it hard to decide  
whether to focus on very specific topics (e.g. "Instead of a Hash  
class, you can use (make-hash-table)") vs. higher level concepts  
(e.g. "Blocks are like anonymous functions.").


I suspect these intro docs will be a combo of the two.

Cheers,
-Mark



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Chicken For Ruby Programmers

2008-02-19 Thread raymond medeiros


I actually have a profile page.  Well specific correlations between  
languages would be good, I think for this document it would be best to  
show how things like
map work in ruby and in scheme.  There are a few articles out there  
under various names you might want to read up on.  Search for  
"functional programming in ruby"
and also "ruby lisp".  I was thinking something along those lines,  
because we can relate those paradigms in both languages.  Also what  
i'd like to see is
emphasis on meta-programming in Ruby vs meta-programming in lisp.   
That's just off the top of my head.


On Feb 19, 2008, at 10:14 PM, Mark Fredrickson wrote:


Hi Raymond,

On Feb 19, 2008, at 7:16 PM, Raymond Medeiros wrote:

Hi, myself and my friend Liam Irish were considering working on  
this portion of the hack-a-thon.
So I'm throwing it out there, I noticed that Mark Fredrickson is  
already on the list for Ruby.


Great! I know Peter Bex also expressed a willigness to help. The  
more help the better. I have absolutely no intention of monopolizing  
this work! I would encourage you to add your name(s) to the list.  
Also, Mario is encouraging people to add profile pages, and this  
might be a good time to do both.


We both have extensive "real world" experience with Ruby as a  
language, might not be so
strong on the scheme side, but could possibly lend a hand in  
fleshing this out.


Cool. I have less Ruby experience, but I agreed to give a  
presentation on Scheme to my local Ruby user's group. I would  
greatly value your experience.



BTW,
I love the "Chicken for X Programmers" I think that this is  
precisely the kind of thing Chicken
needs to gain more exposure.  I welcome any comments suggestions on  
this.


Neither a comment nor suggestion, but a question: As a Ruby  
programmer, what would you like to see in an introductory document?  
I was brainstorming ideas tonight, and I find it hard to decide  
whether to focus on very specific topics (e.g. "Instead of a Hash  
class, you can use (make-hash-table)") vs. higher level concepts  
(e.g. "Blocks are like anonymous functions.").


I suspect these intro docs will be a combo of the two.

Cheers,
-Mark





___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Chicken For Ruby Programmers

2008-02-19 Thread Raymond Medeiros
Hi, myself and my friend Liam Irish were considering working on this  
portion of the hack-a-thon.
So I'm throwing it out there, I noticed that Mark Fredrickson is  
already on the list for Ruby.
We both have extensive "real world" experience with Ruby as a  
language, might not be so
strong on the scheme side, but could possibly lend a hand in fleshing  
this out.  BTW,
I love the "Chicken for X Programmers" I think that this is precisely  
the kind of thing Chicken
needs to gain more exposure.  I welcome any comments suggestions on  
this.


./rm



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] egg documentation

2008-02-12 Thread raymond medeiros
I was thinking that myegg.wiki would be the literal markup that svn  
wiki uses.
but instead of having to navigate to a page and cut and paste your  
updates
into a tiny text box, you could edit them in vim and the egg builder  
would

automatically commit a revision to the wiki.

On Feb 12, 2008, at 11:41 PM, Ivan Raikov wrote:




 I will look at rdoc, but you should look at mole :-) I think mole
follows a similar pattern, but the output formats are perhaps more
limited. As for the second idea, it is okay with me, but a long time
ago I wrote a proposal about incorporating eggdoc-like markup in
svnwiki, and nothing happened, so I am not holding my breath.

  -Ivan


raymond medeiros <[EMAIL PROTECTED]> writes:


basically i was thinking about exactly what rdoc does ( i haven't
used mole ) look at rdoc.  but then adding the ability to generate
wiki code and import it into the svn wiki, and also the ability to
generate various formats like pdf's, html etc...

another idea was, in your egg:

myegg.wiki

which would contain the wiki page, and get imported into svn wiki.
that way the maintainer has local control over the document,
but it gets automatically imported into the wiki.  so you can
edit it with VIM or EMACS check it in, and when the egg gets
built it updates the appropriate wiki page, entering a new
revision using the committers credentials.




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] egg documentation

2008-02-12 Thread raymond medeiros


basically i was thinking about exactly what rdoc does ( i haven't used  
mole )
look at rdoc.  but then adding the ability to generate wiki code and  
import it
into the svn wiki, and also the ability to generate various formats  
like pdf's,

html etc...

another idea was, in your egg:

myegg.wiki

which would contain the wiki page, and get imported into svn wiki.
that way the maintainer has local control over the document,
but it gets automatically imported into the wiki.  so you can
edit it with VIM or EMACS check it in, and when the egg gets
built it updates the appropriate wiki page, entering a new
revision using the committers credentials.

just my $0.02 in Au

On Feb 12, 2008, at 11:10 PM, Ivan Raikov wrote:



 Well, there is already mole, but nobody seems to use that. Actually,
I tried using it for my very first attempt at creating an egg, but the
markup mole supports was quite limited. In general, as much as I
admire Donald Knuth and everything he has done for computer science,
most attempts at literate programming seem to result in almost
unreadable code and documentation that is difficult to maintain.

  -Ivan


Raymond Medeiros <[EMAIL PROTECTED]> writes:


what about something similar to rdoc, inline comments in your code
that get parsed out to generate documentation:

chicken-doc -to-wiki openssl.egg-dir
chicken-doc -to-pdf openssl.egg-dir

etc...?





___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] egg documentation

2008-02-12 Thread Raymond Medeiros


what about something similar to rdoc, inline comments in your code  
that get parsed out to generate documentation:


chicken-doc -to-wiki openssl.egg-dir
chicken-doc -to-pdf openssl.egg-dir

etc...?

On Feb 12, 2008, at 10:24 PM, Kon Lovett wrote:



On Feb 12, 2008, at 4:36 PM, Ivan Raikov wrote:



 I don't understand why is everyone trying to come up with the Mother
of all Documentation Systems all the time. For the time being, can't
we just agree on having two documentation standards for Chicken: wiki
(for simple documentation) and eggdoc (for complex documentation with
examples, tutorials, etc.).


Don't forget a 3rd, raw html. A few eggs have this for hysterical  
reasons; ex: coerce, uri, testbase.




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Best Wishes,
Kon




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Hackathon!

2008-02-11 Thread Raymond Medeiros


is it possible to get a list of all eggs which do not currently have  
their documentation in the wiki?

then we could start migrating the doc to the wiki.

On Feb 11, 2008, at 5:37 PM, Peter Bex wrote:


Hello everyone,

In light of the recent announcement by Felix and some people's  
concerns that
the project may get into a bit of a slump with a lack of a single  
Benevolent
Dictator, I decided that it would be a good idea to organize a  
Hackathon.
This will be an excellent opportunity for the community to get  
involved and
pick up on anything that we've all come to take for granted Felix  
(and other

core committers) would take care of.

For those unfamiliar with Hackathons, I've seen and participated in  
a couple

of hackathons from the NetBSD project
(http://www.netbsd.org/community/hackathon.html) where each was a  
smashing
success.  The idea is that everyone (hackers AND users) gets  
together on IRC
(irc.freenode.net, #chicken) in a weekend and work on "boring" or  
routine
things that have been lying around and just need to get done.  To  
stress,
this is _not_ about adding major new features, it's just about  
consolidating
what's already there, ie fixing bugs, weeding through bugreports,  
testing etc.


I propose to hold the hackathon on the weekend of 22-23 February.   
Suggestions

of different dates are welcome.  A wiki page has been created at
http://chicken.wiki.br/Hackathon1 with some initial suggestions of  
things to
work on.  Please feel free to add suggestions to it.  As I've stated  
before,
_anyone_ is free to help out!  Don't be shy, even if you have zero  
experience
hacking Chicken you can help out with documentation or testing of  
new features.


Cheers,
Peter
--
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
is especially attractive, not only because it can be economically
and scientifically rewarding, but also because it can be an aesthetic
experience much like composing poetry or music."
-- Donald Knuth
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users




___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] wikispam

2008-02-01 Thread raymond medeiros

https://galinha.ucpel.tche.br/cgi-bin/svnwiki/default/r-kent-dybvig-oscar-waddell-bob-hieb-carl-bruggeman

someone might want to remove the node, i just made it empty.

./rm



___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users