Skip to content
martintrojer edited this page Mar 5, 2012 · 18 revisions

So is this a Frink clone or what?

Frinj was never intended to be a clone of Fink, and thus does not support the entire Frink language. But since it's a Clojure DSL, it doesn't have to! There was a couple of reasons I decided to create frinj;

  • I wanted the power of frink but with Clojure idioms.
  • I love Frink, and wanted to learn more about it.
  • Frink isn't open source.
  • I wanted to have some fun.

Why is there a clj file in resources/ ???

The unit/prefix database is dynamic by it's nature. It's very easy to add new units and prefixes on the fly. The original Frink units file is "dynamic within itself" (units depend on previously defined ones etc).

When Frinj starts, it reads the unit.clj file to set up the default set of units. You can easily reset back to this state if you happen to write over some units etc with (frinj.calc.frinj-init!).

Keeping it dynamic also allow to feed new units continuously into frinj from online sources (such as currency conversion factors) etc.

Clone this wiki locally