Better HN
topnewbestaskshowjobs
Log inSign up

devnull3

819 karma · joined Aug 2, 2021 (5y ago) · 273 submissions

Submissions

comment 2y ago · link · parent

It is/was an April Fool's joke

comment 2y ago · link · parent

In the beginning, I was trying to use Rust like C (which I think lot of people do) and was struggling with the borrow checker. I had a light bulb in my head one day to read the function signature and see if its '&self' or '&mut self'.

If any one API of a struct/enum has '&mut self' then its instance cannot be shared across threads without using a mutex (which brings its own friend along i.e Arc). This led me to structure the code in my mind much in advance to prevent borrow checker issues.

Another use of this is while embedding an object in a struct. When I realized that '&mut self' infects everything up the call chain it was a big learning moment. That is the embedding struct also needs a mutable borrow as well.

comment 2y ago · link · parent

Under pressure, I suggested the following:

1. Only one solution (or path in this case) should exist

2. No loops (meaning the valid solution does not cross it-self)

3. The length of false path from correct path should not be more than 4

comment 2y ago · link · parent

Maze(s) triggers PTSD in me. I was asked to write a code to generate one using a 100x100 grid in an Google interview in 40 min such that it was "fair". It was for L6/L7 (IC) position. I wrote a working code and the interviewer even acknowledged that I had atleast have a working code compared to others. The actual time I had was 30 min as 10 min included upfront discussion about what "fair" means and some time after-the-code discussion on improvements.

