Build Issue on Master: Value out of range

2017-06-12 Thread Ian Price
Hello, I've been trying to build the current master, and it fails when I get to (cps utils). i.e. " BOOTSTRAP GUILEC language/cps/utils.go". It may be my own issue, as I'm ignorant of the changes to the bootstrap process, so I figure here is better than bug-guile (for now). If it matters I'm on x6

Re: Chunked Encoding

2012-05-07 Thread Ian Price
Hello guilers, Here is a more complete patch. I've also attached a patch to export declare-opaque-header!, which I've occasionally found to be useful. -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "Th

Re: Chunked Encoding

2012-05-07 Thread Ian Price
Thien-Thi Nguyen writes: > () Ian Price > () Sun, 06 May 2012 05:52:00 +0100 > >I think we can leave trailers until I have some actual data on >how much these are actually used in practice, and/or someone >complains about it being missing. WDYT? > > It&

Re: Wish List

2012-05-11 Thread Ian Price
p://debbugs.gnu.org/cgi/pkgreport.cgi?pkg=guile. -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

Re: Preparing for 2.0.6

2012-06-28 Thread Ian Price
t it may need a rebase first. -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

Re: GNU Guile 2.0.6 released

2012-07-07 Thread Ian Price
My thanks to Ludovic, Andy, and all other contributors for their help in this release. -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

Running non-scheme scripts: some thoughts

2012-07-11 Thread Ian Price
[0]. I don't personally like this solution, since it seems fragile, and it's not clear how it would interact with the -x switch. -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

Re: Our temporary guildhall package repository down?

2012-08-11 Thread Ian Price
nicer compilation. I would like this to change. I don't know if I will be able to change its fortunes, but I would appreciate help in testing it. In particular, if you have pure scheme libraries that you would like included, I would be much obliged if you would email me links to them. (p

Re: Our temporary guildhall package repository down?

2012-08-11 Thread Ian Price
Ian Price writes: > Just an FYI, it still isn't up. :-P I know nalaginrut already offered, > but if you can tell me where to find the available.scm format I can look > into hosting this temporarily myself. Oh I see, it is just a list of package forms (as in pkg-list.scm), but w

New guildhall repository

2012-08-12 Thread Ian Price
thread, you can email me links if you want me to package them, and you can check out the guildhall documentation for the pkg-list.scm format if you want to give it a try yourself. There is no interface for user submissions at the moment, but I am looking into that. Hopefully, there will be

pkg-list.scm for guile-lib

2012-08-15 Thread Ian Price
ost of the information was taken from the guile-lib info page. I hope the copyright info is correct. Anyway, if there are no objections to the content, I will upload the package to my repo. -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the opportunity

Derick's SRFI collection & guile

2012-08-25 Thread Ian Price
I think, racket, and arcfide was working on adding this to chez. -- 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"

guildhall packages

2012-08-25 Thread Ian Price
pload facility is ongoing, but if you want a library packaged/included shoot me a mail (pure scheme only at the moment, hopefully scheme & c / elisp / ecmascript / brainfuck soon) 0. https://github.com/ijp/guildhall/ 1. Installation instructions -- https://gist.github.com/3327296 -- Ian Pric

Re: guildhall packages

2012-08-29 Thread Ian Price
or expository purposes 1. guildhall seems to make some sort of a distinction between "programs" and "executables", but I'm not sure what the reasoning is for this. 2. executables would go in ~/.local/share/guildhall/2.0/$name/bin -- Ian Price -- shift-reset.com &quo

Re: Derick's SRFI collection & guile

2012-08-29 Thread Ian Price
Ian Price writes: > Now, as I see it we have a few options available here. > > 1. Patch guile to also look up srfis using the above convention. > 2. Absorb (set-difference portable-srfis guiles-srfis) into guile proper > 3. I change the srfi package hosted on my repo to one th

Re: Will guile support R7RS terminating "equal?" in the presence of cycle?

2012-09-02 Thread Ian Price
oids many important portability questions. But we all can dream... -- 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: Ang.: Will guile support R7RS terminating "equal?" in the presence of cycle?

2012-09-02 Thread Ian Price
Hence no problems. > > Yes, of course. IIRC, equal? in r6rs is supposed to terminate also. If someone implements it, please backport it to the (rnrs base) module. -- 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"

Adding more to boot-9

