factorに関するpaz3のブックマーク (3)

  • Factor/FAQ/Factor での開発

    paz3
    paz3 2015/12/17
    「Factor のスタックはデータ構造ではなく、ワード間で値を受け渡しするための手段です」
  • Beginning Factor – Shufflers & Combinators

    In the previous installment of Beginning Factor, we discussed some of the attributes of stack-based languages and the syntax for defining words in Factor. This time around, I’d like to introduce stack shufflers, quotations & combinators, and touch on some more basic data types and their properties. Up until now, we’ve essentially been using Factor as an overqualified RPN calculator. I just wanted

    paz3
    paz3 2014/05/23
    FactorのShuffler(スタック値を入れ替えるもの)とCombinator(コンビネータ)の基本を説明しているブロク。bi,bi*,bi@の違いなど、Factorを始めたばかりの人に非常にわかりやすく為になる情報。
  • 買い物ログ別館: Factor アーカイブ

    「特定のディレクトリにあるjpgファイルのリスト」を得る用事(用事?)があって、factorで書いてみたらけっこう苦労しました。 USING: io.directories io.pathnames kernel sequences io ; IN: filelist <PRIVATE : filter-quot ( str -- quot ) [ file-extension ] swap [ equal? ] curry compose ; inline PRIVATE> : filelist ( path ext -- seq ) dupd [ directory-files ] dip filter-quot filter [ dupd "/" swap 3append ] map nip ; 最初は、filer-quotのinline指定なしで書いてみました。そうすると、file

    paz3
    paz3 2014/05/20
    プログラミング言語Factorに入門した時の情報がまとまっているブログ。実践的でわかりやすい。
  • 1