<daviid>dsmith-work: you really need to publish this code somewhere, otherwise its qut dificult to help you :) <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 <dsmith-work>cons isn't in guile-procedures.txt anymore. (help cons) doens't work. <sneek>`null?' is a procedure in the (guile) module. <sneek> Return `#t' iff X is the empty list, else `#f'. <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") <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. <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 :) <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]>It isnt in the msys2 repos last time i checked, it said there was a bug <alextee[m]>i use msys2 too, libguile is not found when i use meson <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 looks like MXE has guile, i will try building it from there <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]>"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]>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 <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>(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 <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>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 <rekado>(sorry about issues.guix.gnu.org; will be upgraded to work with raw debbugs data by the end of this week.) <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? <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>Am I the only one who finds SSAX's manual section complicated and not particularly enligthening as to how to use it? <RhodiumToad>also, while it has been sort-of fixed upstream, there's still a bug <RhodiumToad>> 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 <Aurora_iz_kosmos>The Racket docs seem somewhat more readable, though it remains rather complex. <sneek>rlb was here 21 hours ago, saying: and some earlier posts iirc.. <sneek>xnox was here one month and 18 days ago, saying: wingo: there is no mention of scm_tc7_byvect in 1.8 news.. <sneek>I last saw fetsorn 3 months ago, saying: nckx: You beautiful person, thank you for guidance today, it all finally works.. <sneek>mwette was here one year ago, saying: dsmith-work: thanks!. <sneek>civodul was here one year ago, saying: super weird.