2012-09-04 Thread Ian Price
d-right, string-unfold, string-fold-right, string-fold and hash-fold _are_ in the base, and this is supposed to be list processing language. 1. http://mumble.net/~campbell/scheme/shuffle.scm 2. http://okmij.org/ftp/Haskell/perfect-shuffle.txt -- Ian Price -- shift-reset.com "Programming is

init.scm

2012-09-04 Thread Ian Price
ldhall/issues/6 1. Well, -Q in emacs is really "-q --no-site-file --no-splash" but who's keeping track? ;-) -- 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: things are eq? but not generated at the same time

2012-09-05 Thread Ian Price
harm to make them eq? If you want distinctness and mutability, you can always call the vector constructor. -- 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: things are eq? but not generated at the same time

2012-09-05 Thread Ian Price
Ian Price writes: > anyway. Anyway if vectors are immutable, as I believe they are, it I, of course, meant vector literals, but a quick test shows this is not the case. (define v #(1 2 3)) (pk v) (vector-set! v 0 #f) (pk v) ~ $ guile -s /tmp/test.scm ;;; (#(1 2 3)) ;;; (#(#f 2 3))

guile --listen fix

2012-09-19 Thread Ian Price
ble-2.0. I also have a patch to fix a typo. -- 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" >From a764dcb9735c2478392006287a97dd07541e55ee Mon Sep 17 00:00:00 2001 F

Re: guile --listen fix

2012-09-19 Thread Ian Price
ts, have it output relevant variables, and check the output. Hmm. This seems like it would be problematic with --listen though, since we'd need to run two instances, and make some visible changes to the instance. Maybe I just haven't thought it through enough. -- Ian Price -- shift-reset

Re: Guile OpenGL

2012-10-27 Thread Ian Price
rk on sdl bindings is either coordinated with ttn, with a view to be included in the existing guile-sdl, or if it were at the very least compatible. 0. It used to be necessary to make a small tweak, I forget if this is still the case. -- Ian Price -- shift-reset.com "Programming is like pinbal

Re: Appending Queues

2012-11-02 Thread Ian Price
;list, with the obvious simple implementations (define (q->list q) (car q)) (define (list->q l) (if (null? l) (make-q) (cons l (last-pair l -- 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"

Adding to the end of the load path

2012-11-04 Thread Ian Price
update to here, and guile-user sometime in the next week or two. 1. http://lists.gnu.org/archive/html/guile-devel/2012-02/msg00038.html -- 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: [PATCH] Add ".guile.sls" and ".sls" to the default %load-extensions

2012-11-05 Thread Ian Price
nalaginrut writes: > hey guys! Should we consider add our specified name, like: .gl or > just .guile? Please don't -- 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: [PATCH] Add ".guile.sls" and ".sls" to the default %load-extensions

2012-11-05 Thread Ian Price
ckages, so that 2.0.5 users don't need to do anything. R7RS will probably want its own incompatible convention anyway... -- 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: Release time!

2012-11-06 Thread Ian Price
n the appropriate package. But as it stands, the provides are somewhat orthogonal to how the code gets installed. Andreas, Guildhall is a friendly fork of Dorodango, so what do you think about adding this sort of thing? -- Ian Price -- shift-reset.com "Programming is like pinball. The rewa

Re: [PATCH]

2012-11-10 Thread Ian Price
The patch looks fine to me (it had better be, since it is already pushed :P), however I wonder if it wouldn't be prudent to look to moving define-record-type into guile proper, and making (use-modules (srfi srfi-9)) effectively a no-op. -- Ian Price -- shift-reset.com "Programmi

Guile Lua

2012-11-17 Thread Ian Price
lua, so I can't really do it, but if you know anyone who likes lua, and would be willing to hack on it, please suggest it to them. It'd be a shame to see that code go to waste. Wingo, Ludovic I hope this isn't too forward of me. -- Ian Price -- shift-reset.com "Programming is li

Re: Guile Lua

2012-11-19 Thread Ian Price
rg/gmane.lisp.guile.devel/12291 The first issues would be them. There appears to be a notes.org in the modules/language/lua directory, so compare with that, but I expect the roadmap covered that. Then it would be a matter of working through the lua manual, and seeing what else is missing. -- Ian Pri

Re: Guile Lua

2012-11-20 Thread Ian Price
he pros/cons of the various suggested approaches, but the only conclusion I've reached is that no single solution is going to work out on its own. I'll take some time to finish this list up and post it later today -- Ian Price -- shift-reset.com "Programming is like pinball. The

non-scheme scripts: proposed solutions and their pros/cons

2012-11-20 Thread Ian Price
ce since now the calling module needs to know the language of the module it's requiring. 0. https://lists.gnu.org/archive/html/guile-devel/2012-07/msg00067.html 1. https://lists.gnu.org/archive/html/guile-devel/2012-07/msg00068.html -- Ian Price -- shift-reset.com "Programming is like pinb

Re: non-scheme scripts: proposed solutions and their pros/cons

2012-11-20 Thread Ian Price
to affect the C code for guile. It _might_ be possible to do this all in Scheme, but until I've tried, I'm going to remain sceptical. If you have a better suggestion please tell me :) 0. as we all know, "in computer science, every problem can be solved with an additional layer o

Two r6rs bugs

2012-11-22 Thread Ian Price
2012-11/msg00011.html 1. http://srfi.schemers.org/srfi-97/srfi-97.html -- 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" >From 5f06983d26ccbd7410891730664aa83bef79e763

Re: Two r6rs bugs

2012-11-22 Thread Ian Price
y seems > worth changing, in my opinion. Well, r7rs also has their own library naming convention, but, the main change is that string-for-each should take multiple strings, not a string and some indices as srfi 13 does -- Ian Price -- shift-reset.com "Programming is like pinball.

Re: Two r6rs bugs

2012-11-25 Thread Ian Price
rest ...) )) > > What do you think? Yes, that would be much better. It's startling how often I forget I can syntax-case this way. Changed, okay for me to push? -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well

Re: non-scheme scripts: proposed solutions and their pros/cons

2012-11-25 Thread Ian Price
Ian Price writes: > First, I'm going to try and write a proof-of-concept guile-elisp > executable. This shouldn't be too hard, I think, and may shed some light > on expected difficulties. I was distracted by the pfds release so it's taken me longer than it should h

Re: non-scheme scripts: proposed solutions and their pros/cons

2012-11-25 Thread Ian Price
rent languages, a command-line > argument or argv[0] switch make a lot of sense. I've had quite a few votes for argv[0] so that's probably what it's going to be. --lang might be worth adding as an option under the "guile" name (or --from to match "guild compile"

Re: Two r6rs bugs

2012-11-25 Thread Ian Price
Okay, pushed to stable-2.0 -- 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: Immutable rnrs hashtable

2012-11-25 Thread Ian Price
x27;t say anything about the behaviour of hashtable-set! and hashtable-update! on immutable hashtables, this would be allowed. -- 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: Immutable rnrs hashtable

2012-11-25 Thread Ian Price
Whoops, in my haste, I forgot to note that this _is_ a bug in guile's documentation, not in the implementation. Suggested fix included. Ludovic, Andy: Should I add him to THANKS too? -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the o

Re: Immutable rnrs hashtable

2012-11-26 Thread Ian Price
e, adds values and returns a new > hashtable. I know, I prefer pure functional implementations... You could look up vhashes in the manual. Alternatively, if your data has an ordering you can use (pfds bbtrees) from my pfds collection[0] 0. https://github.com/ijp/pfds or guild install pf

Re: [PATCH] Colorized REPL

2012-12-08 Thread Ian Price
appeared in the lists a few > times. (os process) might be reasonable, since we are forever complaining about the popen module, but I don't see why we need (ansi term-color). -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the oppo

Re: Guile Lua

2013-01-13 Thread Ian Price
ng >> properties >> on symbols, e,g. currently a symbol slot is a variable, but to >> effectively support CL I would go for >> /Stefan I don't think we should get ahead of ourselves, but emacs has had some minor CL emulation in things like cl.el and cl-lib. I think thes

Re: Guile Lua

2013-01-14 Thread Ian Price
gt; effectively > represent those ideoms. Any thoughts on it? At one point I implemented tagbody for a laugh using call/cc. I've attached the code, but it's kinda lame. I was much less experienced with continuations and macros then, and I could certainly write it better now. -- Ian Price -- s

Re: guile-json 0.1.0 released

2013-01-30 Thread Ian Price
structions 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-lib 0.2.2 released

2013-02-03 Thread Ian Price
ith guildhall, along with some known interface bugs, the srfi package issues, and support for C etc. A full post will be made later in the week.(promise :) -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from

Re: [ANN] guile-csv 0.0.1 released!

2013-02-10 Thread Ian Price
meaning Guiler posts an announcement to here, or guile-user. We don't vet them, and we've certainly had bad APIs posted here before . I'm an optimist though: if we can find them, we can fix them, and it seems to work okay in other languages. 0. http://elpa.gnu.org/ 1. http://m

Re: Programming racket like in guile

2013-02-22 Thread Ian Price
they have others as well. -- 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"

Documenting (system repl server)

2013-03-18 Thread Ian Price
to placing the expression directly in the prototype. Rough patch is attached. -- 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" >From d3efaf09c4b57e3055afb503a6c0fd5c7a115ec

Re: [PATCH] SRFI-45: Support delayed expressions that return multiple values

2013-03-18 Thread Ian Price
ple values. -- 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"

lua branch

2013-03-25 Thread Ian Price
for the enclosing function's '...'. Right now, there is no way to get that information. -- 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: lua branch

2013-03-25 Thread Ian Price
Ian Price writes: > I don't know much about Lua, but I think I could do the following. > 1. Fix the lua-lexer failure. > 2. Disable or fix[1] the variable-arguments functionality. > 3. Rebase or merge with modern stable or master > 4. Fix the errors that arise as a result o

Re: lua branch

2013-03-25 Thread Ian Price
x27;s not necessary, and I don't have any intention of ripping out the parser and writing a new one. If someone else wrote one though, I think we should consider it. -- 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: Documenting (system repl server)

2013-03-27 Thread Ian Price
ocedure} spawn-server [server-socket] >> +@code{run-server} creates and runs a repl, making it available over > > Rather “Create and run a REPL” (“REPL” always > uppercase). Fixed. -- Ian Price -- shift-reset.com "Programming is like pinball. The re

