Swiftier implementation of Measurement and Unit


(Joanna Carter) #1

I have spent some time working on a version of the Measurement and Unit held in the apple/swift-corelibs-foundation section of GitHub. How can I best find out if my efforts are worthwhile?

Joanna


(Dave Abrahams) #2

I'm not sure how useful this is, because it's not really a comment on
your efforts, but... some of us think we know how this problem domain
*should* be addressed, and we know that Swift doesn't yet have the
necessary language facilities (integer generic parameters) to do the job
right. The technique was described back in 1994 by Barton & Nackman in
https://www.amazon.com/Scientific-Engineering-Introduction-Advanced-Techniques/dp/0201533936

HTH,

···

on Wed Aug 10 2016, Joanna Carter <swift-evolution@swift.org> wrote:

I have spent some time working on a version of the Measurement and
Unit held in the apple/swift-corelibs-foundation section of
GitHub. How can I best find out if my efforts are worthwhile?

--
-Dave


(Xiaodi Wu) #3

Probably swift-corelibs-dev would be the forum for that? IIUC correctly,
though, the current goal for corelibs-foundation is to vend the exact same
API as Apple Foundation. I'd also be curious as to when it would be
appropriate to start exploring Swiftier implementations.

···

On Wed, Aug 10, 2016 at 3:59 PM, Joanna Carter via swift-evolution < swift-evolution@swift.org> wrote:

I have spent some time working on a version of the Measurement and Unit
held in the apple/swift-corelibs-foundation section of GitHub. How can I
best find out if my efforts are worthwhile?

Joanna
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution


(Silvan Mosberger) #4

I do have a small (WIP) framework for working with units and measurement, which I think has he basic idea right. Here is the link for anyone interested https://github.com/Infinisil/SwiftUnits/blob/master/README.md

···

On 11 Aug 2016, at 00:51, Xiaodi Wu via swift-evolution <swift-evolution@swift.org> wrote:

Probably swift-corelibs-dev would be the forum for that? IIUC correctly, though, the current goal for corelibs-foundation is to vend the exact same API as Apple Foundation. I'd also be curious as to when it would be appropriate to start exploring Swiftier implementations.

On Wed, Aug 10, 2016 at 3:59 PM, Joanna Carter via swift-evolution <swift-evolution@swift.org> wrote:
I have spent some time working on a version of the Measurement and Unit held in the apple/swift-corelibs-foundation section of GitHub. How can I best find out if my efforts are worthwhile?

Joanna
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution


(Karl) #5

I think that deadline may have already passed with the new value-type API in Swift 3.

There are some parts that haven’t been brought over - such as NSRegularExpresion, because I believe the plan is to do something special with those.

Karl

···

On 11 Aug 2016, at 00:51, Xiaodi Wu via swift-evolution <swift-evolution@swift.org> wrote:

Probably swift-corelibs-dev would be the forum for that? IIUC correctly, though, the current goal for corelibs-foundation is to vend the exact same API as Apple Foundation. I'd also be curious as to when it would be appropriate to start exploring Swiftier implementations.

On Wed, Aug 10, 2016 at 3:59 PM, Joanna Carter via swift-evolution <swift-evolution@swift.org <mailto:swift-evolution@swift.org>> wrote:
I have spent some time working on a version of the Measurement and Unit held in the apple/swift-corelibs-foundation section of GitHub. How can I best find out if my efforts are worthwhile?

Joanna
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org <mailto:swift-evolution@swift.org>
https://lists.swift.org/mailman/listinfo/swift-evolution

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution