align-toparrow-leftarrow-rightbackbellblockcalendarcamerachatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditfacebookglobegoogleimagesinstagramlocation-pinmagnifying-glassmailmoremuplabelShape 3 + Rectangle 1outlookpersonplusImported LayersImported LayersImported Layersshieldstartwitteryahoo

Gary Keorkunian, on Viridity's Scala Units of Measure and Quantities API

In Gary's own words: "Over the past several months I have been working on a Scala library that Viridity will be open sourcing. The library is essentially a collection of data types that represent various types of quantities (~50) and their units of measure (~160). Use cases include type safe dimensional analysis, better domain and API modeling, anti-corruption layers and more. Building it required using the Scala type system in some interesting ways. The library is ready to be released into the wild."

If someone wants to pony up for refreshments, in exchange for a plug, let Brian Clapper know. Otherwise, Brian's company (ArdenTex, Inc.), will buy the food.

Join or login to comment.

  • Martin S.

    Gary - I finally got around to looking up the Scalaz feature that seems relevant to this. It is called "Tagged types"

    I don't know much more about it, but I'd seen in mentioned in another presentation and thought you might want to take a look.

    March 28, 2014

    • Gary K.

      Missed this when you first posted. Interesting. This could be very useful. Thanks!

      April 19, 2014

  • Gary K.

    Correction: The library I refernced is actually called Spire, not sire.

    March 31, 2014

  • Gary K.

    Martin - very interesting. I will review this.

    Also, Brian mentioned a library called sire that includes several high precision types that may be used in lieu of the underlying Double. Erik Osheim of that project added an issue to Squants to allow for this.

    I am looking at what needs to be done to replace the Double with a generic so that users can choose the underlying type.

    I think this scalaz stuff you pointed out may be useful for that.


    March 31, 2014

  • Martin S.

    Awesome. This made me wish I had the problems this solves.

    March 21, 2014

  • Duncan D.

    Great presentation!

    March 21, 2014

  • Brian C.

    Thanks, Gary, for an excellent presentation on a cool library. I'm already searching my brain for new uses for it.

    Great seeing everyone last night.

    March 21, 2014

  • Gary K.

    Thanks for coming out, everyone!

    Here's the site.

    Find links to GitHub and the API from there.

    Here's the presentation from the talk in PDF

    1 · March 21, 2014

  • A former member
    A former member

    Excellent talk and an incredibly useful library

    March 20, 2014

20 went

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy