http://arclanguage.org/
Well, that makes the "which language shall I learn next" question rather easier...
First impressions (based on reading the tutorial rather than playing with it): I like it. It embodies PG's philosophy that a language should get out of your way and let you shoot yourself in the foot because one day, you might need to do tarsal surgery and only have a pistol to hand. In many respects, it's the anti-Haskell: it encourages you to put off the decision of how to represent your data as long as possible. Here's a feature along those lines that I liked: indexes into data-structures are indistinguishable from function calls. So if I write
Well, that makes the "which language shall I learn next" question rather easier...
First impressions (based on reading the tutorial rather than playing with it): I like it. It embodies PG's philosophy that a language should get out of your way and let you shoot yourself in the foot because one day, you might need to do tarsal surgery and only have a pistol to hand. In many respects, it's the anti-Haskell: it encourages you to put off the decision of how to represent your data as long as possible. Here's a feature along those lines that I liked: indexes into data-structures are indistinguishable from function calls. So if I write
(foo 0)you have no way of knowing if foo is a list, a string or a function. Evaluation is strict by default, which I think is a net loss (but you've got macros, so it's swings and roundabouts, I suppose). The anaphoric (pronoun-introducing) macros from On Lisp are included by default - I've found pronouns to be very useful in Perl, so this can only be a Good Thing. I was amused to see that most of the language is defined in Arc, and that PG seems to think that this is a bold and novel experiment :-)
Tags:
no subject
Ooh! That sounds interesting! Possibly really confusing though?
From the website: Arc is designed above all for exploratory programming: the kind where you decide what to write by writing it
My favorite kind :-) Perhaps I should venture in there too...
no subject
no subject
no subject
no subject
There's been a lot of criticism of Arc, much of it saying "he hasn't done anything really new, all this stuff has been done in Lisp dialects before!" But I think it was probably a good idea to explicitly not be a Scheme, so Arc can grow in non-Schemey directions.
I dunno what PLT Scheme's like, but I hear good things about it :-) Arc looks cool, but it's very much a version 0 at the moment.
no subject
So far as I can tell, at the moment, arc is just PLT scheme without so many libraries, with shorter names for several things, some syntactic sugar (the function composition operator for example) and some new looping constructs.
There's almost certainly more to it than that, but I'm having trouble finding it without learning PLT first. Given those first impressions, I'm thinking that maybe my time would actually be better spent learning PLT first...
Oh yes - and with strings as lists - I certainly approve of that.
I dunno - does anyone with more knowledge have an opinion on which is worth spending time on first?
no subject
no subject
no subject
In their recommended implementation (the GHC of the PLT world?), they also don't feel the need to restrict themselves to only allowing text in program source...
My first impression is that I'm quite impressed with the whole package. I'll have to add "play with drScheme" to my tuit-list.
no subject
no subject
no subject
it was brought to my attention by this post on planet.haskell.
A quick google for "K2 Language" failed to find any clues about the other terse language mentioned.
no subject
I'd guess that K2 is version 2 of K, which is a semi-proprietary APL-descendent: here's (http://www.kuro5hin.org/story/2002/11/14/22741/791) a nice Kuro5hin article on it. I'm reminded of someone complaining about "Haskell's Eigerlike learning curve": hopefully K2 (http://en.wikipedia.org/wiki/K2) isn't a reference to the steepness of K's learning curve...
no subject
*furkles through
man grep
. Gives up on grep's broken regex syntax*OK, why didn't he use
perl -ne 's/--.*//; print "$_\n" foreach /\b\w*widget\b/gi' | sort | uniq
?no subject
perl -e 'while (<>) { s/--.*//; $widgets{$_}++ foreach /\b\w*widget\b/gi } print join "\n", keys %widgets'
Canada Goose Jackor
karen millen clothing
Canada Goose Jackor