Re: guile-bash

2016-05-30 Thread Dmitry Bogatov
Hello! At request of Ludovic Courtès I anounce, that I no longer work on Guile-Bash -- library to create bash functions in Guile. Existing code located here: https://anonscm.debian.org/cgit/users/kaction-guest/retired/dev.guile-bash.git/ Feel free to adopt. I would be glad if it will serve to F

[ANN] guile-bash

2015-02-07 Thread Dmitry Bogatov
om/kaction/deb-guile-bash I am very interested in your opinions. [please keep me in CC] -- Best regards, Dmitry Bogatov , Free Software supporter, esperantisto and netiquette guardian. GPG: 54B7F00D pgpL4l1W5Znjo.pgp Description: PGP signature

Re: Goops generic-functions and srfi-64 tests

2014-11-23 Thread Dmitry Bogatov
> What do you mean by “simple module”? Just example code, without any other possible interferring code. -- Best regards, Dmitry Bogatov , Free Software supporter, esperantisto and netiquette guardian. GPG: 54B7F00D pgpvujJNzakXQ.pgp Description: PGP signature

Re: Goops generic-functions and srfi-64 tests

2014-11-22 Thread Dmitry Bogatov
nd behaves as it should. Maybe you have some wild guess about class being defined not via macro? -- Best regards, Dmitry Bogatov , Free Software supporter, esperantisto and netiquette guardian. GPG: 54B7F00D pgp6yG42DCGQS.pgp Description: PGP signature

Feature request: pretty print error message

