HNHacker News
TopNewBestAskShowJobs

sudeepj

579 karma · joined January 23, 2015

submissionscomments
sudeepj··on Choosing Between Rust or Go?
> has no worthy support on windows

Actually, with Rust you can even link with msvc toolchain, which Go cannot.

sudeepj··on Microservices – Combinatorial Explosion of Versions
Few points based on my experiences with (Micro) services:

Note: None of these are cast in stone. These have worked well for us

1. Decide in your team/org what constitutes a new version and what it means. Does every change means version change? What if an API adds an optional parameter; do I need to update the version?

2. Not everything has to be a service. Think if the same functionality can be consumed in the form of a library/sdk instead of a full service.

3. The dependency amongst services should resemble acyclic graph and not cycles. This limits the version change impact.

4. Think about abstraction. Can we logically group set of services A, B & C and provide unified API via pass-through service D? Only D needs to handle API breakage most of the time.

sudeepj··on Blog Post: The Dark Side of Rust Language
> there is nothing here to fix really

I get the rationale behind the need for different types. When I say quality of life improvement, I meant standard conversion functions between these types which would suffice for most of the use cases. Maybe a separate crate for this would be a good start.

sudeepj··on Blog Post: The Dark Side of Rust Language
> Rust has issues with String. Rust has 6 String types. String, Str, CString, Cstr, OsString, Ostr

Absolutely spot on! You add Path, PathBuf & ffi into this mix, it becomes tiring very soon. I think a quality of life improvement is needed in this area.

sudeepj··on Hard deadlines are not user-first
> just go talk to the stakeholders - product/sales team - ask them if the delay could be potentially customer losing

In my experience, sales team rarely have any incentive to help out here. They almost always say that delay will create problems and they quantify in terms of dollars e.g. If X is not done by this date we will lose Y dollars. That Y number is almost made up to make things more urgent.

Actually, I have seen sales blaming lack of sales numbers on engineering because the delivery was "too" late.

sudeepj··on The use of the word ‘robust' to describe software in UK law
Unrelated: What's with the text color/contrast? Am I the only one who has trouble reading the text?
sudeepj··on Australia’s hottest day on record
This is similar to what is there in India during summer. Isn't this more problemematic in Australia because of ozone layer depletion [1]?

[1] https://www.environment.gov.au/protection/ozone/ozone-scienc...

sudeepj··on Stop worrying about blocking: the new async-std runtime for Rust, inspired by Go
> should a task execute for too long

How does this work? Does the runtime tracks duration for each future?

> spawning a new executor thread

I would imagine that the future object will be moved. And for move to be cheap are they allocated on heap by the runtime?

> The new runtime is small, uses no unsafe

Awesome!

sudeepj··on Performance Reviews Can Kill Your Culture
> The success of one person means the failure of another.

In ideal world perf reviews should not degenerate into this. In real world, it is a zero-sum game. One example is that the budget for giving increments/hikes is always limited. To reward one individual means giving less to someone else. Second example is that of promotions. As you go up the ladder, there are fewer positions and competition is more. I can't see any other way but to stack rank the employees. The criteria used may be flawed, but that does not mean that ranking is not needed.

Talking about criteria: if its too objective people will game it, if its too subjective then all sorts of human factors come into the play.

Finding a solution for this has always been a holy grail and every now and then a company claims that "they-do-it-differently". Even if a company does this really well it only says about that point in time. It is a different thing to sustain that year over year. All companies have issues in their perf review. They only differ in toxicity.

sudeepj··on Ask HN: What was your biggest mental shift when learning Rust?
Ownership. There are other things but this is the single biggest adjustment one will have to make.

In other languages say C++/Go/Python, you have a shared buffer in two threads. Both threads have mutable access to it but you know only one of them is modifying it at any point of time (because you wrote it :) ). This is not good enough in Rust. You will have to prove it to the Rust compiler at compile time that this invariant is true. In Rust you express this using its type system. Syntactically & semantically it is very different than other languages.

The implication of the above is that in Rust you will have think a lot about your code structure & data-flow upfront compared to other languages else you will hit the wall very frequently. Some people say this is how it should be anyway & others think it as impediment to the productivity. Both points are valid in my opinion ... it more of a question of cost vs benefit.

sudeepj··on Async-await on stable Rust
I think so. Off-course this is my belief and based on different opinions/experiences shared by people over last 3-4 years.
sudeepj··on Async-await on stable Rust
This is going to open the flood gates. I am sure lot of people were just waiting for this moment for Rust adoption. I for one was definitely in this boat.

Also, this has all the goodness: open-source, high quality engineering, design in open, large contributors to a complex piece of software. Truly inspiring!

sudeepj··on Why Go and Not Rust?
Go is simple & simplicity scales when it comes to development (learnability, dev-effort, tooling, etc). So from a manager's point-of-view he/she can hire/train people far more quickly with Go than Rust. As much as I love Rust and have advocated for it in my company I cannot argue on this point with my management.
sudeepj··on Ask HN: Why is Google in love with purposely-impaired languages like Go, Dart?
Yes. To put it in other words "simplicity scales" in terms of number of people. It helps to commoditise things faster and lower the cost (i.e learning, operating, hiring, tooling cost etc).
sudeepj··on Catching use-after-move C++ bugs with Clang's consumed annotations
With C++ even if your project follows this, there is no way to enforce this across your project's dependencies & wider eco-system.

