kabelo moiloa | 12 May 2013 18:38
Picon

Code Review: Game of Life

Hi there,
I ported a Clojure implementation of Conway's Game of Life to Factor.
Here is the original Clojure version: http://clj-me.cgrand.net/2011/08/19/conways-game-of-life/
How can I make the Factor variant more elegant and/or idiomatic?

Kind Regards,
Kabelo Moiloa
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
mr w | 12 May 2013 08:19
Picon

multiple files

Is it possible to have multiple files in the work directory?

Each file contains words to be attached to the same vocabulary root.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
mr w | 4 May 2013 08:35
Picon

site down

Site down, no posts ... factorcode rapture?

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
Leon Konings | 23 Apr 2013 15:50

Went open source with my GA144 simulator written in Factor

I am happy to say, I went public with the GA144 Simulator, I wrote in Factor.

As you might know the GA144 is a chip containing 144 small computers.  
Invented by Chuck Moore and produced by Greenarrays, Inc. See:  
http://www.greenarraychips.com/

It is a rather big project with the name arrayFactor. The repository  
is at Bitbucket. You can reach it via http://arrayfactor.org

Best regards,
Leon

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
Loryn Jenkins | 22 Apr 2013 16:17
Picon

Idiomatic use of sequences for iterative functions?

Hi 

In "Factor Philosophy", slava writes: "Imperative programming and indexed loops are almost always not the most idiomatic solution."


The words do-switching and toggle-switches implement the equivalent of a nested loop.

Without using recursion, counted for loops or side-effecting functions, what is an idiomatic way of implementing this nested iteration?

Loryn Jenkins
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
John Benediktsson | 22 Apr 2013 15:20
Picon
Gravatar

Re: Confused about run-pipeline

The example is simple and works fine:

{ "cat log.txt" "grep error" "sort" "uniq" } run-pipeline

Can you explain the more complicated thing you're trying to do?


On Mon, Apr 22, 2013 at 4:30 AM, CW Alston <cwalstonsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Factor folks -


I'm missing something trying to properly set up the components

of a sequence to be passed to run-pipeline. I intend the components

to be:

(1) a process launch descriptor, with stack effect ( -- desc ) ;

(2) a quotation composed only of run-detached, stack effect ( desc -- process ) ;

(3) a quotation to store the proc in a variable,  stack effect ( process -- );

-these followed by quotations of words with stack effect ( -- ),

all duly wrapped in a sequence { … }.


The word description for run-pipeline says that run-pipeline:

"Creates a pipe between each pipeline component, with the output of each component becoming the input of the next.


The first component reads input from input-stream and the last component writes output to output-stream.


Each component runs in its own thread, and the word returns when all components finish executing. Each component outputs a result value."


My sundry attempts to meet these requirements typically result in a

data stack underflow on execution, or an aberrant stack effect during compile.


Can anyone sketch a proper set-up for generic requirements like mine,

to successfully pass a component sequence to run-pipeline?


Thanks for any suggestions,

~cw



--
~ Memento Amori

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Factor-talk mailing list
Factor-talk-5NWGOfrQmnd4wTydcyPnfg@public.gmane.orgceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
Alexander Mueller | 22 Apr 2013 15:13
Picon
Gravatar

Re: Confused about run-pipeline

i guess you wand to use run-pipeline on factor quotes instead of just unix commands so you would dispatch to run-pipeline-element on a callable instead of a "object" which i guess is a string (?)

i would just throw a quote instead of a string into the sequence and it should just work as long as run-pipeline creates input/outputs for it, your quotation would though need to read stdin and write stdout i guess so it would "fit in"


On Mon, Apr 22, 2013 at 1:30 PM, CW Alston <cwalstonsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Factor folks -


I'm missing something trying to properly set up the components

of a sequence to be passed to run-pipeline. I intend the components

to be:

(1) a process launch descriptor, with stack effect ( -- desc ) ;

(2) a quotation composed only of run-detached, stack effect ( desc -- process ) ;

(3) a quotation to store the proc in a variable,  stack effect ( process -- );

-these followed by quotations of words with stack effect ( -- ),

all duly wrapped in a sequence { … }.


The word description for run-pipeline says that run-pipeline:

