Questions tagged [factor-lang]

Factor is a concatenative programming language that was influenced by Forth, Joy and Lisp.

From the Factor wiki:

Factor is an experiment to build a modern, useful concatenative language with strong abstraction capabilities and good support for interactive development

To get started the Factor compiler can be found at http://factorcode.org/.

More information about Factor can be found at the wiki.

64 questions
42
votes
5 answers

Why use a stack-oriented language?

I recently took a look at Factor, and the idea of having a language based around the concept of a stack is very interesting. (This was my first encounter with a stack-oriented language.) However, I don't see any practical advantages of such a…
Sasha Chedygov
  • 127,549
  • 26
  • 102
  • 115
29
votes
5 answers

Good resources for learning Factor

Having recently come across this introduction to Factor, I've been a bit curious to learn more. Aside from the official FAQ mentioned there, do you have resources for learning the language (as well as the stack-based "paradigm," if that's the right…
J Cooper
  • 16,891
  • 12
  • 65
  • 110
20
votes
8 answers

Real world usage of concatenative programming languages

What are some real-world projects done in concatenative languages like Forth, Factor, Joy, etc.?
Vijay Mathew
  • 26,737
  • 4
  • 62
  • 93
10
votes
6 answers

Do you plan on using the Factor programming language?

Do you plan on using Factor? Have you looked at it? Checked it out. Do you understand stack oriented programming? http://www.youtube.com/watch?v=f_0QlhYlS8g
Berlin Brown
  • 11,504
  • 37
  • 135
  • 203
9
votes
2 answers

Which Factor GUI tutorial/example app?

Is there a non-trivial example application written in Factor language, pregerrably for GUI application which could server as a language tutorial?
Marko
  • 30,263
  • 18
  • 74
  • 108
8
votes
1 answer

Faster way to compile Factor Programs

I really love the Factor language. But I find that compiling programs written in it is incredibly slow, and thus it's not feasible to create real projects with Factor. For example, compiling the sample Calculator WebApp takes about 5 minutes on my…
Yam Marcovic
  • 7,953
  • 1
  • 28
  • 38
8
votes
0 answers

How to call a constructed quotation in Factor

I have a word which constructs a quotation which I want to be called. However, when I load the code I get Cannot apply “call” to a run-time computed value. If I use the walker and step thru the code it executes as expected. How are you supposed to…
tgunr
  • 1,540
  • 17
  • 31
7
votes
1 answer

callstack? retainstack? namestack?

This page of the Factor manual talks about these types of stacks stored in continuations: datastack retainstack callstack namestack catchstack What precisely do these stacks hold? The three most confusing for me are the callstack, retainstack and…
Pubby
  • 51,882
  • 13
  • 139
  • 180
7
votes
3 answers

Lisp influence on on Factor programming language?

I have read (from Slava Pestov) that Factor was influenced by Lisp, but I am not sure that I can understand how? Are they not very difference programming languages?
Eli Schneider
  • 4,903
  • 3
  • 28
  • 50
7
votes
2 answers

Fiddling with point-free code?

I have been learning the Factor and J languages to experiment with point-free programming. The basic mechanics of the languages seem clear, but getting a feeling for how to approach algorithm design is a challenge. A particular source of confusion…
6
votes
3 answers

How to stop recursing?

Advent of Code Day 1 requires looping, in one form or another, over a long string of parentheses like ((((())(())(((()))(( etc. The idea is that ( goes up one "floor", ) goes down one floor, and the objectives are to print the first index in the…
cat
  • 3,888
  • 5
  • 32
  • 61
5
votes
1 answer

Keeping quotations as tuple members in Factor

I want to keep a quotation as a member of a tuple in Factor. But when I try to execute 'call' on it I get the error 'cannot apply call to a run-time computed value'. Note that marking the functions as 'inline' does nothing. Sample code: USING:…
Randy Voet
  • 3,670
  • 4
  • 29
  • 36
4
votes
1 answer

Working with code outside of the Factor source tree

I'm trying to get started playing with factor. So far, I've: downloaded the OSX disk image copied the factor directory into $INSTALL/factor started up the debugger by running $INSTALL/factor/factor Which seems to be running great. Following the…
rampion
  • 87,131
  • 49
  • 199
  • 315
4
votes
2 answers

Building a web application with Factor

Has anybody built a web application with Factor? What were some of the stumbling blocks or problems that you encountered during the process?
Ryan Duffield
  • 18,497
  • 6
  • 40
  • 40
4
votes
1 answer

Cleave a run-time computed value?

Cleave is a really useful combinator for minimising code duplication. Suppose I want to classify Abundant, Perfect, Deficient numbers: USING: arrays assocs combinators formatting io kernel math math.order math.primes.factors math.ranges sequences…
cat
  • 3,888
  • 5
  • 32
  • 61
1
2 3 4 5