Erlang/OTP Forums

Author Message

<  Erlang patches mailing list  ~  Serge's ei float patch

Guest
Posted: Tue Jun 01, 2010 1:04 pm Reply with quote
Guest
On 2010-06-01 09:06, Steve Vinoski wrote:
> I've pushed an amended commit to github that I believe addresses all
> your suggestions:
>
> git fetch git://github.com/vinoski/otp.git serge_new_float_ext
>
> Thanks to your feedback, I found a number of other places that needed
> attention as part of this patch. If you could take another careful
> look at the new changes, that would be good.

Oops. I forgot something. (And yet again erl_interface is faced with a
problem). ei_get_type exposes the internal representation (external
format) of types. This is a problem. Earlier implementation had its own
types ... which seemingly was a bad idea ...

Angels are crying for suggesting this but, what do you think of letting
get_type return ERL_FLOAT_EXT for both ERL_FLOAT_EXT and NEW_FLOAT_EXT?

My aim is to remove the necessity for changing original source code
dependent on erl_interface, if that is at all possible.

What do you think?

Hmm, actually this is somewhat more serious then I first thought. I need
to talk it over with my team.

> I reinstated these tests and modified them to match the style of other
> tests in the same suite. I also found that match_float could
> incorrectly fail when dealing with the float value 0.0 so I augmented
> it with another function clause that allows for simple equality.

Great!

// Bj
Guest
Posted: Tue Jun 01, 2010 1:16 pm Reply with quote
Guest
2010/6/1 Bj
Guest
Posted: Tue Jun 01, 2010 1:17 pm Reply with quote
Guest
2010/6/1 Bj
Guest
Posted: Tue Jun 01, 2010 2:40 pm Reply with quote
Guest
On 6/1/2010 9:00 AM, Bj
Guest
Posted: Tue Jun 01, 2010 2:41 pm Reply with quote
Guest
On 6/1/2010 9:00 AM, Bj

Display posts from previous:  

All times are GMT
Page 2 of 2
Goto page Previous  1, 2
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum