Readit News logoReadit News
stockkid commented on Show HN: Tru – An Esoteric Language with Brackets   github.com/sungwoncho/tru... · Posted by u/stockkid
stockkid · 5 years ago
Hi everyone, I wanted to share a language I made that only uses a series of bracket characters. All operations are prefix-free, meaning one can follow another without ambiguity.

The following program prints "Hello, world!"

  (0)(10)(33)(100)(108)(114)(111)(119)(32)(44)(111)(108)(108)(101)(72)>><<[<><>><<>><<]>>><<
The following prints 25th Fibonacci number:

  (1)(25)(1)><>(1)(0)><>(1)>>>>>><<[(0)><>(1)>>>>>><<[>><>(1)><>>><<(0)><>>>><>(1)><><<<>><>>>><>(0)><>>><>(1)>>>>>><<](0)](1)><><><>><>>>><<

stockkid commented on Ask HN: Top Coursera Courses?    · Posted by u/joshlk
GekkePrutser · 5 years ago
+1 for this... Really good. Did it years ago and it was all very clear to me.

However as I don't use this in daily life I pretty much lost all the knowledge again :)

stockkid · 5 years ago
Same. Having finished the course years ago, I remember most vividly the following: never implement your own crypto. Not many details survived the time but it was intellectually rewarding.
stockkid commented on Ask HN: What is the best money you have spent on software?    · Posted by u/jilles
scott31 · 5 years ago
A donation to GNU project was the best money I spent on software
stockkid · 5 years ago
Interesting point. While I sympathize with the cause, I personally wouldn't find it the best money spent, had I donated, because it is impossible to measure the impact of the money spent.
stockkid commented on Ask HN: How do you manage your plain text notes    · Posted by u/gofreddygo
thelastname · 5 years ago
That's nice, but it would be awesome to be able to synchronize plain text files using rclone/syncthing - without using dedicated server.
stockkid · 5 years ago
Thanks for the compliment. It is possible to use any other methods to synchronize notes because Dnote stores everything in a single SQLite file. The dedicated server becomes useful for providing a web interface and API access to the notes.
stockkid commented on Ask HN: How do you find new music?    · Posted by u/11001100
stockkid · 5 years ago
For me, Spotify's personalized recommendations (e.g. discover weekly, release radar) have been quite consistent in quality.
stockkid commented on Ask HN: How do you manage your plain text notes    · Posted by u/gofreddygo
gofreddygo · 5 years ago
Dnote looks interesting. I don't quite get how it addresses searching and listing notes on the phone.

I add "topic:...", "date:..." and "keyword:" lines in each file, grep through the files to list all topics or sort by topic and group notes by topic/keyword. I also keep the date I started the note in the filename itself.

I just need a good way to search through them on my phone.

stockkid · 5 years ago
Adding lines such as "topic:..." sounds like a very useful and low key solution. I might start trying that. Thanks.

You can use Dnote web app on the phone to do full text search and list notes by book. You can also install the website as a progressive web app for usability.

On the downside, using this web interface subjects users to a third party system (albeit open source) and forces them to give up the autonomy that they enjoy by simply using plaintext files.

stockkid commented on Ask HN: How do you manage your plain text notes    · Posted by u/gofreddygo
stockkid · 5 years ago
> I tag each text file with topic, date and context keywords.

Nice idea. How are you doing that? Also, do you version control your notes?

> What does not work great is on the phone

I maintain an open source project called Dnote (https://github.com/dnote/dnote) which solves this problem for you. It's basically a command line notebook using SQLite + a mobile friendly web interface to which you can sync your notes.

Agree with you that we should avoid being locked into a proprietary formats or platforms. Businesses and platforms come and go, but our notes should stay as readily accessible as possible.

u/stockkid

KarmaCake day1470October 22, 2014View Original