IRC channel logs

2019-12-03.log

back to list of logs

***Server sets mode: +nt
<ZombieChicken>Anyone have a URL for the nomad browser?
<daviid>ZombieChicken: http://git.savannah.nongnu.org/cgit/nomad.git/
<ZombieChicken>daviid: Thanks. Is ##nomad the channel for that project?
<daviid>ZombieChicken: I don't think so, but the author is here very regurlarly, as a matter of fact, he's here now :) str1ngs
<str1ngs>ZombieChicken: the channel is #nomad-browser
<ZombieChicken>thanks
<zig>hello #guile
***wleslie_ is now known as wleslie
***inoaffep is now known as pinoaffe
<dsmith-work>Hey Hi Howdy, Guilers
***ng0_ is now known as ng0
<manumanumanu>Hey ho!
<manumanumanu>I have decided to never again store documentation in HTML. It is a sucky format. What options do I have? I could roll my own XML for just documenting procedures and rolling my own xslt for outputting pretty other formats.
<dsmith-work>manumanumanu: I usually do things in org-mode. Exports to html, libreoffice, LaTeX, more.
<dsmith-work>And I can use things like graphviz and plantuml with it easily.
<manumanumanu>Which is what I have used as well, but now suddenly I have to do texi
<dsmith-work>I like texinfo too.
<manumanumanu>I don't really mind xml, and with NXML and a proper DTD it is really not bad.
<lloda>it's too bad texinfo doesn't do math in html exports
<lloda>they only thing I miss
<lloda>s/they/the
<jcowan>I have come to prefer markdown for writing documentation
<dsmith-work>I was messing with xml/docbook for a while. Heh, even helped with the org->docbook exporter.
<jcowan>and editing it
<lloda>I like the autoindex etc. from texinfo
<lloda>the easiest to set up & use
<lloda>I would just do latex if it wasn't for the rotten html export options
<lloda>a colleague proposed sphinx to me, but it depends on Python
<lloda>I've tried the racket system too, but only a bit
<jcowan>What's wrong with depending on Python?
<dsmith-work>Because... Python
<lloda>I don't like releasing a pure Guile or Guile + C package that depends on Python
<lloda>it's an ever growing pile
<nerdypepper>anyone participating in AoC '19?
<nerdypepper>is there a #guile leaderboard?
<jcowan>dsmith-work: Well, translate the Python code into Guile, then. Or translate CLPython into Scheme. Or implement Python as a Guile language.
<dsmith-work>jcowan: Heh. Neglected a ;^} Been doing Python at last two $DAYJOBs for about 4-5 years now.
<dsmith-work>Frustrating some times.
<jcowan>Ditto
<jcowan>Ditto ditto
<dsmith-work>There are worse things.
<jcowan>My first professional job was writing a file sort in Dibol, a sort of combination of Cobol and Fortran
*dsmith-work shudders
<manumanumanu>jcowan: stis is already at it! (regarding python in guile).
***jao is now known as Guest95385
<jcowan>manumanumanu: Excellent! Any emails, posts, or other artifacts to look at yet?
<manumanumanu>jcowan: https://gitlab.com/python-on-guile/python-on-guile
<jcowan>nm, found it, thanks
<stis>jcowan: any questions?
<jcowan>stis: going through the manual atm, looks very nice!
<jcowan>I take it that it's primarily aimed at new development rather than porting existing Python applications
<decent-username>Good evening any fellow Schemers here?
<manumanumanu>oh yes
<manumanumanu>lots
<manumanumanu>decent-username: welcome!
<decent-username>I wanted to try out the Chickadee game engine, but I'm not familiar with using modules. I've only worked through the first 3 chapters of SICP.
<decent-username>Guile doesn't seem to find the module "chickadee". How do I make guile use it?
<decent-username>I executes "guile chickadee-hello-world.scm", but it just gives me an error.
<decent-username>see https://paste.gnome.org/pdcjwq5jn/9rhaer/raw
<decent-username>I've installed everything via Guix.
<stis>jcowan: a good part of the pytyhon lib is implemented as well so with luck an already made application might run
<jcowan>That's encouraging.
<stis>but to be compatiable there is a lot of more work needed.
<manumanumanu>decent-username: Did you try loading (chickadee) from the repl?
<jcowan>Bridging the FFIs would no doubt be hard.
<decent-username>manumanumanu: I ran the file from withing Bash.
<stis>yah and I did not do anything regarding asynchs as I feel scheme have better approaches
<manumanumanu>decent-username: I just find it weird: it says that your (run-game ...) does not support the keyword argument #:draw.
<decent-username>It's looking for chickadee.scm in the same directory as my game file.
<decent-username>That's the issue apparently. But I have no clue how to tell guile about the existence of that library.
<decent-username>Or rather where to find it.
<manumanumanu>if you have installed everything from guix, that should work.
<stis>pickling works but not according to standard protocol. Also python parser format is not the same as python's and we don't support the interface to the parser as python allows
<stis>A cool thing is that python-on-guile can serialize python generators and iterators
<decent-username>manumanumanu: I'm not on GuixSD though. I had to export a bunch of environment variables in order to make things work.
<manumanumanu>decent-username: run guile from the terminal without any arguments and try (use-modules (chickadee))
<stis>python doesn not allow that
<decent-username>manumanumanu: works
<decent-username>weird
<manumanumanu>it finds everything, but it believes your run-game procedure does _not_ accept the keyword #:draw.
<decent-username>manumanumanu: I'm using Emacs and installed Geiser. When using Geisers "run-guile"-REPL and try to load the file via "(load "chickadee-hello-world.scm)" I get the following error: ERROR: In procedure primitive-load: In procedure open-file: No such file or directory: "/home/user/Informatik/guile/chickadee.scm"
<manumanumanu>where is the file located then?
<decent-username>I don't know
<decent-username>where are modules installed?
<decent-username>manumanumanu: I don't want to bother you though, if you're busy or have better things to do. I just don't want to read through the entire Guile documentation. I'm already proficient in Common Lisp and decent at writing Scheme, so I thought I could get things to work.
<manumanumanu>decent-username: check the variable %load-path
<decent-username>("/home/user/.emacs.d/elpa/geiser-20191126.933/scheme/guile/" "/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/share/guile/2.2" "/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/share/guile/site/2.2" "/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/share/guile/site" "/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/share/guile")
<manumanumanu>decent-username: I should be doing a bunch of boring stuff. This is more fun :D
<decent-username>let me check if it's somewhere in there
<manumanumanu>It will be.
<manumanumanu>check "which guile"
<decent-username>it's not.
<decent-username>user@computer:/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/share/guile/2.2$ ls -R | grep chickadee
<decent-username>returns nothing
<decent-username>I used "guix package --install guile-chickadee". I've also installed guile-sdl2 and guile-opengl
<manumanumanu>it might be in the site dirs as well
<manumanumanu>If your guix-guile can load it, it's there
<manumanumanu>That is not the problem.
<manumanumanu>The only difference you have compared to the example "text.scm" is your (display "hello"), but that shouldn't be a problem.
<decent-username>manumanumanu: Yes. I'm right now redifining %load-path inside the guile-repl to the value which guile returned when it was run inside a terminal outside of Emacs.
<manumanumanu>oooh, you should use (add-to-load-path ....)
*decent-username just learned another thing.
<manumanumanu>I am sorry to say, I am on a mac, so I can't run any code you are pasting. I had enough problems getting guile2.9.4 to work.
<decent-username>I think I'm getting close though. It seems to find chickadee. It's located in "/home/user/.guix-profile/share/guile/site/2.2/".
<manumanumanu>decent-username: Try running the example in a repl.
<manumanumanu>I have to do some christmas planning with the family... sorry. Maybe someone with chickadee installed can help you better than I can.
<decent-username>you've already helped
<decent-username>thanks.
<manumanumanu>decent-username: getting anywhere?
<manumanumanu>The error you are getting is so weird.
<manumanumanu>unrecognized keyword #:draw
<manumanumanu>is there any unicode trickery going on?
<manumanumanu>and run-game is on line 200-something in chickadee.scm, not 59
<decent-username>manumanumanu: Let me quickly finish my university homework and then I'll give you a proper answer. ;D
<manumanumanu>decent-username: It's bedtime in my timezone, so I'll read whatever reply you have at a later time. Best of luck!
<decent-username>manumanumanu: Alright. see ya.
<daviid>manumanumanu: I use texinfo, but if you don't like it you may try https://www.nongnu.org/skribilo/
<daviid>lloda: ^^ skribilo is written in guile
<daviid>guile has stexi a well ...