On 18 September 2013 01:55, Andy Wingo wrote:
> Hi!
>
> On Sat 14 Sep 2013 16:43, David Thompson writes:
>
>> [About guile-figl release.]
>
> I've kinda forgotten about this stuff, sorry. Daniel what's the status
> of our GNU project? IIRC all things were go at one point.
Right, I believe it t
On 22 July 2013 15:17, Daniel Hartwig wrote:
> On 22 July 2013 09:57, David Thompson wrote:
>> 3) The `pixel-format` enumeration is no longer correct. It only has one
>> element, `red-ext`, when it should have `rgb`, `rgba`, and many others.
>> Introduced in commit c7b3127.
On 22 July 2013 09:57, David Thompson wrote:
> Hello,
>
> I checked out the latest commits in guile-figl's master branch and ran into
> a few issues:
>
> 1) Syntax error in the texinfo docs in `doc/low-level-gl.texi` on line
> 19188.
> Introduced in commit c7b3127.
>
This error:
@table @asis
@ite
On 9 June 2013 21:16, David Thompson wrote:
> Here is a really small patch for guile-figl that fixes errors when
> generating docs from texinfo files.
>
Hello
I have today fixed some errors in the docs. Thanks for the patch.
> ---
> doc/gl.texi | 2 +-
> doc/low-level-gl.texi | 3 +-
On 13 June 2013 09:14, David Thompson wrote:
> Filled in some holes regarding OpenGL texture functions. There are 2
> left as TODO that I'm not quite sure how to handle nicely.
>
Hello
Thanks also for this patch, though I am not applying it at the moment.
I have inserted some comments inline, a
On 23 June 2013 21:47, Ludovic Courtès wrote:
> Aidan Gauland skribis:
>
>> I'm not sure whether this is a bug, but it's inconsistent behaviour. I
>> ran (in the guile-2.0.9 directory)
>>
>> $ ./configure -C
>>
>> and got an error about a missing dependency, which I installed, and then
>> and r
On 4 May 2013 12:20, Nala Ginrut wrote:
> Oops, sorry for my bad English. I mean I thought it installed to
> nala/shell.scm but the 'make install' seems not.
Oops indeed :-)
> Anyway, it works fine for me:
> cut---
> nalaginrut@Renee-deskto
On 4 May 2013 10:01, Nala Ginrut wrote:
> On Fri, 2013-05-03 at 13:17 -0700, Mike Gran wrote:
>> > From: Stjepan Horvat
>>
>> >ls /usr/share/guile/site
>> >colorized.scm shell.scm src.scm
>>
>>
>> I guess they probably should have been put in
>> /usr/share/guile/site/nala/
>>
>> -Mike
>>
>
> We
On 4 May 2013 07:11, Ian Price wrote:
> Mike Gran writes:
>
>> Also, I'm changing up the rules. I had made it pretty complicated
>> to contribute, I suppose, because I don't really want to create
>> competition for fear of alienating anyone. But, the barrier to entry
>> was too high, perhaps?
On 2 May 2013 01:17, Mike Gran wrote:
> Three other problems remain incomplete, so feel free to try your
> hand at one of them as well.
>
> - Challenge #3: LZW Compression
>
Just for fun I made a rough start at this one when you announced it.
The outer procedures are as specified in the proj
On 22 April 2013 01:17, Tobias Brandt wrote:
> I just noticed something: next-method *already* supports calling it with
> different arguments. It's just not documented.
>
When changing the _type_ of an argument this will perhaps not have the
desired result. You have to consider the specific situ
gree that ordered hashes aren't so important, but
> the printable representation and read syntax for hashes (or at least some
> sort of hashes) and unordered sets would be comfortable and I believe it
> wouldn't hurt (although Daniel Hartwig in one of this posts' follow-u
On 8 April 2013 04:38, Taylan Ulrich B. wrote:
> Panicz Maciej Godek writes:
>> I agree. But Adam Smith would say that it's the market who says what's
>> right and what's wrong ;)
>
> I don't know Adam Smith, but I know that I disagree with this particular
> quote, at least at face value. I will
On 05/04/2013 10:47 AM, "Noah Lavine" wrote:
>
> Hello,
>
> I haven't thought about this whole email, but I disagree with this part
of your response:
>
> On Thu, Apr 4, 2013 at 8:17 PM, Daniel Hartwig wrote:
>>
>> Hash tables are not just a set of
On 4 April 2013 20:06, Panicz Maciej Godek wrote:
> There are, however, situations, when one wants to have an ordered set,
> and it's good to have choice. Clojure, for instance, offers such choice, and
> from the perspective of a programmer it's better to have a choice.
>
Note that Scheme provide
On 5 April 2013 06:21, Taylan Ulrich B. wrote:
> Panicz Maciej Godek writes:
>
>> Plainly, the size is kept in the internal representation of the hash
>> table:
>>
>> typedef struct scm_t_hashtable {
>> unsigned long n_items; /* number of items in table */
>> ...
>>
>> cf.
>> http://git.savannah.
On 20 March 2013 21:39, wrote:
> I am somewhat confused by the behaviour of 'tmpfile' function in guile
> 2.0.5
>
> For example,
>
> (define a (tmpfile))
> (port-filename a)
>
> returns #f. Shouldn't there be a file created in /tmp ?
This POSIX procedure probably unlinks the file immediately aft
On 1 March 2013 10:25, dongdong12345 xie wrote:
> Dear all:
>
> To install guile, the./configure command is executed, the
> emergence of the " configure: error: GNU MP 4.1 or greater not found, see
> README ", and then I installed gmp-5.1.1, still appear " configure: error:
> GNU MP 4.1
On 18 February 2013 13:39, Hengqing Hu wrote:
> Thanks for spending time to investigate.
Sure.
>
> One thing I'd like to point out, the intention of use hash-length
> in remove-unrelated-blocks is to avoid furthur processing
> if all blocks are related.
This involves the assumption that the siz
On 18 February 2013 11:28, Hengqing Hu wrote:
> Here it is:
>
> https://github.com/hudayou/fib
>
> Welcome your suggestions!
Please see the attached patch.
For remove-unrelated-blocks, building the hash-tree may be suboptimal
and I suspect could be avoided altogether, but I have not investigated
On 18 February 2013 11:14, Hengqing Hu wrote:
> Though I didn't look into the implementation.
>
> I suppose length is a constant time operation here,
> if you use fold instead to get the same thing.
> It would be linear time.
This is not guaranteed.
>
> Knowing something is empty or not rises af
On 18 February 2013 10:36, Hengqing Hu wrote:
> Thanks for the collaboration.
>
> You are right, that's what I mean by a deep list.
So what do you consider the length of the example deep list, is it
two, three, or six? Length implies a particular dimension, which is
naturally the ordering of the
On 18 February 2013 09:00, Daniel Hartwig wrote:
> I included the special case as it runs in
> constant time, I suppose changing the order and making PRED optional
> would be a neater interface.
Actually, lets not leak this implementation detail in the API, as it
is not a natural pr
On 17 February 2013 22:15, Hengqing Hu wrote:
> I don't know it's intentional or a bug,
> but now object->string returns something different.
It was an intentional change. Previously you could not tell apart two
distinct hash tables that happened to have the same number of elements
and bucket si
On 17 February 2013 21:41, Ludovic Courtès wrote:
> Hi!
>
> Daniel Hartwig skribis:
>> +To count all elements:
>> +
>> +@lisp
>> +(hash-count #f h)
>
> I would instead recommend (hash-count (const #t) h), and remove the
> special case. WDYT?
A clea
On 17 February 2013 11:55, Hengqing Hu wrote:
> Dear list,
>
> It seems the read syntax of a hash table has been silently changed.
>
> Now (make-hash-table) produces
> #
> instead what was in 1.8
> #
>
> But the document is not updated yet?
>
Hi
That's how hash-table values are printed, true, bu
On 17 February 2013 13:03, Nala Ginrut wrote:
> I put here:
> https://gitorious.org/glow/artanis
The examples you mentioned make this look very interested. Nice job.
On 17 February 2013 13:03, Nala Ginrut wrote:
> PS: and I have to mention that bug, I believe it's a bug.
>
> When the server-handler get the request, I found the uri in request have
> no 'host', it's #f. It causes trouble for me to implement url redirect
> mechanism, which used to implement admin
On 15 February 2013 09:24, Aleix Conchillo Flaqué wrote:
> On Thu, Feb 14, 2013 at 12:24 PM, Andy Wingo wrote:
>>
>> I think it would probably be great to do longer articles as well, if
>> that's your thing. But the basic thing would be a sentence or two about
>> what your code does and why you
On 12 February 2013 16:42, Andy Wingo wrote:
> On Tue 12 Feb 2013 09:15, Akop Pogosian writes:
>
>> (define-macro when
>> (lambda (test . branch)
>> `(if ,test
>> (begin ,@branch
>>
>> will give an error:
>
> This is a bug. I just fixed it in stable-2.0; thanks for the report.
On 12 February 2013 16:15, Akop Pogosian wrote:
> I am having problems getting simple define-macro to work in Guile 2.
>
> For example, this:
>
> (define-macro when
> (lambda (test . branch)
> `(if ,test
> (begin ,@branch
> What's wrong here?
>
This is not the right syntax. F
On 9 February 2013 18:12, Daniel Hartwig wrote:
> Using symbols and literals, rather than strings:
Though strings work just as well as symbols :-)
On 9 February 2013 17:57, Nikita Karetnikov wrote:
> Any Haskellers here?
>
> How would you rewrite the following function in Guile?
>
> foo :: [Int] -> String -> [Int]
> foo (x:y:ys) "+" = (x + y):ys
> foo (x:y:ys) "-" = (x - y):ys
> foo xs num = read num:xs
Indeed, match can do this. The
On 2 February 2013 18:19, Ludovic Courtès wrote:
> Daniel Hartwig skribis:
>> After bootstrapping my current pet project,
>
> So you already started?
>
“Any day now.”
> I think there are really two approaches: one is to augment the Hurd with
> Guile APIs and server
[Hello l4-hurd, I see you have been quiet lately.]
On 2 February 2013 01:28, Nala Ginrut wrote:
> On Fri, 2013-02-01 at 16:40 +, Ian Price wrote:
>> Heh, reimplementing coreutils in Scheme has been a plan of mine for a
>> while, as part of justifying my Iteratees library, but that has taken a
On 2 February 2013 04:56, wrote:
> I hacked a little bit of code to generate C bindings for what is specified in
> the glcorearb.h file. I also wrote a small script to extract the gl constants
> and define them as scheme variables.
> This is all *really* hacky stuff, but if somebody wants to have
On 1 February 2013 21:02, Javier Sancho wrote:
> Aleix Conchillo is also working with OpenGL and encountered a problem
> with glutInit and char**. You can see it at
> http://lists.gnu.org/archive/html/guile-devel/2012-07/msg00074.html
Mark's suggestion is spot on, even points out one issue with m
On 27 January 2013 23:08, Ludovic Courtès wrote:
> Hi Marco,
>
> Sorry for the delay.
>
> Marco Maggi skribis:
>> * It appears that there is no facility to handle "output
>> arguments" from C functions; I mean the cases where a C
>> function accepts as argument a pointer to variable
On 26 December 2012 04:03, Nikita Karetnikov wrote:
> Hello,
>
> I have some questions about the '%options' variable. [1]
>
Hello
Your questions are mostly answered by an understanding of lambda and
fold, which are common concepts. I only give brief responses below.
If you have further question
On Dec 7, 2012 5:51 AM, "Richard Shann" wrote:
> If I pass 'a in as a parameter I get something back which prints on the
> console as (quote a) but which is not eq? to 'a
You seem to be double quoting the value. No need for ' the second time.
> I can pass in a string and get an equal? string ba
On 3 December 2012 20:39, Daniel Llorens wrote:
> I've seen that there's a REPL command ,inspect that produces
> abridged output. Is it possible to have this as the default for
> printing to the REPL? Is there any way to configure this?
scheme@(guile-user)> (eval '(set! repl-print
On 2 December 2012 12:46, Daniel Hartwig wrote:
> Perhaps one day we will see a system like this in Guile, perhaps
> a port of GNU Hurd.
That is, implemented for the Guile environment, not as part of the
Guile itself.
[Off topic for guile-sources@, please continue at guile-user@.]
On 2 December 2012 04:30, spilledmilkfruitfactor...@gmail.com
wrote:
> Will Guile be a operating system?
Hi
Guile provides an environment for programs to run; those programs can
be written in a variety of high- and low-level langua
On 19 November 2012 10:14, Mike Gran wrote:
>> You may want to suggest having separate guile-1.8 and guile-2.0
>> packages to keep things moving. Or, does Fedora not encourage
>> packaging schemes like that?
>
> First, I don't want to misrepresent my role. I'm only a Fedora
> user and busybody.
On 18 November 2012 23:42, Ludovic Courtès wrote:
> People can correct me if I’m wrong, but I think many of these packages
> couldn’t switch transparently to Guile 2.0, and the required porting
> effort hasn’t been started or completed yet.
Mike
You may want to suggest having separate guile-1.8
On 14 November 2012 18:20, Daniel Llorens wrote:
>> When the doc. states keyword arguments do not contribute to the
>> success of a match, it refers only to keyword arguments in the
>> case-lambda clause, not at the call site. This makes sense, otherwise
>> it would inhibit writing functions that
On 12 November 2012 21:54, Daniel Llorens wrote:
>
> (define f
> (case-lambda*
> ((a b c #:key x) 3)
> ((a #:key x) 1)))
>
> scheme@(guile-user)> (g 0 #:x 1)
> $1 = 3
Because “0 #:x 1” is a valid match for “a b c”, you should rearrange
the case-lambda claus
On 7 November 2012 12:30, Daniel Hartwig wrote:
> On 7 November 2012 10:49, Keith Wright wrote:
>> > (define y (with-output-to-string (lambda()(system "date"
>> Tue Nov 6 21:42:41 EST 2012
>> > y
>> $2 = ""
>>
>> The
On 7 November 2012 10:49, Keith Wright wrote:
> > (define y (with-output-to-string (lambda()(system "date"
> Tue Nov 6 21:42:41 EST 2012
> > y
> $2 = ""
>
> The stdout of the system call does not go into the string,
> why not?
with-output-to-string can not capture stdout, only output s
On 3 October 2012 03:29, Panicz Maciej Godek wrote:
> Well, the idea for now is that the associated .spec file containing
> the state of GUI is loaded on startup, and the state of the
> interpreter is dumped to that file on exit (or at GUI's request).
> Viewing the file will obviously be an option
Hello
On 23 July 2012 21:59, Patrick Bernaud wrote:
> Hello,
>
> I am trying to create and manipulate some C structures with the
> foreign interface of Guile 2.0. This is part of an extension to an
> existing application.
Your best option is to handle the low-level allocation and
manipulation of
On 15 June 2012 01:10, Johan Hidding wrote:
> (use-modules (ice-9 popen))
>
> (display (with-output-to-string (lambda ()
> (let ((P (open-pipe "cat" OPEN_WRITE)))
> (display "Hello World!\n" P)
> (close-pipe P)
>
> to output: Hello World!
> But it gives me not
On 13 June 2012 18:02, Nala Ginrut wrote:
> hi Daniel, thanks for reply!
> I tried guile-lib just now, it's nice. I'll use it.
Yes, guile-lib has lots of great code in it. :-)
>
> Besides, do you think pipe is the proper way to implement "sed" function?
> Or it's better to implement a module wit
On 13 June 2012 14:55, Nala Ginrut wrote:
> hi folks! I'm on my trip and inconvenient to meet you guys on IRC.
> Things gonna be normal next month.
>
> Anyway, there's a problem for you.
> I'm trying to write a simple wrapper for "sed" with our popen module:
> --code
> (use
On 28 April 2012 05:13, Sunjoong Lee wrote:
>
> Background;
> #:decode-body? keyword of http-get seems not to work properly; I should
> set #:decode-body? to false value and decode the contents body string
> manually. If a web page's charset be utf-8, there be no problem. If not, a
> problem occur
On 27 April 2012 16:28, Sunjoong Lee wrote:
> I googled and found http://tools.ietf.org/html/rfc2616 .
>
> In a section of "4.4 Message Length":
> 2.If a Transfer-Encoding header field (section 14.41) is present and
> has any value other than "identity", then the transfer-length is
> d
On 24 February 2012 18:25, Andy Wingo wrote:
> On Fri 24 Feb 2012 04:31, Daniel Hartwig writes:
>
>> I ended up using run-with-pipe from guile-lib's (os process) module
>> which returns separate port objects--similar to the OP's proc..
>
> Should we incorpor
On 24 February 2012 01:16, Thien-Thi Nguyen wrote:
> () Tristan Colgate
> () Thu, 23 Feb 2012 14:26:28 +
>
> I tried using open-input-output-pipe but hit issues.
>
> What were the issues?
>
Not sure if this is similar to the OP's issue…
Some programs wait until their stdin is closed befor
Hi there
On 25 January 2012 09:41, Catonano wrote:
>
> It happens that the response I get from the server of the radio station is
> chuncked (that is (transfer-encoding (chuncked)) )
>
> so when I issue the (htt-get uri) instrucion I get
>
> $2 = #< etc.
> $3 = #f
>
> that is no page source
>
>
On 6 January 2012 17:58, Sascha Ziemann wrote:
> I spend some time searching through the docs but I can not find a way
> to get read-byte as defined by SRFI-56. Is there a way in Guile?
>
Under 2.0 there is the (rnrs io ports) module:
-- Scheme Procedure: get-u8 port
-- C Function: scm_get_u8
haven't been, due to misconfiguration. In this
case I'd rather throw an error than parse it (wrongly) to
date-in-the-past.
Given those points, I have attached a patch implementing the suggested
handling for "Expires" and will take a look at perhaps relaxing
parse-date (and others)
On 22 December 2011 10:51, Andy Wingo wrote:
>
> On Sun 27 Nov 2011 05:39, Daniel Hartwig writes:
>
>> This is definitely a bug on Guile's part, HTTP/1.1 permits such values
>> for "Expires" headers [1], treating them as though they were a date in
>&g
ime))
This approach completely ignores the recommended way of determining
whether a response has expired. See section 13.2.4 of the RFC for
calculations involving various factors such as the time that a request
was sent, "Cache-Control" directives, etc.
Regards
Daniel
From dcb
63 matches
Mail list logo