Live data from Hacker News

Show HN: NoteCalc

github.com

11–20 of 79 posts

Re: Show HN: NoteCalc

#13
Wow, so this is rust compiled to JS? Or I guess WASM which is a subset of JS? Is this the future of the web?

Also I noticed the base64/deflate URL fragment storing the entire text content, à la flems.io ... nice!

Re: Show HN: NoteCalc

#18
Love this, but the lack of interpretation of prefixed currency symbols is absolutely maddening! That it simply ignores the number and operand with no indication that these elements are ignored could easily lead to problems. I don't think I could in good conscience trust myself or those I might consider to be the target audience of this app to notice parsing errors in every case. Consider:

"$400 / 20" => 20 (ERROR)

"$400 / 25" => 25 (ERROR)

"400$ / 20" => 20 $ (OK)

"400$ / 25" => 16 $ (OK)

Re: Show HN: NoteCalc

#19
post #2

Great work. Is there a Terminal UI for this? Many users love to have simple programs in the Terminal itself.

Hi, Not yet, it is on my list, but unfortunately with a low priority.

But fortunately, the whole architecture was designed with the terminal in mind: - 99% of the functionalty is implemented as a lib, and just a tiny part is responsible for input and rendering, so it is very easy to write new frontend for it. - both the rendering and the input uses characters as a basic for coordinates, so it is easy to translate the render commands generated by the lib to the terminal.

Re: Show HN: NoteCalc

#20
Very nice, reminds me of "literate programming": https://en.wikipedia.org/wiki/Literate_programming

In a similar vein - a few years ago I built an open source REPL calculator called LastCalc (http://lastcalc.org/), which supports some advanced ideas from functional programming including pattern matching.

Post reply on HN