<lloda``>can (format) print a floating point number without the decimal point? ***lloda`` is now known as lloda
<taylan>lloda: do you mean literally just without the point, like 2.3 -> 23? <taylan>oh it seems 'format' really insists on putting a dot somewhere. :) <taylan>scheme@(guile-user)> (format #f "~1,0F" 0.2) <Arandur>My Guile distribution appears to be missing some of the SRFI packages -- specifically SRFI 43. Error msg: "no code for module (srfi srfi-43)". Where can I get these? <Arandur>Distribution is from the "guile-2.0" package on Linux Mint. <taylan>for cutting out the decimal part (2.3 -> 2), I guess (inexact->exact (truncate x)) is the easiest way... <lloda>of course I can round etc. but it's a pain <lloda>I found this with ~i which would require me to do (exact (truncate (real-part x))) (...) <lloda>(format) is a true snake nest last time I looked, too <taylan>I'm looking at SRFI-48... where is Guile's 'format' documented? <taylan>and yeah, this thing is insane O_o <taylan>(format #t "~d pupp~:@p" 5) ⊣ 5 puppies <wingo>there is a printf implementation somewhere in guile-gnome, taken from slib <rain1>why is it increasing by 13 each time? from libguile/symbols.c it looks like it should increase by 1 <rain1>how to compile guile quickly after changing a .c file in libguile? <taylan>rain1: re-run 'make'? or how do you mean? <taylan>make from scratch will take long. subsequentially it will only recompile what you changed. <taylan>I guess one could rig the build system or pass some arg to make that says "only compile libguile, don't bytecode .scm files"... <rain1>How can i run my guile now that make finished? <lloda>without installing it you mean? <rain1>I don't want to install since I already have guile <davexunit>rain1: if you are building from the git repo or extracted tarball, run meta/guile <jmarciano>I am thinking of using (and to run the second expression. <rain1>did you want to use the result of (do this) ? <jmarciano>yes I see. Is it OK or people do in different? I am using it to check first expression and to run second one if first is true <rain1>may be better to use (when condition body ...) <jmarciano>aha yes, but with when I cannot make numerous expressions? <jmarciano>when is only for one test, but and is for multiple tests <rain1>how about (when (and X Y Z) things ...) <jmarciano>davexunit: you are long time with Guile, right? <davexunit>jmarciano: sort of, I've been using it for a little over 3 years. <jmarciano>my only touch with guile programmers is here or through sources. <jmarciano>so I am trying to figure out the styles of programming, editing, what to use in which case and so on <jmarciano>I figured out, parenthesis I rather put in separate lines, so that each inner expressions could be easier evaluated. Is it correct? <lloda>people only do that when hacking on something. The default style is to end like <lloda>which is a bit inconvenient. But you can select sexprs instead of lines. <davexunit>jmarciano: parentheses get lonely when they are on lines by themselves, so make sure they stick together. <lloda>emacs doesn't support #; or #| |# properly, fonts end up all wrong usually <jmarciano>lloda: you said: I can select sexpress instead of lines. How? <jmarciano>davexunit: thank you for link, I was sleeping... <jmarciano>is there emacs mode that automatically moves me to next lines according to style? <rain1>you can install it with guix I think <jmarciano>holomorph: thanks, I prefer to find it through melpa. <jmarciano>I know git, etc. sure. But now when I discovered melpa... <jmarciano>is there anyway, while typing in emacs, pressing TAB, to get command expansions? <jmarciano>I feel in power, when using emacs, little more orientation and I am running <davexunit>jmarciano: when you are ready to bring your Guile hacking to the next level, you'll want to learn Geiser <rain1>I sent a reply to a guile bug with number @ bugtracker address, but no reply and nothing shows up on the stiet <rain1>does it wait for a person to approve it? <lloda`>you climb to the paren on the left with C-M-u and the select with C-M-SPC <rain1>did i send my mail wrong? what to expect? <jmarciano>lloda` I am trying that out, I can C-M-u, but what is C-M-SPC not working... <jmarciano>but does that give me possibility, to auto-expand in emacs buffer? <davexunit>jmarciano: geiser provides completion and fun stuff like that <davexunit>I don't know the key stroke off-hand, but you use emacs so it should be easy to look up :) <jmarciano>I was using 2 xterm terminals and switching between windows. Here I try to use emacs directly. <davexunit>yeah that's a pretty inefficient way to work <rain1>it saves struggling with geiser mode bugs tbh <rain1>at least in a terminal i can see things like error messages <davexunit>Geiser will display error messages when you evaluate something that throws an error <rain1>i sent a fix for the gensym bug <rain1>i didn't get any automated reply and it doesn't show up on the bugtracker though, I was wondering if that's expected? <lloda`>jmarciano: if you have an old version of Emacs maybe you need to toggle M-x transient-mark-mode to see the active region <cojy>do you need to do anything special for submitting guile patches? <amz3>cojy: out of curiosity, what are you fixing? <cojy>nothing yet but if i dont have to jump through hoops like ive heard you have to for some other gnu projects ill add some oeprators to the delimited continuations library <amz3>cojy: what does this new operator do? <cojy>it's not new but there's missing ones like using your own prompts and shift0 that are really useful <jmarciano>lloda`: I have newest emacs, though I am not sure what is "active region" <lloda`>cojy: git format-patch TAG is the preferred format <lloda`>reviews can take a while, so you have to be patient <lloda`>jmarciano: when you are on a left paren (like the left of this) and press C-M-space, you should see the whole region from ( to ) highlighted. That would be your active region <jmarciano>yes now it works, it was bound to window manager... <stis>anyone are there any nice articles that explain the strategoes of the new guile compiler? <jmarciano>someone still thinks that IRC on freenode can be used for spam.... hahahha