IRC channel logs

2020-04-16.log

back to list of logs

<daviid>dsmith-work: you really need to publish this code somewhere, otherwise its qut dificult to help you :)
<dsmith-work>sneek: guile help cons
<dsmith-work>Hmm.
<dsmith-work>sneek: guile help cons
<sneek>No documentation found for:
<sneek>(srfi srfi-1): cons
<dsmith-work>sneek: guile help cons
<sneek>No documentation found for:
<sneek>(guile): cons
<dsmith-work>sneek: botsnack
<sneek>:)
<dsmith-work>sneek: help
<Aurora_iz_kosmos>daviid: A language you say?
<dsmith-work>sneek: guile help cons-source
<sneek>`cons-source' is a procedure in the (guile) module.
<sneek>- Scheme Procedure: cons-source xorig x y
<sneek> Create and return a new pair whose car and cdr are X and Y. Any
<sneek> source properties associated with XORIG are also associated with
<sneek> the new pair.
<dsmith-work>Hmm.
<dsmith-work>cons isn't in guile-procedures.txt anymore. (help cons) doens't work.
<dsmith-work>Odd
<dsmith-work>sneek: guile help null?
<sneek>`null?' is a procedure in the (guile) module.
<sneek>- Scheme Procedure: null? x
<sneek> Return `#t' iff X is the empty list, else `#f'.
<Aurora_iz_kosmos>What was the proc to expand "~/" properly again?
<mwette>hmm.. that's usually glob but I don't tthink guile has it. guix has (guix glob) -- maybe something in there
<Aurora_iz_kosmos>Hm. Importing guix as a lib in a script just for that sounds a tad much.
<Aurora_iz_kosmos>Ah. Wait. "~/" gets expanded by the shell prior to being seen by a program, yeah?
<mwette>I don't think so. of course `~' is (getenv "HOME")
<Aurora_iz_kosmos>It appears to be so in bash. Convenient, I don't need to deal with it.
<Aurora_iz_kosmos>Was there a way to silence the compilation output?
<seepel>Has anyone sorted out how to get a proper guile-readline working with Guile 3 and Guix?
<mwette>seepel: I think you need to install guile-readline
<mwette>and (use-modules (ice-9 readline)) (activate-readline) as usual
<seepel>mwette: I called `environment --ad-hoc guile-next`, then when I fire up the repl it tries to find readline in the 2.2 site-dir
<seepel>I tried searching in guix for a guile-readline that was for version 3 but didn't find it.
<mwette>ah, guile3.0-readline
<seepel>Oh thank you a million! At first I was like "I don't need no stinkin' readline" and then I started to lose my mind :)
<mwette>yw
<Aurora_iz_kosmos>If I set the encoding of a file with ";; coding: utf-8", do I need to use fluids to set string ports to utf-8?
***apteryx is now known as Guest40532
***apteryx_ is now known as apteryx
<alextee[m]>Does libguile build on mingw?
<alextee[m]>It isnt in the msys2 repos last time i checked, it said there was a bug
<daviid>alextee[m]: https://packages.msys2.org/base/guile - iirc, you need to install it
<daviid>pacman -S libguile
<daviid> https://packages.msys2.org/package/libguile?repo=msys&variant=x86_64
<alextee[m]>daviid: that is not libguile
<alextee[m]>only the binary
<daviid>pacman -S libguile-devel
<alextee[m]>there is no mingw-w64-libguile
<alextee[m]>daviid: that still doesnt work
<alextee[m]>it's only for the native arch
<alextee[m]>it should start with mingw-w64
<alextee[m]>like this: https://packages.msys2.org/base/mingw-w64-gtk-doc
<alextee[m]>should say: Repo(s): mingw32, mingw64
<alextee[m]>let me find the issue
<daviid>alextee[m]: i use msys2
<alextee[m]>i use msys2 too, libguile is not found when i use meson
<alextee[m]>it needs to be one of those mingw packages
<daviid>but that' a different issue no? eveythngis in msys2
<alextee[m]>idk, im just trying to build a windows binary that can use libguile
<alextee[m]>can you do that with msys2? i think you need mingw
<daviid>anyway, just a user there, it really is when I have to that I use msys2,
<daviid>alextee[m]: i don't think so, but i'm not interrested in window binary(ies), when I have to d anythig on win, I tell users to install msys2 and run from there
<daviid>window (native build) is a total nightmare, afaict just reading others experience ...
<alextee[m]>it is a n ightmare
<alextee[m]>it looks like MXE has guile, i will try building it from there
<alextee[m]> https://github.com/mxe/mxe/blob/master/src/guile.mk
<alextee[m]>but version 1 :/
<alextee[m]>no one has built libguile for windows yet?
<daviid>good to hear :), but I don't kow how to help, I just wanted to tell you that evrythng is in/on msys2, but that is to be usd in msys2 itself ...
<daviid>the guile msys2 package is 2.2.6-1, and its package description is 'funny':: "a portable, embeddable Scheme implementation written in C"
<alextee[m]> https://github.com/msys2/MINGW-packages/issues/3017
<alextee[m]>"Guile not buildable for 64 bit. I will not produce half building packages in repo"
<alextee[m]>"This is known issue and we not have guile packages for mingw builded. You need contact guile devs to fix it. I will not do it."
<alextee[m]> https://github.com/msys2/MINGW-packages/issues/699
<alextee[m]> https://github.com/msys2/MINGW-packages/issues/3298
<alextee[m]>everyone's waiting for "guile devs" to "fix something"
<daviid>the msys2 is 64its afaict, and has threads, which are essentials for my needs on that sad platform ...
<alextee[m]>but msys2 is not usable when building projects using libguile targetting windows
<daviid>'targetting window' is the problem :), target msys2 then ...
<alextee[m]>it's only useful for running guile commands during the build phase as far as i can tell
<alextee[m]>it's not feasible to ask users to use msys2, they're not programmers, you want to make the program easy to install
<alextee[m]>with mingw i got a (mostly) automated build going on, but withouht guile support
<daviid>not sure, why can't you install msys2 as part of your intall phase, then run the app 'in a transparent way' ...
<alextee[m]>that seems like a workaround than a solution, and im not sure if it will have implications
<alextee[m]>the "normal" way to build apps for windows is to build stuff with mingw
<daviid>alextee[m]: anyway, just wanted to point to the msys2 packages, I can't 'really help' I am afraid
<alextee[m]>np
<alextee[m]>(and thanks for the help anw :) )
<mwette>Morning!
<dsmith-work>{appropriate time} Greetings, Guilers
<roptat>hi, i'm trying to use http-post (from (web client)) but it doesn't work: using curl I can do "curl https://example.org/page -d 'some-data'", but with guile, (http-post "https://example.or/page" #:body 'some-data') returns an error, as if no data were sent to that page
<roptat>what did I do wrong?
<roptat>(sorry #:body "some-data" of course, it's a string)
<mwette>roptat: do you have gnutls --with-guile installed?
<heisenberg-25>Hi, is there a generic function to find a type of variable in guile?
<mwette>sorry,configure option is --enable-guile
***rekado_ is now known as rekado
<rekado>roptat: what is the error you get?
<roptat>yes gnutls is installed and loaded
<roptat>the page returns a 422 error instead of 200 status, telling me some required fields are missing (I submit them)
<civodul>roptat: some servers require some headers, like User-Agent
<civodul>or Accept
<rekado>roptat: you could check that you’re sending the data in the right format by letting curl spit out the request headers
<rekado>and then use http-post on localhost to inspect the serialized request
<roptat>how so?
<Aurora_iz_kosmos>nc should be able to open a listening socket.
<Aurora_iz_kosmos>Mind you that won't work for http
<Aurora_iz_kosmos>*http2
<roptat>it seems to be the same, except for the content-type
<roptat>I tried setting it in #:headers, but that didn't work, I have two Content-Type headers in the query...
<roptat>oh, it's content-type, not Content-Type
<roptat>ok, it worked!
<roptat>thanks for the tips :)
<civodul>wingo: got some weird profiles while looking at load times on ARMv7: https://issues.guix.gnu.org/issue/40626
<civodul>ah wait, https://bugs.gnu.org/40626
<rekado>(sorry about issues.guix.gnu.org; will be upgraded to work with raw debbugs data by the end of this week.)
<civodul>np!
<davexunit>another setback for live coding guile 3.0: procedures/variables get inlined where they are referenced, so when you, say, re-define a procedure at the REPL, all call sites continue to use the original until you also re-eval all of those as well, recursively.
<davexunit>"solution": avoid define, use define-method.
<davexunit>doesn't work for top-level variables that aren't procedures, though. those need to be boxed.
<davexunit>nothing I haven't been able to deal with, but maybe something that could be switched off when you're in dev mode.
<davexunit>similar to <redefinable-class> in GOOPS which is the metaclass I use when live coding with GOOPS.
<cbaines>Is there any to have Guile garbage collect less often, or maybe not at all?
<manumanumanu>cbaines: gc-disable?
<manumanumanu>that will work wonders for long-running processes
<cbaines>manumanumanu, Hmm, I see that procedure
<manumanumanu>cbaines: it is not documented, but it is available in the default environment
<cbaines>I only searched the documentation, I didn't search the source code
<cbaines>I guess like peek, it's a secret for some reason!
<Aurora_iz_kosmos><insert null-gc joke>
<Aurora_iz_kosmos>Am I the only one who finds SSAX's manual section complicated and not particularly enligthening as to how to use it?
<Aurora_iz_kosmos>*enlightening
<RhodiumToad>no
<RhodiumToad>also, while it has been sort-of fixed upstream, there's still a bug
<Aurora_iz_kosmos>?
<RhodiumToad>&gt; in CDATA is misparsed, it is treated as an entity whereas it should not be
<RhodiumToad>the version on the author's webpage has been (silently, afaik) fixed, but I don't think anyone much noticed
<mwette>jobs
<dsmith-work>[3]
<mwette>dsmith-work: thanks!
<Aurora_iz_kosmos>The Racket docs seem somewhat more readable, though it remains rather complex.
<dsmith-work>sneek: botsnack
<sneek>:)
<dsmith-work>sneek: seen rlb?
<sneek>rlb was here 21 hours ago, saying: and some earlier posts iirc..
<dsmith-work>goodbot!
<dsmith-work>sneek: seen zeenix?
<sneek>xnox was here one month and 18 days ago, saying: wingo: there is no mention of scm_tc7_byvect in 1.8 news..
<dsmith-work>sneek: seen fetsorn?
<sneek>I last saw fetsorn 3 months ago, saying: nckx: You beautiful person, thank you for guidance today, it all finally works..
<dsmith-work>sneek: seen mwette
<sneek>mwette was here one year ago, saying: dsmith-work: thanks!.
<dsmith-work>Bah!
<dsmith-work>sneek: seen civodul
<sneek>civodul was here one year ago, saying: super weird.
<dsmith-work>seen glorkxx
<dsmith-work>seek: seen glorkxx
<bandali>dsmith-work, typo'd the bot name
<dsmith-work>tanks
<dsmith-work>snek: seen glorkxx
<bandali>np
<sneek>Sorry, no.
<dsmith-work>Ah. timezone foolishness
<civodul>one year ago, time flies!