[Factor-talk] Help fix the Homebrew formula

2014-12-03 Thread Andrew Pennebaker
Could someone help fix the Homebrew Cask formula for Factor? If we could get this formula working, it would make Factor that much easier to install. https://github.com/caskroom/homebrew-cask/issues/7766 -- Cheers, Andrew Pennebaker www.yellosoft.us

Re: [Factor-talk] installation packages for CI?

2014-02-27 Thread Andrew Pennebaker
Thanks for the ppa! That's exactly what I was looking for. On Thu, Feb 27, 2014 at 9:30 AM, Björn Lindqvist wrote: > 2014-02-10 6:56 GMT+01:00 Andrew Pennebaker : > > I can add that ppa to my source list, but when I `apt-get install > factor`, I > > get a program for fac

Re: [Factor-talk] installation packages for CI?

2014-02-09 Thread Andrew Pennebaker
:56 GMT+01:00 Gabriel Kerneis : > > On Fri, Feb 07, 2014 at 06:44:32PM -0500, Andrew Pennebaker wrote: > >> If we met users half way, presenting .deb's, .rpm's, maybe a ppa repo, > that > >> would be a great start. > > > > As a first step, I recom

Re: [Factor-talk] installation packages for CI?

2014-02-07 Thread Andrew Pennebaker
> We could do that if we automate the entire process. That would entail > someone writing some code to generate those packages and possibly > automatically submitting them to the package managers. Is that possible? > > Doug > > > On Fri, Feb 7, 2014 at 1:00 PM, Andrew

[Factor-talk] installation packages for CI?

2014-02-07 Thread Andrew Pennebaker
Could we start building .deb's, .rpm's, etc. as part of continuous integration? Ideally, Linux users could get factor straight from their package manager. -- Cheers, Andrew Pennebaker www.yellosoft.us -- Ma

[Factor-talk] factor-mode.el for Emacs?

2013-04-05 Thread Andrew Pennebaker
Is there an Emacs syntax highlighter for Factor code? -- Cheers, Andrew Pennebaker www.yellosoft.us -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to

[Factor-talk] Mobile app support?

2013-01-24 Thread Andrew Pennebaker
Can we get Factor going in Android, iOS, and Windows RT? There are very few cross-platform mobile languages; if Factor were one of them, it would be a huge feature to tout. -- Cheers, Andrew Pennebaker www.yellosoft.us

Re: [Factor-talk] Vector logo

2012-12-06 Thread Andrew Pennebaker
I've uploaded a basic .SVG of a velociraptor. It's public domain. http://www.yellosoft.us/logos#factor -- Cheers, Andrew Pennebaker www.yellosoft.us -- LogMeIn Rescue: Anywhere, Anytime Remote support fo

Re: [Factor-talk] Vector logo

2012-12-06 Thread Andrew Pennebaker
current logo (and the previous one) are not > vector-based. > > Out of curiosity, is there some particular use-case you have for this? Or > just preparing for a higher resolution future? > > Best, > John. > > > On Thu, Dec 6, 2012 at 8:42 AM, Andrew Pennebaker < >

Re: [Factor-talk] Shebang syntax

2012-12-06 Thread Andrew Pennebaker
Wonderful! Which version added this? On Dec 6, 2012 12:18 PM, "John Benediktsson" wrote: > This is no longer true: > > $ cat test.factor > #!/path/to/factor > USE: io > "hello, world" print > > $ ./test.factor > hello, world > >

[Factor-talk] Shebang syntax

2012-12-06 Thread Andrew Pennebaker
Can we remove the requirement that shebang arguments be preceded by a space? Most programming languages don't require this, so Factor's shebang syntax is a bit unintuitive. http://rosettacode.org/wiki/Multiline_shebang#Factor -- Cheers, Andrew Pennebaker www.ye

[Factor-talk] Vector logo

2012-12-06 Thread Andrew Pennebaker
Can we adopt a vector logo, one that's scalable? For example: http://www.yellosoft.us/logos#factor -- Cheers, Andrew Pennebaker www.yellosoft.us -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free

