Live data from Hacker News

Show HN: I created Units Converter that contains 5000 units across 78 categories

kodytools.com

81–90 of 137 posts

Re: Show HN: I created Units Converter that contains 5000 units across 78 categories

#81
post #75

Earlier quoted context omitted.

Are US teaspoons actually a different size to UK ones, or just the volume measurements?

1 US teaspoon is about 14.8 ml 1 UK teaspoon is about 17.8 ml. It goes on: 1 US gallon is about 0.83 imperial gallons

[deleted]

Re: Show HN: I created Units Converter that contains 5000 units across 78 categories

#82
post #3

Appreciate the effort you put into this. In terms of user flow, I typically need one or two of these use cases at a time. In that case, I just type my conversion into a search engine like Google, and often use their default box. Can you share what types of use cases you've seen people use KodyTools for?

I agree with you. There's clearly been a lot of work put into this but it's sooooo busy that I find it unpleasant to use. For me, a different UI could fix the problem. Give me a field where I can ask directly "how many cups are in 4.37 cubic meters?" As it stands now, I can get the answer from any search engine or voice assistant more quickly than from this site.

Think it's designed more for SEO than usability.

Re: Show HN: I created Units Converter that contains 5000 units across 78 categories

#83

Has anyone found a more elegant treatment of calculating with units than the HP calculators? I'd love to have an HP48 CLI to do unit calcs with. .5 * 10_m/s^2 * (15_s)^2 = 1125_m Admittedly, the HPs interim results are a bit of a mess: sqrt(6.673E-11_N*m^2/kg^2 * 5.98E24_kg / 6780_km) = 242603.08_N^.5*m/(kg^.5*km^.5) But, this converts cleanly to m/s: 7671.8m/s Everything else I've found have been just super fiddly.

Give https://numpad.io/ a try. It's not a CLI though.

Re: Show HN: I created Units Converter that contains 5000 units across 78 categories

#85

Earlier quoted context omitted.

I couldn't find a way of converting from US teaspoons to cubic light-seconds, which is my favorite demo of the GNU utility. Also, do you have a way of adding a time dimension to the conversions? E.g from kibibytes per day to megabits per second?

Are US teaspoons actually a different size to UK ones, or just the volume measurements?

Teaspoons aren't particularly common in the US. If you do need to stir a beverage or add sugar, you typically use a tablespoon.

Re: Show HN: I created Units Converter that contains 5000 units across 78 categories

#86
I wanted to put in a plug for my employer's open-sourced C++ units framework, called Au: https://github.com/aurora-opensource/au

The library incorporates dimensional units into the C++ type system with an emphasis on correctness (including considerations for overflow, rounding, loss of precision, etc) and minimal runtime overhead.

As a very simple example of what using this library could look like, here is a tiny code snippet taken from one of the tutorials:

  constexpr double speed_mph = 65.0;
  constexpr double speed_mps = (miles / hour)(speed_mph).in(meters / second);
In a larger program, of course, the whole point is to avoid using naked "doubles" (or floats or ints, etc) at all, and instead use the library's "Quantity" types, which encode information about their units. Conversions are done automatically, and incompatible operations become compile-time errors.

  const auto time = hours(1.0)
  const auto distance = miles(65.0)
  
  const auto average_speed = distance/time;
The tutorials are a nice way to be introduced to the library: https://aurora-opensource.github.io/au/tutorial/

From a user's point of view (I am a physicist by training), I find the library wonderfully unobtrusive and "natural" to use.

Re: Show HN: I created Units Converter that contains 5000 units across 78 categories

#87
post #62

I got into Qalculate! last year and I haven't found any units in my day to day work as an engineer that weren't built in. Unit conversion is good but the bundling of it with more of the math equation is the ultimate usability win for me. https://qalculate.github.io/

I also use this. Units are type checking for equations. Qalculate lets you enter the unit for all your known quantities, and tells you the unit for your result. If you don't get the expected unit you know you did something wrong.

Re: Show HN: I created Units Converter that contains 5000 units across 78 categories

#88

Ooh, this should be very useful when reading article written by American journalists.

Doubtful since those usually use vague analogies to stadiums, pickup trucks and guns.

If you already have 5,800 units what's the harm of adding "typical refrigerator (volume)", "typical washing machine (volume)", "American football field (area)", etc...?

Re: Show HN: I created Units Converter that contains 5000 units across 78 categories

#89
post #55
post #48

Earlier quoted context omitted.

The editorial on Hz is particularly funny and insightful. // Beware the SI's broken definition // of Hz. You should treat the radian as being correct, as a fundamental // dimensionless property of the universe that falls out of pure math like // the Taylor series for sin[x], and you should treat the Hz as being a // fundamental property of incompetence by committee. ... // You are perfectly right. You are perfectly w…

I don't find this rambling insightful at all. Here is what the BIPM actually says about the topic: The SI unit of frequency is hertz, the SI unit of angular velocity and angular frequency is radian per second, and the SI unit of activity is becquerel, implying counts per second. Although it is formally correct to write all three of these units as the reciprocal second, the use of the different names emphasizes the di…

Right, you can explain it but that doesn’t make it elegant. This is the equivalent of a function with a comment in it saying “Here be dragons!”.

One very desirable property of a units system is that incompatible quantities have incompatible units. So if I try to add 1 Joule (== 1 kg⋅m^2⋅s^−2) to 1 meter, I’m obviously doing something wrong and I just can’t continue.

But in SI I can take 1 Hertz (==1 s^-1) and add it to 1 radian/second (== 1 s^-1) and SI says sure, that’s 2 s^-1. But it’s not, that’s a totally unphysical thing to do and the answer is nonsense.

Re: Show HN: I created Units Converter that contains 5000 units across 78 categories

#90

Earlier quoted context omitted.

Are US teaspoons actually a different size to UK ones, or just the volume measurements?

Teaspoons aren't particularly common in the US. If you do need to stir a beverage or add sugar, you typically use a tablespoon.

Seems like a weird statement. As someone who cooks and bakes, I use teaspoons all the time. Teaspoons for certain spices and seasonings are extremely common in recipes
Post reply on HN