HNHacker News
TopNewBestAskShowJobs

parthdesai

1,842 karma · joined April 27, 2016

submissionscomments
parthdesai··on Phoenix 1.7 for Elixir: Edit a Form in a Modal
https://news.ycombinator.com/item?id=37488627 :)
parthdesai··on Phoenix 1.7 for Elixir: Edit a Form in a Modal
I'll give you a bit of background to explain it better.

Our service is primarily a graphql API. The mobile apps talk to our service, and then it internally talks to other services. We use Absinthe for graphql, and a lot of it is subscription based.

Since these nodes (pods in k8s terms) are clustered, each pod is aware of the other pod. Sometimes we get a huge spike in traffic and the clusters can't start fast enough (we're increasing the scale up time in k8s) and a pod can get OOM killed due to number of graphql subscription and then just go in crashloop. This leads to libcluster thinking the node is still good but when infact it's in crashloop, and thus not allowing any new pods coming up to start up.

We're experimenting with few things, but yeah clustering is not without it's pain

parthdesai··on Phoenix 1.7 for Elixir: Edit a Form in a Modal
A caveat with libcluster + k8s though - it doesn't play nicely with sudden burst of traffic.
parthdesai··on The U.S. housing market vs. the Canadian housing market
Because the rents have gone up equally in the city? I rented a 1 bedroom condo back in 2017 for $1700/month. The same unit is around $2600/month now. So the price to either rent or purchase the same unit in the city has gone up significantly regardless.
parthdesai··on The U.S. housing market vs. the Canadian housing market
Sure, you can take out HELOC against it, and but you're playing a very dangerous game when interests do rise. That has literally been happening right now.
parthdesai··on The U.S. housing market vs. the Canadian housing market
First, I know it fully well how bad the housing market here is.

Second, that's my point, unless it's an investment property or if you're selling and leaving the city altogether, you haven't actually earned $75,000/year.

parthdesai··on The U.S. housing market vs. the Canadian housing market
>This means that my family's wealth has increased by $75,000 per year just from owning our home. That's more than the median income in Canada!

I live in Toronto as well, and did penny pinch from the time I graduated (2016) to buy to buy my 1st condo here in 2020. I keep hearing statements like these, but if we're being honest unless this was an investment property, a 2nd home or you were moving away to a different city altogether, money is only made on paper. While the condo price has gone up, so has the prices of all the other houses. If you were to sell your condo to realize your gains, the next property you buy has gone up proportionally as well.

parthdesai··on Open-sourcing SQX, a way to build flexible database models in Go
Ecto strikes the perfect balance IMO

https://hexdocs.pm/ecto/Ecto.Query.html

parthdesai··on Nvidia announces financial results for second quarter fiscal 2024
> Raising prices means you are a monopoly?

Not sure if you're intentionally choosing to ignore their point, but what they meant is Nvidia can unilaterally choose to raise the prices and customers can't do anything since they're a monopoly. You can't just say well, i'll go to the next shop and buy something for cheaper.

parthdesai··on Chandrayaan-3 Soft-landing [video]
Just wait till BBC decides to throw a fit about it again
parthdesai··on From Python to Elixir Machine Learning
That's going to be the case with almost any legacy project though
parthdesai··on From Python to Elixir Machine Learning
> It also requires a different way of exploring code as you can't do the familiar `.` and see what happens, you can't just do `price.toCentsValue` but need to do `price |> Price.toCentsValue` and so you need to know the existence of the `Price` module, which might not exist and be buried in `Cart` or as an helper in some controller because you did not understand clearly the domain and the modules responsibilities. Attaching behaviour to data is powerful, explorable, and most people are used to it, even if it's the wrong place in principle, with modules this is flipped, it's now data that must thread through operations, and it's not super easy to grasp.

Not sure, I think you're picking and choosing things to ramble about. While you can't just do `price.toCentsValue`, and have to call `Price` module, in a OO language, you would need to instantiate `price = new Price(amount 10)` or something before calling `toCentsValue`. This means you're aware of the Price class, same as being aware of the Price module. If anything being aware of the module infact is better IMO since it allows you trace through explicitly what the code is going to do. Your point is correct if you're working through macros though.

