Past Meetings‎ > ‎

Factor presentation (February 2009)

Date: February 3, 2009

Location: Linux Caffe

Attending:
  • Ali
  • Abram Hindle
  • Telman Yusupov
  • Paul Tarvydas
  • Vishvajit Singh

This was a general discussion meeting, along with Vish's presentation on the language Factor.
  • Website
    • We need a website, what should be on it
  • Name
    • toronto-lisp.net
    • Free from Telman
  • hosting
    • dreamhost $0
    • abram offers
    • possible hosting
    • google sites
  • Conclusion
    • Send to mailing list
    • we should discuss this further
  • Factor presentation
  • Forth intro
    • stack based
    • tree demo
  • Factor
    • random tree
    • time daemon

See attachments on this page for the Factor presentation.






Factor presentation to the Toronto Lisp Users' Group - Tuesday, February 3, 2009
By Vishvajit(Vish) Singh

- Introduction
- Show the basics of FORTH (slide)
- Factor: like FORTH, but modern, compiled, lots of libraries, fun to play with
- Launch Factor, demonstrate use of stack
- push 2, 3, "bob"
- Demonstrate basic operations
- +, *
- length
- Demonstrate stack manipulators
- swap, drop, dup, over, rot
- Demonstrate quotations
- [ 1 + ]
- call
- Demonstrate if
- booleans
- 2 0 > [ "greater" print ] [ "lesser" print ] if
- demonstrate defining a word for the above operation, check-number
- Demonstrate ctrl-shift-h
- Show the binary tree example (slide)
- Show the code, and demonstrate, the time server example




Factor presentation
By Vish Singh
-------------------

The basic idea of FORTH:

Prefix: f(x, y, z) = + x * y z (defun f (x y z)
(+ x (* y z)))

Infix: f(x, y, z) = x + y * z


Postfix: f(x, y, z) = x y z * +


And in FORTH..

: f * + ;

DEFINE the word f as the concatenation of the two words * and +.

We assume the user has put x, y, and z on the stack before calling f.
The effect of f is to remove x, y, and z, and leave only the result of the computation.





ċ
Factor-presentation.txt
(1k)
Telman Yusupov,
Feb 15, 2009, 8:18 PM
ċ
Factor-slide1.txt
(1k)
Telman Yusupov,
Feb 15, 2009, 8:18 PM
ċ
Factor-slide2.factor
(1k)
Telman Yusupov,
Feb 15, 2009, 8:18 PM
ċ
fun.factor
(1k)
Telman Yusupov,
Feb 15, 2009, 8:18 PM
ċ
time-server.factor
(1k)
Telman Yusupov,
Feb 15, 2009, 8:18 PM
Comments