guile-json 0.1.0 released

2013-01-30 Thread Aleix Conchillo Flaqué
Hi,

I just release guile-json 0.1.0.

https://github.com/aconchillo/guile-json

This is my first guile related release, so comments are more than welcome.

guile-json is a JSON module for Guile. It supports parsing and
building JSON documents according to the http:://json.org
specification. These are the main features:

- Strictly complies to http://json.org specification.
- Build JSON documents programmatically via macros.
- Unicode support for strings.
- Allows JSON pretty printing.

Best,

Aleix



Re: guile-json 0.1.0 released

2013-01-30 Thread Nala Ginrut
On Wed, 2013-01-30 at 01:48 -0800, Aleix Conchillo Flaqué wrote:
> Hi,
> 
> I just release guile-json 0.1.0.
> 
> https://github.com/aconchillo/guile-json
> 
> This is my first guile related release, so comments are more than welcome.
> 
> guile-json is a JSON module for Guile. It supports parsing and
> building JSON documents according to the http:://json.org
> specification. These are the main features:
> 
> - Strictly complies to http://json.org specification.
> - Build JSON documents programmatically via macros.
> - Unicode support for strings.
> - Allows JSON pretty printing.
> 
> Best,
> 
> Aleix
> 

Nice thing!
And I've noticed that you and ijp discussed to add it to guildhall. ;-)





Re: salutations and web scraping

2013-01-30 Thread Catonano
2013/1/7 Andy Wingo 

> I know it's a year late, but I tracked this one down




>  Anyway, fetching friendfeed.com/
> now works properly.
>
> Thank you, Andy ;-)


Re: guile-json 0.1.0 released

2013-01-30 Thread Ian Price
Aleix Conchillo Flaqué  writes:

> I just release guile-json 0.1.0.
>
> https://github.com/aconchillo/guile-json

I've uploaded it to my guildhall repo. Current users can

  guild update
  guild install json

to obtain it. People who aren't using Guildhall can find instructions at
https://github.com/ijp/guildhall/wiki/Getting-Started

I'll try and get a mail out later this week about the current state of
affairs with guildhall.

-- 
Ian Price -- shift-reset.com

"Programming is like pinball. The reward for doing it well is
the opportunity to do it again" - from "The Wizardy Compiled"



Re: guile-json 0.1.0 released

2013-01-30 Thread Aleix Conchillo Flaqué
On Wed, Jan 30, 2013 at 9:17 AM, Billy O'Connor  wrote:
>
> Nice.  Looks like you have a small typo in README.org:
>

Thanks! Fixed.

Aleix



Re: guile-json 0.1.0 released

2013-01-30 Thread Aleix Conchillo Flaqué
On Wed, Jan 30, 2013 at 10:19 AM, Ian Price  wrote:
>
> I've uploaded it to my guildhall repo. Current users can
>
>   guild update
>   guild install json
>
> to obtain it. People who aren't using Guildhall can find instructions at
> https://github.com/ijp/guildhall/wiki/Getting-Started
>

Thanks Ian! Just followed your guildhall instructions and everything
works great.

Aleix



Re: compile error on FreeBSD 9

2013-01-30 Thread Ludovic Courtès
Hi,

z_axis  skribis:

> ./.libs/libguile-2.0.so: undefined reference to `GC_unregister_my_thread'
> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_create'
> ./.libs/libguile-2.0.so: undefined reference to `GC_register_my_thread'
> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_detach'
> *** Error code 1

You need either a libgc built with --enable-threads (though as Mark
noted that seems to be buggy on the Guile side), or Guile built with
--without-threads.

HTH,
Ludo’.



[ANN] the Guile 100 Programs Project

2013-01-30 Thread Mike Gran
Hello.  I'm pleased to announce the upcoming Guile 100 Programs
Project.
 
The Guile 100 Programs Project is an opportunity to show off your
Guile skills in exchange for a small honorarium.
 
Each week, on Monday, I'll announce a coding project and ask for
volunteers.  On Wednesday, a volunteer will be chosen at random from
all entrants.  The volunteer will have two weeks to complete the task.
If judged to have completed the task correctly, he or she will receive
a honorarium of 100 USD.
 
The task will either be a Scheme script, a bug fix on an existing
project, or a C code with Guile bindings.
 
The Guile 100 Programs project will begin March 11, 2013.  The location
of the website is still TBD. The site is not live yet and will go live
just before the beginning of the project.
 
Along with the completed code, the entrant must submit two paragraphs
on what was learned and what in the Guile experience needs to be
improved.  If the project results in new code, the submitter must
license it as GPL3+ or LGPL3+ as well as allowing it to appear in
a GFLD-licenced document including invariant sections.
 
