The discussion of class-side slots for TclOO is instructive in light of Carl Sassenrath's blog on defining "simple" in Rebol and in-the-large. But in the real world things are not so simple.
The TclOO architect offers his snippet from the view of the code internals of his framework.
Tcl 8.6 is in a slow beta while Rebol3 remains alpha - and in fairness TclOO was already a library for 8.5
A Curl (as in www.curl.com) architect in Boston once gave me his take on Tcl ... but again, in fairness, not having access to the internals of how mixins are implemented in Curl ...
The simple view: use traits where they are useful in maintaining separation. Much harder: to get a project to adopt traits effectively (e.g., non-HTML output for Smalltalk Seaside or Scala Lift.) Perhaps not possible: getting traits into ObjectIcon.
Anecdote: the Avro Arrow had a compontentized "open-bay" in its belly - long before the ISS universal docking spec.
Question: is re-motoring aircraft types always "simple" ? DC-8? And new wings for C5 Galaxy? Will the Shuttle engines be re-used?
Question: Should the Canadarm2 have been coded in Erlang or Oz instead of Ada? Erlang would offer X, Oz X, Y and Z. But for Ada there are tools and staff.
What is the "simple" approach to handling text in the age of Unicode? My test candidate: Octavio Paz' "Blanco" as the intended "dynamic text".
Showing posts with label ObjectIcon. Show all posts
Showing posts with label ObjectIcon. Show all posts
Tuesday, March 29, 2011
Friday, September 17, 2010
Aules evolve
Over at my Aule blog I have a post on evolving an Aule as a "home page" - but one that it is with me and not at Yahoo or Google or AOL.
For some time it has been my habit to set the browser home page to a file on my PC or netbook by using an address bar entry of
Two largely ignored programming options still hold my interest: the Logtalk framework for Prolog (swi-prolog is both constraint and RDF-friendly) and Oz (rules, constraints, dataflows ... )
As Smalltalkers know, it is not just the language, it is the environment, the established patterns - and the ease of testing and debugging. I will still keep an eye on Seaside for Pharo Smalltalk and watch for Dolphin+Lesser's NG Smalltalk. But an Aule layout keeps coming back to being a structured String specification to be parsed, persisted and built. Rebol3 looks to be mired-down (the latest distraction for Carl Sassenrath is running his alpha on an Amiga before that alpha has stumbled into a first beta. Oh vey ... ) and don't hold your breath for an environment.
Parsing in Icon is almost as fine as in Rebol - and there remains in my back pocket the Qtk for Oz.
No option will be as elegant as a declarative Curl UI in a web page - so they will continue - but as an option. My next iterations are for Tcl and Ruby links over at logiquewerks.com because the Tcl aule (entry point, home page, portal, mashup) must itself evolve as Tcl 8.6 and TclOO become old-hat. And Ruby may yet get cleaned up. And then Java 7 and a VisualWorks 8. And oh yes - a Rebol 3.
For some time it has been my habit to set the browser home page to a file on my PC or netbook by using an address bar entry of
file:///c:/webpages/home.htmlor
file:///home/grs/websites/home.htmlbut those should soon go to being
aule.htmlor
aule.curlor
aule.dcurlas Aules evolve towards being user-defined entry points with access to
remote-astronomy_aule.htmland such. I had hoped to use a variant of Seaside for Smalltalk to generate these "pages" and another Squeak Smalltalk framework to make them both portable and persistent. I am now leading more towards using Robert Parlett's new variation on the Icon language and its libraries as ObjectIcon. And in time there may be Laurie Tratt's Converge.
Two largely ignored programming options still hold my interest: the Logtalk framework for Prolog (swi-prolog is both constraint and RDF-friendly) and Oz (rules, constraints, dataflows ... )
As Smalltalkers know, it is not just the language, it is the environment, the established patterns - and the ease of testing and debugging. I will still keep an eye on Seaside for Pharo Smalltalk and watch for Dolphin+Lesser's NG Smalltalk. But an Aule layout keeps coming back to being a structured String specification to be parsed, persisted and built. Rebol3 looks to be mired-down (the latest distraction for Carl Sassenrath is running his alpha on an Amiga before that alpha has stumbled into a first beta. Oh vey ... ) and don't hold your breath for an environment.
Parsing in Icon is almost as fine as in Rebol - and there remains in my back pocket the Qtk for Oz.
No option will be as elegant as a declarative Curl UI in a web page - so they will continue - but as an option. My next iterations are for Tcl and Ruby links over at logiquewerks.com because the Tcl aule (entry point, home page, portal, mashup) must itself evolve as Tcl 8.6 and TclOO become old-hat. And Ruby may yet get cleaned up. And then Java 7 and a VisualWorks 8. And oh yes - a Rebol 3.
Labels:
Aule,
Aule Browser,
aule-browser,
home page,
mashup,
ObjectIcon,
Oz,
portal,
Rebol,
RIA,
Seaside 3.0
Monday, August 30, 2010
ObjectIcon 2.4 and Cygwin make
ObjectIcon 2.4 is available at code.google.com/p/objecticon
This is the Icon language of the late Ralph Griswold and others as extended by Robert Parlett with class-based objects and Unicode.
If you are a Windows user with Cygwin as your gcc build environment, you will have to recall how to apply env var changes to the current shell: ObjectIcon comes with a handy paths.sh file which will only be of use if run as
This way you are able to pick up the ObjectIcon env vars such as OIHOME without adding them into a bash rc file or the like.
On my system that paths.sh file is
This is the Icon language of the late Ralph Griswold and others as extended by Robert Parlett with class-based objects and Unicode.
If you are a Windows user with Cygwin as your gcc build environment, you will have to recall how to apply env var changes to the current shell: ObjectIcon comes with a handy paths.sh file which will only be of use if run as
. ./paths.shwhere the initial dot ensures that a script not using exit will have its variables export into the scope of the current shell in which it will run. Just running the script will not set the var's for ObjectIcon to use.
This way you are able to pick up the ObjectIcon env vars such as OIHOME without adding them into a bash rc file or the like.
On my system that paths.sh file is
# Object Icon path settings
export OIHOME="/cygdrive/i/objecticon-2.4"
export OIBIN="$OIHOME/bin"
export OILIB="$OIHOME/lib"
export OIPATH="$OILIB/main:$OILIB/gui:$OILIB/xml:$OILIB/parser:$OILIB/ipl"
export OIINCL="$OILIB/incl"
PATH="$PATH:$OIBIN"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$OILIB/native"
export TRACE OIMAXLEVEL
Thursday, March 4, 2010
Bombing of Civilians
One of the problems of the internet is disinformation. Routinely information from sources such as wikipedia appears with no credit and remains uncorrected after the original article has seen alterations.
Some days ago I was "informed" at an internet site that the Luftwaffe bombing of civilians in England only began after the Germans had suffered civilian losses when the British had bombed over Germany. Given that the actions of Bomber Command - Dresden and Wuerzberg, for example - are so troubling - the suggestion that the British kicked off the practice was one I felt I needed to look into.
The utter absurdity of the claim becomes apparent when you see the photographic evidence: Britain entered the war with the German attack on Poland. The first documented indiscriminate bombing of civilians in WW II is the German bombing in Poland at the very onset of the war.
The sinister suggestion that the British kicked off this round of aerial bombardment of civilians is chilling given what we know about Bletchley Park, Enigma machines and popular claims that the British had known in advance that Coventry was to receive a major attack in late 1940 (said to have motivated a revenge firestorm in 1945 in the historic core of Dresden.) A similar suggestion is debated concerning American intelligence bearing on the attack on Pearl Harbor.
Even if I wished to track this issue of misinformation even as relates to divergences in reported facts across wikipedia articles written in western European languages, the blog format appears inadequate. Even filecards most days seem more useful - especially if encoded in a McBee style (edge-notched.)
Without an effective research "browser", even pursuing a relatively recent topic such as information and misinformation concerning the effectiveness of high-tech ordinance in the bombing near or in Hanoi late in the Vietnam War (1972) becomes a challenge. At the moment the best tool available to me remains Microsoft One-Note 2007.
One symptom: today Google Documents rejected my recent Chrome bookmarks as too large a file (the format is HTML.) Browser bookmarks themselves prove to be of such limited usefulness unlike simple file cards and margin notes in an actual bound paper text.
For research cutting across languages (in my case several, including Polish and Russian) a number of otherwise useful tools prove unable to handle UNICODE even as UTF-8 (in this regard, Microsoft Notepad proves a useful scratchpad once a document is saved as UTF-8 due to its prefixing with BOM.)
As I am also looking a Curl-based multi-text browser/viewer for literary notes across translations, I am hopeful to make some progress on a useful tool for adding notes by topic without the serial post limitations of the blog format. It is not simply that the blog does not have adequate full-text indexing or contents trees, but chiefly that its edit format is "single post" within a given browser session. A multi-applet Curl research browser seems to me to be an appealing alternative (UNICODE-ready versions of ObjectIcon and Rebol3 are also appealing as are the possibilities open to Seaside-enabled Smalltalk app's.)
Note: the en.wikipedia.org article on the February 1945 firebombing of Dresden fails to note that the bombing of the core of the city of Würzburg even occurred - let alone on March 16, 1945 - the Churchill memo discussed in the article is shown as dated March 28, the second April 1 (according to that article.) Furthermore that article is not tagged with "aerial area bombing" or "aerial incendiary bombing": even using the best linux Gnome browser, only 2 tags would be available for a "bookmark" of that article and no place to annotate the limitation or flag a TODO in the browser. Supposing that I were not intent on updating the article but only comparing with German and Russian versions, the existing browsers, so far as I am aware, are inadequate to these simple browse-and-note tasks. In my view they are not yet true browsers: they remain simple page viewers. A variety of FireFox 3 plugins have proven so problematic - even those with remote store which should facilitate working across machines (such as my XP PC and my linux netbook) - that I have returned to using Google Chrome and occasionally linux Epiphany.
Some days ago I was "informed" at an internet site that the Luftwaffe bombing of civilians in England only began after the Germans had suffered civilian losses when the British had bombed over Germany. Given that the actions of Bomber Command - Dresden and Wuerzberg, for example - are so troubling - the suggestion that the British kicked off the practice was one I felt I needed to look into.
The utter absurdity of the claim becomes apparent when you see the photographic evidence: Britain entered the war with the German attack on Poland. The first documented indiscriminate bombing of civilians in WW II is the German bombing in Poland at the very onset of the war.
The sinister suggestion that the British kicked off this round of aerial bombardment of civilians is chilling given what we know about Bletchley Park, Enigma machines and popular claims that the British had known in advance that Coventry was to receive a major attack in late 1940 (said to have motivated a revenge firestorm in 1945 in the historic core of Dresden.) A similar suggestion is debated concerning American intelligence bearing on the attack on Pearl Harbor.
Even if I wished to track this issue of misinformation even as relates to divergences in reported facts across wikipedia articles written in western European languages, the blog format appears inadequate. Even filecards most days seem more useful - especially if encoded in a McBee style (edge-notched.)
Without an effective research "browser", even pursuing a relatively recent topic such as information and misinformation concerning the effectiveness of high-tech ordinance in the bombing near or in Hanoi late in the Vietnam War (1972) becomes a challenge. At the moment the best tool available to me remains Microsoft One-Note 2007.
One symptom: today Google Documents rejected my recent Chrome bookmarks as too large a file (the format is HTML.) Browser bookmarks themselves prove to be of such limited usefulness unlike simple file cards and margin notes in an actual bound paper text.
For research cutting across languages (in my case several, including Polish and Russian) a number of otherwise useful tools prove unable to handle UNICODE even as UTF-8 (in this regard, Microsoft Notepad proves a useful scratchpad once a document is saved as UTF-8 due to its prefixing with BOM.)
As I am also looking a Curl-based multi-text browser/viewer for literary notes across translations, I am hopeful to make some progress on a useful tool for adding notes by topic without the serial post limitations of the blog format. It is not simply that the blog does not have adequate full-text indexing or contents trees, but chiefly that its edit format is "single post" within a given browser session. A multi-applet Curl research browser seems to me to be an appealing alternative (UNICODE-ready versions of ObjectIcon and Rebol3 are also appealing as are the possibilities open to Seaside-enabled Smalltalk app's.)
Note: the en.wikipedia.org article on the February 1945 firebombing of Dresden fails to note that the bombing of the core of the city of Würzburg even occurred - let alone on March 16, 1945 - the Churchill memo discussed in the article is shown as dated March 28, the second April 1 (according to that article.) Furthermore that article is not tagged with "aerial area bombing" or "aerial incendiary bombing": even using the best linux Gnome browser, only 2 tags would be available for a "bookmark" of that article and no place to annotate the limitation or flag a TODO in the browser. Supposing that I were not intent on updating the article but only comparing with German and Russian versions, the existing browsers, so far as I am aware, are inadequate to these simple browse-and-note tasks. In my view they are not yet true browsers: they remain simple page viewers. A variety of FireFox 3 plugins have proven so problematic - even those with remote store which should facilitate working across machines (such as my XP PC and my linux netbook) - that I have returned to using Google Chrome and occasionally linux Epiphany.
Saturday, December 19, 2009
while ( write( read(resource) ) ) # no ;
#pragmatic programming
while(write(read())) may not be as succinct as the equivalent expression in Rebol, but this Icon expression - which composes correctly in ObjectIcon, UNICON, Converge and ICON itself - has an important property: it can fail and its failure is neither an exception nor an error. And until it fails, it succeeds.
Yet for all the pragmatic programmer interest in languages such as Erlang and Clojure, Icon seems to attract no interest at all (judging from activity at the code.google pages for ObjectIcon.)
Indeed, the apparent disappearance of goto as a reserved word in JavaScript-family languages (except DMDScript, where goto is implemented) would seem to indicate that the Algol-like syntax of the replacement for SNOBOL may never get the attention it deserved. GOTO is now masked as throw and try/catch and break-to-tag and the "resume-elsewhere-as-resume-next" of Icon failure may remain unknown to another generation of programmers.
When I last looked, goto remained an unused reserved word of Java, just as it was of JavaScript. For programmers who never worked with Prolog back-tracking, the idea that boolean expressions evaluate to TRUE or FALSE may seem a truism. But it remains the case that a great deal of the internet, for one striking example, depends on all manner of objects deemed "empty" to default in boolean expressions to an evaluation as FALSE.
Just as it was false that SNOBOL would never be performant (SPITBOL put that to rest but too late), so it was false that GOTO is always dangerous (and useful long jumps in C are still with us.)
There is a useful word in German, Aufhebung, which does not always translate cleanly into English: but it might be the one word to capture the response of Icon to the challenges laid before SNOBOL by Algol, Fortran, Pascal and C.
You need only consider that recent languages as advanced as Java, C#, Curl, ECMAScript, Python and Scala continue to use Regular Expressions as if there had never been a programmers' tool which was an alternative to Perl. PCRE is now an acronym if not also a shibboleth.
Icon was intended for non-computer scientists to use just as was SNOBOL before it, but even an MIT language intended for visual artists, Processing of proceessing.org, continues to advise its users to learn regexp.
Perhaps the release of ICON 9.5 (under the guidance of an award-winning CS teacher and mentor) will attract some attention. Or the future release of pythonic Converge 2.0
But I have my doubts. Perhaps it will come when an HP innovator looks at available languages for new help center software for help desks in Africa. Perhaps the interest will come from Latvia or western China. In any other area of applied science, the likes of regexp would have been gone. But we have yet to fall under the spell of some great offering us the dictum "RegExp considered harmful".
while ( write( read( responseStream ) ) )
# idiom, semi-colon terminator optional
PS
Icon: generators, iterators, practical co-routines, goal-directed evaluation, expression-based language (Carl Sturtivant, G. Townsend with others)
ObjectIcon: UNICODE Icon with classes (Robert Parlett)
Converge: pythonic Icon (Laurie Tratt)
Rebol: www.rebol.net, www.rebol.org, www.rebol.com (from Carl Sassenrath and team; now in alpha for REBOL 3 with closures and modules)
Curl: Clojure-like homiconic web content language with macros, closures, optional types and permiting scoped tags within iteration macros to facilitate expressions such as the macro {for tag=outer permitting {break tag=outer}
Yet for all the pragmatic programmer interest in languages such as Erlang and Clojure, Icon seems to attract no interest at all (judging from activity at the code.google pages for ObjectIcon.)
Indeed, the apparent disappearance of goto as a reserved word in JavaScript-family languages (except DMDScript, where goto is implemented) would seem to indicate that the Algol-like syntax of the replacement for SNOBOL may never get the attention it deserved. GOTO is now masked as throw and try/catch and break-to-tag and the "resume-elsewhere-as-resume-next" of Icon failure may remain unknown to another generation of programmers.
When I last looked, goto remained an unused reserved word of Java, just as it was of JavaScript. For programmers who never worked with Prolog back-tracking, the idea that boolean expressions evaluate to TRUE or FALSE may seem a truism. But it remains the case that a great deal of the internet, for one striking example, depends on all manner of objects deemed "empty" to default in boolean expressions to an evaluation as FALSE.
Just as it was false that SNOBOL would never be performant (SPITBOL put that to rest but too late), so it was false that GOTO is always dangerous (and useful long jumps in C are still with us.)
There is a useful word in German, Aufhebung, which does not always translate cleanly into English: but it might be the one word to capture the response of Icon to the challenges laid before SNOBOL by Algol, Fortran, Pascal and C.
You need only consider that recent languages as advanced as Java, C#, Curl, ECMAScript, Python and Scala continue to use Regular Expressions as if there had never been a programmers' tool which was an alternative to Perl. PCRE is now an acronym if not also a shibboleth.
Icon was intended for non-computer scientists to use just as was SNOBOL before it, but even an MIT language intended for visual artists, Processing of proceessing.org, continues to advise its users to learn regexp.
Perhaps the release of ICON 9.5 (under the guidance of an award-winning CS teacher and mentor) will attract some attention. Or the future release of pythonic Converge 2.0
But I have my doubts. Perhaps it will come when an HP innovator looks at available languages for new help center software for help desks in Africa. Perhaps the interest will come from Latvia or western China. In any other area of applied science, the likes of regexp would have been gone. But we have yet to fall under the spell of some great offering us the dictum "RegExp considered harmful".
while ( write( read( responseStream ) ) )
# idiom, semi-colon terminator optional
PS
Icon: generators, iterators, practical co-routines, goal-directed evaluation, expression-based language (Carl Sturtivant, G. Townsend with others)
ObjectIcon: UNICODE Icon with classes (Robert Parlett)
Converge: pythonic Icon (Laurie Tratt)
Rebol: www.rebol.net, www.rebol.org, www.rebol.com (from Carl Sassenrath and team; now in alpha for REBOL 3 with closures and modules)
Curl: Clojure-like homiconic web content language with macros, closures, optional types and permiting scoped tags within iteration macros to facilitate expressions such as the macro {for tag=outer permitting {break tag=outer}
Friday, October 23, 2009
ObjectIcon 2.0 UNICODE ICON programming language
The latest release of ObjectIcon is now at code.google which brings oit and oix up to 2.0
This release built without incident on my Ubuntu box and is running behind some scripts on my shared host site.
I have posted a request to Robert Parlett to comment on what features distinguish 2.0 from 1.4
The ICON language itself remains at 9.4.3
Other ICON variants include OOP UNICON and the more-pythonic Converge with its meta-programming features (Converge implements a complete Compile-Time Meta-Programming facility.)
Ralph Griswold and other ICON originators brought us iterators, generators, associative arrays and an alterntive logic-programming facility (Erlang is another language with a restricted or limited logic programming feature set.) ICON language features are now common in Python and Ruby but its style of logic as success-or-failure rather than true and false goes far beyond non-zero evaluating to a Boolean value as found in many other programming languages. ICON is an expression-based language (other such languages include Curl and REBOL) which leads to idioms unlike those typical of procedural languages working with a command/statement paradigm in which expression evaluation is secondary. ICON is nonetheless procedural: each program begins with
procedure main()
ICON and its follow-on variants are arguably the most neglected languages which were ever aimed to interest non-programmers.
This release built without incident on my Ubuntu box and is running behind some scripts on my shared host site.
I have posted a request to Robert Parlett to comment on what features distinguish 2.0 from 1.4
The ICON language itself remains at 9.4.3
Other ICON variants include OOP UNICON and the more-pythonic Converge with its meta-programming features (Converge implements a complete Compile-Time Meta-Programming facility.)
Ralph Griswold and other ICON originators brought us iterators, generators, associative arrays and an alterntive logic-programming facility (Erlang is another language with a restricted or limited logic programming feature set.) ICON language features are now common in Python and Ruby but its style of logic as success-or-failure rather than true and false goes far beyond non-zero evaluating to a Boolean value as found in many other programming languages. ICON is an expression-based language (other such languages include Curl and REBOL) which leads to idioms unlike those typical of procedural languages working with a command/statement paradigm in which expression evaluation is secondary. ICON is nonetheless procedural: each program begins with
procedure main()
ICON and its follow-on variants are arguably the most neglected languages which were ever aimed to interest non-programmers.
Thursday, September 10, 2009
Converge programming language 1.1 "alpha" binaries available
Laurie Tratt's Converge, an ICON for pythonistas has gone to 1.1 over at convergepl.org
This comes just as Robert Parlett's ObjectIcon has popped up to 1.4 at code.google.com
I am still waiting for news to clarify the status of ICON 9.5 ... which Carl Sturtivant of UMN, for one, has been working on over the past year or more.
I have started a sketch for a Converge docs site-specific browser at converge.aule-browser.com
At the moment it's only note-taking link is to cl1p.net/convergepl
A converge DSL on the server-side would be excellent for scripting a dynamic GUI in Curl code.
This comes just as Robert Parlett's ObjectIcon has popped up to 1.4 at code.google.com
I am still waiting for news to clarify the status of ICON 9.5 ... which Carl Sturtivant of UMN, for one, has been working on over the past year or more.
I have started a sketch for a Converge docs site-specific browser at converge.aule-browser.com
At the moment it's only note-taking link is to cl1p.net/convergepl
A converge DSL on the server-side would be excellent for scripting a dynamic GUI in Curl code.
Labels:
Converge,
Curl,
ICON,
ObjectIcon,
python
Monday, June 22, 2009
ObjectIcon is UNICODE ICON
There are recent updates to code and wiki by Robert Parlett over at the google code ObjectIcon project including UNICODE in ICON.
ucs (standing for Unicode character string) is a new builtin type, whose behaviour closely mirrors that of the conventional Icon string. It operates by providing a wrapper around a conventional [...] Icon string, which must be in utf-8 format
For SVN, you might want to use
svn checkout http://objecticon.googlecode.com/svn/trunk/ objecticon-read-only
The lack of UNICODE in UNICON has been a worry: now there is an ICON + OOP alternative. UNICODE arrived recently in swi-prolog and is now in the alpha of REBOL3.
Languages which parse strings but are not UNICODE by 2010 cannot be of much interest in their intended niche in China, India, Malaysia, Indonesia ...
Labels:
ICON,
ObjectIcon,
UNICODE,
UNICON
Subscribe to:
Posts (Atom)