Re: [Chicken-users] Happy Christmas

2014-12-29 Thread Pedro Melendez
Is it too late to join to the Happy holidays sentiment?

I hope you guys had (and/or are having) a great holiday season.

Cheers,

Pedro.

On Mon, Dec 29, 2014 at 1:56 PM, Kevin Wortman kwort...@gmail.com wrote:

 Happy holidays from California, USA!

 Cheers,
 Kevin Wortman

 On Sat, Dec 27, 2014 at 1:06 AM, Karel Miklav ka...@lovetemple.net
 wrote:

 Happy holidays Felix, the rest of the Chicken team and everybody else on
 this list.

 Thank you for the good work!

 Karel

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



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




-- 
T: +1 (416) - 357.5356
Skype ID: pmelendezu
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] Fwd: Re: Active Windows users poll

2014-06-17 Thread Pedro Melendez
I would vote for that too. Some eggs might be a little tricky to port
though. I remember having troubles with a networking egg on cygwin.

Can't wait to see this :)


On Tue, Jun 17, 2014 at 2:39 AM, Yaroslav Tsarko eriktsa...@googlemail.com
wrote:




  Original Message   Subject: Re: [Chicken-users] Active
 Windows users poll  Date: Mon, 16 Jun 2014 14:52:40 +0200  From: Richard
 plui...@freeshell.de plui...@freeshell.de  To: Yaroslav Tsarko
 eriktsa...@googlemail.com eriktsa...@googlemail.com

 Hello Oleg,

 I too would greatly welcome a Window build. Thank you

 On 06/16/14 13:24, Yaroslav Tsarko wrote:
  Hi Oleg!
 
  Those are great news!
 
  I am very interested in this project since native Windows build is
  preferable when you work on Windows
  rather than mingw tricks. This will greatly shorten Chicken dependency
  list for Windows - one don`t need to install mingw stuff to build
  Chicken with eggs on Windows and use platform tools instead.
 
  On 15.06.2014 01:21, Oleg Kolosov wrote:
  Hello All!
 
  I'm working on new build system for Chicken, based on CMake which,
  besides more configurability and faster build times, can offer native
  Windows and MacOSX support with Visual Studio, XCode and other IDEs
  integration. I also can make installer with few eggs bundled and such.
 
  The system already allows seamless integration with CMake projects and
  tested on Linux. But doing full Windows port is more involved
  unfortunately.
 
  So, if anybody interested in native Windows port of Chicken, give
  your vote.
 
 
 
  ___
  Chicken-users mailing list
  Chicken-users@nongnu.org
  https://lists.nongnu.org/mailman/listinfo/chicken-users




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




-- 
T: +1 (416) - 357.5356
Skype ID: pmelendezu
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] All threads are blocking by I/O

2013-09-25 Thread Pedro Melendez
Hi guys,

Sorry if the question is too basic but this is something that made me spent
way more time that I expected.

I am making a tcp server that attempts to be a dedicated game message
server. I want to try a design that has a dedicated thread for the input of
all input ports of all sockets and another thread for dedicated writing. I
am deliberately trying to avoid having a thread for I/O on each socket
connection.

After some experimentation I came out to the realization that the reading
thread is blocking all other threads. And I actually just found that stated
on the TCP Unit documentation:


   - Blocking I/O will block all threads, except for some socket operations
   (see the section about the tcp unit). An exception is the
   read-eval-print loop on UNIX platforms: waiting for input will not block
   other threads, provided the current input port reads input from a console.



So, I guess my question is if there is a way to workaround this or I have
to combine my code with some C++ code to achieve what I want to do?

I am aware of the mailbox-threads but it seems to me that they are actually
are having a thread per connection which is what I was trying to avoid.

Thanks in advance,


Pedro.

-- 
T: +1 (416) - 357.5356
Skype ID: pmelendezu
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] All threads are blocking by I/O

2013-09-25 Thread Pedro Melendez
Hi Peter!

Thank you so much for your response!

I don't understand then what I am doing wrong, this is what I have so
far:

https://github.com/pmelendez/scheme-test-server/blob/master/mini-tcp-server.scm

Please notice that the code is dirty because it is a work in progress
and I am kinda stuck.

One detail I forgot to mention is that I am testing this on windows.
Now after your explanation... Is it possible that the behavior is
platform-specific?

Thanks again for the help!

Cheers,

Pedro

Sent from my Windows Phone From: Peter Bex
Sent: 2013-09-25 7:50 AM
To: Pedro Melendez
Cc: chicken-users
Subject: Re: [Chicken-users] All threads are blocking by I/O
On Wed, Sep 25, 2013 at 07:40:39AM -0400, Pedro Melendez wrote:
 After some experimentation I came out to the realization that the reading
 thread is blocking all other threads. And I actually just found that stated
 on the TCP Unit documentation:

- Blocking I/O will block all threads, except for some socket operations
(see the section about the tcp unit). An exception is the
read-eval-print loop on UNIX platforms: waiting for input will not block
other threads, provided the current input port reads input from a console.

 So, I guess my question is if there is a way to workaround this or I have
 to combine my code with some C++ code to achieve what I want to do?

Hi Pedro!

By default, the tcp unit's procedures will create nonblocking I/O ports, and
the srfi-18 scheduler will multiplex threads over all open sockets using
POSIX poll().  In other words, it should Just Work if you read in one thread
and write in the other thread.

Maybe I'm misunderstanding what you're trying to do?  If so, could you
please send us some sample code to avoid further confusion?

Cheers,
Peter
-- 
http://www.more-magic.net

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


Re: [Chicken-users] All threads are blocking by I/O

2013-09-25 Thread Pedro Melendez
Hey John,

Yeah, I guess you are right... that's the easier solution at this point, it
just sounded nicer to have it work without cygwin.

Thanks!


On Wed, Sep 25, 2013 at 1:05 PM, John Cowan co...@mercury.ccil.org wrote:

 Pedro Melendez scripsit:

  Oh well, that's unfortunately :( The server would run at the end in a
 Linux
  box, but I need to be able to test it on windows
  during the development.

 In that case, I would develop it under Cygwin rather than using the
 MinGW setup.  The Cygwin build of Chicken is much more Linuxly correct
 than MinGW is or can be, and since you aren't deploying there, you
 don't need to care about the GPL.

 --
 There are three kinds of people in the world:   John Cowan
 those who can count,co...@ccil.org
 and those who can't.




-- 
T: +1 (416) - 357.5356
Skype ID: pmelendezu
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] help :)

2013-06-05 Thread Pedro Melendez
Hey Dan,

What's the preferred method to ask? I didn't know about the IRC channel and
now I am dubious what would be better if asking over there or using the
email list...

Cheers,

Pedro.


On Wed, Jun 5, 2013 at 11:44 AM, Dan Leslie d...@ironoxide.ca wrote:

 Feel free to ask questions in the IRC channel, #chicken on
 irc.freenode.net

 -Dan


 On 6/5/2013 7:07 AM, nehal singhal wrote:

 Hi,
 I am a newbie to chicken.Can i get some aid as to how to start
 coding through chicken. I was recently learning racket and also have
 know-how of Python-2.6.
 Please guide a little.

 regards,
 Nehal Singhal.

 __**_
 Chicken-users mailing list
 Chicken-users@nongnu.org
 https://lists.nongnu.org/**mailman/listinfo/chicken-usershttps://lists.nongnu.org/mailman/listinfo/chicken-users



 __**_
 Chicken-users mailing list
 Chicken-users@nongnu.org
 https://lists.nongnu.org/**mailman/listinfo/chicken-usershttps://lists.nongnu.org/mailman/listinfo/chicken-users




-- 
T: +1 (416) - 357.5356
Skype ID: pmelendezu
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] SPRING THING 2013 has ended.

2013-05-29 Thread Pedro Melendez
Chicken CA Toronto? :)


On Wed, May 29, 2013 at 12:06 PM, Dan Leslie d...@ironoxide.ca wrote:

 Chicken CA Vancouver?

 ;)

 -Dan

 Thomas Hintz t...@thintz.com wrote:

 On Wed, May 29, 2013 at 5:02 AM, Moritz Heidkamp
 mor...@twoticketsplease.de wrote:
  Hello!
 
  Christian Kellermann ck...@pestilenz.org writes:
  I am sad to say that the CHICKEN Spring Thing 2013 is over.  I hope
  everyone had a safe journey back home and enjoyed the weekend with
  all the other CHICKEN enthusiasts.
 
  I for one did enjoy it. When and where should we do the next? :-)
 
 CHICKEN U.S. San Francisco? :-)
 
 ___
 Chicken-users mailing list
 Chicken-users@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/chicken-users
 ___
 Chicken-users mailing list
 Chicken-users@nongnu.org
 https://lists.nongnu.org/mailman/listinfo/chicken-users




-- 
T: +1 (416) - 357.5356
Skype ID: pmelendezu
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


Re: [Chicken-users] reader macros

2013-05-13 Thread Pedro Melendez
I believe this is what are you looking for.

http://wiki.call-cc.org/man/4/Macros

Cheers,



On Mon, May 13, 2013 at 4:09 PM, Răzvan Rotaru razvan.rot...@gmail.comwrote:

 Hi,

 I have not found information about this topic, so I have to ask here: does
 chicken provide reader macros?

 Răzvan

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




-- 
T: +1 (416) - 357.5356
Skype ID: pmelendezu
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users


[Chicken-users] Best way to share memory between C and Chicken

2013-05-03 Thread Pedro Melendez
Hi all,

Sorry if this question is obvious, but I couldn't find what I were looking
for in the documentation so maybe you guys can help me.

I am developing a prototype of a server that would serve 3D seismic images
across the network. This  task requires to process big files (~4 GB) with
existing C code that is desirable to maintain. I plan to write the server
itself in Chicken scheme but I would need to maintain the existing code in
C that opens and process those files.

Giving the size of the file, I want to share the memory space between C and
Chicken and avoid copying values between areas. Is that even possible?
Anyone has an idea on how can I address this?

Thanks in advance!

Pedro

-- 
T: +1 (416) - 357.5356
Skype ID: pmelendezu
___
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users