!mIDAaHvQWPilCOvrDD:matrix.org

Physikal

10 Members
https://gitlab.com/tenkiv/software/physikal4 Servers

Load older messages


SenderMessageTime
18 May 2019
@caseystratton:matrix.orgcaseystrattoni'm guessing they're mostly working on multiplatfrom kotlin, though01:56:10
@zjuhasz:matrix.org@zjuhasz:matrix.orgWe'll see. Either way I probably won't get around to a major rewrite of Physikal for a year or so.01:57:21
@caseystratton:matrix.orgcaseystrattoni understand01:57:30
@zjuhasz:matrix.org@zjuhasz:matrix.orgNot until I'm ready to make Kuantify multiplatform01:57:38
@zjuhasz:matrix.org@zjuhasz:matrix.orgwhich is what I'm spending most of my time on at the moment01:57:54
@caseystratton:matrix.orgcaseystrattonlooks cool, but i didn't dig into it much. best of luck with it01:58:15
@zjuhasz:matrix.org@zjuhasz:matrix.orgBut I will update Physikal for Indrya 2.0 when that is out.01:58:42
@zjuhasz:matrix.org@zjuhasz:matrix.orgOf course if there is anything you want to contribute feel free, we could definetly use the help.01:59:23
@caseystratton:matrix.orgcaseystrattonUoM is such a mess under the surface that it's kinda hard to dive in. I think Indriya is adding compound units?02:00:21
@zjuhasz:matrix.org@zjuhasz:matrix.orgThere was some conversation about it even for Indrya 1.0, I kind of lost track of where that discussion went so I'm not sure that their plan is now.02:01:25
@caseystratton:matrix.orgcaseystratton i'm poking around their current build. it seems they removed the CompoundUnit class. maybe baked it in somewhere else. ah well. if i figure anything out, i'll let you guys know. thanks for being approachable. 02:03:46
@zjuhasz:matrix.org@zjuhasz:matrix.orgNo problem and I'm checking to see what happened to your missing unit. Definitely shouldn't have just dissapeared.02:05:51
@zjuhasz:matrix.org@zjuhasz:matrix.org I went back to 2.0.1.0 and it looks like there is no usage of (i.e. we had no builder for a quantity that had this unit). It's possible we didn't notice a breaking change in Java UoM when we updated our dependencies at some point and you were using KILOGRAM_PER_LITER from the UoM dependency that was modified (which is fine and how Physikal is intended to be used). I apologise if that is what happened. UoM moves very fast and it's hard to make sure we find every breaking change and give time for a proper deprecation cycle. I wasn't able to find KILOGRAM_PER_LITER in any of UoM unit systems though so I'm not sure where it could have been comming from. If you still want to track it down it might be best to ask on https://gitter.im/unitsofmeasurement/indriya 03:44:34
@zjuhasz:matrix.org@zjuhasz:matrix.org Here is one disgustingly hacky workaround for the mean time val KILOGRAM_PER_LITER = Quantities.getQuantity("1 kg/m³").getUnit().asType(Density::class.java) 04:02:30
@zjuhasz:matrix.org@zjuhasz:matrix.org as KILOGRAM_PER_LITER appears to still be registered with the unit system but just doesn't have an accessable declaration 04:03:35
@zjuhasz:matrix.org@zjuhasz:matrix.org Although I actually wasn't able to use 'KILOGRAM_PER_LITER' from a project with a dependency on 2.0.1.0 either so I may be missing something. 04:24:57
@caseystratton:matrix.orgcaseystrattonAh I see19:52:09
@caseystratton:matrix.orgcaseystratton i was poking around with it quite a bit. I think I just wanted to create another extension like val Number.g_mL get() = Quantities.getQuantity(this, KILOGRAM_PER_LITER) 19:53:28
@caseystratton:matrix.orgcaseystratton I'm not entirely certain how it all works. For example, I created my own units for money using the framework, but had to copy the QuantityDimension class because its constructor is package-private. All very hacky. 19:55:19
16 Jun 2019
@caseystratton:matrix.orgcaseystratton whatever is the point of ComparableQuantity vs just Quantity? Isn't Quantity already comparable? 04:45:59
@caseystratton:matrix.orgcaseystratton I may mean conceptually more than via implementation. Wouldn't it be better to refactor away ComparableQuantity? I commonly create typealiases for various quantities just because ComparableQuantity is quite verbose 04:49:04
@caseystratton:matrix.orgcaseystratton e.g. typealias Length = ComparableQuantity<Length> 04:49:37
18 Jun 2019
@zjuhasz:matrix.org@zjuhasz:matrix.org Unfortunatly Quantity is not Comparable so you lose some operators if you use it, I still don't fully understand why. 07:25:44
@zjuhasz:matrix.org@zjuhasz:matrix.orghttps://github.com/unitsofmeasurement/unit-api/issues/9607:25:45
24 Jun 2019
@caseystratton:matrix.orgcaseystrattoni've been working on my own units DSL / Library here if you're interested: https://github.com/Hullaballoonatic/hunitalla01:41:38
@caseystratton:matrix.orgcaseystratton
In reply to @zjuhasz:matrix.org
Unfortunatly Quantity is not Comparable so you lose some operators if you use it, I still don't fully understand why.
Yeah, I studied all the code a bunch, and the only class I ever found implementing Quantity instead of ComparableQuantity was ComparableQuantity itself.
01:46:31
@caseystratton:matrix.orgcaseystrattonI'm not porting UoM. I'm building a different one ground up01:47:20
@zjuhasz:matrix.org@zjuhasz:matrix.orgNice, are you making it multiplatform?02:12:17
@caseystratton:matrix.orgcaseystrattonI might04:52:30
@zjuhasz:matrix.org@zjuhasz:matrix.org Seems like everything you're doing could be put in the common module so it would be extremely straight forward to make it multiplatform. The only extra work you would need to be would be building all the artifacts for the different platforms but you could start only building for the jvm. 04:54:47

Show newer messages


Back to Room ListRoom Version: 1