[Factor-talk] Variable command-line only contains arguments

2014-12-22 Thread Georg Simon
http://docs.factorcode.org/content/word-command-line,command-line.html says: In deployed applications, it contains the entire command line. But in my deployed application I only get the arguments and not the command name. Georg signature.asc Description: PGP signature

Re: [Factor-talk] Variable command-line only contains arguments

2014-12-22 Thread John Benediktsson
Hi Georg, I don't see a difference between deploy and when a script/vocabulary is run directly. Is your question about deploy, or how to obtain the command/executable name? Thanks, John. On Mon, Dec 22, 2014 at 2:21 AM, Georg Simon georg.si...@auge.de wrote:

Re: [Factor-talk] A stub of a package manager

2014-12-22 Thread Andrea Ferretti
I would like to spark a little discussion: is a package manager seen as something useful? Is it needed at this time? Could it be reasonably implemented using symlinks? (Kind of what Npm does). I do not want to push something if the community does not feel the need for it - at least at the moment.

Re: [Factor-talk] A stub of a package manager

2014-12-22 Thread John Benediktsson
Hi Andrea, I think it's a great idea! And I love that you built something we can start using and thinking about. My preference would be to keep it simple and iterate on it as often as you can. Start solving problems and when you come across some new problem that needs solving, well then solve

Re: [Factor-talk] Variable command-line only contains arguments

2014-12-22 Thread Georg Simon
Am Mon, 22 Dec 2014 06:51:22 -0800 schrieb John Benediktsson mrj...@gmail.com: Hi Georg, I don't see a difference between deploy and when a script/vocabulary is run directly. Is your question about deploy, or how to obtain the command/executable name? Thanks, John. Hi John, yes I

Re: [Factor-talk] Variable command-line only contains arguments

2014-12-22 Thread John Benediktsson
We try and make it consistent between deployed and non-deployed applications. It looks like we are not storing the executable name right now (argv[0]). Probably we should fix that I guess! If we fix it in master are you comfortable running a nightly build? (They are well tested before the

[Factor-talk] Architecting a UI

2014-12-22 Thread Mark Green
Hi, I'm having a bit of trouble working out how to create a UI that edits parts of a tuple data structure. First of all, what's the best way of keeping the tuple, plus other stateful parts of the UI, available to edit? The options seem to be: 1 - Make a mega-tuple that contains the tuple plus

Re: [Factor-talk] Architecting a UI

2014-12-22 Thread Doug Coleman
Hi Mark, The vocab ui.tools.inspector is already a gadget that edits tuples. Check it out if you haven't: TUPLE: foo a b c ; foo new ! click foo ! click slot c in tuple so it's highlighted blue ! click edit slot, 3rd button at top Check out that vocabulary and see if it helps. If not, I can

Re: [Factor-talk] Variable command-line only contains arguments

2014-12-22 Thread John Benediktsson
Hi Georg, I pushed a fix to provide you the executable name. Basically the ``(command-line)`` word in the command-line vocabulary is the raw command-line, which includes all command-line arguments including the executable. The ``command-line`` symbol is where we keep the other arguments to the