Skip to main content

Re: Email proposal to the core-libs-dev@openjdk.java.net

  • From: Werner Keil < >
  • To: " " < >
  • Subject: Re: Email proposal to the
  • Date: Fri, 31 Oct 2014 22:47:35 +0100

While I appreciae the aim to try harness that, Nothing Java will ever
provide is going to fix "semantics".

You write

Quantity<Speed> x = ...;

Quantity<Time> y = ...;
Quantity<Mass> r = x.multiply(y)

with the latter not being correct.
That may well be the case, but e.g. running 10 km/h for 45 minutes could
result in mass loss of so and so many grams.
So you'd have

Quantity<Speed> x = ...;

Quantity<Time> y = ...;
Quantity<Mass> r = x.divide(y)


The SmartHomeDemo:
https://github.com/unitsofmeasurement/uom-demos/blob/master/console/se/src/main/java/tec/uom/demo/se/SmartHomeDemo.java
shows this with another real life demo.

How much Energy (KWh) does it take to heat 1000l of water from 50°C to 70°C.

In the RI the format is even more wrong (that's why formatting is the
biggest challenge but we may restrict what you can do in ME.
23333.333333333332 m³
the SE version of the console demo says:
23333.333333333332 m³·K
but both are actually Wh.

You see, the possibilities are endless, and you rarely can assume something
to be impossible.

 Werner


On Fri, Oct 31, 2014 at 9:12 PM, Otávio Gonçalves de Santana <
>
 wrote:

> Actually I used your, just I want explain better and talk we are open to
> another strategie, considering Java 9 and above.
>
> https://docs.google.com/document/d/1Xtfn3FHQK_fIjc6uI3IA70OlXpG1qdntJo0zohMyIQk/edit#
>
> I will edit it better, but feel free to edit anything.
>
>
> On Thu, Oct 30, 2014 at 7:24 AM, Martin Desruisseaux <
>  >
>  wrote:
>
>> Hello Otavio
>>
>> Le 30/10/14 16:47, Otávio Gonçalves de Santana a écrit :
>> > Thank you to explain Martin, but I don't feel comfortable when you use
>> > an API in Java SE before 1.6 to explain Generics uses. I believe you
>> > did not send the email to Core asking about the API.
>> > If you mind, I send an email explain all context? This way the core
>> > team can help us.
>> I didn't sent the email, but I fully support sending one if that can
>> help. Lets agree about the email on this mailing list first. Do we use
>> my previous draft as a starting point, or do you want to write a new one?
>>
>>     Martin
>>
>>
>
>
> --
> 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
>
>


Re: Email proposal to the

(continued)

Re: Email proposal to the

Werner Keil 10/29/2014

Re: Email proposal to the

Otávio Gonçalves de Santana 10/30/2014

Re: Email proposal to the

Werner Keil 10/30/2014

Re: Email proposal to the

Martin Desruisseaux 10/30/2014

Re: Email proposal to the

Werner Keil 10/30/2014

Re: Email proposal to the

Martin Desruisseaux 10/30/2014

Re: Email proposal to the

Werner Keil 10/30/2014

Re: Email proposal to the

Martin Desruisseaux 10/30/2014

Re: Email proposal to the

Werner Keil 10/30/2014

Re: Email proposal to the

Otávio Gonçalves de Santana 10/31/2014

Re: Email proposal to the

Werner Keil 10/31/2014

Re: Email proposal to the

Werner Keil 10/19/2014

Re: Email proposal to the

Leonardo Lima 10/19/2014

Re: Email proposal to the

Werner Keil 10/19/2014

Re: Email proposal to the

Martin Desruisseaux 10/20/2014

Re: Email proposal to the

Otávio Gonçalves de Santana 10/19/2014

Re: Email proposal to the

Werner Keil 10/19/2014

Re: Email proposal to the

Leonardo Lima 10/19/2014

Re: Email proposal to the

Werner Keil 10/20/2014

Re: Email proposal to the

Werner Keil 10/20/2014

Re: Email proposal to the

Otávio Gonçalves de Santana 10/20/2014
 
 
Close
loading
Please Confirm
Close