Simulating rational number addition/subtraction

2016-02-24 Thread Lawrence Bottorff
With guile (and a few other Schemes/Lisps) you can directly add fractions or rational numbers: (+ 1/2 1/12) => 7/12 It's like magic, no? Anyway, I'm trying -- for educational purposes -- to reproduce this functionality. But right out of the blocks I'm stuck trying to figure out how to handle inco

Re: [ANN] An impudent introduction to Guile

2016-02-09 Thread Lawrence Bottorff
Good, good. On Mon, Feb 8, 2016 at 7:58 PM, Panicz Maciej Godek wrote: > 2016-02-07 22:51 GMT+01:00, Lawrence Bottorff : > > I've got this <https://github.com/borgauf/pamphlet> fork going where > I've > > done some editing (grammar, style, spelling, etc.) on t

Re: [ANN] An impudent introduction to Guile

2016-02-07 Thread Lawrence Bottorff
I've got this fork going where I've done some editing (grammar, style, spelling, etc.) on the book (up to "Reporting bugs." Let me know what you think. In general, I think Scheme desperately needs an "O'Reilly"-style book. Question: What should we say when so

Re: [ANN] An impudent introduction to Guile

2016-02-05 Thread Lawrence Bottorff
Say, would you like me to suggest some editing changes? Your English is great, but I've noticed a few errors. Lawrence Bottorff On Thu, Feb 4, 2016 at 11:09 PM, Panicz Maciej Godek wrote: > Hi, > I am pleased to announce that I just finished my booklet titled > > A P

Re: Install can't see libunistring

2015-10-02 Thread Lawrence Bottorff
/opt ? > > > On Oct 2, 2015, at 8:50 AM, Lawrence Bottorff wrote: > > > > I'm trying to install guile 2.0 on a remote provider, i.e., a "home" > install. I did install the latest libunistring in my ~/opt , but guile > ./configure --prefix=/my/home/opt

Install can't see libunistring

2015-10-02 Thread Lawrence Bottorff
I'm trying to install guile 2.0 on a remote provider, i.e., a "home" install. I did install the latest libunistring in my ~/opt , but guile ./configure --prefix=/my/home/opt/guile always complains configure: error: GNU libunistring is required, please install it. The ~/opt ~/opt/lib ~/opt/share ~

Re: gds or guile debugging

2014-11-01 Thread Lawrence Bottorff
geiser doesn't have any sort of guile debugging, does it? In general, how does one run a debugger for guile 2? On Fri, Oct 31, 2014 at 8:12 PM, Matt Wette wrote: > maybe try geiser > (I used gds w/ guile 1.8, not using geiser w/ guile 2.0.11) > > On Oct 31, 2014, at 7:19 AM,

gds or guile debugging

2014-10-31 Thread Lawrence Bottorff
I'm having trouble getting guile's gds installed and running. I keep getting error in process filter: Wrong type argument: listp, Backtrace: [2 times] Docs say I should have the three gds...el files in guile's "load path". But apparently I don't know how to do this properly. Or maybe I've got out