For the coming International Day of Poetry, I have a “guess that poet” up at the aule-browser blog.
Archive for the ‘Curl Surge’ Category
Poetry annotations browser
Friday, March 5th, 2010Aule Browser
Friday, June 26th, 2009Over at my LogiqueWerks pages there is now a demo of the Aule Browser to view online or run on desktop for Windows or linux. You must first install the Curl runtime engine – something both safe and easy (Curl came out of MIT at the same time as the w3.org and has been in use in large corporations in Japan for almost a decade.)
‘Aule’ means hall or entryway (it is ‘Eule’ that mean owl … ) and because of the ‘lobby’ concept in the Io language, I had once suggested it as a name for Io. “Simple” was taken, so ‘Aule’ it is!
HTTP resync issues for Curl applets
Thursday, June 11th, 2009With the release of Curl 7.0 there is now an additional resync facility as noted by Chris Barber.
Here is what the documentation says:
resync-file (accessor) Class: ComponentMetaData Package: CURL.LANGUAGE.COMPONENT
getter public sealed resync-file:#String
setter public sealed resync-file:#String
Set component resynchronization time from specified file.
When specified in the meta-data for an applet or script this attribute defines the URL of a file whose when-last-modified time will be used to set the value of process-resync-as-of.
When setting this value through this setter, the value must contain an absolute URL or an exception will be thrown. When setting via the applet or script declaration a relative path may be used or the empty string may be used as shorthand for the main applet or script load file.
The Curl that is not on the pages of any book (yet)
Monday, May 25th, 2009Over at my Curl blog I added a post on return, the Curl macro.
What I could have added were the tags of some of my bookmarks in my Curl Documentation Viewer, such as
never-returns
unreachable
EmptySource
OpenPackage
But I think that Curl templates are a very handy way to implement alternative technical ebooks: what is needed is for a technical ebook publisher such as Springer to adopt Curl as an alternative offering.
Regardless, I must get over to Lulu about that Curl ebook …
Curl for RIA with AMF
Friday, May 22nd, 2009I was not aware that there was another binary alternative in Binary JSON or BISON. But I have found two places where developers outside ActionScript might want to take a look: the Glare framework for AMF with Smalltalk and the python AMF code.
Regardless, the Curl framework is using an abstract DataObject class with two subclasses: StandardDataObject and DynamicDataObject. It was interesting to see that one DataObject factory method uses
from-traits
traits:DataObjectTraits
as traits are not much discussed in relation to Curl.
The supported types are bool, null, String, int, double, DateTime, DataObject, Array, ExtendedArray, ByteArray, AMFXmlDocument with the latter being just a wrapper for a String of XML. An ExtendedArray used to obtain a DataObject from a ByteInputStream or to put to a ByteOutputStream with its AMFSerializer and AMFDeserializer children.
Here is the default constructor for the DataObjectTraits:
{StandardDataObjectTraits.default
name:String,
members:StringArray,
dynamic?:bool = true,
externalizable?:bool = false
}
so this look very approachable. But it has nothing to do with Traits as in Squeak or Scala. Traits were introduced to help structure the refactoring of code in a way in which categorizing methods could not. Traits are classes which are not intended to have instances but which can implement methods. That is a very natural thing in Curl, but without a refactoring browser, their usefulness as an explicit cosntruct is dificult to demonstrate (an Eclipse plugin might be in the offing.) The Curl 7.0 introduction of a library access modifier should make naming classes with Trait more meaningful.
Now to get BlazeDS running on my Apache localhost.
CurlUnit and Curl site-specific browsers using the Surge RTE
Thursday, May 21st, 2009Over at LogiqueWerks there are 2 new links on my Curl 7.0 page: a live page running unit tests against Curl project in a test runner UI (just click the RUN button) and the project beiing tested: a simple SSB (site-specific browser.)
I have come to rely on Mozilla Prism for the sites at which I make daily changes: but I know that Curl offers a an enterprise SSB alternative to GreaseMonkey. And I can see a Curl GTD browser that makes TiddlyWiki seem lame in comparison. Let 42 useful browsers bloom!
Three more open-source projects for the Curl RIA platform
Friday, May 15th, 2009Over at sourceforge.net there are 3 more open-source projects for Curl. One is for a Curl MVC framework and as of today has no available downloads. Another is a non-visual Curl library with packages such as CODEC and packages with utility procedures such as
{visit-super-classes}.
The third package is a Curl-Java project to facilitate communications between a Curl client and server-side Java (both using the Spring framework and the Japanese Seasar2 AOP framework.)
The two projects with available downloads are for Curl 6.0 at this moment and do not yet have detailed English documentation. I had no problem deploying the LIB project as as to be able to install 6.0 documentation for the Curl Documentation Viewer. The ORB project has pre-compiler pre-processed pcurl code files containing standard Curl docs.
The ORB project includes both Curl and Java directories along with a curl-orb-client.jar which has classes such as CurlSerializableStreamWriter and a set of server-side JAR files including curl-serializer.jar and curl-orb-server.jar From what I can see, the object request project includes code for generating mappings between object instances in Java and object instances in Curl.
This attention to the j2ee server-side should help move Curl towards the goal of Curl as a secure enterprise platform and not just a mature web-content language for the client-side.
Curl 7.0 RIA platform released May 7, 2009
Sunday, May 10th, 2009The latest Curl from Curl Inc. is now available as both Runtime and developer IDE or Eclipse plugin for Windows and Linux (both as rpm and as deb).
If you are a developer looking at the Curl platform you will not want to miss the example code ZIP files in the docs/default/examples directory. It is found under your install below /Surge/8/docs ( the “8″ because 7.0 is known internally as curl8, rather as you started your 2nd year on your 1st birthday.)
The most significant change for me as someone who has worked mostly in Curl 3.0 is the “library” access modifier which allows packages under the same project manifest to share code ( so we have private, protected, package, library and public.) I recently worked on a framework where this would have helped keep classes in separate packages which worked with each other across component layers. And this means we have the syntactic-sugar of “library-get” and “library-set” for ease in declaring accessors.
As most often in the past, Curl 7 installs so as to co-exist with Curl 3.x, 5.x or 6.x either as RTE or also with IDE’s. If you have seen a Curl installer in the Windows Control Panel you will know that it is very selective as to what you can uninstall or retain among your Curl versions.
I had been hoping to see an option to “disable selected breakpoints” on that Debug pane, but there are now large, obvious buttons with dropdowns on the IDE for flipping from one edit point back to another which is helpful when refactoring code across scurl source files.
The best kept IDE secret is that a right click on an edit pane tab gives you the option to “split” right or top ( the menu has an option which defaults to split to the bottom.)
With the TextMate knock-off for Windows and Linux, E, now going open-source for linux, I will want to try using E. But Curl also comes with an emacs site file and offers an Eclipse plugin for the Curl language.
Curl Inc. is now positioning Curl as more of an RIA enterprise platform than a web content language (Curl is usually presented as HTML + JavaScript + CSS) and now has more options for using JSON, JavaScript, Flash and Flex. There are a few Curl open-source packages now for XML as a data format, for SQLite and for UnitTests among others. I have not checked yet whether Curl embedded as an HTML Object now accepts Object parameters – the lack of which had been a pet peeve of mine … or whether there is now more complete documentation of the API for Curl sub-applets.
I am glad to be able to say that the Curl RIA demos at the Curl home page are not “toy” applications as can be seen with the dynamic “social network” applet for FaceBook or the impressive Timeline demo. In addition, there are code examples available elsewhere on the web for advanced Curl UI’s.
In a few days I may have a chance to look at writing Mixin classes in Curl and see what has become more comfortable with the “library” access modifier for code common across packages for code which is not public or protected (Curl allows multiple inheritance and constructors are of the “factory” pattern.)
With the renewed enterprise interest in Smalltalk, the re-emergence of the “Slate” project as “Clean Slate Smalltalk”, the fine Seaside web framework, traits from Squeak Smalltalk and the good work done on the Io beyond-Smalltalk language, it is nice to be able to say that the only web programming environment which I think can rival Curl is a multi-platform dialect of Smalltalk. Curl allows you to relax all typing and do your prototype and then get down to re-writing your application as an industrial-strength web or desktop app relying largely on static types. All that I miss in the Curl IDE is a Smalltalk-style refactoring browser …
In my many years working on mission critical applications first in both Curl and Smalltalk, Curl is as productive for experienced developers as Smalltalk and just as well-suited to evolutionary approaches to software development. Both promote: “See, Yes you can! Just like this …” And after that short turn-around demo or prototype, we can get the app right with UnitTests, an excellent debugger, live documentation and then get it fast with the profiler and the HTTP monitor. And have the option of using Curl itself as the data format. And now Curl stylesheets as well (Smalltalk Seaside is also not married to HTML.)
If you have not yet looked at Seaside for Smalltalk and you are doing web applications, you owe it to yourself to do so. It you are interested in the desktop or in site-specific browser applets, then Curl is a must-see, must-try. Then if you opt for Air or Silverlight or yet another framework, library or platform, you will make that choice knowing what you have passed up. Just as you may have thought you knew why you ignore PROLOG for business rules, you may just not know about Logtalk or the latest on constraints in distributed Oz. These are not just languages: Curl as much as Smalltalk, Erlang or Oz offers an approach to getting from a software vision to a maintainable product with manageable risks and a good chance of being within budget. But as much as Smalltalk or Rebol or UNICON you must be ready to set aside preconceived notions – and I think that it helps to embrace evolution as a fact: your prototype need not be a throw-away but you must have the discipline to move beyond exploratory and feasibility mode to the demands of industrial-strength components. Curl offers restrictions at the code package level which would offend most Smalltalkers. But it is worth it in my experience. Start modeling your web app in a declarative mode with no type restrictions. And then get beyond that.
Busy with Curl and RDF
Friday, November 7th, 2008I am hoping to post a substantial note on the Curl language and RDF over at eclectic-pencil.
Tim Berners-Lee was involved in the original Curl language project and of course is now involved with RDF efforts for the Semantic Web such as the N3 language for expressing RDF triples.
Btw, I see that INRIA.fr has a SweetWiki powered by SmallWiki (now known as Pier)
Technorati Profile
On Improving Curl
Sunday, October 26th, 2008Over at my Curlr blog I have added some suggestions for improving the quality of Curl code by enforcing some coding standards.
At the moment in a Curl file containing a class definition, class-side and instance-side expressions can occur willy-nilly.
Some developers have the idea that if a field is only referenced in one method, then declare that field where the method is declared. And declare class-side variables wherever you will.
As Curl still lacks a refactoring browser, this generous approach to coding-as-scripting can and does add to maintenance headaches.
I particularly like my own idea of {i-attributes } and {d-attributes } as those declared once -and-only-once as requiring to be initialized in a constructor or not.
These are not substantive changes such as adding co-expressions or generators as found in ICON and UNICON or becoming more truly multi-paradigm as is distributed OZ. What they address are some of the needs of PITL. In a large codebase, it is important to be able to grasp the intention at a glance so as to move on in confidence (no obvious issue there, so look elsewhere) when refactoring code without the craftsman’s tool.
What I have proposed is not a restriction, but rather only an option to be enforced as a tighter compiler-directive than stringent? is at present.
While never a big fan of UML, I have opted to suggest rational? = true for this meta-level view of Curl class code.
Sometime ago I suggested that a macro for SCURL file headers was overdue. I now have that suggestion:
{curl-class }
What this will mean is that when the header is found, that SCURL file may only contain one Curl class and only a Curl class (no stray globals, proc’s and other flotsam-and jetsam.)
Call it “Curl with class”. || humor