Re: Community service

2012-05-04 Thread Nala Ginrut
Hi there!
I believe this is meaningful for my Ragnarok project. Though it's a
multi-protocols generic server, it contains HTTP, and provides
Guile-template naturally.
If I released a stable version someday (maybe few months later), I'll
start a new project of web-framework just like Guile-on-Rails or
something alike. Which may based on Ragnarok as an inner server.
At that time your site may provide more interesting things for Guilers.

Well, but the only bad thing is, I don't know how long I'll spend on
implementing them...
I pray to finish that as soon as possible in case I've done it and you
down it...

On Fri, Mar 30, 2012 at 5:49 PM,   wrote:
> Hi,
>
> those amongst you who might have looked for a webhost supporting
> scheme might have stumbled upon www.ellyps.net before and saw the
> ominous "SITE UNDER CONSTRUCTION.PLEASE COME BACK LATER." sign.
>
> This has now changed to "Tentatively beta".
>
> Scheme is, of course, a fine language for just about anything, but
> it's not as popular as it could be in some fields like web scripting.
> Maybe this is mainly because setting it up isn't really trivial, and
> documentation and tutorials are scarce and take some effort
> to get working.
>
> You might find it useful if you're a website programmer who'd like
> to try something different from the inescapable php. Or if you're
> a scheme hacker who'd like to put up a simple website for one thing
> or another without fussing about too much.
>
> I'm sure it's still far from perfect, so please don't rely on it for any
> projects that are critical to you. But it might be useful and convenient
> to some who were already looking for something like it, and are
> familiar with the concepts.
>
> Amongst the things it has to offer are:
> *cgi guile
> *editing/uploading over webdavs
> *mysql
> *the guile-web module
>
> For any questions or comments feel free to mail me directly, or if they
> are of general interest, onlist. But please note it's not a commercial
> project, so please adjust expectations accordingly. It's just something
> I found practical and extended it a little so it might be practical for
> others too.
>
>        friendly,
>        Andreas
>
>



Re: Problem with guile on Dragora

2012-05-04 Thread Ludovic Courtès
Hello!

"Germán A. Arias"  skribis:

> Hi, I'm testing guile 2.0.5 in a new system (www.dragora.org). The
> compilation seems OK. But when I run guile I get:
>
> bash-4.2$ guile
> Backtrace:
> In ice-9/boot-9.scm:
>  149: 2 [catch #t # ...]
>  157: 1 [#]
> In unknown file:
>?: 0 [catch-closure]
>
> ERROR: In procedure catch-closure:
> ERROR: Throw to key `decoding-error' with args `("scm_from_stringn"
> "input locale conversion error" 22 #vu8(103 117 105 108 101))'.

This seems to be like , which is fixed by
commit 5de0053178b4acc793ae62838175e5f3ab56c603.

Could you apply this patch and confirm?  Alternatively, you can try a
tarball from .

Thanks,
Ludo’.




Re: I'm looking for a method of converting a string's character encoding

2012-05-04 Thread Ludovic Courtès
Hi,

Sunjoong Lee  skribis:

> I'm looking for a method of converting a string's character encoding from a
> certain codeset to utf-8. I know the string of Guile uses utf-8 and (read
> (open-bytevector-input-port (string->utf8 "hello"))) returns "hello" . But
> what if the string "hello" be encoded not utf-8 and you want to get utf-8
> converted string? What I want is like iconv.

Ports in Guile are both binary and textual.  This allows for things like:

  scheme@(guile-user)> (use-modules (rnrs io ports))
  scheme@(guile-user)> (define (string->enc s e)
 (let ((p (with-fluids ((%default-port-encoding e))
(open-input-string s
   (get-bytevector-all p)))
  scheme@(guile-user)> (string->enc "hello" "UTF-16BE")
  $1 = #vu8(0 104 0 101 0 108 0 108 0 111)
  scheme@(guile-user)> (string->enc "hello" "ISO-8859-3")
  $2 = #vu8(104 101 108 108 111)
  scheme@(guile-user)> (use-modules (rnrs bytevectors))
  scheme@(guile-user)> (utf16->string $1)
  $3 = "hello"

You may also want to look at ‘string->pointer’ in (system foreign).

Does it answer your question?

Thanks,
Ludo’.




Re: I'm looking for a method of converting a string's character encoding

2012-05-04 Thread Ludovic Courtès
Hi,

Daniel Krueger  skribis:

> The only thing I'm not sure about is whether guile supports encoding a
> string (into a bytevector) in some other format than UTF-8

It does, by virtue of mixed binary/textual ports (see my previous
message.)

Thanks,
Ludo’.




Re: Problem with guile on Dragora

2012-05-04 Thread Sunjoong Lee
Hi, Germán;

2012/5/4 Ludovic Courtès 

> Could you apply this patch and confirm?  Alternatively, you can try a
> tarball from .
>

When checking the new patched version of Guile, there is "check-guile"
script in root of Guile source directory. After "./configure" and "make",
you can execute this script "./check-guile" and it will display many
information like this:
  .
  .
  Running vlist.test
  Running weaks.test
  Running web-http.test
  Running web-request.test
  Running web-response.test
  Running web-uri.test

  Totals for this test run:
  passes: 34414
  failures:   2
  unexpected passes:  0
  expected failures:  30
  unresolved test cases:  578
  untested test cases:1
  unsupported test cases: 9
  errors: 0

This script write a log file, check-guile.log. In above case, there is 2
failures. you can grep like this:
  $ grep ^FAIL check-guile.log
  FAIL: gc.test: gc: Lexical vars are collectable
  FAIL: threads.test: mutex-ownership: mutex with owner not retained (bug
#27450)

If you find errors, use ^ERROR instead of ^FAIL.