With Rust, its entire ecosystem (however nascent) is subjected to the same strict rules. This is big plus when Rust eco-system matures functionality wise.

sudeepj··on Ask HN: What Are Downsides of Rust Language?
The biggest issue which is inherent to the language is the learning curve. I feel there is limit beyond which language cannot be made easy to learn. I still claim it is worth learning Rust, however my point should still stand.

From personal experience: Our company had tailor made use-case to use Rust (switching from Python), more than Go. Experiments were performed and Rust outperformed Go in all aspects (time, CPU, memory). Everyone acknowledged but CTO (who knows C/C++ very well, he is a filesystem developer) decided to select Go. CTO was bullish on Rust to start with but developed cold-feet later. He told me that the only reason was that it is easy to train people in Go than in Rust. This one single thing trumped everything in my case. When I look back, I see his point & I respect that.

While issues like portability, eco-system, ABI stability, etc are important, these are not inherent problems with the language itself. They will get better over the time.

sudeepj··on Vivaldi 2.6
How much of a payoff is there in browser business given that browser development is not trivial at all and it has become a commodity?
sudeepj··on Ask HN: Rust – does it get better?
In my experience it does get better, but for most of the people to expect to be productive as they would in Golang, Python, etc would be unrealistic. Rust changed my thought process permanently because it forces you to think a lot of things upfront. Also, this "skill" is transferable to other languages which makes learning Rust worth it at the first place.
sudeepj··on Microsoft CEO Satya Nadella Comes to Red Hat Summit
I would have thought MS to be Warden of the North and Linux to be wildlings (or free-folk) given the way they treated it/them in the past.
sudeepj··on Microsoft Solitaire Inducted into World Video Game Hall of Fame
I still remember the blue deck (the one showed in the article) had black birds who flap their wings. Nostalgic!
sudeepj··on Qgrep Internals
qgrep maintains some metadata ("compressed representation of the entire searchable codebase") and ripgrep does not (as far as I know). It does't appear to be benchmarking the same thing, unless I am missing something.

Besides this, I did learn a trick or two from the blog.

sudeepj··on Newton the Alchemist
> it doesn't rust, but why's it so special?

"Power resides where men believe it resides" - Varys, Game Of Thrones

sudeepj··on Programming the Z3 SMT solver
Can someone help to explain whether this is similar to TLA+?
sudeepj··on Talent Is Everywhere, Opportunity Is Not
> In Idaho, a lumberjack had a son, who he hoped would also become a lumberjack. But this kid liked rockets...

Reminds me of the movie "October Sky". Highly recommended.

https://en.wikipedia.org/wiki/October_Sky

sudeepj··on Rust 2019 and beyond: limits to some growth
I have written non-trivial code in Go and Rust. My situation is C++ dev -> Go -> Rust -> Go (current day job). The shifts have been due to various circumstances on my day job.

The thing is when I moved back from Rust to Go, I had forgotten how productive Go is and I felt something like this:

https://youtu.be/1i_Eqj7wu88?t=50 (20-30 sec video)

As someone who tried to "sell" rust in my org, I see the biggest issue is:

1. Steep learning curve (it is true)

2. When lot of people talk about #1 it gets amplified in the minds of people who make calls on the tech to be used

A great effort has been spent on #1 and I agree the payoff is worth it. But #2 is perception/marketing issue.

PS: I am huge fan of both Rust & Go.

sudeepj··on Sqlite – Most Deployed Database in the World
As far as I understand, formal verification does not certify the implementation even though the algorithms used are sound.
sudeepj··on Sqlite – Most Deployed Database in the World
https://www.sqlite.org/testing.html

The testing each release goes through is quite impressive. I bet more time is spent on testing (or writing tests) than actually developing the features.

sudeepj··on Slow Software
Do you have enough resources (and permissions) to run VirtualBox? That way you can run a VM and get complete control. You can do things inside the VM and anti-virus will not be in the picture.

I do this in my case but for different reasons and not performance.

sudeepj··on Sundar Pichai: ‘Technology Doesn’t Solve Humanity’s Problems’
What are humanity's problem exactly? Every era of humans had different list of problems. Problems today (climate change, nuclear weapons, etc) are very different than say 1000-1500 years ago.

Technology definitely solves lot of problems and some tech enables to scale the solutions (e.g. discovery of antibiotics and tech to mass produce them). But then it gives rise to new set of problems which are much harder to solve. The harder the problems get more collaboration and working together is needed at global scale, which itself is very hard. In this sense, tech can only go so far.

sudeepj··on Markdeep markup language
Yeah, if there are merge conflicts within the ascii charts then it is even more PITA.
← PreviousPage 4 of 7Next →