Re: Documenting (system repl server)

2013-03-27 Thread Ian Price
having TCP be the default. Hm. -- 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: Extremly slow for format & string-join

2013-04-01 Thread Ian Price
s interpretation (format). :) 0. http://synthcode.com/scheme/fmt -- 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: Outdated section of manual 6.19.10 (Included Guile Modules)

2013-04-04 Thread Ian Price
Mark H Weaver writes: > Frankly, I think it should simply be removed. It is mostly redundant > with Chapter 7 (Guile Modules). If it's to be kept, it should be > brought up to date, and should be kept up to date going forward. +1 for removal. -- Ian Price -- shift-reset.com &

Re: [PATCH] Move let/ec to top-level

2013-04-05 Thread Ian Price
t; (define %future-prompt >;; The prompt futures abort to when they want to wait for another >;; future. This isn't the only definition of let/ec in the Guile source code. I see definitions in module/language/tree-il/peval.scm and module/sxml/match.scm (as an aside, I notice match.scm makes the prompt reuse mistake you almost did) -- 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: [PATCH] Move let/ec to top-level

2013-04-05 Thread Ian Price
Okay, apparently Ludovic already mailed the list about this, but I didn't see it due to a stale gnus. Ah well. Such is life. -- 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: [PATCH] Move let/ec to top-level

2013-04-05 Thread Ian Price
Attached is a patch to remove the duplicated definitions. -- 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" >From ffbe4cf3c151d5d5affd5baecf7b4cf65b22ce50 Mon Se

Re: Fun with guile, Erastones + goldbach conjecture

2013-04-09 Thread Ian Price
(begin > (if (not (= (* 2 i) (analyze i))) > (format #t "~a != (analyze ~a) == ~a~%" (* 2 i) (* 2 i) > (analyze (* 2i btw, Typo here ^^ > (lp (+ i 1) > Maybe I'll meditate on this more, and post a "schemier" version. -- 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: Fun with guile, Erastones + goldbach conjecture

2013-04-09 Thread Ian Price
rs (yes, the naturals are recursive, but many of the algorithms, like fast-exponentiation, rely on recursion other than on the predecessor). 0. http://srfi.schemers.org/srfi-41/srfi-41.html 1. http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf 2. https://github.com/ijp/ijputils/blob/master/streams.sls#L

Re: [PATCH] Add ',run' and ',!'

2013-04-10 Thread Ian Price
> So, what do you think? This is the sort of thing that belongs in a .guile rather than in guile IMO. -- 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: lua branch

2013-04-12 Thread Ian Price
Ian Price writes: > I don't know much about Lua, but I think I could do the following. > 1. Fix the lua-lexer failure. > 2. Disable or fix[1] the variable-arguments functionality. > 3. Rebase or merge with modern stable or master > 4. Fix the errors that arise as a resu

Re: [PATCH] Add ',run' and ',!'

2013-04-12 Thread Ian Price
Nala Ginrut writes: > Ah~very nice~ > So many cool things should be documented... Yeah, I've been meaning to do this. I'll try and get a patch for later today/tomorrow. -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the

Re: Mutable top-level bindings

2013-04-17 Thread Ian Price
hin or imported into the library. That is, it may insert a reference to that identifier into the output code it produces." "All implicitly exported variables are also immutable in both the exporting and importing libraries. It is thus a syntax violation if a variable appears on the left-hand

Re: lua branch

2013-04-17 Thread Ian Price
Ian Price writes: > The current issues with lua vs master are as follows > 1) has been renamed to on master > 2) has been replaced with which is not quite a drop-in > 3) while was being compiled into something with improper scoping. > > I have fixes for these locally.

Re: can't build guile 2.0.9 in os x (reference to /nix/store ?)

2013-04-20 Thread Ian Price
(B$SHELL ./the-file”, so the shebang isn’t actually used.! -- 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 and Swig

2013-04-20 Thread Ian Price
> Even GOOPS, Guile’s object oriented layer, which derives from CLOS > (Common Lisp’s), uses the first style. As does Racket's class library through the 'send' form. -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is

Re: [Feature Request] Some ideas on 'mmap'

2013-04-30 Thread Ian Price
t's a good reason not to add it. (As an aside, exposing the mmap'ed memory as a bytevector was my first instinct, but I worry about this complicating matters if we ever wanted to change gc) -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is

write-request-line empty path bug

2013-08-18 Thread Ian Price
le after some time apart :) -- 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" >From 6cd6cbc1e77f159dcfabb2738877fc0022d8933c Mon Sep 17 00:00:00 2001 From: Ian Price D