"Creates a pipe between each pipeline component, with the output of each component becoming the input of the next.


The first component reads input from input-stream and the last component writes output to output-stream.


Each component runs in its own thread, and the word returns when all components finish executing. Each component outputs a result value."


My sundry attempts to meet these requirements typically result in a

data stack underflow on execution, or an aberrant stack effect during compile.


Can anyone sketch a proper set-up for generic requirements like mine,

to successfully pass a component sequence to run-pipeline?


Thanks for any suggestions,

~cw



--
~ Memento Amori

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Factor-talk mailing list
Factor-talk-5NWGOfrQmnd4wTydcyPnfg@public.gmane.orgceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
CW Alston | 22 Apr 2013 13:30
Picon

Confused about run-pipeline

Factor folks -


I'm missing something trying to properly set up the components

of a sequence to be passed to run-pipeline. I intend the components

to be:

(1) a process launch descriptor, with stack effect ( -- desc ) ;

(2) a quotation composed only of run-detached, stack effect ( desc -- process ) ;

(3) a quotation to store the proc in a variable,  stack effect ( process -- );

-these followed by quotations of words with stack effect ( -- ),

all duly wrapped in a sequence { … }.


The word description for run-pipeline says that run-pipeline:

"Creates a pipe between each pipeline component, with the output of each component becoming the input of the next.


The first component reads input from input-stream and the last component writes output to output-stream.


Each component runs in its own thread, and the word returns when all components finish executing. Each component outputs a result value."


My sundry attempts to meet these requirements typically result in a

data stack underflow on execution, or an aberrant stack effect during compile.


Can anyone sketch a proper set-up for generic requirements like mine,

to successfully pass a component sequence to run-pipeline?


Thanks for any suggestions,

~cw



--
~ Memento Amori
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
John Benediktsson | 21 Apr 2013 06:44
Picon
Gravatar

Factor 0.96 now available

"You're smart too late and old too soon." - Mike Tyson

I'm very pleased to announce the release of Factor 0.96! You can
find download links on the Factor website:


This release is brought to you with over 1,100 commits by the following
individuals:

    Alex Vondrak, Benjamin Pollack, Daniel Nagel, Doug Coleman, John
    Benediktsson, Jon Harper, Michael T. Richter, and <at> PGGB.

Aside from bug fixes and various library improvements, I want to highlight the
following changes:

* Major compiler improvements (thanks Alex Vondrak!):
  * Global Value Numbering (disabled currently by default)
  * Parallel-Copy Semantics
* Performance improvements to hashtables, hash-sets, heaps, and bloom-filters.
* Support for Retina Displays on OS X
* Greatly improved table gadget performance
* PDF streams (and related PDF documentation)!
* Speed up math comparisons
* Support resize-window (thanks Jon Harper!)
* New logo and icons for Factor
* Added editor support for Textadept, Sublime Text, Geany, BBEdit, and XCode.

Some possible backwards compatibility issues:

* Changed <groups>, <clumps>, and <circular-clumps> to use slices.
* Removed <slicing-groups>, <slicing-clumps>, <slicing-circular-clumps>.
* Renamed editors.notepadpp to editors.notepad++.

For more details, please see the full announcement at:

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Factor-talk mailing list
Factor-talk@...
https://lists.sourceforge.net/lists/listinfo/factor-talk
Luke Worth | 18 Apr 2013 00:12
Picon

C++ bindings

Hi,

I'm interested in binding to a C++ library. I know about alien.cxx, but it seems incomplete - e.g. doesn't
support visual studio - also it seems like a crazy idea to bind directly to the mangled C++ symbols for a
bunch of different compilers, and also it is unmaintained.

Can anyone tell me if there is a reason that library was discontinued? Otherwise I'm interested in
finishing the library (if that turns out to be practical), or perhaps extending SWIG to support factor.

Regards,
Luke Worth
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
mr w | 15 Apr 2013 04:27
Picon

stack contents during operation of sequence combinator

Anyone know what the stack looks like during the execution of a
sequence combinator?

For example, the quot passed to map expects ...

quot,	a quotation with stack effect ( ... elt -- ... newelt )

Are there any guarantees on the "..." in "... elt"?

Does "seq quot map" remain on the stack while quot is applied to each element?

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Gmane