Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tonyonodi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
tonyonodi
4y ago
Glad you like it! Working on the bugs today
32.
▲
by
tonyonodi
4y ago
It's something I've thought about but I'm not sure I'm going to implement it for a while as it would be quite a big undertaking. The same is true of complex numbers unfortunately.
33.
▲
by
tonyonodi
4y ago
That's a very enjoyable calculation!
34.
▲
by
tonyonodi
4y ago
Oops, didn't realise I'd left source maps in, thanks for pointing it out! Your project sounds really interesting, I'm following you on twitter now, so tweet about it if you ever finish it and hopefully I'll see. Having C
35.
▲
by
tonyonodi
4y ago
I'm very glad you asked. I wrote my own parser combinator library in TypeScript partly based on eulalie[0], so it doesn't have a separate lexer and parser and doesn't rely heavily on regexes (though it does use them to do thi
36.
▲
by
tonyonodi
4y ago
This is really cool, you're a braver person than I for tackling the English representation of numbers stuff!
37.
▲
by
tonyonodi
4y ago
Impressed you found that. I don't have anything set up to automatically update it currently, but I do have an intention to have something set up to automatically update it.
38.
▲
by
tonyonodi
4y ago
I am truly sorry
39.
▲
by
tonyonodi
4y ago
Thanks for clearing that up, I'm not distributing the source code so I think I'm good.
40.
▲
by
tonyonodi
4y ago
Both are MIT licensed, I don't think this is the case.
41.
▲
by
tonyonodi
4y ago
Yeah, that's a feature I really wanted to get out before my launch deadline but sadly it didn't make the cut. Soon though.
42.
▲
by
tonyonodi
4y ago
Yes I can, I'm busy with launch stuff today but I'll get that done soon
43.
▲
by
tonyonodi
4y ago
What's the exact calculation you're doing?
44.
▲
by
tonyonodi
4y ago
NumPad uses Decimal.js to represent numbers https://mikemcl.github.io/decimal.js/
45.
▲
by
tonyonodi
4y ago
I've avoided adding mpg because the UK and US disagree on what a gallon is and mpUKg/mpUSg is not very nice to look at. You can write "miles per gallon" or "miles per US gallon" because per is the same as the &
46.
▲
by
tonyonodi
4y ago
Nice work! I like that you're using rational numbers, I thought about going that route but decided to compromise by using Decmial.js in the end. Also really like the "Same Use Case" section in your readme. It's a good su
47.
▲
by
tonyonodi
4y ago
Some people just want to watch the world burn. No, you're right. I thought I'd prevented it from parsing numbers as variables, but apparently not. It's on my todo list now.
48.
▲
by
tonyonodi
4y ago
Thanks! I'll be implementing a sum (and mean/median/mode) function soon.
49.
▲
by
tonyonodi
4y ago
I'm sorry about that, I don't have an Android device to test on. But I'll fix that when I get hold of one.
50.
▲
by
tonyonodi
4y ago
Gosh, everyone has made one of these haven't they?
51.
▲
by
tonyonodi
4y ago
"kph" is also supported, will add support for "km/h"
52.
▲
by
tonyonodi
4y ago
Thanks for the feedback 1. "square" before a unit I probably will implement that in the future. I'm not sure why "400 m^2" isn't working for you, I've just tried it and it works as expected for me? 2. It&#
53.
▲
by
tonyonodi
4y ago
Yeah, honestly this has been annoying me too, I just haven't got around to fixing it. It's using CodeMirror 6 as the editor, the author said he deliberately made this version not "break" the default tab behaviour, which
54.
▲
by
tonyonodi
4y ago
Yeah, I'm British and I'll concede that how we write it doesn't make sense. I do intend to localise it/add options in the future. NumPad currently accepts numbers in the "9,999.9" format, which is the default i
55.
▲
by
tonyonodi
4y ago
Thanks! Turning the current language into a Turing complete one would be a huge step up in complexity and I'm not sure it will ever make sense to implement. But I have thought about adding the ability for users to define their own func
56.
▲
by
tonyonodi
4y ago
I'm just paying the standard fee for a .io, it's a far less polluted namespace than .com :)
57.
▲
by
tonyonodi
4y ago
I think that's right, isn't it?
58.
▲
by
tonyonodi
4y ago
It's on the list ;) https://numpad.io/about/
59.
▲
by
tonyonodi
4y ago
Is there anywhere else that uses "£"? I didn't feel great about having $ default to USD but it is probably what most users want. I'll probably make it location-aware and/or allow the user to decide which it defaults
60.
▲
by
tonyonodi
4y ago
This is correct, the idea is that you can type things like "6 foot 3 inches" and have it evaluate as an addition. But the example shown above is definitely a problem, I'll try to think of a work around.
More ›