Live data from Hacker News

Show HN: I made a web-based notepad with a built in unit calculator

numpad.io

181–190 of 246 posts

Re: Show HN: I made a web-based notepad with a built in unit calculator

#183

THIS IS AMAZING. the next step is adding variables and assignments and conditionals, and you have something very powerful that can be used by just about anybody to do really interesting things. provided you have a way to integrate with other services that a lot of people use

Variables and assignments are already supported.

should rephrase, meant to say (variables, assignments) AND conditionals

Re: Show HN: I made a web-based notepad with a built in unit calculator

#184

THIS IS AMAZING. the next step is adding variables and assignments and conditionals, and you have something very powerful that can be used by just about anybody to do really interesting things. provided you have a way to integrate with other services that a lot of people use

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 functions in JS and might get around to that one day.

I see. despite my not totally unjustified hate of Javascript, Im looking forward to it.

Re: Show HN: I made a web-based notepad with a built in unit calculator

#185

Earlier quoted context omitted.

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.

Ha, yes, I was being nosy. It was quite easy to spot as it's the only XHR/Fetch request. I was intrigued what you had used to build it, and if you had built your own solver (which you have), and what editor you used (Code Mirror) so went looking at the code. Interesting to see you left the source maps for production, made it easy for my sleuthing... I experimented with a similar idea last year, but used ProseMirror/T…

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 CRDT-based syncing/collaboration is a direction I'd like to take NumPad in eventually, and if I have time. But I definitely think that ignoring that part completely has allowed me to get it to an MVP state.

Re: Show HN: I made a web-based notepad with a built in unit calculator

#186
post #173
post #149

Earlier quoted context omitted.

Didn't tell me how much 8 gills[1] would be in liters (about 1) [1] https://en.wikipedia.org/wiki/Gill_(unit)

I was disappointed it couldn't convert "1 furlong / 1 fortnight in mph", but this was successful: > 14 furlongs / 2 weeks in mph [0.0052083333 mph]

That's a very enjoyable calculation!

Re: Show HN: I made a web-based notepad with a built in unit calculator

#187

Very cool! Any plans to support vector/matrix operations? I occasionally do some work with 2D/3D graphics or physics and having some basic linalg would be nice. I can see myself using this a lot as a scratch pad to hash out ideas while implementing stuff. The ability to define custom functions would be very helpful for that.

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.

Re: Show HN: I made a web-based notepad with a built in unit calculator

#189
post #57

This looks pretty cool. I've long been looking for something similar to Soulver ( https://soulver.app/ ) that I can use on Linux. This seems promising. One small criticism: In my opinion, no web-based writing app is useful unless the tab key inserts a tab. The default behavior of most browsers to move focus to the next field is tremendously infuriating in this context. Unfortunately, that's what happens here, at leas…

While I tend to agree, this can break accessibility. The official WAI-ARIA authoring practices recommend Control+M. https://www.w3.org/WAI/ARIA/apg/

There should likely be an explicit override of accessibility so the visitor knows what they're getting into.

Post reply on HN