Over at Curl I have added some comments to an invitation by Richard Monson-Haefel to weigh-in on improving Curl.
Divining the future of Curl means thinking outside the box. Here's a few attempts.
Pair up Curl as a client-side to Gemstone as has been done by Seaside.
Beef-up Curl on the client-side by getting serious about the future of expression-based languages: if there is not room in the marketplace for ICON, UNICON, REBOL and Curl then look to partner with the remnant of the ICON team at U. of Arizona.
If the Curl team cannot partner-up, then look to go beyond one of those languages by having more effective goal-oriented programming than UNICON or more user-friendly parsing than REBOL.
The option of viewing Curl as a platform and not a language seems to close off many avenues unless Curl, the platform, is able to embrace languages such as ICON which appear to be in need of a new home.
Or is there a niche for Curl in the future of Perl with Parrot, or Ruby with an industrial-quality VM, or distributed OZ?
One interesting place to look is GROK and what they are looking to do with Python ZOPE. That project alone might ensure the future of ZOPE.
Then there is RDF. Somehow RDF has become tied to clunky XML implementations or worse. Even now that W3C has embraced "sparkle" for RDF Data Access, we need not ignore the prospects for Curl as a potentially RDF-friendly language. Prima facie, ICON back-tracking and REBOL paths make either look more promising as a language. But Curl, the platform, could be a powerful starting point for a more language-neutral approach to RDF triples. Mozilla XUL has moved away from RDF (blame XML there, where the 'X' is for 'Xtra-heavy' rather than eXtensible.) The real-issue is how to effectively provide metadata. As more people look to HTML and XHTML itself as the answer, Curl appears to be a natural: Curl has always been metadata-friendly.
Curl CSPD could even be used to help ensure that meta-data that would disclose too much would be suppressed where privacy is an issue (think blogging in China and i-journalism most anywhere.)
Saturday, October 25, 2008
Monday, September 29, 2008
Curl: what's in a name?
Actually I'm not going to carry on about Curl versus cURL today, but rather about what's optional in a Curl UI.
If you are running the Curl IDE and a Curl applet, you may not be aware that a CTRL-Right-Click gives you a popup from which you can inspect the Curl widget under your mouse pointer. So what's in a name?
Well, all Curl visual objects have options - and one option which you can set is a name. If you have a few applets sharing the same code packages, it can save you some time if you able to track that this widget 'X' in this container is in fact, say, 'the Demo-only custom drilldown label-only-hidden-button'.
Why does this matter? Well, if a widget container was instantiated declaratively, as say,
|| (somewhat simplified for illustration)
{MyContainer
{VBox {HBox {CustomWidget drilldown = anon-proc}}}}
you would have no handy instance variable (field) or local variable or getter method to access this instance of CustomWidget. Whether you are debugging production code or updating an iteration of a prototype, you may wish you had done this:
{MyContainer
{VBox {HBox {CustomWidget name="Demo drilldown here", drilldown = a-proc}}}}
Now when you use CTRL-R-Click to inspect that widget, you can flip open the options and there it is: the name. Want to set a breakpoint? Open the source file and search on that name. There you are.
So it's not so much "what's in a name" as "what useful tag is hidden in that widget ..."
If you are running the Curl IDE and a Curl applet, you may not be aware that a CTRL-Right-Click gives you a popup from which you can inspect the Curl widget under your mouse pointer. So what's in a name?
Well, all Curl visual objects have options - and one option which you can set is a name. If you have a few applets sharing the same code packages, it can save you some time if you able to track that this widget 'X' in this container is in fact, say, 'the Demo-only custom drilldown label-only-hidden-button'.
Why does this matter? Well, if a widget container was instantiated declaratively, as say,
|| (somewhat simplified for illustration)
{MyContainer
{VBox {HBox {CustomWidget drilldown = anon-proc}}}}
you would have no handy instance variable (field) or local variable or getter method to access this instance of CustomWidget. Whether you are debugging production code or updating an iteration of a prototype, you may wish you had done this:
{MyContainer
{VBox {HBox {CustomWidget name="Demo drilldown here", drilldown = a-proc}}}}
Now when you use CTRL-R-Click to inspect that widget, you can flip open the options and there it is: the name. Want to set a breakpoint? Open the source file and search on that name. There you are.
So it's not so much "what's in a name" as "what useful tag is hidden in that widget ..."
Sunday, September 28, 2008
New revisions to Curl Enterprise Framework code
Over at LogiqueWerks I have re-worked the first version of the Curl 6.0 port of Paul Sheehan's Curl framework so as not to use undocumented API's for its one use of a sub-applet.
IPC between Curl applets has been something of an art ( as you will know if you have hit invalid applet exceptions or struggled with the InlineRemoteConnection class) but there are now working examples which only use documented API's (my LogiqueWerks page includes the shape-changing example which comes with the Curl IDE documentation in the 'extended' examples code.)
The interesting thing is to be able to put a breakpoint in a working framework example such as the logon to the 'VMS MOTORS' demo and see something of the Curl IPC internals by inspecting a local instance of AppletData.
For more details, see my Curl 'Developer Community' blog over at curl.com
IPC between Curl applets has been something of an art ( as you will know if you have hit invalid applet exceptions or struggled with the InlineRemoteConnection class) but there are now working examples which only use documented API's (my LogiqueWerks page includes the shape-changing example which comes with the Curl IDE documentation in the 'extended' examples code.)
The interesting thing is to be able to put a breakpoint in a working framework example such as the logon to the 'VMS MOTORS' demo and see something of the Curl IPC internals by inspecting a local instance of AppletData.
For more details, see my Curl 'Developer Community' blog over at curl.com
Sunday, August 10, 2008
Falcon Programming Language
The home of Falcon at www.falconpl.org is now a regular on my browser. The official release is still shy of 1.0 and is known as Piuma, or 0.8.10.
Falcon is being built by a team but it is the child of Giancarlo Niccolai, who was looking for an alternative scripting and embeddable language which would be multi-paradigm. Falcon is an object-oriented and a messaging language which can also be viewed as either procedural or functional and which allows all four to co-exist. The emphasis is on both flexibility and performance.
Running Falcon in MSys (the Mingw version for Win32) with -? gives the following:
One interesting feature is the functional sequence operator .[cascade which can be used for assigning not just functions but functions applied to functions. The cascade operator can be used to declare the functional sequence as a member in an object declaration.
When Falcon fledges as a 1.0 we should have another alternative language which will be worthy of attention.
The documentation thus far is largely PDF's, so a far cry from the excellent live document viewer that comes with Curl, the web content language. Recently I found that I liked the on-line documentation for the processing language at www.processing.org but we may yet see something emerge as a 'live' documentation standard comparable to what Curl offers and Smalltalk could offer.
Falcon is being built by a team but it is the child of Giancarlo Niccolai, who was looking for an alternative scripting and embeddable language which would be multi-paradigm. Falcon is an object-oriented and a messaging language which can also be viewed as either procedural or functional and which allows all four to co-exist. The emphasis is on both flexibility and performance.
Running Falcon in MSys (the Mingw version for Win32) with -? gives the following:
Usage: falcon [options] file.fal [script options]
Options:
-a assemble the given module (a Falcon Assembly '.fas' file)
-c compile only the given source
-C Check for memory allocation correctness.
-D Set directive (as= ).
-eSet given encoding as default for VM I/O.
-ESource files are in encoding (overrides -e)
-f force recompilation of modules even when .fam are found
-h/-? this help
-lSet preferential language of loaded modules
-Lset path for 'load' directive
-m do NOT compile in memory (use temporary files)
-M do NOT save the compiled modules in '.fam' files
-ooutput to instead of [filename.xxx]
-ppreload (pump in) given module
-P use load path also to find main module
-r do NOT recompile sources to fulfil load directives
-s compile via assembly
-S produce an assembly output
-t generate a syntactic tree (for logic debug)
-T force input parsing as .ftd (template document)
-v print copyright notice and version and exit
-w Add an extra console wait after program exit
-x execute a binary '.fam' module
-y write string translation table for the module
Paths must be in falcon file name format: directory separatros must be slashes [/] and multiple entries must be entered separed by a semicomma (';')
File names may be set to '-' meaning standard input or output (depending on the option)
One interesting feature is the functional sequence operator .[cascade which can be used for assigning not just functions but functions applied to functions. The cascade operator can be used to declare the functional sequence as a member in an object declaration.
When Falcon fledges as a 1.0 we should have another alternative language which will be worthy of attention.
The documentation thus far is largely PDF's, so a far cry from the excellent live document viewer that comes with Curl, the web content language. Recently I found that I liked the on-line documentation for the processing language at www.processing.org but we may yet see something emerge as a 'live' documentation standard comparable to what Curl offers and Smalltalk could offer.
Saturday, February 9, 2008
CURL6 in the RIA news
There has been good news lately at the CURL.com site with Curl winning the InfoWorld 2008 RIA development platform award and with Richard Monson-Haefel coming on-board to replace the late Marc Orchant.
I continue to try to create the urban legend that CURL stands for {url
My latest enthusiasm is to see features of ICON and UNICON appear in CURL 7 as an alternative to regexp - an extension which would also see back-tracking added to CURL. There must be a way to start that rumor ...
Some other sites seem noticably quiet, such as VistaScript.net but I continue to watch the DLR site of IronPython.
It was also great to see a new Win32 package for IO available at iolanguage.com
And of course there is a lot of activity via the ALTME link of REBOL.net with the alpha-release of REBOL3 ... and that page has a link to Carl Sassenrath's Rebol3 Frontline blog.
I continue to try to create the urban legend that CURL stands for {url
My latest enthusiasm is to see features of ICON and UNICON appear in CURL 7 as an alternative to regexp - an extension which would also see back-tracking added to CURL. There must be a way to start that rumor ...
Some other sites seem noticably quiet, such as VistaScript.net but I continue to watch the DLR site of IronPython.
It was also great to see a new Win32 package for IO available at iolanguage.com
And of course there is a lot of activity via the ALTME link of REBOL.net with the alpha-release of REBOL3 ... and that page has a link to Carl Sassenrath's Rebol3 Frontline blog.
Thursday, September 13, 2007
Cool Curl 'live' code widget
Over at eclectic-pencil I have a post on a very cool Curl widget that rivals almost anything I have ever seen expand and collapse on a web page.
What I neglect to mention is that in the example, the only code to create the XMl tree is this:
Which you would be hard-pressed to beat in Seaside for Smalltalk or in Groovy. Concise.
TiScript also has an alternative DOM and some nice features as a JavaScript alternative, but Curl 5.0 is a mature, full RIA product with 'live' code for inspection and a focus on the client-side. It is almost Smalltalk but it was also built for the web (in fairness, Curl goes about as far back as Smalltalk VisualWave.)
The only cool but alive technologies as neglected as Curl 5.0 must be Gemstone/S and Rebol 2.6.3 ... and the latter is soon to be 2.7.x with 3.0 in the wings ...
Watch for a Seaside for Gemstone/S beta in the news soon ...
PS For people living on AIR and FLASH, Rebol/FLASH went 2.0 today ...
What I neglect to mention is that in the example, the only code to create the XMl tree is this:
let xmldoc:XDMDocument = {build-xml preserve-whitespace? = false, loc} || ... {XDMTreeControl open? = true, xmldoc.root}
Which you would be hard-pressed to beat in Seaside for Smalltalk or in Groovy. Concise.
TiScript also has an alternative DOM and some nice features as a JavaScript alternative, but Curl 5.0 is a mature, full RIA product with 'live' code for inspection and a focus on the client-side. It is almost Smalltalk but it was also built for the web (in fairness, Curl goes about as far back as Smalltalk VisualWave.)
The only cool but alive technologies as neglected as Curl 5.0 must be Gemstone/S and Rebol 2.6.3 ... and the latter is soon to be 2.7.x with 3.0 in the wings ...
Watch for a Seaside for Gemstone/S beta in the news soon ...
PS For people living on AIR and FLASH, Rebol/FLASH went 2.0 today ...
Labels:
client-side,
Curl,
eclectic-pencil,
GemStone,
Groovy,
Rebol,
RIA,
Seaside,
Smaltalk,
VisualWave,
XDM
Saturday, September 8, 2007
Curl and Occasionally Connected Computing
I have added a page on OCC at wikipedia. What is really interesting to me is the use of a custom URI scheme in Curl. Such a scheme might be
If you have experience with OCC, please do contribute to the article. When I have some experience with Curl OCC I will add a page at eclectic-pencil with details and caveats.
To complement the article, I also opened one on CSPD. There are trolls at en.wikipedia.org who delight in suggesting page deletions so your contributions to articles to maintain NPOV or to suggest sensible article merging and separation are much appreciated. No edit wars, please. Solid references for articles are usually the key to survival of any given contribution in my experience.
curl://occ/this-redirects-as-neededwhich could be used to redirect to a resource depending on whether the user is connected.
If you have experience with OCC, please do contribute to the article. When I have some experience with Curl OCC I will add a page at eclectic-pencil with details and caveats.
To complement the article, I also opened one on CSPD. There are trolls at en.wikipedia.org who delight in suggesting page deletions so your contributions to articles to maintain NPOV or to suggest sensible article merging and separation are much appreciated. No edit wars, please. Solid references for articles are usually the key to survival of any given contribution in my experience.
Subscribe to:
Posts (Atom)