Better HN
topnewbestaskshowjobs
Log inSign up

ananthakumaran

491 karma · joined Dec 15, 2010 (15y ago) · 86 submissions

website: https://ananthakumaran.in resume: https://ananthakumaran.in/resume github: https://github.com/ananthakumaran email: ananthakumaran@gmail.com
Submissions

1.

Pimacs – An Emacs UI for Pi(ananthakumaran.in ↗)

25 points · by ananthakumaran · 2mo ago · discuss

2.

Pimacs – An Emacs UI for Pi(ananthakumaran.in ↗)

2 points · by ananthakumaran · 2mo ago · discuss

3.

ClickHouse Table per Tenant in Production(ananthakumaran.in ↗)

2 points · by ananthakumaran · 5mo ago · discuss

comment 6mo ago · link · parent

For those who are using Emacs, https://github.com/federicotdn/verb provides similar UX, I have been using it as a postman alternative for quite some time.

5.

OpenAI deprecation notice: upcoming model shutdowns in 2026(developers.openai.com ↗)

3 points · by ananthakumaran · 7mo ago · discuss

6.

Moving a tenant across PostgreSQL instances(ananthakumaran.in ↗)

1 points · by ananthakumaran · 7mo ago · discuss

comment 8mo ago · link · parent

I have been using https://github.com/jacktasia/dumb-jump to quickly jump to definitions. LSP is hit or miss; in some languages, it works great, while in others, the implementation is not so good. I have been thinking about a middle ground based on Tree-sitter. GitHub uses Tree-sitter to power code navigation, but unfortunately, I can't find anything good that I can use offline. Why is there no ctags equivalent powered by Tree-sitter?

8.

Overlay Bar Chart(ananthakumaran.in ↗)

1 points · by ananthakumaran · 8mo ago · discuss

comment 9mo ago · link · parent

No, it's a background job. We can easily control the Python process count by controlling the job queue concurrency on the Elixir side.

comment 9mo ago · link · parent

We have a similar use case. All Elixir code base, but need to use Python for ML libraries. We decided to use IPC. Elixir will spawn a process and communicate over stdio. https://github.com/akash-akya/ex_cmd makes it a breeze to stream stdin and stdout. This also has the added benefit of keeping the Python side completely stateless and keeping all the domain logic on the Elixir side. Spawning a process might be slower compared to enqueuing a job, but in our case the job usually takes long enough to make it irrelevant.

comment 10mo ago · link · parent

ES should be thought of as a json key value store and search engine. The json key value store is fully consistent and supports read after write semantics, refresh is needed for search api. In some cases it does make sense to treat it as a database provided the key value store semantics is enough.

I used it about 7 years ago. Text search was not that heavily used, but we utilized the keyword filter heavily. It's like having a database where you can throw any query at it and it would return a response in reasonable time, because you are just creating an index on all fields.

comment 10mo ago · link · parent

https://ananthakunaran.in

comment 11mo ago · link · parent

Exactly, I was reading the blog and wondering the whole time how it's better than --update-refs, which I have been using a lot recently.

14.

Moving tables across PostgreSQL instances(ananthakumaran.in ↗)

85 points · by ananthakumaran · 1y ago · 5 comments

15.

PostgreSQL Upgrade Using GCP DMS(ananthakumaran.in ↗)

1 points · by ananthakumaran · 1y ago · discuss

16.

Hybrid Query Engine: ClickHouse and PostgreSQL(ananthakumaran.in ↗)

2 points · by ananthakumaran · 1y ago · 1 comment

comment 1y ago · link · parent

This is one of the things Elixir got right on day 1, all the libraries in the ecosystem use the standard library and it makes dealing with logs so much easier compared to other languages.

18.

Fine Tuning the Erlang Virtual Machine(ananthakumaran.in ↗)

6 points · by ananthakumaran · 1y ago · discuss

19.

ETS vs Redis(ananthakumaran.in ↗)

4 points · by ananthakumaran · 2y ago · discuss

comment 2y ago · link · parent

Have you checked the js grammar? It has a regex grammar, though not sure if that's what you are looking for

comment 2y ago · link · parent

> For example, you don’t need sidekiq or Redis as Elixir/Erlang is a concurrent, distributed platform. This simplifies operations and is cheaper to run.

This is simply wrong. You need a Sidekiq alternative (There is Exq which is protocol compatible with Sidekiq, others like Oban are available as well) because Erlang processes are not durable, nor do you get retry, concurrency control, etc. Everyone loves to claim Erlang is distributed and you can connect them so Redis is useless? but this is rarely utilized in the context of the web server. I have been using Elixir for more than 5+ years now, and I have never seen a valid use case for connecting two nodes.

In reality, the tech stack of the Elixir web app is mostly similar, but it makes life a lot easier if you ever have to deal with any kind of concurrency. Making concurrent requests is as simple as doing a map over a list and they just work, unlike other languages where you have to double-guess whether the library you use is thread-safe.

comment 2y ago · link · parent

It depends on the layer, some of the layers might be able to take advantage of how the data is persisted. For example, if you use avro/protobuf, the decoder will handle it for you. If that's not the case, you would have to implement the migration by yourself. There is a paper[1] on this subject called "Online, asynchronous schema change in F1", which explains how to implement it.

1: https://dl.acm.org/doi/abs/10.14778/2536222.2536230

comment 3y ago · link · parent

Salesforce has this model of development and it's horrible. They won't let you run the code locally since the environment is proprietary. Even to run the tests, the code has to be uploaded and run on their servers.

comment 3y ago · link · parent

It does have PDF import support, I am using pdf.js to extract data and it works decently from what I have tested.

comment 3y ago · link · parent

Got it, it's too early for i18n

comment 3y ago · link · parent

> Question for author - Is it mostly a reporting tool or does it work similar to h/ledger where I can input my transactions from paisa?

It's a reporting + import/editor tool. The goal is to have a app that handles all the common use cases without going to command line.

comment 3y ago · link · parent

I meant, you could download the cli using wget and run it inside the docker. There is no prebuilt docker image as of now. I will look into it later.

comment 3y ago · link · parent

You can opt out by clicking Manage settings and then uncheck the green tick. I just realized I can enable reject button as well[1], should be available soon.

1: https://squidfunk.github.io/mkdocs-material/setup/ensuring-d...

comment 3y ago · link · parent

Nothing specific, I was even looking at adding support for beancount then realized it's much more strict and doesn't support some features like periodic transactions (which I use for budgeting)
123