Live data from Hacker News

Show HN: Insect – a high-precision scientific calculator with physical units

insect.sh

161–170 of 205 posts

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#161
post #127
post #120

Earlier quoted context omitted.

I'd call them "MB (megabytes)" and "MMB" (marketing megabytes). Pretty clear.

There is already MiB (mebibytes) and MB (once actual megabytes, now what you call MMB).

Yes but that concedes the change in definition of MB, which I strongly dislike.

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#162
post #120

So "megabytes" appears to be the power-of-ten unit, which is generally not that helpful in practice. ≫ 6 megabytes to bytes 6 MB -> B = 6000000 B Assuming you're sticking with the power-of-ten unit, that means you should really grow support for the (sigh) "mebibytes" family of units; i.e., what some folks are retro-actively calling the power-of-two byte unit. ≫ 6 mebibytes to bytes 6 × mebibytes -> B Unknown identifi…

I'd call them "MB (megabytes)" and "MMB" (marketing megabytes). Pretty clear.

"M" - "Mega" is an official general purpose SI prefix approved in 1960 which always stood for a decimal multiplier. Its common usage as a binary multiplier was limited to counting units of computer memory, and is purely an approximation to allow convenient speaking of, e.g., a megabyte of RAM instead of 1.048576 megabytes of RAM. Because it reflects the natural scale of physical memory.

It is more properly referred to as "MeB" - "mebi", which became an ISO standard prefix in 2008.

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#163

I'm a little confused as to how this improves on GNU units, which seems to support far more: $ cat .units period(len) units=[m;s] 2pi*sqrt(len/gravity) ; (period/2pi)^2 * gravity $ units 2980 units, 109 prefixes, 97 nonlinear units You have: period(20cm) You want: Definition: 0.89729351 s You have: period(20cm) You want: ms * 897.29351 / 0.0011144625 You have: period(2ft) You want: ms * 1566.5419 / 0.00063834872 You…

What's the URL for that? Not everyone uses Linux. In fact, almost nobody does.

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#164
This is exactly what I've been looking for for years. A fast easy calculator that's as convenient as a physical school calculator but with familiar programming style input since computers don't have scientific calculator keys. I can do sqrt(2) much easier than Windows' calculator and it doesn't have the ridiculous attempt to copy a physical calculator's quirks like pressing equals twice to re-apply the previous operation or having an "inverse"/"2nd function" button.

Units is a bonus but really just the calculator is less frustrating than anything else I've ever seen. Google search is too unpredictable - morphing into a typical confusing 1970's style keypad design after your first calculation. I tried a couple of desktop applications and they were no better either. Come one calculator app designers - stop trying to copy a physical calculator. Those already have a terrible design and computers don't have the same constraints or freedoms as them.

Even better, it can act like a desktop Windows app simply by saving the page in Chrome! Beat that for latency, Google!

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#165
post #51
post #8

I tried to enter 3 5 which was interpreted as 3 * 5. Seems a bit risky to me :) Otherwise looks neat.

Thank you for the feedback. That is intentional. Whitespace (or even lack thereof, as in "2x") is implicit multiplication. Otherwise, you'd have to write multiplication signs everywhere: 2*sin(5*cm/(2*m))

Yes, whitespace as multiplication between number and unit or variable will be expected as multiplication but you can consider warning users about whitespace between two number literals because that could be just a typo.

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#167

This is exactly what I've been looking for for years. A fast easy calculator that's as convenient as a physical school calculator but with familiar programming style input since computers don't have scientific calculator keys. I can do sqrt(2) much easier than Windows' calculator and it doesn't have the ridiculous attempt to copy a physical calculator's quirks like pressing equals twice to re-apply the previous opera…

Frink has existed for ages.

https://frinklang.org/

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#168
Nice, though I'm still highly partial to GNU Units. In large part as it allows specifying output units, and not just for conversions.

Note: if you're on MacOS and are using the supplied 'units' utility, that is BSD, not GNU units. You're going to want to install gunits from Homebrew.

https://www.gnu.org/software/units/

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#169
post #3

This is pretty cool, it's one of the rare applications I've used where the things I've tried "just work". For example "10 kg to g", "c", "c to km s^(-1)", "c to km/s" all work intuitively. It's great it works at the command line too. Something I wish I'd had when I was studying Physics.

All of these things work in Google, btw. Google has one of the best unit conversion tools, and it's built into the search.

There are side effects.

https://i.redditmedia.com/4FDIQLPJFtaOSXIDOlj6I9lCpVYdz8O06Y...

Re: Show HN: Insect – a high-precision scientific calculator with physical units

#170
post #39

Earlier quoted context omitted.

GNU units(1)

Included on OS X, too! (though apparently a BSD version). Wow, I did not know this.

That's very much the BSD version, which is far more limited in capabilities.

GNU Units is available under homebrew (as "gunits" IIRC).

Post reply on HN