2014-10-11 Thread Dmitry Bogatov
cons provided) (define-ffi-object name #:encoder encoder #:decoder decoder #:size (sizeof (quote *)) -- Best regards, Dmitry Bogatov , Free Software supporter, esperantisto and netiquette guardian. GPG: 54B7F00D pgpwJEnUPjYcb.pgp Description: PGP signature

Re: Downloading a file from a URL from the web with http-get

2014-08-05 Thread Dmitry Bogatov
flag to `http-get` to examine headers before downloading, and if I decide to download, get data from port via `get-bytevector` function family. This way you also can examine first several bytes before decide, whether file is needed, if headers information is not sufficient. -- Best regards, Dmitry Bo

Re: Downloading a file from a URL from the web with http-get

2014-08-04 Thread Dmitry Bogatov
mbda () (http-get (string->uri *url*))) (lambda (res-headers res-body) (with-output-to-file "some.tar.gz" (lambda () (put-bytevector (current-output-port) res-body)) #:binary #t))) -- Best regards, Dmitry Bogatov , Free Software supporter, esperantisto and netiquette guardian. GPG: 54B7F00D pgpKOUQ7b020E.pgp Description: PGP signature

Syntax object representation

2014-06-23 Thread Dmitry Bogatov
icate. Is it by design? It seems, than syntax->datum is no-op on non-syntax objects. Can I rely on it? Thanks in advance. -- Best regards, Dmitry Bogatov , Free Software supporter, esperantisto and netiquette guardian. git://kaction.name/rc-files.git GPG: 54B7F00D pgpBug7tid1vE.pg

Re: Macro expansion: unknown location

2014-06-15 Thread Dmitry Bogatov
for any two > occurrences of a given symbol. Therefore, there's no way to associate > source location information with each copy of the same symbol. Thanks for clarification. -- Best regards, Dmitry Bogatov , Free Software supporter, esperantisto and netiquette guardian. git://kaction.name/rc-files.git GPG: 54B7F00D pgp_EaoX7EWOA.pgp Description: PGP signature

Macro expansion: unknown location

2014-06-10 Thread Dmitry Bogatov
U Guile) 2.0.9 Linux localhost 3.14.0-gnu #8 SMP Sat Apr 12 11:56:49 MSK 2014 x86_64 Intel(R) Core(TM) i7 CPU Q 740 @ 1.73GHz GenuineIntel GNU/Linux Any suggestions or workarounds? -- Best regards, Dmitry Bogatov , Free Software supporter, esperantisto and netiquette guardian. git://ka

GNU Thales 1.99 initial release

2014-03-19 Thread Dmitry Bogatov
manual (not too long reading) at http://www.gnu.org/software/thales/manual and download from ftp: https://ftp.gnu.org/gnu/thales/thales-1.99.tar.gz https://ftp.gnu.org/gnu/thales/thales-1.99.tar.gz.sig Feedback and ideas are welcome. What about QuickCheck properties? -- Best regards, Dmitry Bogatov

Re: Uniq list in Guile

2013-10-26 Thread Dmitry Bogatov
; primitive. Thanks for replies. These functions will be in use. -- Best regards, Dmitry Bogatov , Free Software supporter and netiquette guardian. git clone git://kaction.name/rc-files.git --depth 1 GPG: 54B7F00D Html mail and proprietary format attachments are forwarded to /dev/null

Uniq list in Guile

2013-10-26 Thread Dmitry Bogatov
Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Tue, 22 Oct 2013 15:56:43 +0400 Subject: [PATCH] Uniq Scheme lists in C Signed-off-by: Dmitry Bogatov --- doc/ref/api-utility.texi | 29 ++- libguile/Makefile.am | 4 +++ libguile/init.c | 2 ++ libguile/uniq.c

Guile vectors

2013-10-09 Thread Dmitry Bogatov
Documentation for vectors says: Like lists, vectors have to be quoted: Altho: (define foo #((+ 1 2) 2)) (eq? foo (eval foo (current-module))) ;; #t Am I missing something, or documentation is not in sync with current state of art? -- Best regards, Dmitry Bogatov , Free

Re: Doctest for guile

2013-09-17 Thread Dmitry Bogatov
t; $3 = ((arity 0 0 #f) (name . foo) (foo . bar) (baz . qux)) It is intresting, but just now I see no use for it. In face, it seems my Guile saves less information about function, that your: $2 = ((name . foo) (foo . bar) (baz . qux)) As you can see, I am missing arity. Is it git patch? -

Re: Interpreting statprof

2013-09-17 Thread Dmitry Bogatov
ted, rather than > compiled. Or something is being interpreted, anyway. Check that you > have auto-compilation on. Thanks! It reduced time from 4 sec to 0.4. -- Best regards, Dmitry Bogatov , Free Software supporter and netiquette guardian. git clone git://kaction.name/rc-files.git

Interpreting statprof

2013-09-17 Thread Dmitry Bogatov
orm-action --- Sample count: 347 Total time: 4.218837499 seconds (0.176613742 seconds in GC) -- Best regards, Dmitry Bogatov , Free Software supporter and netiquette guardian. git clone git://kaction.name/rc-files.git --depth 1 GPG: 54B7F00D Html mail and proprietary format attachments

Doctest for guile

2013-09-11 Thread Dmitry Bogatov
Tarball of doctest sources -- Best regards, Dmitry Bogatov , Free Software supporter and netiquette guardian. git clone git://kaction.name/rc-files.git --depth 1 GPG: 54B7F00D Html mail and proprietary format attachments are forwarded to /dev/null. pgph69FiC4WS4.pgp Description: PGP signature

Syntax-rules generate symbol

2013-09-09 Thread Dmitry Bogatov
tch var (pattern exp ...))) list]))) PS. Please, keep in CC, I am not subscribed. -- Best regards, Dmitry Bogatov , Free Software supporter and netiquette guardian. git clone git://kaction.name/rc-files.git --depth 1 GPG: 54B7F00D Html mail and proprietary format attachments

Re: Define in let

2013-08-21 Thread Dmitry Bogatov
tation? Is it any workaround? > > Section '3.4.7 Example 2: A Shared Persistent Variable' is probably what you > want? Yes, although it is a bit too verbose. (define (foo x) (let ((a 2)) (+ a x0))) is enough for my puroses, although solution about define-values se

Define in let

2013-08-20 Thread Dmitry Bogatov
. -- Best regards, Dmitry Bogatov , Free Software supporter and netiquette guardian. git clone git://kaction.name/rc-files.git --depth 1 GPG: 54B7F00D Html mail and proprietary format attachments are forwarded to /dev/null. pgp3VBKJa41ZR.pgp Description: PGP signature

# undefined symbol

2013-04-30 Thread Dmitry Bogatov
init-query+)) (error "Failed to initialize database table"))) (define db-obj (dbi-open "sqlite3" "my-example-db")) (dbi-query db-obj "create table hellotable(id int, name varchar(15))") (display db-obj) (newline) (dbi-close db-obj) (display db-obj) (newline