3 ms·
Love the language and found it quite a joy to learn and use. Written a few little scripts with it and as a learning exercise I took defunkt's ike (http://githu
by draegtun 16y ago
Love the language and found it quite a joy to learn and use. Written a few little scripts with it and as a learning exercise I took defunkt's ike (http://github.com/defunkt/ike http://github.com/defunkt/ike) and refactored and added features to it.
However the implementation has caused me some headaches. For eg. some of the Addons have dependency issues and I could never get the VM to compile at all on my Apple Powerbook (PowerPC). Also be the VM is very slow (for an example it is slower than Ruby 1.8).
But overall I came away with positive feelings about Io and I am definitely keeping my eye on it.
Here is a fun FizzBuzz I wrote:
for (n, 1, 100,
fb := list (
if (n % 3 == 0, "Fizz"),
if (n % 5 == 0, "Buzz")) select (isTrue)
if (fb isEmpty, n, fb join) println
)
- silentbicycle 16y agoI've found Io very interesting as well, but have never gotten it to build successfully on OpenBSD. It seems like the Io community is fairly Mac-centric, so it's probably easiest to bootstrap on OS X. Lua also does prototype-based OO* , and is quite a bit more mature (and performs better, etc.). I've been using that instead, and I'm quite happy with it. (It also plays verrrry nicely with C.) * Actually, it's more general than that - Lua has extensible semantics (via metatables). Setting up a prototype-based OO system is dead easy, and is a bit of a cliche example for how metatables can be used.