Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] Feasibility of "do all application coding in the XML

From: Rick Jelliffe <rjelliffe@-------.---.-->
To: xml-dev@-----.---.---
Date: 12/2/2008 9:15:00 AM
Michael Kay wrote:
>> I agree that functional languages are quite useful. But I 
>> think the problem is, many of the underlying hardware 
>> architectures are von Neumann based. von Neumann machines 
>> work best with imperatives programs (languages).
>>     
>
> If we believed that we would all still be writing in Assembler, or at any
> rate using GOTO statements.
>   
Since modern general purpose languages like java, C# and so on do not 
have effective, structured ways to take advantage of SIMD instructions 
(if we accept the C++ Intrinsics as not being part of C++ as as such...) 
we do have to write in near-assembler with the equivalent of GOTOs at 
the moment, in order to get anywhere near optimal performance from the CPUs.

With respect to John Backus, we are in the reverse of the position he 
mentioned: we are no longer using machines that are strictly von Neuman 
architectures: they all allow parallelism and/or pipelining. It is no 
longer that "present-day programming languages reflect present-day 
technology" as Backus said: it is the languages that don't provide 
access, largely because their primitive storage types are based on 40 
year old norms (i.e. C) rather than on the 128 bit registers optimised 
for in modern CPUs.

I don't see that functional programming is any different than imperative 
programming in this regard: unless the CPUs SIMD data structures are 
first-class objects (or have a first class abstraction that is 
CPU-neutral) and useable in the platform APIs, the SIMD instructions are 
just inaccessible: the result is our text processing programs run slower 
(2 times? 10 times?) than they could. Look at Prof Camerons XML parsing 
results at  http://www.cs.sfu.ca/~cameron/parabix-study-preprint.pdf
for work that shows our deficit.

Cheers
Rick Jelliffe



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent