Hi
I would like to learn more scheme and I would like to make a small CLI
program that runs in the terminal and prompts the user for input and
evaluates it.
Is that possible with guile? In the REPL?
Can someone point me in the right direction for succeding with that?
--
---
Swedebugia
t, and a
simple condition is treated as if it were a compound condition with
itself as its only simple condition.
--
Cheers
Swedebugia
On 2018-11-09 12:46, swedebugia wrote:
Hi
I'm digging deep in the source of Guix ATM.
Reading in the Guile manual I did not find a section describing this
use of exceptions:
(raise (condition (...
^ used by Ludo here:
http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/m
On 2018-11-09 12:46, swedebugia wrote:
Hi
I'm digging deep in the source of Guix ATM.
Reading in the Guile manual I did not find a section describing this
use of exceptions:
(raise (condition (...
^ used by Ludo here:
http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/m
guile count parens before evaluation or whatever so that I get
a clear error, fast.
Alternatively maybe somebody else has a parens counter script I could
use? E.g. I could tell make to first traverse all files looking for
unmatching parens.
--
Cheers Swedebugia
Hi
I worked hard for a few days playing with guile.
Pre-release now at https://gitlab.com/swedebugia/guile-wikidata
Next step is to implement looking up the entities for the result and
filter on instance of (the properties). E.g. software. Or query wikidata
with SPARQL and guile-sparql.
:D
time?
--
Cheers
Swedebugia
)))
-> [[1,2,3],{"4":5}]
So, the (json) macro is only needed to specify JSON objects, otherwise
you can use scheme types directly (and lists are always arrays).
Nice to hear you solved it :)
Both Guix and guile-wikidata use guile-json but only from json->scm and
that works flawlessly. Thanks for creating and maintaining this lib.
--
Cheers
Swedebugia
es-for-concurrency
> [2] https://github.com/wingo/fibers
Thanks for the insights. :)
Guile is indeed pretty neat. Thanks for the link. I started reading some
of wingos blog. Some of it still goes way over my head but i'm learning.
--
Cheers
Swedebugia
cripts I mean a script with a main that does something with
100 lines max.
My wikidata library is already way past this so I guess I'm beyond
simple scripting already! \o/
Any thoughts?
--
Cheers
Swedebugia
etween 101-299 lines
* longer scripts
If you want to you can send multiple!
Please include a line why you think just this script is
outstanding/nice/choosen.
--
Cheers
Swedebugia
On 2018-12-09 22:26, Arne Babenhauserheide wrote:
> to...@tuxteam.de writes:
>
>> On Sun, Dec 09, 2018 at 01:11:05AM -0800, swedebu...@riseup.net wrote:
>>> Hi
>>>
>>> I worked hard for a few days playing with guile.
>>>
>>> Pre-re
On 2018-12-11 11:29, Roel Janssen wrote:
> On 11-12-18 01:32, swedebu...@riseup.net wrote:
snip
>> I now implemented sparql queries as well. See
>> https://gitlab.com/swedebugia/guile-wikidata
>>
>
> "guile-wikidata" looks cool! And I'm glad to see
(save-module-excursion _)
3831:12 3 (_)
In sdb-test.scm:
24:1 2 (_)
In json/parser.scm:
311:18 1 (json-read-number _)
148:28 0 (read-number _)
json/parser.scm:148:28: In procedure read-number:
Throw to key `json-invalid' with args `(#>)'.
Maybe this is a bug in (json
)
>> In json/parser.scm:
>> 311:18 1 (json-read-number _)
>> 148:28 0 (read-number _)
>>
>> json/parser.scm:148:28: In procedure read-number:
>> Throw to key `json-invalid' with args `(#> #>)'.
>>
>> Maybe this is a bug in (json)?
>
> It looks like the JSON response is not (only) JSON, or simply invalid.
> Maybe the "text/xml" or "text/csv" content-type will work better for
> you. I noticed that each back-end provides their own structure for
> XML and JSON, so I used the somewhat quirky CSV format as a
> work-for-all response type.
Ok, good to know. Is this documented in your guile-sparql docs?
>
> I hope this helps.
Thanks a lot for taking the time to write this. :)
I already met receive in the npm importer but I did not really learn to
use it yet. So whenever I see multiple objects returned I can part them
with receive! Nice.
Guile is super nice. And fast it seems when you get it right.
--
Cheers
Swedebugia
-j
wt
allows you to decode, verify and generate JWT
.
https://github.com/aconchillo/guile-jwt
Nice :)
Would you be willing to send a patch to add it to guix?
See
https://www.gnu.org/software/guix/manual/en/html_node/Contributing.html#Contributing
--
Cheers
Swedebugia
'()
version-list)
;; not a version triplet
#f)))
... (se the rest of the sexp in the file attached.
Any ideas whats wrong? I'm sti
oot-9.scm:
705:2 4 (call-with-prompt _ _ #)
In ice-9/eval.scm:
619:8 3 (_ #(#(#)))
In ice-9/boot-9.scm:
2312:4 2 (save-module-excursion _)
3831:12 1 (_)
In test.scm:
8:0 0 (_)
test.scm:8:0: Throw to key `vm-error' with args `(vm-run "Wrong number
of values return
142:24 1 (read! #vu8(48 13 10 13 10 103 47 101 110 116 105 116 121
47 81 52 56 56 57 53 48 56 48 13 10 104 116 116 112 58 47 47 119 119 119
46 119 ?) ?)
In unknown file:
0 (get-bytevector-some #)
ERROR: In procedure get-bytevector-some:
Throw to key `gnutls-error' with args
Zelphir Kaltstahl skrev: (12 januari 2019
13:18:49 CET)
Hi,
A while ago I installed Guix, initially only to be able to install
GNUTLS, to be able to make HTTPS requests with the standard library's
web client procedures http-get and similar.
Now I have Guix and I installed GNUTLS, but Guile
Zelphir Kaltstahl skrev: (16 januari 2019
21:31:13 CET)
Perhaps I should put a link into the source code whenever I follow a
tutorial. Sorry for the confusion!
I am also only following Amirouche Boubekki's tutorial ; ) Good that you
already found it.
There is a paper about parser combinator
Hi Swedebugia,
I did not notice a PEG parser has been added. How did you notice this?
Maybe there is another blog for new additions to Guile?
Do you know a good text, which explains differences between the
different approaches to parsing? For example, what is the difference
r Web
browsers’ interpretation of the structure of erroneous HTML."
https://docs.racket-lang.org/html-parsing/index.html
--
Cheers Swedebugia
#lang racket/base
;; Copyright Neil Van Dyke. For legal info, see file "info.rkt".
(require mcfly)
(module+ test
(require overeasy))
(doc (s
On 2019-01-23 22:08, Thompson, David wrote:
On Wed, Jan 23, 2019 at 11:41 AM swedebugia wrote:
I just found this LGPL3 parser by Neil Van Dyke (see attachment)
Do we have something similar in guile?
Check out (htmlprag) included in guile-lib.
Thanks Dave! :D
Guile has everything - it is
24 matches
Mail list logo