Hi,

On Fri, Feb 24, 2012 at 4:26 PM, Yves Jaradin <yves.jara...@uclouvain.be>wrote:

> If you did read this far, you are probably quite interested in the new VM
> and I have more good news. There is plenty of low-hanging-fruit tasks :
> - Basic arithmetic operations on small integers (we have addition but no
> others)
> - unit type (we have booleans but not unit)
> - Comparison of integers and atoms
> - Floating points (Stewart might have started something there)
> - Arrays
> - ...
>

What about strings?  I hope we will finally switch to unicode and give up
the list of integers representation.  I suggest to define an explicit type
for (unicode) characters, and a specific (compact) implementation for
strings.  Using atoms might also be a good option for representing
characters.  Converting (implicitly or explicitly) between strings and list
of characters should be the way to go, in my opinion.

The following things are probably not good to start with (but I hope you'll
> all become new VM gurus soon):
> - Records (because of arities)
> - Unification
> - Spaces and Logic/Constraint Programming
> - Distribution
>

My advice: avoid early optimizations of variables.  This was the major
source of bugs in the former VM, and it made maintenance and evolution
extremely difficult.

For the latter, it would be nice to have Oz ports as the only entity with
native distribution support.  One could have a mechanism to "delegate" any
entity operation to another entity (an Oz procedure or object, for
instance), and the latter would implement all necessary protocols for full
distribution.  Distributed operations are few: read, write, send, bind,
update.  The remaining bit is the marshaling and distributed garbage
collection.  This could leverage existing work on distribution: one could
implement a DHT system only with ports only, and define the distribution
layer on top of it, all in Oz!

Cheers,
Raphael
_________________________________________________________________________________
mozart-hackers mailing list                           
mozart-hackers@mozart-oz.org      
http://www.mozart-oz.org/mailman/listinfo/mozart-hackers

Reply via email to