Re: [Factor-talk] Factor shyness on Mac

2008-12-09 Thread John Benediktsson
I think this bug is now fixed. Let me know if the latest binary solves the problem. It looks like the latest version is not able to Hide (Cmd-H)? Is anyone else having that problem? Thanks, John. -- SF.Net email is

Re: [Factor-talk] easy-help example

2008-12-24 Thread John Benediktsson
I just tried the example, and it looks like it chomps the first character of each line? eq sequence xemplar sequence ewseq a new sequence .. utputs... Is that just me? On Wed, Dec 24, 2008 at 1:12 AM, Eduardo Cavazos wayo.cava...@gmail.com wrote: Hello, Here is the

[Factor-talk] Listener bug?

2009-06-02 Thread John Benediktsson
Got the following bug from running the console version of Factor on Mac OSX. To reproduce: 1) Start ./factor 2) Type something (e.g., asdfsadf) 3) Type Ctrl-A 4) Type Ctrl-D ( scratchpad ) asdfasdfsadf^A Error in thread 6 (I/O wait, [ ~quotation~ ~quotation~ while ]): Fall-through in

Re: [Factor-talk] Build error on OS X 10.6?

2009-09-12 Thread John Benediktsson
The assertion in question is guarded by a #ifdef FACTOR_DEBUG. Why is this being set? Do you have 'DEBUG=1' in your environment? Yes - I had DEBUG set for another application I was working with, and hadn't noticed. That works now. Thanks! John.

Re: [Factor-talk] Factor UI tweaks - pull request

2009-09-12 Thread John Benediktsson
Hi Keith, I really like the UI changes you've been making to syntax highlight Factor source code. Perhaps you could have a look at the docs website, which is pretty useful, and use a similar stylesheet? Thanks, John.

Re: [Factor-talk] New help color scheme in docs.factorcode.org

2009-09-14 Thread John Benediktsson
Also, I noticed that some of the vocab links produce 404 Not Found - for example: http://docs.factorcode.org/content/vocab-sequences.private.html On Mon, Sep 14, 2009 at 12:56 PM, Keith Lazuka klaz...@gmail.com wrote: Hey Slava, I fixed the black border around the 'next/prev' links in the

[Factor-talk] Symlinks

2010-01-19 Thread John Benediktsson
It appears that Factor isn't able to detect file modifications (using refresh-all) for files that are contained in a directory through a symlink. To reproduce: 1) Make a directory my-vocab, with a my-vocab.factor file. 2) Make a symlink from inside of work to that directory. 3) Confirm that

Re: [Factor-talk] mysql?

2010-10-04 Thread John Benediktsson
I have an almost working db.mysql. I have a few things to add, but I would welcome the help in finishing. Interested? On Oct 4, 2010, at 7:47 AM, Doug Coleman doug.cole...@gmail.com wrote: Hi Jörg, I've just always used Postgres instead of Mysql. There are tons of comparisons

Re: [Factor-talk] Furnace

2010-11-08 Thread John Benediktsson
Hi Shaping, SSL does not yet work on Windows. It works fine on Linux and Mac OS X. I wrote a blogpost about some basic examples of using the Factor web framework: http://re-factor.blogspot.com/2010/08/hello-web.html You might also like to follow the factor-blog-tutorial which builds up a

Re: [Factor-talk] Problems with the Hello World and timer-server examples.

2010-11-09 Thread John Benediktsson
I created the file Hello-world.factor from here http://gitweb.factorcode.org/gitweb.cgi?p=factor;a=blob;f=extra/hello-world/hello-world.factor;hb=HEAD 1 USE: io 2 IN: hello-world 3 4 : hello ( -- ) Hello world print ; 5 6 MAIN: hello This works in the Listener. However when I

[Factor-talk] Size of Collections

2010-12-26 Thread John Benediktsson
Hi, Do sets support a method to determine their size? Using members length is not a very efficient way to get it... Is there some interest in merging length, assoc-size, and the answer to the above question? Thanks, John.

Re: [Factor-talk] Size of Collections

2010-12-27 Thread John Benediktsson
I propose adding GENERIC: cardinality ( set -- n ) Would you like to try your hand at this, or should I work on it? I'd be happy to work on this -- it fits nicely with some other changes I'm working on. Thanks, John.

Re: [Factor-talk] Count repetition in sequence