Re: [PATCH]: correctly call build-request

2013-08-27 Thread Ian Price
more like (untested) (when (and length (not (zero? length))) (error "content-length, but no body")) (when (assq 'transfer-encoding (request-headers request)) (error "transfer-encoding not allowed with no body")) (values request #vu8) That said, why do we forbid transfer en

Procedure vs Object Properties

2013-09-08 Thread Ian Price
g the behaviour of object properties when an object doesn't have a particular property) 0. For docstrings on general objects, we have object-documentation in (ice-9 documentation) too, but that's a separate module, so I'm not counting it. -- Ian Price -- shi

lua branch rebased

2013-09-09 Thread Ian Price
ually pass. -- 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: and-let* is not composable?

2013-09-09 Thread Ian Price
to be hygienic, that's pretty easy, but I'm not sure what you can do about this in general. It's not like you can pass in the gensymed name, because that will break the way people who for some reason still right defmacros expect them to work. Dunno, maybe I'm just missing some insight here. -- 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: [PATCH] wrong description of string-rindex

2013-09-10 Thread Ian Price
n 'first' or 'last', it would be better to use 'leftmost' and 'rightmost' -- 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: and-let* is not composable?

2013-09-10 Thread Ian Price
uit for new contributors. > Anyway can I suggest a Bug report where we Then add it to the tracker :) 0. syntax-rules is fine, modulo al petrofsky/oleg style craziness -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the opportunity to do it

Re: [PATCH] Replace define-macro with syntax-rules

2013-09-29 Thread Ian Price
t if we want it a specific > error message could be achieved with `syntax-case', or a `syntax-error' > macro (used in an "else" clause of `syntax-rules'). Pattern match errors are completely useless, really. -- Ian Price -- shift-reset.com "Programming is like pinba

