HNHacker News
TopNewBestAskShowJobs

sudeepj

579 karma · joined January 23, 2015

submissionscomments
sudeepj··on Our Logo Looks Like Underpants: A Case Study in Internationalization (2013)
Not exactly a logo, but check out the "Hitler kettle", which was disturbing and funny at the same time.

https://www.telegraph.co.uk/news/worldnews/northamerica/usa/...

sudeepj··on Announcing Rust 1.28
In case of FFI, if C & Rust are using the same allocator (say the system allocator), does it mean that memory allocated by C can be freed by Rust and vice-versa?
sudeepj··on GitHub is down
Down in India too

I started getting errors while pushing, only then I realized that there is some outage

  remote: Unexpected system error after push was received.
  remote: These changes may not be reflected on github.com!
Even the website is not available.
sudeepj··on Ask HN: Is it worth investing in learning Rust?
An example:

So suppose you have the following pseudo code:

   x = f()

In other languages you start using 'x' straight away. You can call member functions on it, compare it, etc. In Rust if x happens to be of type Option or Result (which are wrapper types i.e. they wrap the value), then you need to understand these first very well to write idiomatic Rust code. These types have combinator functions like 'map', 'and', 'and_then', 'or', 'or_else', 'unwrap_else', etc. if unwrap() is not suitable for your use case. If you are coming from a non-functional language, one cannot help get a feeling that all you wanted was to use the value and you have to learn so much upfront. At the end of it you are mentally exhausted.

My productivity increased a lot, once I realized that there is a pattern to these and knowledge gain with Option & Result is transferrable to using Future's combinators as well. It is very hard to explain it to someone as to how to get to this state. There lies the challenge with teaching Rust and I think Steve Klabnik and team has done really good job with documentation.

sudeepj··on Ask HN: Is it worth investing in learning Rust?
For some time the dominant error handling way was 'error-chain' crate and the comment was made in that context.

Now there is a failure crate https://github.com/withoutboats/failure. It is an improvement, but it still feels that one has to type a lot for something basic. Now, this is a matter of taste and many people will be ok with this.

sudeepj··on Ask HN: Is it worth investing in learning Rust?
I have written non-trivial code in Rust and Go. The thing about Rust is that it needs a bit of perseverance and experience of writing a bit of non-trivial code in Rust to really appreciate it. Writing tutorial like code won't cut it.

Life-cycle of a Rust developer: https://imgur.com/kNkV7jm

Good, bad and the ugly: https://imgur.com/udNcZXa

With Go, in my head it is best explained in terms of the scene in the movie: Pursuit of Happyness

Boss: Chris. What would you say if a guy walked in for an interview, without a shirt on, and I hired him? What would you say?

Chris Gardner: He must have had on some really nice pants.

People (including me) find lot of issues with Go in terms of some choices in the language. But boy it does have some really nice pants and that is the ease of writing networking services + Go routines

sudeepj··on Actix: a small, pragmatic, and fast Rust web framework
> fn greet(req: HttpRequest) -> impl Responder

Nice to see front page example using 'impl', the recent most improvement in ergonomics. Before 1.26 things would be different. This makes me more appreciative of the efforts from Rust team/community to improve the ease of use.

sudeepj··on Ask HN: Why is there not a memory-safe C?
I agree that safety aspect in C++ has improved in its modern versions. But, these modern features are best practices as documented in C++ core guidelines. The issue with best practices is that it cannot be enforced. That is, lets say everybody on my team follows the latest guidelines. We even have latest static analysis tools. However, the same cannot be said about the 3rd party libraries that we will use. In this regard, Rust is much better since the every line of code is subjected to the same strict rules.

Offcourse, one can argue that the 3rd party Rust libraries can use a lot of "unsafe" code which we as consumer may not know about. But the situation is still better than C++.

sudeepj··on Tech company career ladders
What I also seen is people become victim of your their own success. If you over-achieve in one appraisal cycle it is very bad for you because you have increased your base-level of performance. It is like over-achieving sales target.

I have learned the hard way that one needs to spread out the achievements. For example if you have good number of ideas then don't spew out all of them in one go. Introduce them say in each quarter and people will say "Joe always seems to have an idea round the corner". Recency effect matters.

sudeepj··on How to Get Rich Quick in Silicon Valley
This is somewhat analogous to film industry, isn't it? It attracts lot of potential actors. Lot of stories about their struggles and how unforgiving the industry can be. All they see are super-famous and super-rich actors and they all want to like that.
sudeepj··on How to Get Rich Quick in Silicon Valley
Yes, this can be a very good topic for an episode on Black Mirror TV series [1]

[1] https://en.wikipedia.org/wiki/Black_Mirror

sudeepj··on Police Say Video Shows Woman Stepped Suddenly in Front of Self-Driving Uber
I cannot imagine the detailed logging the engineers might have to do in such a system. When I code I wonder sometimes if I am logging unnecessary events at info level.

This led to one more question. Do driverless cars have (or will have) a black box like that of aeroplane?

sudeepj··on How Rust is tested
I have been taking inspiration from the Rust project and the way they go about things in general. In my workplace, we have a bot similar to bors, which does the merge request testing and is the gatekeeper.

