Live data from Hacker News

Show HN: NoteCalc

github.com

31–40 of 79 posts

Re: Show HN: NoteCalc

#31

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!

Yeah it's Rust to WASM with JS for the startup.

Re: Show HN: NoteCalc

#33
post #25
post #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) "$…

In your case syntax highlighting helps. Everything which is not part of a calculation is rendered as a simple text (greyish): [image]( https://trello-attachments.s3.amazonaws.com/558a94779b3b3c5d... ) But yes I admit it takes some time to get used to the colors and their meanings. Currencies and exchange between them are on my feature list btw.

Awesome; this is great to hear.

An idea you might consider is to display some kind of warning symbol or message if the input contains digits or operands which are not interpreted as part of the calculation that produces the output. This would have made the semantic meaning of the syntax highlighting immediately more evident.

Re: Show HN: NoteCalc

#34
For those using note-taking apps, I've found that OneNote has a similar very useful feature. If you type 1+2= into a note and then press the space bar, it'll insert the answer. It can understand thousand separators and large expressions with brackets etc.

Re: Show HN: NoteCalc

#36

This looks great! The README says: > Honestly, it just tries to be a free Soulver alternative in your browser. For people on macOS, Soulver is excellent and worth checking out: https://soulver.app . I almost always have a Soulver window open on my screen.

Just wanted to also drop a recommendation for soulver, but I have been split between it and Calca (http://calca.io/) which I think is _also_ worth checking out, if you like this kind of hybrid notes/calculator like interface.

The ultimate interface _for me_ would be somewhere in between Calca (which I think has superior support for functions/graphing/logical calculations) and Soulver (which I think has better usability/readability) and a graph-based note-taking system like Obsidian/Zettlr. I'm sure somebody will say "there is a Vim plugin that'll do that" but… yea.

Re: Show HN: NoteCalc

#37
post #23
post #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) "$…

Your comment made me realize that most unit notation I'm familiar with has the unit as a suffix, with currency being the only standout that comes to mind.

Binary, ocatal and hexidecimal literals often are indicated with prefixes: 0b, 0 and 0x respectively. There are probably other esoteric cases that I can't think of off the top of my head. "Qty" is often prefixed, for instance. It's a complicated problem for a natural language calculator, to be sure. Here are a couple examples of ways to represent four thousand Canadian dollars that you might encounter and have no trouble interpreting as a human. This could be a good target for an ML tokenizer...

-$4000CAD

CA$-4,000.00

4.000,00CAD$

Re: Show HN: NoteCalc

#38
This is really cool. I am always in Org mode which lets you do "literate" programming as well. I think NoteCalc is a little more streamlined, but I am very used to throwing a little Python or elisp into my notes when I need to do math. Great to see more options on this front. Org-babel is a nice package, though it does have some limitations.

Re: Show HN: NoteCalc

#39
Very nice. I end up using google search more frequently for simple calcs and have been wanting something to take that to another level but not as far as a full blown Juypter notebook.

This could fit that sweetspot for me and others I imagine.

Post reply on HN