parthdesai··on From Python to Elixir Machine Learning
add rustler and you can even do some systems stuff! (We use it at work)
parthdesai··on How the Tour de France became a $100M business
How is that a problem? It’s the hardest sporting event in the world bar none for a reason. You don’t need to be in tour to do a 200km bike ride. As far as I know, you need to qualify for Boston and NYC marathon, olympics and all. This is similar
parthdesai··on How the Tour de France became a $100M business
If you think pro athletes in other sports are clean, I have news for you. If anything cycling is one of the few sports that takes anti-doping measures seriously
parthdesai··on Tell HN: Twitter switched temporarily to rate limited mode
I tend to fall in the camp that a “fundamentally dumb guy” won’t be able to successfully start, grow and run Tesla and Space X.

Was buying twitter a mistake? Sure. Did he make dumb decisions when it comes to twitter? Yes. But IMO, that’s very different than labelling someone “fundamentally dumb”

parthdesai··on Tell HN: Twitter switched temporarily to rate limited mode
“Elon is fundamentally a dumb guy”

This is the guy who’s had more than a few successful businesses now. A lot of smart people did want to work with him. Andrej Karpathy himself has said that Elon was very quick to pick up AI technically. That doesn’t sound like a “fundamentally dumb” guy to me

parthdesai··on Why Britain doesn’t build
Define prosperity though. If it's strictly financial prosperity, then sure. But various studies have found people in western countries to be lonelier and less happier than their asian/european/south american counterparts where sense of community is higher.
parthdesai··on Why Britain doesn’t build
This often comes up, and I'm genuinely curious, is space really that much more important when it comes to kids? I grew up in an apartment sharing a bedroom with my sister, and tons and tons of kids grow up in an apartment all over the world; all the older European cities, Asian cities (Mumbai, Hong Kong, Singapore, etc).

Netherlands has the happiest kids in the world, where in Amsterdam a lot of kids would be growing up in an apartment. The flip side is, they get their freedom where they can go to places without needing their parents to drive them everywhere.

parthdesai··on Why Britain doesn’t build
> This is a bit of a reductionist take on those younger people's part. You can have just as much fun at the TGI Friday's at your local strip mall as you can at the hippest restaurant no one else has ever heard of in Brooklyn.

I'm one of those younger people. The main difference here is, "the hip" restaurant in Brooklyn will have vastly different food than a hip restaurant in SF. Can't say that about TGIFs

parthdesai··on Why Britain doesn’t build
Or at least in North America, younger people don't want to live in soulless suburbs where there's literally nothing to do apart from visiting the same big box stores, chain restaurants and bars in exactly same looking plaza.
parthdesai··on A LiveView Is a Process
Ecto on it's own should be a good enough reason to use Elixir!
parthdesai··on How to listen to database changes using Postgres triggers in elixir
Does GenServer's mailbox introduce any lag/latency? We've found at high loads, GenServer's mailbox can be a bottleneck
parthdesai··on Reddit goes down fully as thousands of subreddits protest API changes
Not saying I would turn down or won't turn down, but you've companies like 37signals and folks like DHH who are very happy making millions and not having a boss rather than making billions
parthdesai··on Apple Vision
MKBHD mentioned the same use case in his video and how he would pay good money to NBA for it. And he used the headset for a good 30 minutes. Maybe it's a valid use case? Have you personally tried the headset to flat out dismiss it?
parthdesai··on How to sell Elixir again
Same with betting space, there's few Elixir shops
parthdesai··on How to sell Elixir again
It's only obscure professionally; it's also one of the most loved languages. [same survey]

https://survey.stackoverflow.co/2022/#most-loved-dreaded-and...

parthdesai··on A few words on Ruby's type annotations state
https://sorbet.org/ ?
parthdesai··on Geoffrey Hinton leaves Google and warns of danger ahead
He is the co-founder and chief scientist[0] at OpenAI but "has he contributed that much personally". I don't even know how to respond to that

[0]https://www.linkedin.com/in/ilya-sutskever/

parthdesai··on MRI brain images become 64M times sharper
> My coworker fell in Costa Rica, hurt her knee and came back and had an MRI the same week. I saw my doctor in mid-March and she ordered an MRI on my neck, it's scheduled for next week.

You started your entire argument on this point, i.e. (n=2) lol

← PreviousPage 7 of 24Next →