The first two tasks to be announced will likely be
 
Mar 11, 2013 - Implement a version of the commands `cat' and
`echo' in Scheme.
 
Mar 18, 2013 - Implement a reduced functionality version of the
command `ls' in Scheme.
 
Full terms and conditions will be announced when the site goes live.
In the meantime, for more information or ideas you can contact me
on list or at spk...@yahoo.com
 
Thanks,
Mike Gran




Re: compile error on FreeBSD 9

2013-01-30 Thread z_axis

i have installed threaded libgc:
$pkg_info | grep boehm-gc
boehm-gc-7.1Garbage collection and memory leak detection for C and  
C++
boehm-gc-threaded-7.1_1 Garbage collection and memory leak detection for C  
and C++


ls -l /usr/local/lib/libgc[.-]*
lrwxr-xr-x  1 root  wheel  19  1 31 07:54  
/usr/local/lib/libgc-threaded.so@ -> libgc-threaded.so.1
-r--r--r--  1 root  wheel  152513  1 31 07:54  
/usr/local/lib/libgc-threaded.so.1
lrwxr-xr-x  1 root  wheel  10  1 31 07:54 /usr/local/lib/libgc.so@ ->  
libgc.so.1

-rwxr-xr-x  1 root  wheel  132311  1 31 07:54 /usr/local/lib/libgc.so.1*

$./configure --prefix=/home/***/guile --with-threads  
LDFLAGS='-L/usr/local/lib'

$gmake
...
0x281d4ef4 is not a GC visible pointer location
GC_is_visible test failed
Abort trap
gmake[3]: *** [guile-procedures.texi] Error 1

$cat meta/guile-2.0.pc | grep libdir
libdir=${exec_prefix}/lib
Libs: -L${libdir} -lguile-2.0 -L/usr/local/lib -lgc

$uname -a
FreeBSD mybsd.zsoft.com 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Fri Jul   
6 11:09:08 CST 2012  ***@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL   
i386


Regards!


在 Thu, 31 Jan 2013 05:29:09 +0800,Ludovic Courtès  写道:


Hi,

z_axis  skribis:

./.libs/libguile-2.0.so: undefined reference to  
`GC_unregister_my_thread'

