Readit News logoReadit News
naiquevin commented on Automerge 3.0   automerge.org/blog/autome... · Posted by u/surprisetalk
ChadNauseam · 7 months ago
I have a question about Automerge that maybe someone here can answer. I have a lot of code written for some custom CRDTs I've made. (This handles syncing them with my server and between devices and so on.) My data model is that each device gets a unique ID, and then can share "events" which must be sequential for a given ID. The events from all the different devices are then collected and replayed. I'm curious if it would be possible to fit automerge to this framework? All I would need is an `apply` function that takes an event and a document and produces a new document. (I assume I would miss out on the super-efficient compressed representation described in this article, but I'm curious)
naiquevin · 7 months ago
I’m also interested in this. I have a similar use case, to implement “cross device sync” functionality for a local-only webapp. I tried out automerge but it felt like it’s meant for syncing data when multiple users collaborate, and not data sync for a single user who is expected to use only one device at a time (I could be wrong about this).

I have implemented a POC sync mechanism via central server and I believe it’s simpler as it takes advantage of certain assumptions about the app. I’ve yet to productionize it so I am interested in knowing if my understanding is correct or if there are other existing solutions for this use case.

naiquevin commented on Ask HN: What are you working on? (July 2025)    · Posted by u/david927
bArray · 7 months ago
I would go further with this, essentially matching patterns of files in certain directories. Another use case for example is removing old log files from a directory.

In any case, I would have it as a user option to carry through the action, i.e. "the following is scheduled for deletion saving X disk space, do you wish to continue?".

naiquevin · 7 months ago
Yeah, a generic tool could be useful. Thanks for replying. It gave me some ideas!
naiquevin commented on Ask HN: What are you working on? (July 2025)    · Posted by u/david927
naiquevin · 7 months ago
I've been building a desktop app on the side that addresses the problem of screenshots getting accumulated on disk over a period of time. It provides an alternate workflow for capturing screenshots, where the app let's the user select tags before taking the screenshot. Tags can be associated with actions such as "move to trash after 1 day", "delete after 7 days" or "store in /specific/location".

I have got the main functionality working and I've been using it myself in a crude way (using sqlite client directly for data entry etc.) for about a week. It was not meant to be a serious project to begin with - I just wanted to build something to evaluate Tauri for desktop apps. I am still not 100% convinced if such a tool is worth building, so the code hasn't been published anywhere. Do you care enough about "screenshots management and cleanup" to use something like this?

naiquevin commented on Checklists are hard, but still a good thing   utcc.utoronto.ca/~cks/spa... · Posted by u/zdw
hermitcrab · 8 months ago
I find checklists invaluable for running my software product business.

But any checklist needs to be a living document that has is easily updated and under version control.

Personally, I used MyLifeOrganized documents stored in Subversion.

naiquevin · 8 months ago
Same here. I use checklists heavily for my projects.

I write them in (emacs) org mode in a way that I can “execute” them repeatedly. Have written about it: https://www.naiquev.in/recurring-checklists-using-org-mode-i...

naiquevin commented on Git Notes: Git's coolest, most unloved­ feature (2022)   tylercipriani.com/blog/20... · Posted by u/Delgan
angus-g · 9 months ago
How does Gerrit manage this? Are the comments associated with the source content, instead of commits?
naiquevin · 9 months ago
Gerrit uses a “Change-Id” trailer with a unique value. When you “fix up” a commit, the commit SHA changes but the change id remains the same. That’s how it can identify different commits with the same change id as patchsets of the same change.

This is based on what I remember (haven’t used gerrit in a while), so it may not be accurate.

I used gerrit in my previous job and miss using it. Would definitely prefer it over GitHub which is more popular (and convenient of course, can’t deny that).

naiquevin commented on A deliberate practice app for guitar players who want to level up   captrice.io/... · Posted by u/adityaathalye
SethMurphy · a year ago
Recording and watching or listening to myself play has been very helpful for me. Even a temporary recording of just the current session, or most recent n minutes/beats would be nice. It's hard to evaluate execution in real time while performing it. To get it right as a user experience is not a simple task though. However, your great minimal feature set could also be seen as a plus to drive the practice routine efficiently no matter the quality, you'll get better too.
naiquevin · a year ago
Agree about recording and listening to it. I also do it sometimes. My concern about implementing the record/playback functionality is that it may introduce a bunch of complexity considering it's a web app (permissions to record mic, browser compatibility etc, limits on local storage etc.).
naiquevin commented on A deliberate practice app for guitar players who want to level up   captrice.io/... · Posted by u/adityaathalye
naiquevin · a year ago
I haven’t tried using it for bass guitar but I believe it should just work? I assume you want tabs for bass guitar. Alphatab, the tablature editor supports bass guitar and other stringed instruments too. I guess it even supports notation for drums/percussion.

For that matter, I think the app should work for practicing any instrument that can be practiced with a metronome if you ignore tablature (which is only for reference anyway).

For now I want focus on guitar as that’s my primary use case but I’d love to extend it for other instruments in future.

naiquevin · a year ago
I am going through the alphatex docs in more detail and looks like other stringed instruments and even piano are already supported.

Check this for bass guitar - https://alphatab.net/docs/alphatex/metadata#tuning

Check the example here for piano - https://alphatab.net/docs/alphatex/notes/#multiple-voices

naiquevin commented on A deliberate practice app for guitar players who want to level up   captrice.io/... · Posted by u/adityaathalye
TehShrike · a year ago
Any plans to add an option to render the tablature for bass guitar?
naiquevin · a year ago
Looks like it's already supported in Alphatex - https://alphatab.net/docs/alphatex/metadata#tuning. You will need to specify the following metadata in the tab editor

\tuning G2 D2 A1 E1 B0

naiquevin commented on A deliberate practice app for guitar players who want to level up   captrice.io/... · Posted by u/adityaathalye
pc86 · a year ago
I think the "Why?" link on the warning not to edit library imports just goes to #
naiquevin · a year ago
If any one's looking for the answer to why it's not recommended to edit library imports - when you import collections from the library, you can receive updates whenever the collection author publishes a new version. These updates might include new exercises or improvements to existing ones. However, if you've made your own modifications to the collection, these personal changes will be overwritten when you update to the newer version.

It's mentioned on the faqs page - https://www.captrice.io/user-guide/faqs.html. Missed updating the link. Will push a fix shortly.

naiquevin commented on A deliberate practice app for guitar players who want to level up   captrice.io/... · Posted by u/adityaathalye
emacsen · a year ago
This looks super cool, and very similar to a need I have, except I'm not learning the guitar.

I'm learning my first (serious) instrument and I've decided on the lyre, since it's similar to other string instruments (guitar, ukulele, traditional harp) but a bit easier.

Will you support other instruments for lessons, other than the guitar?

naiquevin · a year ago
I am going through the alphatex documentation in more detail and chances are that any stringed instrument could already be supported. Checkout the tuning section - https://alphatab.net/docs/alphatex/metadata#tuning.

It might even work for piano as well, there's an example here - https://alphatab.net/docs/alphatex/notes/#multiple-voices

u/naiquevin

KarmaCake day221September 12, 2011
About
https://www.naiquev.in/
View Original