KISHIMOTO, Makoto | 9 Dec 01:18
Picon
Gravatar

FYI / Gauche FreeBSD ports updated

Hello,

The PR for Gauche FreeBSD ports that I proposed, have accepted.
( http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/gauche/ )

> $ gosh -V
> Gauche scheme shell, version 0.9.2 [utf-8,pthreads], amd64-portbld-freebsd8.2

Sincerely.

------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
Tomas Stanek | 20 Dec 20:16
Picon
Favicon

unchecked FD_SETSIZE in fdset operations

Hi,

code in libsys.scm and port.c uses FD_SET, FD_ISSET and friends on 
fdset. It however doesn't check if the descriptor in question is 
smaller then FD_SETSIZE. This in my case results in a segfault of 
the interpreter. I'm not including the fixing patch because the fix 
is rather trivial.

Best regards,
Tomas Stanek

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
Shiro Kawai | 20 Dec 23:41
Favicon

Re: unchecked FD_SETSIZE in fdset operations

You're right.  Fix is coming.

--shiro

From: Tomas Stanek <tomas <at> psi.cz>
Subject: [Gauche-devel] unchecked FD_SETSIZE in fdset operations
Date: Tue, 20 Dec 2011 20:16:00 +0100

> Hi,
> 
> code in libsys.scm and port.c uses FD_SET, FD_ISSET and friends on 
> fdset. It however doesn't check if the descriptor in question is 
> smaller then FD_SETSIZE. This in my case results in a segfault of 
> the interpreter. I'm not including the fixing patch because the fix 
> is rather trivial.
> 
> Best regards,
> Tomas Stanek
> 
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create 
> new or port existing apps to sell to consumers worldwide. Explore the 
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Gauche-devel mailing list
> Gauche-devel <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gauche-devel

(Continue reading)

tsugutomo.enami | 21 Dec 05:06
Picon

Re: unchecked FD_SETSIZE in fdset operations

Tomas Stanek <tomas <at> psi.cz> writes:

> because the fix is rather trivial.

Alternatively, one can allocate larger fd_set dynamically if given file
descriptor doesn't fit in FD_SETSIZE.  I guess it works on recent
systems.

Since it donesn't work on some system (e.g., I've heard that BSD earlier
than 4.4 silently ignores), working system should be white listed if
such strategy is taken.

# Of course an interface for another syscall such as poll would be
# better.

enami.

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
Shiro Kawai | 21 Dec 06:30
Favicon

Re: unchecked FD_SETSIZE in fdset operations

From: tsugutomo.enami <at> jp.sony.com
Subject: Re: [Gauche-devel] unchecked FD_SETSIZE in fdset operations
Date: Wed, 21 Dec 2011 13:06:14 +0900

> # Of course an interface for another syscall such as poll would be
> # better.

Yeah,
I'm an old-school Unix guy and select(2) was in my toolbox for long time.
That's why sys-select was in Gauche from very early stage.  However
these days it feels rather archaic.   Also the model of select(2)
can't be easiliy emulated on Windows.

I'd like to have event-callback type of API, but unfortunately each
system provides slightly different models.  Using exsiting libraries
to abstract the differences may be an option...

--shiro

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
obscuroloconato | 22 Dec 10:04

DBI example

First: is this the right mailing list for user questions?

If so:

I tried the DBI example from the reference documentation and get the
following error:

*** ERROR: list required, but got #<<mysql-result-set> 0x9b69fa0>

After some further reading I found the collection framework.

For newbies like me it would be useful to add the use statements at
the top of the example:

(use dbi)
(use gauche.collection)

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
Shiro Kawai | 23 Dec 02:05
Favicon

Re: DBI example

Yes, you're welcome to post questions here.

And thanks for pointing it out.  I'll reflect it to the doc.

--shiro

From: obscuroloconato <at> googlemail.com
Subject: [Gauche-devel] DBI example
Date: Thu, 22 Dec 2011 10:04:02 +0100

> First: is this the right mailing list for user questions?
> 
> If so:
> 
> I tried the DBI example from the reference documentation and get the
> following error:
> 
> *** ERROR: list required, but got #<<mysql-result-set> 0x9b69fa0>
> 
> After some further reading I found the collection framework.
> 
> For newbies like me it would be useful to add the use statements at
> the top of the example:
> 
> (use dbi)
> (use gauche.collection)
> 
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create 
(Continue reading)


Gmane