./.libs/libguile-2.0.so: undefined reference to `GC_pthread_create'
./.libs/libguile-2.0.so: undefined reference to `GC_register_my_thread'
./.libs/libguile-2.0.so: undefined reference to `GC_pthread_detach'
*** Error code 1


You need either a libgc built with --enable-threads (though as Mark
noted that seems to be buggy on the Guile side), or Guile built with
--without-threads.

HTH,
Ludo’.



--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/




Guildhall users: please update your GUILE_LOAD_PATH or %load-path

2013-01-30 Thread Mark H Weaver
Hello all,

In the future it will be important for Guildhall modules to have a lower
priority than in the search path than Guile's core modules.  The reason
is that Guildhall has several portable SRFIs, some of which will be
superceded by efficient native implementations in core Guile.  One such
example is SRFI-41, which will soon be replaced by a superior version in
Guile core.

There are two ways to arrange for Guildhall's directory to have a lower
priority than Guile's core modules:

* If you added Guildhall's directory to the GUILE_LOAD_PATH environment
  variable, then make sure "/home/USERNAME/.local/share/guile/site/2.0"
  comes last, and add a special dummy path component composed of three
  dots (...) immediately before it.  For example:

GUILE_LOAD_PATH=...:/home//.local/share/guile/site/2.0
  or:
GUILE_LOAD_PATH=/foo:...:/home//.local/share/guile/site/2.0

  In Guile 2.0.7 and later versions, all path components after the "..."
  will be added after the default Guile search path.  In earlier
  versions, the "..." will do nothing but harmlessly await your future
  upgrade to 2.0.7+ :)

* If you added Guildhall's directory to the %load-path variable from
  within Guile itself (perhaps in .guile) then append it to the *end* of
  the load path as follows:

(set! %load-path
  (append %load-path
  (list "/home//.local/share/guile/site/2.0")))

Ian, can you please update your Guildhall "Getting-Started" document
appropriately?  

Thanks!
  Mark



Re: guile-json 0.1.0 released

2013-01-30 Thread Billy O'Connor
Aleix Conchillo Flaqué  writes:

> Hi,
>
> I just release guile-json 0.1.0.
>
> https://github.com/aconchillo/guile-json
>
Nice.  Looks like you have a small typo in README.org:

diff --git a/README.org b/README.org
index e7d9c91..a10d75a 100644
--- a/README.org
+++ b/README.org
@@ -93,7 +93,7 @@ main /json/ macro (and /object/ and /array/). Here are some 
examples:
 
 - Build the string "hello world":
 
-: (json "hello world"))
+: (json "hello world")
 
 - Build the [1, 2, 3] array:
 




Re: compile error on FreeBSD 9

2013-01-30 Thread Ludovic Courtès
Hi,

z_axis  skribis:

> ./.libs/libguile-2.0.so: undefined reference to `GC_unregister_my_thread'
> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_create'
> ./.libs/libguile-2.0.so: undefined reference to `GC_register_my_thread'
> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_detach'
> *** Error code 1

You need either a libgc built with --enable-threads (though as Mark
noted that seems to be buggy on the Guile side), or Guile built with
--without-threads.

HTH,
Ludo’.




Re: [ANN] the Guile 100 Programs Project

2013-01-30 Thread Noah Lavine
Hello,

This is a great idea! I especially like the way you ask for information on
what Guile features need to be improved. We could learn a lot from this
project.

I'm also curious - would you consider it bad for people who are already
contributing to Guile to volunteer? I have some free time coming up and the
project sounds fun to try, but you won't be adding another contributor to
Guile if I am chosen. :-)

Thanks,
Noah Lavine



On Wed, Jan 30, 2013 at 6:04 PM, Mike Gran  wrote:

> Hello.  I'm pleased to announce the upcoming Guile 100 Programs
> Project.
>
> The Guile 100 Programs Project is an opportunity to show off your
> Guile skills in exchange for a small honorarium.
>
> Each week, on Monday, I'll announce a coding project and ask for
> volunteers.  On Wednesday, a volunteer will be chosen at random from
> all entrants.  The volunteer will have two weeks to complete the task.
> If judged to have completed the task correctly, he or she will receive
> a honorarium of 100 USD.
>
> The task will either be a Scheme script, a bug fix on an existing
> project, or a C code with Guile bindings.
>
> The Guile 100 Programs project will begin March 11, 2013.  The location
> of the website is still TBD. The site is not live yet and will go live
> just before the beginning of the project.
>
> Along with the completed code, the entrant must submit two paragraphs
> on what was learned and what in the Guile experience needs to be
> improved.  If the project results in new code, the submitter must
> license it as GPL3+ or LGPL3+ as well as allowing it to appear in
> a GFLD-licenced document including invariant sections.
>
> The first two tasks to be announced will likely be
>
> Mar 11, 2013 - Implement a version of the commands `cat' and
> `echo' in Scheme.
>
> Mar 18, 2013 - Implement a reduced functionality version of the
> command `ls' in Scheme.
>
> Full terms and conditions will be announced when the site goes live.
> In the meantime, for more information or ideas you can contact me
> on list or at spk...@yahoo.com
>
> Thanks,
> Mike Gran
>
>
>


Re: [ANN] the Guile 100 Programs Project

2013-01-30 Thread Mike Gran
> 

>
>Hello,
>
>
>I'm also curious - would you consider it bad for people
> who are already contributing to Guile to volunteer? I have
> some free time coming up and the project sounds fun to try,
> but you won't be adding another contributor to Guile if I am chosen. :-)


Hi Noah,


The point is to croudsource a HOWTO collection.  If you think it'll
be fun, then by all means.

I'm more worried that no one will be interested and I'll end up writing
all the examples myself.

I've always had in the back of my mind that a collection of examples is
something I could do myself for Guile, but, that is never going to
happen.  I keep thinking I'll someday have some real time to do some 
code, but life is steamrolling me hardcore.  So I figured I'd punt and see 
what happens.

-Mike



Re: [ANN] the Guile 100 Programs Project

2013-01-30 Thread Nala Ginrut
On Wed, 2013-01-30 at 20:43 -0800, Mike Gran wrote:
> > 
> 
> >
> >Hello,
> >
> >
> >I'm also curious - would you consider it bad for people
> > who are already contributing to Guile to volunteer? I have
> > some free time coming up and the project sounds fun to try,
> > but you won't be adding another contributor to Guile if I am chosen. :-)
> 
> 
> Hi Noah,
> 
> 
> The point is to croudsource a HOWTO collection.  If you think it'll
> be fun, then by all means.
> 
> I'm more worried that no one will be interested and I'll end up writing
> all the examples myself.
> 

Well~at least I'm one of the interested guys~

> I've always had in the back of my mind that a collection of examples is
> something I could do myself for Guile, 

And sometimes volunteers don't know what they could contribute, this
project also shares the issues needed to be done. ;-)

> but, that is never going to
> happen.  I keep thinking I'll someday have some real time to do some 
> code, but life is steamrolling me hardcore.  So I figured I'd punt and see 
> what happens.
> 

Anyway, that's a nice idea!


> -Mike
>