Tools like bors act as a "force-multiplier".

sudeepj··on Show HN: 5+ Billion Passwords in Order of Most Popular
And Citibank internet banking passwords are case-insensitive. (Atleast I can vouch for Citibank India)
sudeepj··on Linkerd 1.0
Is it conceptually similar to ESB (https://en.wikipedia.org/wiki/Enterprise_service_bus)?
sudeepj··on New UX for Jenkins: Blue Ocean 1.0
We are using the pipeline-as-code (i.e. Jenkinsfile). However, the new pipeline plugin does not allow diamond shaped dependencies (e.g https://i.stack.imgur.com/iQFWT.png)

Jenkins does allow 'parallel' jobs but that is the same thing we want.

sudeepj··on How the baby boomers destroyed everything
As non-US citizen and I am in no position to agree or counter to what is being mentioned in the article. However, I am surprised that the baby-boomers are looked as 'us vs them' whereas the generation change is more of a Continuum. I am sure our next generation will blame us for ruining it for them.

Baby boomers say lot of first things getting unfold in front of them e.g Humans going to moon, Nuclear tech, Electronics, Mass entertainment (Television), etc. These are the legacy of that generation. Many of things they simply couldn't have guessed the consequences of their actions.

The same thing applies to the current generation. What will be our legacy? One of the things is increasing removal of human beings from the equation using AI, automation, etc. We do not know fully how this is going to affect future generations. If things get screwed-up the next generation will blame us.

sudeepj··on Graphical depiction of ownership and borrowing in Rust
Very cool! May be such visuals can be incorporated in the official documentation.

Suggestion: could also cover closures (which would demonstrate the move keyword also)

sudeepj··on Ask HN: What inspires you to persevere through adversity?
1. I do not remember who said this: "Remember the bad days when going is good and remember the good days when going is bad"

2. "This too shall pass", https://en.wikipedia.org/wiki/This_too_shall_pass Nothing is permanent, the good days and the bad days

sudeepj··on Welcome Chris Lattner
Being a Rust-lang fan, I would have loved to see him join the rust-lang group (which I am not a part of). I thought there might be a chance of this after I saw the post of him leaving Apple.
sudeepj··on $2T in Proceeds of Corruption Removed from China and Taken to US, AUS, CAN, NL
In India, "grey income" is called "black money". It is a hot topic in India right now.

Recent activities on this:

Note ban (Nov 2016) => https://en.wikipedia.org/wiki/Indian_black_money#Ban_on_1000...

Using analytics (today's news) => http://economictimes.indiatimes.com/news/economy/policy/i-t-...

sudeepj··on Announcing Rust 1.13
I think the new operator works only with Result. Had it been for Option also, it would have been awesome.
sudeepj··on India’s Space Agency Hits New Milestone With Satellite Launch
The current PM (Narendra Modi) has initiated a Swachh Bharat Abhiyan (Clean India Campaign)

Official site:

https://swachhbharat.mygov.in/

Dashboard: http://sbm.gov.in/sbmdashboard/

sudeepj··on iPhone 7
Wouldn't the AirPods will be very easy to lose? What if they drop-off while snoozing. I mean with wired headphones, even if they come out of the ear (say while sleeping on a long travel) they are still attached to the phone and hence cannot lose them.
sudeepj··on A Message to the Apple Community in Europe
The Joy of tech on this story: http://cdn.iphonehacks.com/wp-content/uploads/2012/04/joy-of...
sudeepj··on GitHub Code Search – Programmers' Goldmine
One of the things I used it for was to see how a specific API is used in production ready code. It was of immense help.
sudeepj··on Is anybody else using ridiculously long variable names?
I found one today in Go source code: https://golang.org/src/net/fd_windows.go variable name: hasLoadSetFileCompletionNotificationModes
sudeepj··on What is the best part about being a Software Engineer?
The best part about being SE are:

1) Iteration: We get to practice our stuff on real entities (language, OS, databases, etc). Do architects get to "practice" actual work at their home? Do new doctors get to try experimental surgeries? Do amateur civil engineers get to build those iconic bridges? They can do computer simulation ... but it is actually a software.

2) Hackathon: Can't imagine this happening in say medical field, mechanical engineering, law etc. Software Industry is one of few industries where this can be done.

3) Changing the world quietly: Many in my relatives are not programmers. It is hard to explain to them in what ways software is changing the world.

4) Open source: Imagine Coca Cola sharing its secret recipe. It won't but we as SE get to learn from open source projects. Now there is a cultural aspect to this but the point is that we as SE can experience it more than other professions.

sudeepj··on Introducing MIR
Wow! More than the actual concept (which is cool), I found the level of technical writing is of high calibre .. highly educating. Pleasure to read such articles.
sudeepj··on System Design Interview Cheatsheet
This is useful to demonstrate that as a candidate I have considered the aspects mentioned in the link. It may give a completeness feel to it.

Sure there are more things to add (like identifying key interfaces) as others have mentioned here. This is a nice starting point though.

← PreviousPage 5 of 7Next →