Re: vhash speed thread safeness

2013-10-29 Thread Ian Price
ww.gnu.org/software/mit-scheme/documentation/mit-scheme-ref/Weight_002dBalanced-Trees.html I have those in pfds under the name bbtrees (for balanced binary trees). They are pretty flexible, and you get reasonable times for a lot of operations, but like a lot of tree structures not particularly c

Re: can't use variable in sxml-match?

2011-05-19 Thread Ian Price
Hi guilers, Just a note to say that we found a solution to nalaginrut's problem on IRC. (lambda (mypattern) ;; Instead of testing the head of the pattern in the sxml-match, I ;; have moved it out to here. (let* ((new-tag (if (equal? mypattern (car cl)) 'success

Re: export macro symbol with @ failed

2011-06-13 Thread Ian Price
be equivalent to (define aaa unless) if unless was imported by the module, and this is also an error because unless is not an identifier syntax. If I were you I'd (use-modules (rnrs control)) or (import (rnrs control)) instead. -- Ian Price "There are only two hard problems in Computer Science: cache invalidation and naming things." - Phil Karlton

WRITE & linefeed

2011-06-19 Thread Ian Price
uld be useful when printing multiple line strings, but the inconsistency with e.g. "\t\f" irks me. What do the rest of you think? I've also attached the patch I've been using to fix this for me. -- Ian Price "There are only two hard problems in Computer Sci

