<ijp>there is no reason it couldn't be so, I think racket does it, but we do not currently <c107>ijp: Can it be converted to C? <ft>chicken compiles to C. <ijp>chicken does, gambit does, we do not <c107>I don't know why I'm using Guile, then. It seems like a very limited Scheme implementation. <ijp>why did you choose guile? surely you thought about your requirements first? <c107>ijp: I chose it because it was popular. I didn't yet see any reason to choose any particular implementation. <davexunit>Guile is many things, one that it is not is limited. <dsmith>10 billion flies couldn't be wrong.... *davexunit is reading about functional game programming <zacts>davexunit: what specifically are you reading? <ft>"Posts generated by a Markov chain trained on the King James Bible and Structure and Interpretation of Computer Programs." <ijp>every time I see a .tumblr.com url I'm reminded that I did nothing with my "scoping is hard" tumblr <wingo>our interpreter is competitive in speed to spidermonkey's baseline jit compiler, at least for one silly test i made <wingo>slightly slower but still pretty good <TaylanUB>Which interpreter is that ? (How can it be compared to a JS JIT ?..) <wingo>tested on equivalent for loops ***fangism-ctrl-Z is now known as fangism
<mark_weaver>shanecelis: that shouldn't be needed. you can find the source location of procedures defined in the normal way. <mark_weaver>it had some problems, but it should show you what you need to know. <shanecelis>"Unknown meta command: src" hmmm... in what version of guile? <mark_weaver>it was never added to guile, but he had a proposed patch. <mark_weaver>shanecelis: granted, it's not exactly a documented interface, but you can do (use-modules (system vm program)) and then (program-source <procedure> 0) <shanecelis>mark_weaver: Ah. I see. Whew. That's a lot better. <mark_weaver>we should probably have a proper interface for that, but the problem is that it's a bit dicey in the general case. for example, srfi-9 record definitions implicitly define several procedures, e.g. accessors. what line number should be reported for those? :) <Madsy>Uh, what is this useful for? Isn't fgrep good enough? :D <shanecelis>Madsy: Not much. One can get the info on procedures easily enough, but the gist might still be useful for other things. <mark_weaver>Madsy: personally, I like the emacs feature that brings you right to the source code of any function. it would be good to have something like that for guile too. <mark_weaver>(if you're using a distro's packaged version of emacs, quite possibly it's crippled, but if you compile upstream emacs from source code, you'll see in the help system for any function a little button that brings you to the source code) <wingo_>right, seems not to work for me either atm <mark_weaver>I guess we should fix 'procedure-source' so that (program-source <proc> 0) doesn't end up in too many places. <wingo_>yes that would be the right thing to do <wingo_>yes, i think the c implementation is just bogus unfortunately <wingo_>it needs to check the source property in the overrides table if present, and otherwise fall back to program-source