Posts by abnv@fantastic.earth
(DIR) Post #AVpWfYOR19u9ygcd4y by abnv@fantastic.earth
2023-05-20T00:54:12Z
0 likes, 0 repeats
@shakil_tcs Yes, of course. To do that you can copy the URL of any Mastodon post and put it in the search field of your instance's UI. That should show you the post within your UI and then you can interact with it, including commenting.There are browser extensions to automate this process. The one I use for Firefox is FediAct: https://addons.mozilla.org/en-US/firefox/addon/fediact/
(DIR) Post #AWRjCeMGtUZUCrvQ2K by abnv@fantastic.earth
2023-06-07T06:15:12Z
1 likes, 0 repeats
I ported @mattmight’s CPS conversion code (https://matt.might.net/articles/cps-conversion/) to #Haskell and after some fighting with the type system, it worked! To make the interpreters work with the Cont monad, I had to remove recursive lets and hence, functions being able to call themselves recursively, but the rest works fine.The attached images show the conversion of the Fibonacci function into the CPS version.#Programming #ProgramingLanguages #Compilers #PLT
(DIR) Post #AWRjChjQLrsEfXmS2a by abnv@fantastic.earth
2023-06-07T10:39:13Z
0 likes, 0 repeats
`call/cc` conversion works as well! I must say, it is somewhat magical to me.#Programming #ProgramingLanguages #Compilers #PLT
(DIR) Post #AWS74PrJJffnox3AJc by abnv@fantastic.earth
2023-06-03T16:14:10Z
1 likes, 0 repeats
I wrote the fourth part of my #blog series “Implementing Co, a small programming language with coroutines”. And this time, we add support for channels in Co for inter-coroutine communication. https://abhinavsarkar.net/posts/implementing-co-4/#Programming #PLT #ProgramingLanguages #Compilers #Haskell #concurrency
(DIR) Post #AYmbmsfimL9z43fnTE by abnv@fantastic.earth
2023-08-16T05:42:38Z
0 likes, 0 repeats
Now that I follow around 500 people here, I often wake up to over a thousand #Mastodon posts. What are some good ways to keep up with them?
(DIR) Post #AYmbmtZ1SjObpZXxfU by abnv@fantastic.earth
2023-08-16T08:08:20Z
0 likes, 1 repeats
This post led me to explore #Mastodon clients with unconventional layouts and I found some interesting one:– Ebou (https://terhech.de/ebou) has the layout of a desktop messenger: leftmost column shows account names that have posted recently; clicking on them shows recent posts by them in an adjacent column, and clicking on the posts shows their conversation threads in the next column.– Tut (https://tut.anv.nu) is a terminal UI client inspired by Vim, the code editor. It supports Vim like keyboard navigation as well.– Macstodon (https://github.com/smallsco/macstodon) is a Classic Mac OS app, and looks kind of like old-school IRC clients.– Stomp (https://stomp.social) run on Apple watch. You can scroll timelines or mention or lists but only one post at a time.– Mastotron (https://github.com/mastotron/mastotron) completely eschews the concept of linear timelines and instead presents posts as graph of connections.If you know any other such unconventional clients, please feel free to add to this thread.
(DIR) Post #AZBxplHblKESxbAgiG by abnv@fantastic.earth
2023-08-28T14:10:05Z
0 likes, 0 repeats
Any #MastoAdmin willing to share their experience of upgrading to #Mastodon 4.2? In particular, I'm concerned about the increase in resource usage by ElasticSearch.
(DIR) Post #AZW1yWhjOIn2vPV2dE by abnv@fantastic.earth
2023-09-07T06:29:35Z
0 likes, 0 repeats
I've been trying to build a personal #AlgorithmicTimeline for #Mastodon for myself for some time and I've got a basic version working. Here's how it works:1. Fetch posts in my home timeline for last 24 hours.2. Apply my Mastodon filters on them to remove unwanted posts.3. Remove private posts.4. Remove posts that I have liked, boosted or replied to.5. Remove foreign language posts.6. Fetch like, boost and reply counts for the posts from their origin server.7. Partition posts into boosts and non-boosts, and apply next steps for each partition separately.8. Assign scores to posts using this formula: `score = geometric_mean(like_count, boost_count, reply_count) / square_root(follower_count_of_poster)`9. If a post contains any of my specified favourite tags, increase its score by multiplying it by a constant factor (I use 1.2).10. If a post is from any of my specified favourite accounts, increase its score by a constant factor (I use 1.2).1/2
(DIR) Post #AZW1yXkbV6gMAbqqkS by abnv@fantastic.earth
2023-09-07T06:33:38Z
0 likes, 0 repeats
continued …11. Reduce the scores of each post by a factor of `power(0.5, (time_now - post_create_time)/half_life)` where `half_life` is something like 6 hours. This causes older posts to have lower scores.12. Group posts into threads they are part of, if any. Then select the highest scored post from each thread. This prevents posts from popular threads from taking over.13. Sort posts by their score and select top 10% of posts.14. Randomly select some posts from the bottom 90% of posts.15. Render these posts as a webpage and serve on internet.16. Run this entire process twice or thrice a day, and read the rendered webpage, interacting with the posts.The initial inspiration for this algorithm came from @MattHodges's work (steps 1–4, 7–8, 13, 15) that I improved upon (steps 5–6, 9–12, 14, 16).I have few more ideas like reducing the scores of posts with certain tags, but the current algorithm works pretty well for me. I'm also thinking about how to make it near-realtime instead of a batch process.2/2
(DIR) Post #AZz2LSFlQokhRidyPQ by abnv@fantastic.earth
2023-09-21T04:38:03Z
0 likes, 0 repeats
My fork of the #Mastodon digest has accumulated enough new features that I'm getting antsy of writing #Python, which is what the original is written in. I’m thinking of a rewriting it, but I'm conflicted between using #Haskell, which is my comfort language, #Golang, which may be easier for others to contribute to, and #Rust, which I want to learn.The program involves fetching a bunch of JSON data from the internet, doing some statistical calculations on that data, and then outputting an HTML page.What do you think I should rewrite it in? #Programming
(DIR) Post #Abd4qEzrE0w2PYM0Xo by abnv@fantastic.earth
2023-11-09T11:53:55Z
1 likes, 0 repeats
#AI is taking over all aspects of our lives.
(DIR) Post #AuNgeWpG7VicH98UzI by abnv@fantastic.earth
2025-05-23T07:05:27Z
0 likes, 0 repeats
#Pocket is dying so it's appropriate to talk about the minimal #ReadLater service I wrote for myself: LinkFodder.You can save links via an API, or a form, or a Telegram bot, and you get an HTML page (shown below) and an Atom #feed. That’s it.Supports multiple users, written in #Haskell, deployable as a single binary (or a Docker image) behind the reverse-proxy server of your choice in your #SelfHosting setup.It doesn't even need a database to run; it simply rewrites the HTML and Atom files when you save a new link.
(DIR) Post #AucRrM0Dom4GcPAKTg by abnv@fantastic.earth
2025-05-28T10:42:03Z
0 likes, 0 repeats
I used #Emacs for a short while a decade ago. I want to get back into using it, but now I'm really intimidated by amount of configuration it needs. Is there an Emacs setup that works similar to other modern #editors with minimal configuration, and looks good? #AskFedi
(DIR) Post #AucRrOUmY7hYLlTlOC by abnv@fantastic.earth
2025-05-28T18:04:31Z
0 likes, 0 repeats
@samebchase I disagree with you there. I just tried it out. Installed emacs and ran it from a project directory. It showed me some things about itself. Where are my files? Most editors would show you a tree of files by default on start.I happened to know that I can invoke commands in Emacs with Alt-X, so I presssed that. Searched for "Open file" command ... found nothing. After some typing around, I found the find-file command and used that to open a file. And it opened with almost no editing support. No syntax highlighting, no auto completion. At this point most editors would recommend installing appropriate plugins, and start them with sane defaults to provide good editing support automatically. Emacs does nothing.Then I went and searched online, and found these configs hundreds of lines long, written in a language I have no idea about. That's when I closed the Emacs window.Emacs needs better defaults, and more user friendly bundling.
(DIR) Post #AucRrQKZj2j22gidl2 by abnv@fantastic.earth
2025-05-29T01:58:37Z
0 likes, 0 repeats
@samebchase I disagree again. I don't want to fight the defaults, I don't want to yak shave my editor, and I definitely don't want to debug my editor config. I just want to edit some files, with basic facilities available in most editors these days.I don't want to make Emacs my operating system. Just a good basic modern editor would do.It took me 20 minutes to set up Zed and I have never since changed its config, I don't even think about it. It comes built-in with many useful plugins and they'll never break because they are maintained by the editor developers. Granted that I cannot read emails in Zed or listen to music, but is it too much to ask for a beginner-friendly out-of-the-box experience?Emacs has so much potential to be the best editor ever, maybe it already is, but the steep starting curve will keep driving newbies away.
(DIR) Post #AucRrTreaVy309DbEW by abnv@fantastic.earth
2025-05-28T17:22:32Z
0 likes, 0 repeats
#Emacs users suffer from the Juggler's curse https://buttondown.com/hillelwayne/archive/the-jugglers-curse/And of course, they suffer from the Lisp curse as well. https://winestockwebdesign.com/Essays/Lisp_Curse.html
(DIR) Post #AvixIR3YxsnCOfIbrM by abnv@fantastic.earth
2025-07-02T12:59:54Z
0 likes, 1 repeats
I want to read a #compiler book written in the last 15 years that covers same topics as the Modern Compiler Implementation book by Appel, but uses recent terminology, tools and techniques. Any recommendations? #compilers #programminglanguages
(DIR) Post #Azl3ctU7fLAwJWOz2m by abnv@fantastic.earth
2025-10-31T04:01:58Z
0 likes, 0 repeats
If someone were to write a new #compiler book today, what would you prefer the backend to emit? Learning about which backend would help the readers most these days?#poll #compilers #PLdev #LangDev
(DIR) Post #B1mJ7bCFpuQ9rjVDM0 by abnv@fantastic.earth
2025-12-30T14:04:47Z
0 likes, 0 repeats
If I were to release a service to run on servers, how would you prefer I package it? A #poll: #selfhosting #software #release
(DIR) Post #B3LSIlreNT5oAAnB44 by abnv@fantastic.earth
2026-02-15T11:37:56Z
0 likes, 0 repeats
Bookmarked: [wingolog.org] six thoughts on generating c https://wingolog.org/archives/2026/02/09/six-thoughts-on-generating-cSee more links at https://abhinavsarkar.net/linkblog #linkblog #linkblogging