Re: Er... Is this right?

2011-07-01 Thread Ian Price
Andy Wingo writes: >> $1 = (a . b)<= dot as cons ? > > Good catch! Fixed in git. It is to my discredit that I fixed this for myself a few weeks back and never remembered to send it to the mailing list, but too late for that now ... -- Ian Price "There are only

Re: Patch to add (define-syntax (foo bar) ...) support

2011-07-03 Thread Ian Price
anted to write a macro :-) -- Ian Price "There are only two hard problems in Computer Science: cache invalidation and naming things." - Phil Karlton

Re: Patch to add (define-syntax (foo bar) ...) support

2011-09-02 Thread Ian Price
It wouldn't match up with the meaning of syntax-case* in racket, but if that's important to anyone, feel free to come up with another name :-) -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

Re: [PATCH] Guildhall: fix download path and keep connection alive

2011-09-04 Thread Ian Price
to a few procedures that add location properties to packages. I'm not sure if getting rid of the subdirs is desirable (it might be), but changing the format is still feasible since doro/sigil isn't in widespread use yet. or b) fix 'relative-uri' to take a list of paths, which

Creating guild bundles [bug/feature request]

2011-09-04 Thread Ian Price
ist.scm itself to decide what to bundle, but I don't think this is a priority, as long as people know there are edge cases :). -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

Re: header parsing

2011-09-21 Thread Ian Price
Andy Wingo writes: > Out of curiousity, you aren't getting any Transfer: chunked issues? Actually, I have, but I'd been busy with other things and so hadn't investigated. I'm assuming from this email that it hasn't been implemented except as a header? :-) -- Ian

Change to write-request-line

2011-09-29 Thread Ian Price
27;ve held back on including a #:absolute-uri? keyword to cover this. Any thoughts on this? -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled" >From 90ee8b8eae09a6974959d43ce145f6565be10

Chunked Encoding

2011-09-29 Thread Ian Price
;transcoded-port' which would handle it transparently for users of the returned port. I'd also suggest extending 'http-get' from (web client) to handle chunked encoding (and trailers too, I guess) for the user. Comments kindly requested, Ian -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

Re: when and unless

2011-12-08 Thread Ian Price
you will also have > > (length (call-with-values (lambda () (values #t #t)) list)) => 2 > (length (call-with-values (lambda () #t) list)) => 1 > (eq? (values #t #t) #t) => #t > > and nobody seems all too worried about that, I guess. Some of us are, I think in the guile co

Re: syntax-local-value patch for discussion

2011-12-08 Thread Ian Price
1] , that suffers from a complete lack of error handling in the case where the type-id is not, in fact, a type-id. If I were to use this mechanism, I would create a weak hash of datatype-ids, adding them to the hash with 'define-type', and checking if they are in the hash in my 't

SXML documentation

2011-12-16 Thread Ian Price
sax input-parse) has the signature find-string-from-port? _ _ . _ which is not particularly meaningful. Or how would I know what the 'ssax:xml->sxml' argument 'namespace-prefix-assig' is if I didn't know already? -- Ian Price "Programming is like pinball. The rewa

Re: Testing Functions Internal to a Module

2011-12-17 Thread Ian Price
ike (define-syntax-rule (use-privates module proc-name ...) (begin (define proc-name (@@ module proc-name)) ...)) -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

Syntax Parameters documentation for guile

2011-12-23 Thread Ian Price
fi.schemers.org/srfi-39/. [fn:3] https://www.gnu.org/software/guile/manual/guile.html#Fluids-and-Dynamic-States -- Ian Price "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"

Re: Syntax Parameters documentation for guile

2012-01-03 Thread Ian Price
bodies ...])) ;; now we can write functions that return early. Here, 'product' will ;; return immediately if it sees any 0 element. (define product (lambda^ (list) (fold (lambda (n o) (if (zero? n) (return 0)

Re: Guile: What's wrong with this?

2012-01-04 Thread Ian Price
ridiculous, as y is still mutable, it is the string "hello" which is not. As for mutable strings, I consider them a mistake to begin with, but if people expect them to be be mutable, and historically they are mutable (in guile), it is a mistake to change this without prior warning.

  1   2   >