<rain1>sorry - what I meant is you need to introduce the symbol HERE before you can use it <cojy>you would need to use some kind of tricky macro that i don't know is possible in guile to define something from a string <jmarciano>am I right, that if I introduce unknown number of variables to make-string-template function, that it will not work? Or is there way to have template with unknown number of variables? <jmarciano>(define st (make-string-template "hello ${name}" #:name "unknown")) -- this works well <jmarciano>(define st (make-string-template "hello ${name} ${something}" #:name "unknown")) -- this does not <cojy>what should it put in place of soemthing? <jmarciano>${name} shall be replaced with #:name "unknown" <jmarciano>I wish to make this work (use-modules (gnu packages "emacs")) <jmarciano>I wish to know how to convert string "emacs" to emacs in the: (use-modules (gnu packages "emacs")) <jmarciano>(eval `(use-modules (gnu packages emacs)) (interaction-environment) ) -- something like this could work <jmarciano>(define pac "emacs") tried to load like: (eval `(string-append "(use-modules (gnu packages " pac ")" ) (interaction-environment) ) <iyzsong>'use-modules' is a macro in boot-9.scm.. I don't know to play with macro yet. <jmarciano>ah, is emacs in (gnu packages emacs) a symbol? <iyzsong>so, how to pass variable module name for "use-modules"? <jmarciano>like (define var "some") (use-modules (var)) -- this is idea <civodul>there are ways to achieve this, but i wouldn't recommend that <civodul>unless you're 100% sure you want it :-) <jmarciano>separate need for me, is how to load all guix package names, so that I can do at all times (package-name package) <civodul>the (gnu packages) module exports a 'fold-packages' procedure <civodul>you can use it to iterate over the list of packages <civodul>like: (define all-the-packages (fold-packages cons '())) <jmarciano>then again I have similar to learn: (define pac "emacs") (package-name pac) is not working <civodul>'package-name' applies to package objects, whereas "emacs" is a string <jmarciano>maybe there is way to convert string to package object? <iyzsong>jmarciano: I think 'specification->package+output' is it. <iyzsong>jmarciano: yes, it's in the '(gnu packages)' module. <jmarciano>I got it: (package-name (specification->package+output "emacs")) thanks <jmarciano>what is best way to load configuration like .somerc consisting of scheme, is there something like load-file simply? <jmarciano>Is there way to quickly comment the rest of the file, like in Perl, __DATA__ and everything below that remains basically untouched, could be used as data <lloda>how do I generate the HTML version of the manual? <roelj>lloda: texi2any --html guix.texi ***Fuuzetsu is now known as Guest52926
<lloda>sorry, from Guile git, I don't have guix installed <lloda>although make install doesn't install the html product :-/ <civodul>lloda: right, you have to run "make install-html" <lloda>have to say, I'm dissatisfied with the info->html conversion. All of the @math{} gets ignored... <lloda>straight from the manual @math{e@sup{x}} gives me 'Unknown command `sub' :-/ <df_>"The @math command has no special effect on the Info and HTML output. makeinfo expands any @-commands as usual, but it does not try to use produce good mathematical formatting in any way (no use of MathML, etc.)." <df_>patches welcome I guess :) <df_>oh, or does that mean that stuff that is written specifically for TeX output won't work at all for html? <lloda>it looks wrong so you're encouraged not to write it I guess <jmarciano>what to do, when I get error: ERROR: In procedure dynamic-link: file "file", not found? <jmarciano>but _ is in guile, I found some references "common shorthand", so it could be for different things, right <jmarciano>ok it is just nothing special, it is just used commonly for things ***dsmith-w` is now known as dsmith-work
***[csed] is now known as csed
<fhmgufs>Is there a nice way in Scheme to create a new list like with map but with less items? <fhmgufs>I mean to just add the item to the mapped list, if it fulfills a special condition. <fhmgufs>How can I specify arguments for signals? <paroneayea>how do you feel about making a 0.0.1 release of guile-syntax-highlight? <davexunit>paroneayea: does it work okay for your needs? <paroneayea>davexunit: honestly I don't know yet! About to test it :) <davexunit>it's another one of my slapped together experiments without sufficient documentation. <davexunit>paroneayea: if it works for you, then I will release. if it doesn't, then hopefully it can be patched easily enough and then released. <davexunit>the Scheme lexer has successfully highlighted the code for all of my blog posts that have Scheme source snippets <paroneayea>davexunit: you okay with your syntax highlighting css being contributed to 8sync's site's css, dual licensed GPLv3+ and CC BY-SA 4.0? <davexunit>(fun fact: I inspected the faces in my emacs buffer and used a lot of those colors ;) <paroneayea>davexunit: hm, should highlights->sxml add newlines as <br />? <davexunit>nice to see my syntax highligher in action :) <paroneayea>davexunit: heresy I guess but the whole 8sync site will be in a fixed with font (inconsolata) <fhmgufs>daviid: How can I specify arguments for signals? <daviid>fhmgufs: you want to add your own signals? <fhmgufs>daviid: I already did that, but I want to pass arguments to my signal handler. <daviid>fhmgufs: if that's so, look for the tic-tac-toe example <fhmgufs>daviid: I already have the signals. But I want to pass something to the signal handler. <fhmgufs>I thought that this #f stands for sth like that. <daviid>fhmgufs: i dont create signal myself, so far I did ot, can only point you to this example, tic-tac... which does exactly that <fhmgufs>Mm, ok. No problem, It doesn't matter. :) <daviid>going afk for half an hour or so, bb <daviid>fhmgufs: but if you have difficulties, I can look but uou'd have to make a workable example, paste it to lisppaste... <paroneayea>patched haunt so that atom can take a #:news-prefix argument <paroneayea>davexunit: prefix doesn't work because you already use it on the tag one! <davexunit>how about making blog-prefix default to the empty string so that we don't need special logic for it? <davexunit>we can just string-append without a type check <paroneayea>which would mean writing out a directory with an index.html <paroneayea>however, how to do that cleanly with the present systme <davexunit>probably changing something hard-coded into a user defined procedure whose default is the current behavior <paroneayea>davexunit: would also mean supplying that to the atom things <davexunit>yeah, perhaps it could also replace the configuration for how to make slugs <mark_weaver>paroneayea: alternatively, configure the web server to know that the file is html without the file extension. <mark_weaver>ACTION doesn't really like the trailing slash either <mark_weaver>but maybe it's a pain with popular web servers, dunno :) <paroneayea>I like the slash but I've gotten used to urls with a / at the end :) <davexunit>either way, I think we might be able to consolidate this whole post->uri-path thing <davexunit>the site config could probably just hold onto it <davexunit>and the blog and atom feed builders will have access <paroneayea>davexunit: for an atom related commit, should I prefix the title line of the commit with "builder:" or "atom:"? <mark_weaver>I appreciate that y'all are trying to make nice URLs though, in a day when so many web sites have crap URLs <davexunit>ACTION tries to think of what you might mean <wingo>&utm_foo=twitter/asdfa=`124234555/&id=43 <davexunit>ones with lots of crazy stuff in the query string because you're talking to a dynamic web app? <mark_weaver>although I would even count URLs that end with .html as being suboptimal <davexunit>static websites have clean URLs because there's no web application involved <rain1>The thing that frustrates me a lot is the imgur website <rain1>they have .png but its a .jpg <rain1>and if that wasn't bad enough invented a new extension .gifv which is actually just a video or something? <davexunit>the issue with leaving off the .html part is the web server not knowing what mime type to serve it as <mark_weaver>and then you have URLs that end with .shtml and .php <wingo>ah, haunt generates static files that the web server has to assign a mime to. i see <davexunit>haunt's built-in development web server just matches the file extension to get a mime type <mark_weaver>internal implementation details leaking out into public URLs. not so good. <davexunit>in production, nginx or whatever can be configured smartly <davexunit>mark_weaver: yeah that happens a lot for php sites <davexunit>a world where every request starts a new interpreter, reads in *all* of the code it needs, then processes the request <davexunit>it's a bummer that most of the great free software web applications are written in PHP <paroneayea>even though by introducing monads, I stopped understanding burritos! <davexunit>I'll apply this and then hack on my AVRs some more.