Linked by Thom Holwerda on Mon 15th Oct 2007 18:50 UTC, submitted by Philippe Mougin
General Development F-Script is an open-source scripting and interactive environment for Cocoa, the Mac OS X object system. It lets you easily play with the rich set of object-oriented frameworks provided by Apple and the Cocoa community. This new article, Learn F-Script in 20 Minutes, will teach you the basics of F-Script and show you how to use it to experiment with the advanced graphics capabilities of the Mac OS X Core Image framework. If you aren't using F-Script yet, this is your chance to learn how it can improve your productivity as well as those of the users of your own applications.
E-mail Print r 0   4 Comment(s)
Order by: Score:
vs Obj-C
by sanctus (2.64) on Mon 15th Oct 2007 19:58 UTC
sanctus
Member since:
2005-08-31
Fans: 0

I'm not into obj-c or f-script at all, but looking the code comparaison. It make me wonder what's the different or what's the advantage. If it's just the compile time and the possibility to embedded it, why change all the closure, if statement, etc..

Can we accomplish the same thing with pyObjc?

RE: vs Obj-C
by samad (3.24) on Mon 15th Oct 2007 21:01 UTC in reply to "vs Obj-C"
samad Member since:
2006-03-31
Fans: 0

Yes, pyObjc can do similar things, but F-Script is specifically geared towards Obj-C programmers, whereas Python is a programming language for all.

F-script reduces a lot of the Obj-C syntax.

Consider this in Obj-C:
[NSMutableArray arrayWithObjects:@"Hi", @"mom", nil]

But in F-Script:
{'Hi', 'mom'}

RE[2]: vs Obj-C
by tyrione (2.52) on Tue 16th Oct 2007 01:41 UTC in reply to "RE: vs Obj-C"
tyrione Member since:
2005-11-21
Fans: 2

So one takes a hit in performance for simplicity in syntax?

I can see where rapid prototyping an application would leverage FScript and I have it myself.

However, I'd quickly move to straight ObjC/C when writing my application for end user consumption.

RE[2]: vs Obj-C
by hjeff (2) on Tue 16th Oct 2007 04:41 UTC in reply to "RE: vs Obj-C"
hjeff Member since:
2006-01-05
Fans: 0

Well, F-Script is a Smalltalk variant that has direct ties to the Cocoa frameworks, but one need not know Objective-C first. As such, the programming idioms in F-Script are completely different than those for Obj-C. (Similarities exist because Smalltalk influenced Objective-C's design.)

F-Script is geared toward Smalltalk programmers, just as PyObjC is geared toward Python users. Interestingly enough, Ruby coders will quickly feel at home using F-Script.