Re: [FEATURE] List all available languages

2013-01-31 Thread Nala Ginrut
On Thu, 2013-01-31 at 11:32 +0100, Andy Wingo wrote: > Hi :) > > On Fri 25 Jan 2013 17:46, Nala Ginrut writes: > > > Users just need a way to know what languages could be specified to > > --language option. > > Can you update the patch to use the language-for-humans? accesor that > Mark pushed

Re: [FEATURE] List all available languages

2013-01-31 Thread Andy Wingo
Hi :) On Fri 25 Jan 2013 17:46, Nala Ginrut writes: > Users just need a way to know what languages could be specified to > --language option. Can you update the patch to use the language-for-humans? accesor that Mark pushed recently? > From a6b321e51a19d3726620a68f8db4902877872460 Mon Sep 17 0

Re: [FEATURE] List all available languages

2013-01-27 Thread Mark H Weaver
Andy Wingo writes: > On Fri 25 Jan 2013 23:50, Mark H Weaver writes: >> I've attached a proposed patch to add this field. Thoughts? > > LGTM, though I would call it something else -- because these languages > are internal but not internal only. Other possibilities: "internal", > "for-humans", .

Re: [FEATURE] List all available languages

2013-01-27 Thread Andy Wingo
On Fri 25 Jan 2013 23:50, Mark H Weaver writes: > I wrote: >> How about adding a new boolean field to that marks it as >> "internal" or something to that effect? We could have it default to #f >> for backward compatibility, and mark our internal languages as #t. > > I've attached a proposed pat

Re: [FEATURE] List all available languages

2013-01-25 Thread Nala Ginrut
On Fri, 2013-01-25 at 17:50 -0500, Mark H Weaver wrote: > I wrote: > > How about adding a new boolean field to that marks it as > > "internal" or something to that effect? We could have it default to #f > > for backward compatibility, and mark our internal languages as #t. > > I've attached a pr

Re: [FEATURE] List all available languages

2013-01-25 Thread Mark H Weaver
I wrote: > How about adding a new boolean field to that marks it as > "internal" or something to that effect? We could have it default to #f > for backward compatibility, and mark our internal languages as #t. I've attached a proposed patch to add this field. Thoughts? Mark >From 605cbde

Re: [FEATURE] List all available languages

2013-01-25 Thread Mark H Weaver
Hi Andy, Andy Wingo writes: > [...] But more substantially I would want a function that returns a > list of symbols and calls lookup-language on them, recursively > filtering out any language that is the target of another compiler. I'm not sure this is a good approach. What if someone adds a la

Re: [FEATURE] List all available languages

2013-01-25 Thread Nala Ginrut
On Fri, 2013-01-25 at 12:06 +0100, Andy Wingo wrote: > On Fri 25 Jan 2013 11:43, Nala Ginrut writes: > > > @@ -33,6 +33,9 @@ > > > > (define-module (ice-9 command-line) > >#:autoload (system vm vm) (set-default-vm-engine! set-vm-engine! the-vm) > > + #:use-module (srfi srfi-1) > > + #:us

Re: [FEATURE] List all available languages

2013-01-25 Thread Andy Wingo
On Fri 25 Jan 2013 11:43, Nala Ginrut writes: > @@ -33,6 +33,9 @@ > > (define-module (ice-9 command-line) >#:autoload (system vm vm) (set-default-vm-engine! set-vm-engine! the-vm) > + #:use-module (srfi srfi-1) > + #:use-module (ice-9 regex) > + #:use-module (ice-9 ftw) >#:export (c

Re: [FEATURE] List all available languages

2013-01-25 Thread Nala Ginrut
Here is a patch to provide listing all languages for 'guile' and 'guild compile' command. Thanks! >From f06fcd9e997e0bd6de9f85c22d75bd7a05545627 Mon Sep 17 00:00:00 2001 From: Nala Ginrut Date: Fri, 25 Jan 2013 18:38:22 +0800 Subject: [PATCH] List all available languages. * ice-9/command-lin

Re: [FEATURE] List all available languages

2013-01-25 Thread Nala Ginrut
On Wed, 2013-01-23 at 19:28 +0800, Nala Ginrut wrote: > As I talked with Andy, we may add a feature to list all available > languages. And if users add a new language to the %load-path, they may > see it listed out. Besides, this feature could be used in 'guild > compile' to detect all the language