Problems? Is your data what you think it is? | |
PerlMonks |
Re^2: Parrot, the future of dynamic languages ?by Anonymous Monk |
on Dec 20, 2004 at 14:42 UTC ( [id://416193]=note: print w/replies, xml ) | Need Help?? |
Well, virtual machines aren't exactly new. The JVM was succesfull long before Parrot was concieved. And that of course wasn't the only VM.
Parrot will be a "virtual assembler", which will make "assembly-style" programming cross platform. But Parrot isn't intended so programmers can write assembler! Someone reading your words would think the reason higher level languages exist is because all assembler languages are different. The main reason the assembler exists is that is makes is easier to write compilers - the compilers just have to emit assembler code, instead of having to drive the VM. Just like gcc front ends output some intermediate code, instead of a native binary. To me this is a "quantuum leap forward" in the way programmers will be able to think about data and program. No matter what architecture you are on, you will be able to visualize the cpu registers and memory to have the same structure, and write real cross platform code. Well, it's not really cross platform. In fact, the code will target only one platform: Parrot's virtual machine. Note also that the decision whether Parrot should be stack based or register based was made after the idea of having a VM. It being register based was never a target. It's just an implementation detail in the larger scope of having a VM. It is in my opinion, the first real attempt to make a coding "standard". Hello? Where have you been the decades? What about Java? What about POSIX? What about any other language that only has one implementation and doesn't delegate to platform specific libraries? You will be presented with a set of cpu-registers, and some standard variable types, like interger,numeric,string, and binary. Programming just becomes pushing the data thru the virtual registers. Ah, there you have been! In the early 1950s! Now I understand the "quantum leap". It must be a huge jump to go from "pushing data thru registers" to "pushing data thru virtual registers". It'll be a real seller! No more regexes! No more hashes! No IO-library! No devices! Just pushing data thru registers! I can hear SUN and Microsoft weep, soon noone will be using Java, C# or .NET. Everyone will just be pushing data thru registers.
In Section
Seekers of Perl Wisdom
|
|