I was rejected with lean-no-hire (or weak-no-hire .. I don't remember the exact term but basically not a strong reject).

comment 2y ago · link · parent

How is this priced? Is it Get + Put or only Put?

comment 2y ago · link · parent

We humans have to be exact about the word exact. This is my point really. Same with AI.

comment 2y ago · link · parent

> will do exactly what they are told

If you have to encode the exact if-else conditions, then how it is different than regular software development.

comment 2y ago · link · parent

We want AI to be as intelligent as Humans. This is the holy grail. But humans are also whimsical, irrational and slave to emotions. So we are attempting to design a system which is replicate this nature as well.

So we want a system which we want it to behave in just about "perfect" manner (i.e. intelligent but not going astray). What passes as "perfect" is subjective and there will be different definitions of it.

Now to control this you want a capability to precisely define the allowed and dis-allowed behaviour. At this point we are essentially circling back to the software systems before the AI.

comment 2y ago · link · parent

> a visually appealing GUI

I think it requires a combination of things: a good taste, a sense of visual design and programming. The first two is more of art form.

Most of the developers on these projects are really good at programming but its rare to get a good combination mentioned above AND willing to work on open source over multiple years consistently.

Update: Also someone in the decision making hierarchy needs to have a keen sense of design. Example: Steve Jobs learnt calligraphy and even though he did not actually designed it he would certainly veto and pass feedback to the developers.

comment 2y ago · link · parent

If there is a such a breakthrough then the hackers or even spy agencies will not reveal it. They will instead silently make use of it. It will be essentially a backdoor for them.

comment 2y ago · link · parent

This demonstrates why it can be hard to be intuitive with large numbers and exponential in nature.

102.

The last gear will complete a full turn once every 13.7B years(twitter.com ↗)

3 points · by devnull3 · 2y ago · 1 comment

comment 2y ago · link · parent

C-interop while certainly more involved in Rust compared to Zig, it is generally a one-off effort (for most projects). wards it's generally an incremental effort to map additional C code. I am not sure I would make this an important factor but to each his own.

comment 2y ago · link · parent

> old Italian city

Try traffic in India [1][2] If it were a game, then India will be the last boss fight in ultra-hard mode.

[1] https://www.youtube.com/watch?v=KnPiP9PkLAs

[2] https://youtu.be/WC2FUEmKEu8?t=412

comment 2y ago · link · parent

Any idea how many years away Zig is from v1.0?

As someone sold on Rust, I really want Zig to succeed.

comment 2y ago · link · parent

That is the reason AWS & Azure are much more successful when it comes to enterprise customers. This is where the real money is.

comment 2y ago · link · parent

Also AI (as promised) will deliver a customized solution to an extent that for a human to even solve the problems in it will need a lot of context. This in itself makes it dependent on humans. Also you have to factor in knowledge redundancy, non-availability of your personnel. So you will always have to account for more people than AI promises.

comment 2y ago · link · parent

Atheism is an accepted school of thought in Hinduism [1]

Indian philosophy is diverse and vast. See the comparison of these philosophies [2]

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

[2] https://en.wikipedia.org/wiki/Indian_philosophy#Comparison_o...

comment 2y ago · link · parent

I don't think so AI will replace SW jobs. It will definitely change the way engineers work.

Software development involves:

1. Understanding the requirement

2. Solving the problem with given constraints (and thereby innovate)

3. Talking to stakeholders

4. Code (& unit tests)

5. Review #4

6. Troubleshoot in testing

7. Troubleshoot in prod, both perf & subtle issues (this is hard)

8. Take the input from #6 & #7 and use it as a feedback back to #2

9. Answering questions from users/support which involve suggesting workarounds and not just factual answers. Suggesting a workaround itself is a mini-problem solving which is an intersection of domain knowledge, knowing code at hand, understanding customer's situation, etc.

Coding is hardly taxing and time consuming when there is clarity what needs to be done and how it needs to be done.

Point #4 itself has sub-dimensions like performance, maintainability, test-ability, security, etc and it involves lot of subjective calls. Sometimes you have to deal with undocumented behavior of an API which is a tribal knowledge.

To troubleshoot in prod (esp subtle issues) require deep knowledge of the code at hand. This itself is a challenge when you are dealing with generated code and something you have not written yourself. Think about a human dealing with an existing large code-base when joining a team.

I understand all of the above is a spectrum and there are jobs in SWE which do not require so much rigor.

Key ability for breakthrough and the rest will fall in place: Code generated by AI is consistently put to production without human intervention for a sufficiently complex problem considering all good attributes (like backward compatibility, performance, etc)

comment 2y ago · link · parent

"A Better Way of Reading" -> in what way? All I see is teleprompter like text on screen when I click one of the links.

comment 2y ago · link · parent

I don't think so AI will replace SW jobs. It will definitely change the way engineers work.

Software development involves:

1. Understanding the requirement

2. Solving the problem with given constraints (and thereby innovate)

3. Talking to stakeholders

4. Code (& unit tests)

5. Review #4

6. Troubleshoot in testing

7. Troubleshoot in prod, both perf & subtle issues (this is hard)

8. Take the input from #6 & #7 and use it as a feedback back to #2

9. Answering questions from users/support which involve suggesting workarounds and not just factual answers. Suggesting a workaround itself is a mini-problem solving which is an intersection of domain knowledge, knowing code at hand, understanding customer's situation, etc.

Coding is hardly taxing and time consuming when there is clarity what needs to be done and how it needs to be done.

Point #4 itself has sub-dimensions like performance, maintainability, test-ability, security, etc and it involves lot of subjective calls. Sometimes you have to deal with undocumented behavior of an API which is a tribal knowledge.

To troubleshoot in prod (esp subtle issues) require deep knowledge of the code at hand. This itself is a challenge when you are dealing with generated code and something you have not written yourself. Think about a human dealing with an existing large code-base when joining a team.

I understand all of the above is a spectrum and there are jobs in SWE which do not require so much rigor.

Key ability for breakthrough and the rest will fall in place: Code generated by AI is consistently put to production without human intervention for a sufficiently complex problem considering all good attributes (like backward compatibility, performance, etc)

comment 2y ago · link · parent

See the issue with AI or (AGI) is that it is trying to model or imitate a system which is irrational, whimsical and inconsistent i.e. human. So the o/p of an AI system will be subjected to bias by humans especially when there is no universal right & wrong.

comment 2y ago · link · parent

OMG! I had a flashback. Do any of you remember HP Quality Center?. Its early versions had entire UI in activeX and I remember a bunch of progress bars installing DLLs.

comment 2y ago · link · parent

I could not understand and hence I asked the question. The thing I understood was that this broke some peoples flow.

comment 2y ago · link · parent

I am a Vim guy. Can someone explain what exactly is broken?

comment 2y ago · link · parent

You can start with Go's standard library: https://github.com/golang/go/tree/master/src

comment 3y ago · link · parent

I know, though lot of major religions do not think so.

comment 3y ago · link · parent

> so it isn't new

I agree but so far mainly philosophers & intellectuals used to ponder. With advancement in tech many believed that intellectual or creative work is safe. I think now this is a jolt to a lot of white-collar folks who are looped in with the recent advancements in AI.

Its not that intellectual or creative work will vanish but a lot of the current work will be commoditized.

comment 3y ago · link · parent

These things have suddenly going mainstream and lot of ppl (including me) are having existential question: what does it mean to be a human?

PS: It will be fun to do in "damn nature u r scary" voice & style [1]

[1] https://www.youtube.com/watch?v=-vlFHlSm1r4

comment 3y ago · link · parent

Reminds me of a dialogue from the movie: "The Pursuit of Happyness"

Interviewer: What would you say if man walked in here with no shirt, and I hired him? What would you say?

Will Smith: He must have had on some really nice pants.

Go has some really nice pants i.e Simplicity with good enough performance, backed by big corp.

Simplicity scales!

12345
10