2011-01-03 Thread John Benediktsson
Try: ( scratchpad ) USE: math.statistics ( scratchpad ) { a a a cc cc def } histogram . H{ { cc 2 } { a 3 } { def 1 } } 2011/1/3 Steve Tsai 蔡福安 tsa...@familysearch.org: I want to define a word that can count the number of repetition of elements in a sorted sequence. For example Input: {

Re: [Factor-talk] heap-size question

2011-07-13 Thread John Benediktsson
I wrote a packed struct vocabulary that aligns to single bytes, if you need that behavior. https://github.com/mrjbq7/re-factor/blob/master/classes/struct/packed Using it, you can see that: ( scratchpad ) PACKED-STRUCT: packed-junk { a char } { b ushort } ; ( scratchpad ) packed-junk heap-size

Re: [Factor-talk] Errata

2011-07-27 Thread John Benediktsson
When I tried to load your file in the Factor listener (e.g., USE: file-copier), I got a few errors (press F3 to see them).  The following minor changes fixed it for me: $ diff ~/Downloads/file-copier.factor file-copier.factor 105,106c105,106     [ g-source get file-name g-destination set ]    

Re: [Factor-talk] Errata

2011-07-27 Thread John Benediktsson
Hi Michele, Below is a file copy program that can be deployed and works. I don't know if it differs from your requirements, but you might find it useful to look through: http://paste.factorcode.org/paste?id=2334 Best, John. On Wed, Jul 27, 2011 at 8:24 AM, John Benediktsson mrj...@gmail.com

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

2011-08-19 Thread John Benediktsson
Hi Andrew, It would help if you attached some code, but you should be able to get your code to work if you put the files in the work folder of Factor like this: /work/ant/ant.factor /work/antfarm/antfarm.factor When you USE: ant, it will look through the vocabulary roots (core, basis, extra,

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

2011-08-19 Thread John Benediktsson
You could define this syntax word: SYNTAX: INCLUDE: scan-object parse-file append ; Then use it: INCLUDE: foo.factor It adds all words from foo.factor into the current vocab. On Fri, Aug 19, 2011 at 6:06 PM, Andrew Pennebaker andrew.penneba...@gmail.com wrote: Could you tweak the

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

2011-08-19 Thread John Benediktsson
: scriptedmain ^ No word named “scriptedmain” found in current vocabulary search path 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 mrj

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

2011-08-20 Thread John Benediktsson
If you want to use your arg get code, you can: USE: command-line : main ( -- ) command-line get parse-command-line help get . ; In this case, command-line is the list of arguments to your script. Best, John. On Sat, Aug 20, 2011 at 9:42 AM, Andrew Pennebaker

Re: [Factor-talk] sequences and the stack

2011-08-21 Thread John Benediktsson
Also, for your case a sequence of two elements can be treated a bit like a map of key/value pairs. You can use the assocs vocabulary to manipulate your sequence (called an association list or 'alist' in the documentation). Try: ( scratchpad ) USE: assocs ( scratchpad ) \ assoc-map help (

Re: [Factor-talk] traslation

2011-08-21 Thread John Benediktsson
This works for your particular task: { 1 2 3 } [ { a b c } [ append ] with map join print ] each On Sun, Aug 21, 2011 at 12:49 PM, Arkady Rost arkr...@gmail.com wrote: Hi! I'm looking for a more elegant solution of the following task. for i in rangeA { for j in rangeB

Re: [Factor-talk] traslation

2011-08-21 Thread John Benediktsson
Well, here's three versions for inspiration. 1) Given a 'foo' quotation that takes elements from each and prints it out: : foo ( a b foo: ( x y -- z ) -- ) [ with map join print ] 2curry each ; inline ( scratchpad ) { 1 2 3 } { a b c } [ append ] foo 2)

Re: [Factor-talk] TryRuby, etc.

2011-08-24 Thread John Benediktsson
This Factor Playground provides some basics on how Factor works, although I believe its a clone in Javascript (so it isn't making calls into a true Factor process). http://personal.inet.fi/koti/egaga/jsfactor/playground.html On Wed, Aug 24, 2011 at 1:19 PM, Michael Clagett

Re: [Factor-talk] pull request

2011-08-24 Thread John Benediktsson
Thanks, merged. On Wed, Aug 24, 2011 at 3:48 PM, Jon Harper jon.harpe...@gmail.com wrote: jon@zephyr:~/factor$ git request-pull -p origin/master g...@github.com:jonenst/factor.git master The following changes since commit 45df73a0caebb4ff3b93c6f6d3bf9b2a78028ce7: fjsc: display the proper

Re: [Factor-talk] sequences and the stack

2011-08-24 Thread John Benediktsson
Typically there are better ways to operate on sequences than to put all the elements on the stack, but you could: ( scratchpad ) { 0 1 2 3 } dup length firstn Better might be to use some combinators to act on the sequence each grabbing the element that they need (bi, tri, or the more general

Re: [Factor-talk] sequences and the stack

2011-08-24 Thread John Benediktsson
of arguments? Something like this: f args call-seq Cheers, Andrew Pennebaker www.yellosoft.us On Wed, Aug 24, 2011 at 10:04 PM, John Benediktsson mrj...@gmail.comwrote: Typically there are better ways to operate on sequences than to put all the elements on the stack, but you could

Re: [Factor-talk] Metadata

2011-08-27 Thread John Benediktsson
I don't think versioning the vocabularies included in Factor is necessary. You don't see versions in standard libraries of other languages. However, it would be nice if released versions of Factor reported their version numbers properly. On Aug 27, 2011, at 12:32 PM, Matt Gushee

Re: [Factor-talk] TryRuby, etc.

2011-08-28 Thread John Benediktsson
As a newcomer, I have to agree somewhat. It's frustrating when examples from Help don't work because Factor has changed since the help was written. However, even with errors (inconsistencies?) Factor's Help system is very useful. What examples from help do not work? Generally all the

Re: [Factor-talk] frequency of vocabularies

2011-09-11 Thread John Benediktsson
Keep in mind that tools.test is largely used for unit tests (-tests.factor files) and the help vocabularies are used for documentation (-docs.factor files). Also, to be more complete, you can look for USE: instructions (less common) that are like USING: but for a single vocabulary. On Sep

Re: [Factor-talk] Printing the docs

2011-09-18 Thread John Benediktsson
Which parts of the documentation are you looking for? I wrote some code to generate PDF's from parts of the Factor documentation: First Program ( first-program help ) https://github.com/mrjbq7/re-factor/raw/master/docs/first-program.pdf Cookbook ( cookbook help )

Re: [Factor-talk] Graphviz unit tests

2011-09-18 Thread John Benediktsson
- The current tests pass on my machine. But then, my machine = a Debian box with Graphviz 2.26.3 installed (since I guess 2.28 is too bleeding-edge for Debian) and erg's plugin-list fix reverted (which I'm certainly thankful for, but 2.26 doesn't have the gvPluginList function; ugh).

Re: [Factor-talk] Graphviz unit tests

2011-09-18 Thread John Benediktsson
Unfortunately, this is all I get from the command-line. I'll need to do more debugging at some point: ( scratchpad ) USE: graphviz ( scratchpad ) graphviz test Unit Test: { { t } [ 5 K_n smoke-test ] } factor(53761,0x7fff7512c960) malloc: *** error for object 0xc000: pointer being

Re: [Factor-talk] Cannot Run Emacs23 from Factor

2011-10-01 Thread John Benediktsson
Does this command work in a shell? $ emacsclient --no-wait +5 /home/hokan/stwork/DuDang/DuDang.factor On Oct 1, 2011, at 5:13 AM, Steve Tsai 蔡福安tsa...@familysearch.org wrote: When I tried to jump to definitions from the listener, I got following error message: Process exited with

Re: [Factor-talk] Cannot Run Emacs23 from Factor

2011-10-02 Thread John Benediktsson
I suppose you could add that to your .emacs file. Alternatively, feel free to change the command line that is used to launch emacs in editors.emacs for your own use. 2011/10/2 Steve Tsai 蔡福安 tsa...@familysearch.org John, Following are the messages I got when I ran the command in a

Re: [Factor-talk] Using combinators as a substitute for loops

2011-10-09 Thread John Benediktsson
Hi Michael, You might also be interested in some of the words in sequences which handle this particular use-case. For example, see find, find-from, and find-last. ( scratchpad ) { bread eggs milk } [ eggs = ] find --- Data stack: 1 eggs If you're curious how it is implemented, you can type:

Re: [Factor-talk] Finding words with given stack effect

2011-11-10 Thread John Benediktsson
Well, you could do this: ( scratchpad ) all-words [ stack-effect (( x p q -- )) effect= ] filter But, it only checks for arity (meaning it would match an effect (( a b c -- )) also). If you want to check the stack names in the effect, you can do this: : my-effect= ( effect1 effect2 --

Re: [Factor-talk] Where can I get this Factor Listener?

2011-11-19 Thread John Benediktsson
What about it is less convenient? IIRC, one of the main motivations for the change was to show what the stack looks like between computations, rather than just the current values. On Sat, Nov 19, 2011 at 5:16 AM, missingfaktor rahul.phulore@gmail.comwrote: Where can I get the Factor

Re: [Factor-talk] group-by word

2011-11-19 Thread John Benediktsson
You might also be interested in this blog post, which walks through how to build a group-by word: http://re-factor.blogspot.com/2011/04/group-by.html On Sat, Nov 19, 2011 at 10:19 AM, Joe Groff arc...@gmail.com wrote: You can look at math.statistics:collect-by as a reference: USE:

Re: [Factor-talk] ternary-search-tries confusion

2011-12-11 Thread John Benediktsson
I updated re-factor to work with the latest Factor which changes stack effect declarations to be single parentheses. If you want it to work with your version, change accessors.maybe from ( object quot: ( -- x ) -- value ) to (( object quot: ( -- x ) -- value )). Best, John. On Sunday,

Re: [Factor-talk] Factor for Dummies

2012-02-18 Thread John Benediktsson
Also, you might find the First Program example interesting (its available in your Help browser, and also on the online documentation web site): http://docs.factorcode.org/content/article-first-program.html On Saturday, February 18, 2012 at 8:27 AM, Marshall Lochbaum wrote: In terms of

Re: [Factor-talk] What's with the moderation queue?

2012-02-19 Thread John Benediktsson
Hi Tim, I don't have access to the moderation queue, but if you resend (since it appears your emails are now getting through), we can help now? On Feb 19, 2012, at 6:28 PM, Tim Allen screwt...@froup.com wrote: A while ago I sent a message to the list, except it turns out that I'd subscribed

Re: [Factor-talk] Learning Factor - string, array and io handling - beginner

2012-03-14 Thread John Benediktsson
I am unsure how to check for an empty string and skip it if it is empty. empty? I have been unsuccessful in getting it to write to a single file in an append mode, or to create a sequence of files as it goest through 'each' 'with-directory-files'. /tmp/foo ascii [ hello world

Re: [Factor-talk] format-float and locale decimal point

2012-05-21 Thread John Benediktsson
Perhaps another approach would be to add a check in fix-float for a , similar to the current . check? On Sun, May 20, 2012 at 8:24 AM, Jon Harper jon.harpe...@gmail.com wrote: Hi list, using a french locale (fr_FR.UTF-8) breaks printing of floats: IN: scratchpad 3.5 . 3,5.0 This is because

Re: [Factor-talk] format-float and locale decimal point

2012-05-21 Thread John Benediktsson
in locale dependant form. Also, the parser currently hardcodes , as thousands separtor, but it's also locale dependant... Jon On Mon, May 21, 2012 at 5:31 PM, John Benediktsson mrj...@gmail.com wrote: Perhaps another approach would be to add a check in fix-float for a , similar

Re: [Factor-talk] sqlite on linux

2012-06-18 Thread John Benediktsson
Where is the open-db word defined? Are you doing something like: USE: db.sqlite /path/to/db sqlite-db Do you have the right 32- or 64-bit library installed to match your machine and Factor? On Mon, Jun 18, 2012 at 2:16 PM, Grisha Freilikhman grish...@gmail.comwrote: Hi, I have a

Re: [Factor-talk] Would anyone like to review a program by a beginner?

2012-06-18 Thread John Benediktsson
Welcome! I would be glad if someone could look at the source and tell me what beginner mistakes I made. https://github.com/tohava/cpuguard/blob/master/cpuguard.factor You might find your code looks nicer if you use wrap text at 72-80 character lines, for long words you can put the contents

Re: [Factor-talk] Stack Depth

2012-06-19 Thread John Benediktsson
I want to divide an integer by 2 until it gets to 1. I have this snippet of code that goes into a loop. dup 1 [ dup 2 /i ] [ ] if When it gets to 1 I want to push the elements into a sequence. Take a look at the produce word: : divide-until-2 ( n -- seq ) [ dup 1 ] [ 2 /i dup ]

Re: [Factor-talk] Stack Depth

2012-06-19 Thread John Benediktsson
If you are concerned about performance (suffix makes a new array each time), then you can use vectors and push onto them, or use the make vocabulary which provides some convenience mechanisms for that. Or look into collector-for which the produce word uses... On Tue, Jun 19, 2012 at 8:09 PM,

Re: [Factor-talk] Global Value Numbering

2012-08-07 Thread John Benediktsson
This is great work! I'm looking forward to having it merged! There are perhaps some other nice places to contribute in the compiler afterwards, too! Thanks, John. On Tue, Aug 7, 2012 at 9:16 AM, Alexander J. Vondrak ajvond...@csupomona.edu wrote: Thank you very much! As a minor update: I

Re: [Factor-talk] changing help browser font size

2012-08-07 Thread John Benediktsson
If you look in help.stylesheet, there are styles used for various parts of the help system. You can see font-family and font-sizes that are used. Thanks, that works great. Btw, if you update, Cmd: +/- work to increase or decrease font size (it uses the Alt key on Windows/Linux) in the

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-10 Thread John Benediktsson
You might also find it useful to try the Walker which allows you to step through Factor code: http://docs.factorcode.org/content/article-ui-walker.html On Fri, Aug 10, 2012 at 10:29 AM, Michael Clagett mclag...@hotmail.comwrote: Not a problem any more. WinDbg does the trick just fine. It

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-10 Thread John Benediktsson
Typically the architecture is a combination of os and arch: IN: scratchpad my-arch . unix-x86.64 You can use the my-arch word to make an image for your architecture: IN: scratchpad my-arch make-image On Fri, Aug 10, 2012 at 1:56 PM, Michael Clagett mclag...@hotmail.comwrote:

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-10 Thread John Benediktsson
Write my-arch make-image in listener. Then type Ctrl-W to walk it. Step across my-arch Into into make-image Rinse, repeat. :) On Fri, Aug 10, 2012 at 2:08 PM, Michael Clagett mclag...@hotmail.comwrote: Quick question, if you're still on the horn. How do I trace into myarch make-image

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-10 Thread John Benediktsson
Thanks much. This should keep me occupied and out of everyone's hair for a while. No worries, keep the questions coming! -- Live Security Virtual Conference Exclusive live event will cover all the ways today's

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-14 Thread John Benediktsson
Any documentation that you write as part of your investigation would be welcome contributions. On Tue, Aug 14, 2012 at 5:27 PM, Michael Clagett mclag...@hotmail.comwrote: One constructive criticism type comment, if you'll permit me. While what I say directly below is absolutely true, it's

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-15 Thread John Benediktsson
If you want all numbers to print in hex, the easiest way is: ``` IN: scratchpad 16 number-base set-global ``` On Wed, Aug 15, 2012 at 4:04 AM, Michael Clagett mclag...@hotmail.comwrote: Quick question. Any way of having the data and retain stack panes of the Walker display values in hex?

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-16 Thread John Benediktsson
, John Benediktsson mrj...@gmail.com wrote: If you want all numbers to print in hex, the easiest way is: ``` IN: scratchpad 16 number-base set-global ``` On Wed, Aug 15, 2012 at 4:04 AM, Michael Clagett mclag...@hotmail.com wrote: Quick question. Any way of having

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-16 Thread John Benediktsson
at 8:22 AM, Michael Clagett mclag...@hotmail.com wrote: Thanks. I knew it had to be something like that. And if I want it to be the default every time I load the Listener, I'm sure there must be a way to set that up? Sent from my iPhone On Aug 15, 2012, at 11:01 AM, John

Re: [Factor-talk] Any way of making sense of what's in the boot image?

2012-08-16 Thread John Benediktsson
So then, John, does that mean that in the [ 4 slot { array} declare ], that I'm getting the slot named array which is at offset 4 (and then declaring that to be an array, so as to disable some of the type safety checks)? Yes, the hashtable code is written at a bit lower level and thus maybe

[Factor-talk] Factor 0.95 now available

2012-08-16 Thread John Benediktsson
Vondrak, Alfredo Beaumont, Andrew Pennebaker, Anton Gorenko, Brennan Cheung, Chris Double, Daniel Ehrenberg, Doug Coleman, Eric Charlebois, Eungju Park, Hugo Schmitt, Joe Groff, John Benediktsson, Jon Harper, Keita Haga, Maximilian Lupke, Philip Searle, Philipp Brüschweiler, Rupert

Re: [Factor-talk] Factor 0.95 now available

2012-08-17 Thread John Benediktsson
The contents of the Factor folder built from git sports the following items not appearing in the .95 binary Factor folder: -files: boot.unix-x86.32.image, factor.image.fresh, GNUmakeile, Nmakefile; These are: 1) boot image downloaded to create a complete factor image file for your

Re: [Factor-talk] Factor 0.95 now available

2012-08-17 Thread John Benediktsson
Gracias, John - De nada ;) Comforting to know what's up. Any ideas on what prevents the .95 binary from launching on my aged machine? First time I've encountered this problem. I've successfully launched from incremental development releases through July. Likely related to upgrading to

Re: [Factor-talk] Time for some Tutorials

2012-08-20 Thread John Benediktsson
Not bad ideas, we'd welcome any contributions you'd like to make in this area. Besides some future, currently unavailable, tutorials, I would suggest you look at: * Reading Factor Cookbook ( http://docs.factorcode.org/content/article-cookbook.html) * Creating Your First Program (

Re: [Factor-talk] Illegal instruction

2012-08-22 Thread John Benediktsson
I'm sorry to hear that, unfortunately it looks like the Mac OS X binaries unintentionally require 10.8 or greater, due to an upgrade of our build farm. If you want to use it on 10.6 or 10.7 before we make a fix, you can build from source: git clone https://github.com/slavapestov/factor.git

Re: [Factor-talk] Is there a Factor.js ?

2012-08-22 Thread John Benediktsson
There is a Factor Playground implemented in Javascript: http://personal.inet.fi/koti/egaga/jsfactor/playground.html It does not work with Factor's extensive library, however. Its not worth getting into a philosophical discussion about Javascript, but I would note that Factor is portable

Re: [Factor-talk] Is there a Factor.js ?

2012-08-23 Thread John Benediktsson
Hi Michael, I'm enjoying these conversations and your investigations :) Regarding Javascript, I can see the benefit of a Factor-like language. It might be that using Clojure and Clojurescript as an analogy would be a good one. Obviously some parts may be harder to get compatible when

Re: [Factor-talk] Modules/packages for Factor

2012-08-24 Thread John Benediktsson
I think there is a danger in proliferation of too many packages with too many versions here. One advantage that Factor has had, albeit a mixed advantage due to reduced resources at times, is one main codebase that can be improved in wide cross-cutting ways. That has resulted in a lot of common

Re: [Factor-talk] Out of memory error

2012-08-24 Thread John Benediktsson
It might be worth only loading and testing vocabularies in core and basis, to see if GVN works? On Aug 24, 2012, at 6:50 PM, Alexander J. Vondrak ajvond...@csupomona.edu wrote: It seems to fail soon after the tools.deploy tests. I tried at one point disabling those, but I think it still

Re: [Factor-talk] Out of memory error

2012-08-25 Thread John Benediktsson
If this is happening of 0.95 release than I wonder if we have a slow leak rather than corruption - all of our builders produce consistent clean builds (load-all test-all) and have for awhile. Perhaps we don't notice due to 16+ GB of RAM...? On Aug 25, 2012, at 11:06 AM, Joe Groff

Re: [Factor-talk] Literate Programming

2012-08-29 Thread John Benediktsson
I just pushed a vocab with some ideas that might help you get started: USE: literate LITERATE This is a section that is mostly text... you can even include factor stuff that doesn't get parsed like the following: : does-this-work? ( -- x ) no it doesn't! ; But, then if you want to run some

Re: [Factor-talk] Literate Programming

2012-08-29 Thread John Benediktsson
You're not alone at all, I completely agree -- a printed page worth of code in factor is often much more elegant due to separate documentation. On Wed, Aug 29, 2012 at 1:33 PM, Alexander J. Vondrak ajvond...@csupomona.edu wrote: Tangential thought, but I always loved that Factor's

Re: [Factor-talk] Comments on 'Your First Program'

2012-08-31 Thread John Benediktsson
This is a good place, the tutorial has had a few contributors to it and we welcome more - and questions, too! If you want to submit your improvements here or through Github, either is fine. Best, John. On Fri, Aug 31, 2012 at 1:52 AM, Mike Parr mikep...@live.com wrote: Hi I'm very new to

Re: [Factor-talk] Comments on 'Your First Program

2012-08-31 Thread John Benediktsson
Hi Mike, Great input, thanks! A few questions - 'Writing some logic in your first program' After it says 'Place this definition at the end of your source file.' I suggest adding: 'Note that a space is significant in Factor.' What exactly are you trying to communicate with this -- that we

Re: [Factor-talk] Out of memory error

2012-09-09 Thread John Benediktsson
, it's probably some combination of things on my end... I'll be trying the unit tests out again once I get Arch configured on another hard drive on this machine. Thanks for the feedback everyone, --Alex Vondrak From: John Benediktsson [mrj

Re: [Factor-talk] Out of memory error

2012-09-12 Thread John Benediktsson
From: John Benediktsson [mrj...@gmail.com] Sent: Sunday, September 09, 2012 6:58 PM To: factor-talk@lists.sourceforge.net Subject: Re: [Factor-talk] Out of memory error I'd love to help you work on merging your GVN patches, where did we leave it? Best, John. On Sat, Aug 25

Re: [Factor-talk] GUI examples

2012-09-25 Thread John Benediktsson
You might find these two posts useful: http://re-factor.blogspot.com/2010/08/calculator-with-gui.html http://re-factor.blogspot.com/2011/04/mail-with-gui.html In particular, the second one embeds a text editor gadget (in my case for writing emails, but in your case perhaps for editing a

Re: [Factor-talk] glitch in smtp/mail/ui, redux

2012-09-28 Thread John Benediktsson
Hi cw, Thanks for the report! I'm glad you got it working, sorry that it was a bit bugged (we changed prepend to make the type of the first argument and this apparently broke). I just committed a fix for it, making plain-auth-string return a string, instead of a byte-array. Let me know if you

Re: [Factor-talk] Quick Question For Chris Double

2012-09-30 Thread John Benediktsson
Given these caveats, here’s an introductory list of topics (in no particular order) I would propose to cover. Any feedback on suitability and valuable additions/deletions would be greatly appreciated: Defining by combination in Factor and effective use of Higher Order Functions

Re: [Factor-talk] regexp words on string slices

2012-11-30 Thread John Benediktsson
Probably the restrictions to strings were a performance optimization...? It should be pretty easy to get the behavior you want: IN: scratchpad 0 4 foo slice R/ foo/ first-match . T{ slice { from 0 } { to 3 } { seq foo } } Using this diff makes it work, but causes the regexp benchmark

Re: [Factor-talk] Factor new icons

2012-12-02 Thread John Benediktsson
I ran a 99designs.com contest and the artist transferred copyright to me per their terms of service, I put the icons into the Factor project with the BSD license like Elie Chaftari had done previously. I will try and upload the original artwork to Factorcode on Monday. On Sun, Dec 2, 2012 at

Re: [Factor-talk] Factor just goes away

2012-12-03 Thread John Benediktsson
Hi Leon, I seem to have missed this message, sorry for not noticing it earlier! Have you resolved this problem? If you watch memory usage, do you see the Factor process growing? When it dies, does it produce any output in the terminal? What version of Factor are you using? Thanks, John. On

Re: [Factor-talk] Shebang syntax

2012-12-06 Thread John Benediktsson
This is no longer true: $ cat test.factor #!/path/to/factor USE: io hello, world print $ ./test.factor hello, world On Thu, Dec 6, 2012 at 8:43 AM, Andrew Pennebaker andrew.penneba...@gmail.com wrote: Can we remove the requirement that shebang arguments be preceded by a space? Most

Re: [Factor-talk] Shebang syntax

2012-12-06 Thread John Benediktsson
PM, John Benediktsson mrj...@gmail.com wrote: This is no longer true: $ cat test.factor #!/path/to/factor USE: io hello, world print $ ./test.factor hello, world On Thu, Dec 6, 2012 at 8:43 AM, Andrew Pennebaker andrew.penneba...@gmail.com wrote: Can we remove the requirement

Re: [Factor-talk] Vector logo

2012-12-06 Thread John Benediktsson
Unfortunately, the 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 andrew.penneba...@gmail.com

Re: [Factor-talk] Vector logo

2012-12-06 Thread John Benediktsson
who wants to put Factor logos in Web tutorials, blog articles, t-shirts... On Dec 6, 2012 12:37 PM, John Benediktsson mrj...@gmail.com wrote: Unfortunately, the current logo (and the previous one) are not vector-based. Out of curiosity, is there some particular use-case you have

Re: [Factor-talk] Vector logo

2012-12-06 Thread John Benediktsson
Hi Marek, You mean to work within Gnome Shell? Isn't that just a matter of including up to 256x256 icons in your package and .desktop file? On Thu, Dec 6, 2012 at 2:27 PM, Marek Kubica ma...@xivilization.net wrote: On Thu, 6 Dec 2012 09:34:12 -0800 John Benediktsson mrj...@gmail.com wrote

Re: [Factor-talk] Game programming in Factor

2012-12-07 Thread John Benediktsson
I suggest you look at the game.loop vocabulary (in addition to general opengl things). Joe Groff has some blogs about it, one of the first is here: http://duriansoftware.com/joe/The-Factor-game-framework.html These demos might be useful to look at: IN: scratchpad tetris run IN:

Re: [Factor-talk] Factor listener windows do not respond on mouse button click. Left.

2012-12-07 Thread John Benediktsson
Hi Damian, Do you mean that left click on the buttons at the top of the listener, for example, doesn't work? On Fri, Dec 7, 2012 at 5:19 PM, Damian Dobroczyński qoo...@gmail.comwrote: Hi list! I've just updated my Factor installation (from git repo) and found strange behavior. Left mouse

Re: [Factor-talk] Factor listener windows do not respond on mouse button click. Left.

2012-12-08 Thread John Benediktsson
Very strange, have not heard of this before. Would you open a Github issue and maybe we can triage there? On Dec 8, 2012, at 12:57 AM, Damian Dobroczyński qoo...@gmail.com wrote: W dniu 08.12.2012 02:25, John Benediktsson pisze: Hi Damian, Do you mean that left click on the buttons

Re: [Factor-talk] Namespaces in Factor

2012-12-12 Thread John Benediktsson
Typically, you would need to specify which word you mean: Given: IN: vocab-a : foo ( -- x ) 12 ; IN: vocab-b : foo ( -- x ) 14 ; IN: vocab-c : bar ( -- x ) foo ; This would happen: IN: scratchpad USE: vocab-c Loading resource:work/vocab-c/vocab-c.factor Loading

Re: [Factor-talk] Factor listener windows do not respond on mouse button click. Left.

2012-12-12 Thread John Benediktsson
I'm sorry about this! First time we've gotten a report that mouse click doesn't work. Best repo is Slava's: https://github.com/slavapestov/factor On Dec 12, 2012, at 10:13 PM, Damian Dobroczyński qoo...@gmail.com wrote: W dniu 08.12.2012 16:55, John Benediktsson pisze: Very strange, have

Re: [Factor-talk] Documentation

2012-12-14 Thread John Benediktsson
Which parts of the documentation are you looking for? Much of it is available in the Listener and on the web: http://docs.factorcode.org/content/article-handbook.html I wrote some code to generate PDF's from various parts of the Factor documentation, which might be useful to you:

Re: [Factor-talk] Border-button quotation

2012-12-16 Thread John Benediktsson
For convenience, the quotation is called with the button object that was clicked. If you don't want it, you can just drop it. Press [ *drop *The button has been pressed. print ] border-button gadget. On Sun, Dec 16, 2012 at 4:01 PM, Samuel Proulx proulxsam...@gmail.comwrote: Hi, I'm

Re: [Factor-talk] Border-button quotation

2012-12-16 Thread John Benediktsson
pressed doesn't show in the listener? Le dimanche 16 décembre 2012, John Benediktsson a écrit : For convenience, the quotation is called with the button object that was clicked. If you don't want it, you can just drop it. Press [ *drop *The button has been pressed. print ] border-button gadget

Re: [Factor-talk] terrain example

2012-12-16 Thread John Benediktsson
That works fine for me, using latest development branch of Factor and Mac OS X 10.8.2. What versions are you using? On Sun, Dec 16, 2012 at 7:02 PM, Leonard P leonard14...@gmail.com wrote: On Sun, Dec 16, 2012 at 9:59 PM, Alex Vondrak ajvond...@gmail.com wrote:

Re: [Factor-talk] editors

2012-12-17 Thread John Benediktsson
Factor source code is loaded from files, which can be edited in VI or your favorite editor. And linked via the edit word so you can open code into your editor. In this article: http://docs.factorcode.org/content/article-first-program-start.html, you create your palindrome.factor file using our

Re: [Factor-talk] Button stack effect problem

2012-12-18 Thread John Benediktsson
If you use global values, this should work: SYMBOL: a 1 a set-global Press [ drop a get-global ... ] border-button gadget. The problem with set and get, is that the 'set' is using the namespace of the listener which may (likely not) be the namespace of the quotation being executed by the

Re: [Factor-talk] Border child

2012-12-19 Thread John Benediktsson
Try this, you need to remove all the children first, then add the label: Test label { 5 5 } border dup gadget. dup children [ unparent ] each dup Worked label add-gadget On Wed, Dec 19, 2012 at 8:14 AM, Samuel Proulx proulxsam...@gmail.comwrote: Hi, I tried to change the child of a border.

Re: [Factor-talk] Border child

2012-12-19 Thread John Benediktsson
The scroller uses a viewport slot to hold the children gadgets, I believe: Foo label scroller dup gadget. dup viewport Bar label 1vector children drop On Wed, Dec 19, 2012 at 9:10 AM, Samuel Proulx proulxsam...@gmail.comwrote: It worked fine with borders, so I thought it would be the same

  1   2   3   4   5   6   >