Live data from Hacker News

Show HN: NoteCalc

github.com

71–79 of 79 posts

Re: Show HN: NoteCalc

#71
post #70

This looks amazing. Can the author explain the implementation choices? * Why WASM? * Why Canvas? From what I could see, it seems to repaint the whole canvas every frame, so I'm guessing this uses a custom implementation of immediate mode GUI.

Hi, thanks :) Why WASM: One of the primary goal of NoteCalc is to be easily accessible (e.g. it was mainly born because Soulver is MacOS only). So the browser-based client was obvious choice, and I chosed WASM for - performance reasons - to be able to use rust - to avoid as much JS (and related technologies) as possible Why Canvas: I answered here: https://github.com/bbodi/notecalc3/issues/6#issuecomment-749... In a…

Cool! Makes sense.

Any advice / learnings on using canvas from wasm for this kind of GUI stuff? If I get it right, you just implemented the editor yourself, not using any sort of widget system.

People often recommend not trying to implement editors on top of canvas because of ... reasons [1] [2], but it seems your implementation ended up being pretty simple? (at least in terms of lines of code...).

1: https://www.w3.org/TR/2dcontext/#best-practices

2: https://stackoverflow.com/questions/12425111/creating-canvas...

Re: Show HN: NoteCalc

#73

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 usabi…

A big plus for Calca is the mobile app and automatic syncing via iCloud on Apple devices.

Not sure if Soulver is newer or less “complete” than Calca, but it is being updated at lot more often. The updates for Calca are very sparse and leads me to think it’s more in a maintenance mode.

Re: Show HN: NoteCalc

#74
It sounded great, so I opened a demo page to try it out. Copied the contents of my personal savings note, and wanted to paste it into the NoteCalc to see what magic it would do. Pressed Cmd+V but it didn't paste. It just typed v intstead.

Re: Show HN: NoteCalc

#75

Earlier quoted context omitted.

I've been trying to find a similar plugin for vim. Does anyone happen to know one? In fact, I have never seen a vim plugin that add a "notation" at the end of each line like this one. Is it something very difficult in vim?

I've looked into this a bit and the closest thing I could find is in VimWiki, where certain plaintext patterns are dynamically replaced with other text without actually changing the buffer. See how line 11 dynamically changes in this video based on whether his cursor is on the line: https://youtu.be/C0OwhiCp2Hk?t=223 I believe this is done using "conceal" as JNRowe says, e.g. here: https://github.com/vimwiki/vimwiki/…

After looking into how conceal works, it doesn't look like you can use it to "annotate" a line or dynamically change the text on the screen without actually changing the contents of the buffer. It can only be used to hide some pattern of text that's already in the buffer.

I would look into using popups, a separate pane, or something like vim-notebook.

Re: Show HN: NoteCalc

#76
post #56

Nice. What I really want, though is a CLI calculator (something like bc or ipython) that would be clever enough to handle stuff like 1000!/999! (increase the number of digits if python will be able to do that: I hope you get the idea). I cannot treat seriously a calculator in 2020 that actually tries to evaluate expressions numerically, while representing numbers as floats or int32. Multiplying matrices and stuff is…

Frink! https://frinklang.org/ sounds exactly what you want. It has built in bignum support and mathematical functions. It also does units and their conversation natively.

It runs on top of the JVM so there's an Android port also. The Android app appears as two icons. One as a simple calculator and the other as a simple scripting editor for more complex requirements.

Re: Show HN: NoteCalc

#77
post #4

This is very cool! The project description says that it is inspired by Soulver [1]. A similar (but different) application for iOS is Tydlig [2] which can also generate some simple x-y plots. [1] https://soulver.app [2] http://tydligapp.com/

check-out numi app too!

https://numi.app/

Post reply on HN