Re: [Factor-talk] sequences and the stack

2011-08-25 Thread Andrew Pennebaker
factcheck fully functional https://github.com/mcandre/factcheck How should I package it so that others can install it? How does one install a Factor package? How does one load the code from a Factor package (is USE/USING enough)? Cheers, Andrew Pennebaker www.yellosoft.us On Thu, Aug 25

Re: [Factor-talk] sequences and the stack

2011-08-25 Thread Andrew Pennebaker
Aha! How could I rewrite for-all? so that it prints the first stack that fails the predicate? Cheers, Andrew Pennebaker www.yellosoft.us On Thu, Aug 25, 2011 at 1:11 AM, Joe Groff wrote: > > On Aug 24, 2011, at 10:05 PM, Andrew Pennebaker wrote: > > Joe, your for-all? looks pr

Re: [Factor-talk] sequences and the stack

2011-08-24 Thread Andrew Pennebaker
cannot be executed because it failed to compile Cannot apply “call” to a run-time computed value macro call Cheers, Andrew Pennebaker www.yellosoft.us On Thu, Aug 25, 2011 at 12:49 AM, Joe Groff wrote: > > On Aug 24, 2011, at 9:30 PM, Andrew Pennebaker wrote: > > *predicate* { *gen-t

Re: [Factor-talk] sequences and the stack

2011-08-24 Thread Andrew Pennebaker
inputs? A conceptually easy solution is to make quotations that generate the desired input, slap 'em in an array, and call predicate { generators ... } forall100 times. I'm just not sure how to do call(function, arguments) in factor. Cheers, Andrew Pennebaker www.yellosoft.us On Thu, Aug

Re: [Factor-talk] sequences and the stack

2011-08-24 Thread Andrew Pennebaker
perate on. Cheers, Andrew Pennebaker www.yellosoft.us On Thu, Aug 25, 2011 at 12:05 AM, Joe Groff wrote: > On Aug 24, 2011, at 8:38 PM, Andrew Pennebaker wrote: > > $ ./example.factor > Loading /Users/andrew/.factor-rc > The word for-all cannot be executed because it failed to comp

Re: [Factor-talk] sequences and the stack

2011-08-24 Thread Andrew Pennebaker
Aye, it's a bit awkward, but I know that Haskell can do it because that's how Haskell's QuickCheck library works. It even goes one step further and creates the appropriate list of value generators according to the predicate's type. Cheers, Andrew Pennebaker www.yellosoft.us

Re: [Factor-talk] sequences and the stack

2011-08-24 Thread Andrew Pennebaker
Thanks, inputhttps://github.com/mcandre/factcheck>. $ ./example.factor Loading /Users/andrew/.factor-rc The word for-all cannot be executed because it failed to compile Cannot apply “inputwrote: > Look at input > > On Wed, Aug 24, 2011 at 7:19 PM, Andrew Pennebaker < &

Re: [Factor-talk] sequences and the stack

2011-08-24 Thread Andrew Pennebaker
I've got a function that I want to call over a sequence of values (both are determined at run time). Is there something like call that accepts a sequence of arguments? Something like this: f args call-seq Cheers, Andrew Pennebaker www.yellosoft.us On Wed, Aug 24, 2011 at 10:04 PM,

Re: [Factor-talk] sequences and the stack

2011-08-24 Thread Andrew Pennebaker
Is there a word more general than firstn? I'd like to push all the elements of a sequence onto the stack. Cheers, Andrew Pennebaker www.yellosoft.us On Sun, Aug 21, 2011 at 2:26 PM, Alexander J. Vondrak < ajvond...@csupomona.edu> wrote: > first2: http://docs.factorcode.org/conte

Re: [Factor-talk] No word named “--” found in current vocabulary search path

2011-08-24 Thread Andrew Pennebaker
Thanks. I see the type hint syntax is close to Haskell's. Excellent! Cheers, Andrew Pennebaker www.yellosoft.us On Wed, Aug 24, 2011 at 6:36 PM, Joe Groff wrote: > > On Aug 24, 2011, at 3:16 PM, Slava Pestov wrote: > > Hi Andrew, > > You're using the old c

[Factor-talk] No word named “--” found in current vocabulary search path

2011-08-24 Thread Andrew Pennebaker
ger. : gen-integer ( -- quot | quot: -- n ) [ random-32 ] ; In example.factor<https://github.com/mcandre/factcheck/blob/master/example.factor> : #! /usr/bin/env factor INCLUDING: factcheck ; USING: math prettyprint ; IN: example : main ( -- ) gen-integer apply . Am I not using the pipe (

Re: [Factor-talk] TryRuby, etc.

2011-08-24 Thread Andrew Pennebaker
http://factor.bluishcoder.co.nz/responder/fjsc is down :( Cheers, Andrew Pennebaker www.yellosoft.us On Tue, Aug 23, 2011 at 11:29 PM, Chris Double wrote: > On Wed, Aug 24, 2011 at 12:25 PM, Andrew Pennebaker > wrote: > > Has anyone made an interactive online tutorial for Factor c

Re: [Factor-talk] TryRuby, etc.

2011-08-24 Thread Andrew Pennebaker
"Note that this handbook is not a tutorial..." --Forward to the Factor Developer's Handbook It's still a valuable resource. Thanks. Cheers, Andrew Pennebaker www.yellosoft.us On Tue, Aug 23, 2011 at 11:15 PM, Michael Clagett wrote: > Hi Andrew -- > > Not a vid

[Factor-talk] TryRuby, etc.

2011-08-23 Thread Andrew Pennebaker
Has anyone made an interactive online tutorial for Factor comparable to TryRuby <http://tryruby.org/>? Cheers, Andrew Pennebaker www.yellosoft.us -- EMC VNX: the world's simplest storage, starting under $1

[Factor-talk] sequences and the stack

2011-08-21 Thread Andrew Pennebaker
word that pops the elements of a sequence onto the stack? Cheers, Andrew Pennebaker www.yellosoft.us -- Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration.

Re: [Factor-talk] getopt; commandline parsing Re: Invoke MAIN: from commandline script file?

2011-08-20 Thread Andrew Pennebaker
Thanks John, works for me! Cheers, Andrew Pennebaker www.yellosoft.us On Sat, Aug 20, 2011 at 1:20 PM, John Benediktsson wrote: > If you want to use your "arg" get code, you can: > > USE: command-line > > : main ( -- ) > command-line get p

Re: [Factor-talk] getopt; commandline parsing Re: Invoke MAIN: from commandline script file?

2011-08-20 Thread Andrew Pennebaker
that the script name is forcibly passed twice: #!/bin/bash #| exec clisp -q -q $0 $0 ${1+"$@"} exit |# If there's a way to do multiline shebangs in Factor, then ./ios7crypt.factor -help can be run correctly. Cheers, Andrew Pennebaker www.yellosoft.us On Sat, Aug 20, 2011 at 1

Re: [Factor-talk] getopt; commandline parsing Re: Invoke MAIN: from commandline script file?

2011-08-20 Thread Andrew Pennebaker
/Users/andrew/.factor-rc f $ ./ios7crypt.factor -help Loading /Users/andrew/.factor-rc f Cheers, Andrew Pennebaker www.yellosoft.us On Thu, Aug 18, 2011 at 1:50 AM, Joe Groff wrote: > > On Aug 17, 2011, at 10:32 PM, Andrew Pennebaker wrote: > > Awesome! > > By the way, I

Re: [Factor-talk] USE/USING and scripting

2011-08-20 Thread Andrew Pennebaker
I agree, we should prefer USING for all imports. Why does Factor still have USE when USING is more comprehensive? Cheers, Andrew Pennebaker www.yellosoft.us On Sat, Aug 20, 2011 at 12:46 AM, Slava Pestov wrote: > Hi Andrew, > > On Fri, Aug 19, 2011 at 8:30 PM, Andrew Pennebaker

Re: [Factor-talk] USE/USING and scripting

2011-08-19 Thread Andrew Pennebaker
Egads, it works! Thanks to Joe, John, and Slava, I've made a little macro pair that emulates Ruby's "require" in Factor's USE/USING fashion. $ cat ~/.factor-rc ! Andrew Pennebaker ! INCLUDE/INCLUDING macros that import source code files in the current directory USING: ke

Re: [Factor-talk] USE/USING and scripting

2011-08-19 Thread Andrew Pennebaker
By the way, aren't USE and USING redundant? Would it make sense to deprecate USE? Cheers, Andrew Pennebaker www.yellosoft.us On Fri, Aug 19, 2011 at 9:15 PM, John Benediktsson wrote: > You could define this syntax word: > > SYNTAX: INCLUDE: scan-object parse-file append ; &g

Re: [Factor-talk] USE/USING and scripting

2011-08-19 Thread Andrew Pennebaker
Could you tweak the RELATIVE macro so that it doesn't require blob.factor to be in blob/ ? Cheers, Andrew Pennebaker www.yellosoft.us On Fri, Aug 19, 2011 at 8:22 PM, Joe Groff wrote: > > On Aug 19, 2011, at 5:14 PM, Andrew Pennebaker wrote: > > The RELATIVE trick looks prom

Re: [Factor-talk] USE/USING and scripting

2011-08-19 Thread Andrew Pennebaker
./test.factor 4: USING: scriptedmain ; ^ Vocabulary does not exist name "scriptedmain" Side note: Could the "Loading /Users/andrew/.factor-rc" message be silenced so that it doesn't obscure a script's command line interface? Cheers, Andrew Pennebaker ww

Re: [Factor-talk] USE/USING and scripting

2011-08-19 Thread Andrew Pennebaker
USE and USING would have to be modified in order for that to work. Cheers, Andrew Pennebaker www.yellosoft.us On Fri, Aug 19, 2011 at 6:32 PM, Joe Groff wrote: > On Aug 19, 2011, at 2:57 PM, Andrew Pennebaker wrote: > > There must be a more dynamic way than configuring Factor for every

Re: [Factor-talk] USE/USING and scripting

2011-08-19 Thread Andrew Pennebaker
There must be a more dynamic way than configuring Factor for every piece of code I write. What if Factor interpreted "." as the directory from which Factor was called? Cheers, Andrew Pennebaker www.yellosoft.us On Fri, Aug 19, 2011 at 2:46 PM, Joe Groff wrote: > On Aug 19, 2011

Re: [Factor-talk] Factor UI crashes in Mac OS X Lion

2011-08-19 Thread Andrew Pennebaker
$ factor ( scratchpad ) USE: cpu.x86.features sse-version --- Data stack: 41 Cheers, Andrew Pennebaker www.yellosoft.us On Fri, Aug 19, 2011 at 2:48 PM, Joe Groff wrote: > On Aug 18, 2011, at 8:07 PM, Andrew Pennebaker wrote: > > "USE: ui.backend.cocoa.tools menu-run-files

Re: [Factor-talk] USE/USING and scripting

2011-08-19 Thread Andrew Pennebaker
I made ~/.factor-roots with a dot (.) to indicate it should search the current directory for Factor files, but it doesn't seem to help. Is there a way to add the current directory to ~/.factor-roots similar to Java's CLASSPATH? Cheers, Andrew Pennebaker www.yellosoft.us On Fri, Aug 1

Re: [Factor-talk] USE/USING and scripting

2011-08-19 Thread Andrew Pennebaker
Is there an import command that doesn't require moving my files into the Factor work directory? I like version controlling my scripts and it would be a pain to copy them from my git directory over to work and back. Cheers, Andrew Pennebaker www.yellosoft.us On Fri, Aug 19, 2011 at 3:

[Factor-talk] USE/USING and scripting

2011-08-18 Thread Andrew Pennebaker
ant.factor contains code manipulating ant objects. antfarm.factor is a demo of a hundred ants. How does antfarm.factor import code from ant.factor? I tried USING: ant ;but Factor complains Vocabulary does not exist name "ant". Cheers, Andrew Pennebaker www.ye

Re: [Factor-talk] Factor UI crashes in Mac OS X Lion

2011-08-18 Thread Andrew Pennebaker
"USE: ui.backend.cocoa.tools menu-run-files" successfully brings up an open dialog which loads Factor code. Cheers, Andrew Pennebaker www.yellosoft.us On Thu, Aug 18, 2011 at 7:23 PM, Slava Pestov wrote: > Also try this: > > \ menu-run-files see > > On Thu, Aug 18, 2

Re: [Factor-talk] Factor UI crashes in Mac OS X Lion

2011-08-18 Thread Andrew Pennebaker
15 Cheers, Andrew Pennebaker www.yellosoft.us On Thu, Aug 18, 2011 at 4:31 PM, Joe Groff wrote: > On Aug 18, 2011, at 10:24 AM, Andrew Pennebaker wrote: > > > Factor -> Run Factor Source... still crashes in Mac OS X 10.7.1. > > One thing to try would be running Factor from a

Re: [Factor-talk] Factor UI crashes in Mac OS X Lion

2011-08-18 Thread Andrew Pennebaker
e /Users/andrew/Desktop/factor/Factor.app. Cheers, Andrew Pennebaker www.yellosoft.us On Wed, Aug 17, 2011 at 10:43 PM, Joe Groff wrote: > On Aug 17, 2011, at 7:26 PM, Andrew Pennebaker wrote: > > When I select Factor -> Run Factor Source..., the Factor UI crashes. > > S

Re: [Factor-talk] Invoke MAIN: from commandline script file?

2011-08-17 Thread Andrew Pennebaker
Awesome! By the way, I don't get any usage info for Factor that would list the -script option. (no factor -h, factor --help, etc.) Is there a getopt for Factor? Cheers, Andrew Pennebaker www.yellosoft.us On Thu, Aug 18, 2011 at 12:54 AM, Joe Groff wrote: > Slava gave me the go-ahe

Re: [Factor-talk] Factor, shebangs, and Hello World

2011-08-17 Thread Andrew Pennebaker
Thanks Joe, that helps a lot. Do you know if Factor has an equivalent this Python's idiom? if __name__=="__main__": main() More examples at Rosetta Code <http://rosettacode.org/wiki/ScriptedMain>. Cheers, Andrew Pennebaker www.yellosoft.us On Wed, Aug 17, 2011 at 10:20

[Factor-talk] Factor UI crashes in Mac OS X Lion

2011-08-17 Thread Andrew Pennebaker
When I select Factor -> Run Factor Source..., the Factor UI crashes. Specs: - Factor 0.94 - Mac OS X 10.7 Lion Cheers, Andrew Pennebaker www.yellosoft.us -- Get a FREE DOWNLOAD! and learn more about uberSVN r

[Factor-talk] Factor, shebangs, and Hello World

2011-08-17 Thread Andrew Pennebaker
cabulary search path Ignore the shebangs. For some reason, my simple Hello World program produces no output. $ cat hello.factor USE: io IN: hello : hello ( -- ) "Hello World!" print ; MAIN: hello $ factor hello.factor $ (no output) Cheers, Andrew Pe

[Factor-talk] Factor yak shaving

2011-08-17 Thread Andrew Pennebaker
Can someone make a PKG Mac installer that adds the factor binary to $PATH? I tried using PackageMaker.app, but I can't figure out how to run cli.sh as a postinstall script. cli.sh: #!/usr/bin/env sh echo "\n# Factor\nexport PATH=\$PATH:/Applications/factor" >> ~/.pro