Hi Dain

I use exceptions to handle non local returns in ST which are not 
exceptional ( happen alot).
I did a quick look at the timing and the throw/catch was not slow.

I believe John Rose has a blog entry on it

mark



From:   Dain Sundstrom <d...@iq80.com>
To:     Da Vinci Machine Project <mlvm-dev@openjdk.java.net>
Date:   07/07/2012 10:10 AM
Subject:        Re: TaggedArrays (Proposal)
Sent by:        mlvm-dev-boun...@openjdk.java.net



On Jul 7, 2012, at 1:56 AM, Rémi Forax wrote:

> You have also to figure out how to get two return values from a method 
call,
> but exceptions are your best friend here.

Can you give an example of what you mean here?  Also, from all the 
presentations I've seen on the JVM, exceptions are very expensive to throw 
and catch, so I would expect this to be way slower then say returning the 
multiple values using a generated results class.

-dain
_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to