Monday, September 26, 2011

Websocket Server Demonstration

Visit the High Level Logic (HLL) Website
— Home of XPL (eXtensible Process Language)

It's like XML, but you can store source code in it.

(January 12, 2013: Related article: WebSockets with Apache Tomcat and HLL)

Subject: Pre-release demonstration for developers and others who are willing to install advanced browsers. When ready, this server will be available free to developers, with or without the HLL application software. The current version is set-up as a gateway and will include simple http processing at the time of release. (You won't have to have another server running to load web pages.)

Update (Oct. 2, 2011): Latest version of the websocket protocol (known as hybi-17) has been submitted as a proposed standard. (public notice) Technically, hybi-17 is expected to represent the first websocket standard, although there may still be revisions to the text of the written standard.

The HLL International Websocket Server is another fast, lightweight HLL component. (Running on localhost, response appears instantaneous, even with multiple “rapid-fire” requests.) I've been developing it independently so that it can act as a websocket server for all applications, whether they are HLL applications or not. HLL components will be added to make construction of any websocket application easier. HLL applications will use websockets seamlessly.

The current version is still under development. (I guess I'm just proving my sincerity with this demo.) The demonstration is like a lot of others found on the web. The web page is a bit more sophisticated. (You can download the code here, but note that it is unlikely to work unless installed on a server.) It's built for development and test, and modified as I go. But the underlying experience is that of a simple echo server. No complex applications have yet been built. I will however, hook up the robot simulation application when the server is fully integrated with HLL.

Since HLL supports distributed computing, using components anywhere in the world, the server responds to a new connection with a “Hello World!” message in Swedish: “Hallå Världen!” The default message to the echo server contains foreign characters that lie far outside the range of utf-8 (English). The server does not merely echo back the message. It processes the message first, without gumming it up; and returns its version of what it read.


The websocket standard is not yet final and I have only tested on a limited number of advanced browsers that support the most recent (i.e. proposed final) version of the websocket protocol. It works fine using Google Chrome dev-channel Chromium 14 and above and Firefox 7 and above. You should also expect to be unsuccessful when trying to connect through a proxy server. Most proxy servers have not been updated to handle websockets and will deliver an incorrect request header, causing the request to fail.

You will not get a response from the server when using browsers that do not support close to final (or final) versions of the actual websocket standard protocol or if your request runs through a proxy server (which modifies the request headers such that they are no longer compliant). The browser application will say "CONNECTION REQUESTED ...." after you click the "Open Connection" button. After a wait period it will tell you that the application is "DISCONNECTED".

Opera is currently supporting an older draft of the websocket standard that the HLL websocket server does not support. I'll hold out a bit longer to see if Opera announces an upgrade soon. Opera has done excellent work in support of the HTML5 standard generally and I want to support people who use it. The older draft version of the websocket standard will not be the final version however, so I keep expecting to hear about an Opera upgrade any time now.

I've gone so far as to set up the web page for MSIE. 8 or above to load Google's plug-in to support websockets. But I have not been willing so far to spend a few hours getting the common dhtml I've used to construct the web page working in MSIE. Maybe later. Microsoft reports that their browser will support websockets in version 10. (UPDATE: Demo on MSIE)

The demonstration server will be upgraded fairly frequently. I suspect there will be little chance that it will not be available for that reason when you try it, but it could happen. Important upgrades (such as the addition of http service) will be reported in this blog when they're ready. But because browser support for websockets is under development, I kind-of expect at least one major crash on at least one browser before it's all done. (Update: Not so much anymore. Things have been going smoothly.) I'm optimistic though. You should be too. If the web page loads a bit slowly, note that it isn't being delivered from the HLL WebSocket server.

You are invited to provide feedback. Simply add a comment under this article, or contact me by email.

If you have an appropriate web-browser, click here for the demonstration.

(January 12, 2013: Related article: WebSockets with Apache Tomcat and HLL)

Saturday, August 27, 2011

HLL Robot Application and SVG (Scalable Vector Graphics)

Visit the High Level Logic (HLL) Website
— Home of XPL (eXtensible Process Language)

It's like XML, but you can store source code in it.

New Article: Artificial Intelligence, XML, and Java Concurrency

I chose SVG (Scalable Vector Graphics) to implement robot movement tracking in the robot HLL browser-based GUI. This link is to the history part of an SVG Primer from W3C. Its popularity assures continued support. (Good choice Roger. -- :) {pat on back}

Excerpt:

By the end of 1999, development of SVG had begun in earnest. Within two years, six subsequent working drafts appeared. IBM and Corel each released software that exported SVG. IBM released an SVG viewer and several software initiatives released SVG drawing packages for a variety of operating systems. Since that time support and endorsement has grown. By 2005, A Google search for "SVG" returned over 3.7 million links on the WWW. Table 1 compares these results with other technologies. By February 2009, all these numbers had increased considerably (HTML itself rose almost eightfold), but SVG had risen to 11.9 million web documents moving well ahead of Fortran which had risen to 8.6 million.

QueryNumber of documents found

"HTML"

1,610,000,000

"PHP"

454,000,000

"Java" (includes island)

150,000,000

"Linux"

86,400,000

"Perl"

51,600,000

"JavaScript"

49,900,000

"Unix"

35,200,000

"C++"

28,900,000

"SQL"

21,200,000

"MySQL"

20,300,000

"Pascal" (includes Blaise)

14,500,000

"Visual Basic"

8,330,000

"Fortran"

5,350,000

"SVG"

3,750,000

"COBOL"

2,630,000

"Lisp" (includes stuttering)

2,300,000

SMIL

1,600,000

"awk"

912,000

"VML"

497,000

"ALGOL"

489,000

"SNOBOL"

40,900

Monday, August 8, 2011

Routine Behavior

Visit the High Level Logic (HLL) Website
— Home of XPL (eXtensible Process Language)

It's like XML, but you can store source code in it.

I've discussed before in my series of posts, notably in The Ghosts in My Machine: Chapter 2, that routine behavior or logical patterns are somehow difficult to accept as sophisticated enough to warrant examination in advancing machine intelligence. In my view, people can find routine logic difficult to think about and it therefore gets passed over. The uncomfortable feeling that superficially seems status oriented, might have neurological roots.

Over the years, I've become convinced that semi-unconscious or even unconscious routine behavior can be somewhat sophisticated - probably moreso than we might first imagine. It's as though our brains want to suppress thoughts about routine logic. There may be a very logical explanation for why it would - to keep us from being overwhelmed - to make our thought -> action responses more efficient. That's a classic explanation that I believe can be applied to a higher level of logic than has been associated with unconscious thought before.

Just thought I'd post what appears to me to be a related article: Could inner zombie be controlling your brain?
.

Thursday, August 4, 2011

HLL to Support WebSockets

Visit the High Level Logic (HLL) Website
— Home of XPL (eXtensible Process Language)

It's like XML, but you can store source code in it.

The time is right. The mood is good. HLL will include its own WebSocket server. Earlier today, my test browser app. printed:

WebSocket Test

CONNECTED

With HTML5, the world takes another step in trying to catch up to me, in a very substantial way. WebSockets FINALLY provide real two-way communication between the browser and server. HTML5 will revolutionize browser based web applications. WebSockets in particular mean that all that web stuff won't need to be so point-and-clicky anymore.

The WebSocket standard is not yet finalized, but is in “final call” status. This means we should not be expecting any more radical changes to the standard, opening the door to development that won't be threatened by a constantly changing standard.

There are a few WebSocket servers that have been in development for a while, constantly upgrading to keep up with changes to the proposed standard. The Sun/Oracle glassfish project includes one, written in Java of course. Client-Server technology specialist Kaazing offers a WebSocket server free for developing and prototyping. The Google Code site offers one written in Python called pywebwocket that at the moment seems out of date.

Cutting-edge application developers have needed good stable browser implementations. This week, Google announced an upgrade to Chrome's implementation of HTML5 WebSockets. Firefox will also include an upgraded implementation in version 6. Other browsers like Opera have been putting special effort into HTML5 support. Google announced earlier a plug-in that would allow its technology to be used with other browsers, including Microsoft's Internet Explorer.

Google software engineer Takeshi Yoshino comments:
"Given that the specification is now in 'last-call' and and no further breaking changes are expected, it should now be safe to use WebSockets for production application development."
Whether developers need their own WebSocket server is an engineering decision. If you decide to build one yourself, be advised that it's not as easy as a simple socket echo server and there is no Sun/Oracle Java Trail to guide you. You'll face standards piled on standards and interesting encryptions for security. If you want to support all browsers right now, you'll need to support more than one version of the proposed standard. Once you're connected, there are issues like multiple connections to consider.

The HLL WebSocket server will continue a commitment to an independent lightweight framework for distributed applications. Application developers using HLL will be able to use WebSockets in an easy and flexible manner. Communication between HLL components is critical. Client-server technology has been there from the start. WebSockets will tie into key features, replacing older two-way communication techniques developed for earlier versions.
.

Tuesday, July 19, 2011

Management verses the Great Migration to Open Source Software

Visit the High Level Logic (HLL) Website
— Home of XPL (eXtensible Process Language)

It's like XML, but you can store source code in it.

Among the most irritating PR supports for poor management are the list of personnel “studies” purporting miracle paths to greater efficiency and lower costs. They include claims such as that recruitment and retention of good engineers are more dependent on having the right plants in the lobby than salaries and that life in cubicles promotes productive human interaction. When none of that works, then retention isn't important anyway. Might as well outsource. And it just so happens that the people behind the “studies” lease engineers as well as cubicles.

The proliferation of such ideas in the 1990s interrupted growth of a healthy sustainable technical culture that was sprouting software engineering companies at just about the right pace to provide balance between in-house IT line staff and other specialized workers. Government and government contractors were among the largest contributors to the problem as they colluded to control labor costs while maintaining their own large cubical habitats for migrating engineers. Moreover, engineers were doing well and humans tend act like humans. Seen from the inside, the emotional backlash from other professionals has been at times extreme. It was better to ship a quarter of the nation's economy to a third world country than to let “those people” live in nice houses.

What's next, letting engineers make engineering decisions? In this dark age when human resource “experts” and bean counters reigned, good engineering suffered greatly. Following their miracle plans resulted in spiraling costs and poor quality. Even the future of engineering suffered, as a great many engineers moved from company to company, project to project, without being able to stay on a consistent professional development path. As the backlash continued, experience was undervalued and many development organizations became overburdened with cheaper, less experienced engineers that took more than ten times longer to produce results that were less than a tenth as good (which also dramatically increased maintenance costs).

Where has all the innovation gone? I'm among those who have tired of Big Software selling their latest versions of 20 year old ideas as technical breakthroughs – a continuation of the great line of miracle cures for whatever ails you. It seems like too many years have passed since they should have backed up and fixed what they were already producing. Maybe now we wouldn't all be suffering so much from computer viruses and browser lock-ups and would have built the great software engineering tools that would facilitate creativity and support real business needs rather than making sloppy use of the latest bingles and bangles sometimes slightly more convenient. Since none of that really works well enough to be economically sustainable, maybe you should outsource your business operations to the new miracle on the block; “the cloud.” Never mind that there have been companies that have wanted to run your IT department since at least the days of magnetic core memory.

You might be wondering by now; what has all this to do with open source software? It's easy. Look – while the movers and shakers in the industry are busy screwing around with other things and company managers are preoccupied with the status that a nice purse and heals seems to bring, someone should be interested in producing good software. While I disagree completely that engineers are somehow less interested in being paid than everyone else (I don't care what kind of plants are in the lobby) there are thousands who would work for less at least temporarily or give of their own time to do work they can be proud of for a change and to be able to take credit for it. What's the point in spending decades developing professional knowledge and skills if you're forced to suppress all but the most menial parts? Many people actually do go into engineering with a desire to be creative and to create good things.

And why should I write this article now? You might be thinking that I'm a decade or two behind the times with my thoughts. After all, open source caught on and caught on big (except among young, naive, pimple-faced Big Software kids of course). It's become so mainstream that it is in common use and constantly growing in importance in industry. And that is the coming problem. The structure of the industry hasn't fallen back into a sustainable form dictated by market demand and a competition among professionals over who can provide the best products and services. The one thing that made the most sense was done by engineers working outside the mainstream. Where significant industry investment was involved, it was primarily to counter monopoly behavior that rendered them unable to compete in traditional ways.

Here is the part of the article where you should be interested in a solution. I know I am. I long for the days when men were real men, women were real women, small furry creatures from Alpha Centuri were real small furry creatures from Alpha Centuri, and most importantly in the context of this article – spirits were brave and engineers were real engineers. Perhaps engineers need a guild and a code of honor that they will not violate – not even for the many little queens that control most of our salaries.

Support for open-source software and projects from big industry players are at times and especially in particular instances very much appreciated no matter why they occur. Sun's support for Apache for example, has been extremely important to Internet use and the Java language and development tools are extremely important to continued innovation and development. Oracle continues some very good parts of what Sun started. Google has pushed ahead with implementation of full HTML5 support for Chrome and has made its plug-in available to drive HTML5 in other browsers. Red Hat, which started from open-source, supports a variety of open-source projects. A few years ago, Google vowed to use open-source and support for standards to return control of the overall direction of software development to consumers.

But let me suggest another path of more direct interest to the most important players; the users themselves. Not just Pam and Paul sitting in their living rooms shopping and emailing, although I'm happy to acknowledge the users that occasionally click on the PayPal button to give something back for a free software package they like. (I have done so myself.) It's the corporate users that would benefit the most from adopting open-source projects. There is in fact, a rather old idea that we can call "customer financing." When companies identify their need for software, it can benefit them greatly to individually or jointly support R&D for development of competitive products that are useful to them. It's a strategy that avoids becoming dependent on expensive fads that do not address their business needs in the best possible way.

To what extent we might be able to teach managers to think this way? What I know is that some companies are better prepared than others for such tasks. Some are themselves engineering companies, not focused on software in particular. Or companies that depend on technology to such a great extent, that they are not lacking in technical competence. These companies are most likely already routinely investing in specialized outside R&D in addition to their own internal R&D.

(To be continued ... ?)

Another perspective, time O'Reilly (1999): Ten Myths about Open Source Software

Thursday, June 9, 2011

Talking to Machines

Visit the High Level Logic (HLL) Website
— Home of XPL (eXtensible Process Language)

It's like XML, but you can store source code in it.

NPR interviews related to human interaction with the artificial. Participants: Freedom Baird, Rollo Carpenter, Brian Christian, Caleb Chung, Dr. Robert Epstein, David Hanson, Jon Ronson, Bina Rothblatt, Martine Rothblatt and Sherry Turkle.


Friday, May 27, 2011

W3C Confirms May 2011 for HTML5 Last Call, Targets 2014 for HTML5 Standard

Visit the High Level Logic (HLL) Website
— Home of XPL (eXtensible Process Language)

It's like XML, but you can store source code in it.

Original Document: W3C Confirms May 2011 for HTML5 Last Call, Targets 2014 for HTML5 Standard

http://www.w3.org/ -- 14 February 2011 -- W3C today extended the charter of the HTML Working Group with clear milestones for HTML5, the cornerstone of W3C's Open Web Platform for application development. In May 2011, the Working Group will advance HTML5 to "Last Call," an invitation to communities inside and outside W3C to confirm the technical soundness of the specification. The group will then shift focus to gathering implementation experience. W3C is developing a comprehensive test suite to achieve broad interoperability for the full specification by 2014, the target date for Recommendation.

"Even as innovation continues, advancing HTML5 to Recommendation provides the entire Web ecosystem with a stable, tested, interoperable standard," said Jeff Jaffe, W3C CEO. "The decision to schedule the HTML5 Last Call for May 2011 was an important step in setting industry expectations. Today we take the next step, announcing 2014 as the target for Recommendation."

Today there are more than 50 organizations participating in the HTML Working Group, all committed to Royalty-Free licensing under the W3C Patent Policy. There are more than 400 individuals from all over the world in the group, including designers, content authors, accessibility experts, and representatives from browser vendors, authoring tool vendors, telecoms, equipment manufacturers, and other IT companies.

This is an excerpt. Complete document: W3C Confirms May 2011 for HTML5 Last Call, Targets 2014 for HTML5 Standard