Skip to main content

Re: Proposal

  • From: Otávio Gonçalves de Santana < >
  • To:
  • Subject: Re: Proposal
  • Date: Mon, 17 Nov 2014 00:05:22 -0200

Hi,


 I have studying the code and the ME world, I think would be cool, if we
have a hangout. I was looking to the code and I believe would be better
remove this operations (multiply, divide, invert) both Unit and Quantity.


For some reasons:



   - *It is not the JSR 275:* I believe do the same stuff that JScience
   does, no make sense.
   - *The main platform to JSR 363 is ME:* Beside we have plans to OpenJDK
   and Java SE platform, the main goal should be the ME, this way, we haven't
   features that help us such reflexion/proxy API.
   - *Too Large:* The more complex code is in this point, if we remove the
   code will more simples, so less size, about 30% lesser. Is important to
   say, space in ME is expensive.
   - *Modularity:* How the operation doesn't necessary anymore, just we
   make a factory to specific Quantity to save memory (the lazy behavior of
   the JVM just put in memory when is necessary). In ME save RAM memory is
   really critical and priority.
   - *Another focus:* Doing this way, we can work in another important
   points such extensions, get more units and quantities, object's
   serialization.
   - *Another implementations:* It is just the API, so we can make lib,
   plug-ins and frameworks that do this operations.
   - This resource hardly ever will used: The Enterprise applications, in
   general, will use to represents the model and realize simple converts.
   - *Time:* With a simple implementation will easier to finish/delivery
   the API, lib, examples, etc.
   - *Future:* If necessary, we can put it in another versions.




On Mon, Nov 3, 2014 at 6:53 AM, Werner Keil 
< >
 wrote:

> Yep, or cast. For known SI Standard operations, asType() seems best, but
> you may always do an explicit cast if you prefer[?]
>
>  Werner
>
>
>
>
> On Mon, Nov 3, 2014 at 2:53 AM, Martin Desruisseaux <
>  >
>  wrote:
>
>>  Correction (forgot the final call to asType in my example):
>>
>> Le 03/11/14 10:49, Martin Desruisseaux a écrit :
>>
>>  Quantity<Force> f = mass.multiply(speed).divide(time).asType(Force.class);
>>
>>
>>
>


-- 
Otávio Gonçalves de Santana

blog:     http://otaviosantana.blogspot.com.br/
twitter: http://twitter.com/otaviojava
site:     *http://about.me/otaviojava ;<http://about.me/otaviojava>*
55 (11) 98255-3513

GIF image



Re: Proposal

(continued)

Re: Proposal

Werner Keil 11/02/2014

Re: Proposal

Jean-Marie Dautelle 11/02/2014

Re: Proposal

Otávio Gonçalves de Santana 11/02/2014

Re: Proposal

Werner Keil 11/02/2014

Re: Proposal

Otávio Gonçalves de Santana 11/03/2014

Re: Proposal

Otávio Gonçalves de Santana 11/03/2014

Re: Proposal

Martin Desruisseaux 11/03/2014

Re: Proposal

Martin Desruisseaux 11/03/2014

Re: Proposal

Martin Desruisseaux 11/03/2014

Re: Proposal

Werner Keil 11/03/2014

Re: Proposal

Otávio Gonçalves de Santana 11/17/2014

Re: Proposal

Martin Desruisseaux 11/17/2014

Re: Proposal

Werner Keil 11/17/2014

Re: Proposal

Otávio Gonçalves de Santana 11/17/2014

Re: Proposal

Werner Keil 11/17/2014

Re: Proposal

Otávio Gonçalves de Santana 11/17/2014

Re: Proposal

Werner Keil 11/17/2014

Re: Proposal

Otávio Gonçalves de Santana 11/17/2014

Re: Proposal

Werner Keil 11/17/2014
 
 
Close
loading
Please Confirm
Close