HNHacker News
TopNewBestAskShowJobs

surajrmal

2,078 karma · joined October 31, 2017

submissionscomments
surajrmal··on GitHub Stacked PRs
My core complaint is that folks repeat best practices without understanding them. It's simple to provide API semantics that appear like a map without resorting to using hashmap. I fear python style development has warped people's perception for the sake of simplifying the lives of developers. And all users end up suffering as a result.
surajrmal··on GitHub Stacked PRs
Right. Just use directly.
surajrmal··on GitHub Stacked PRs
Why not use gerrit? It's pretty similar.
surajrmal··on What is jj and why should I care?
This isn't true?
surajrmal··on jj – the CLI for Jujutsu
Specific commands don't really showcase the appeal of jj. If anything they might scare someone at first glance. It's the fact that the workflows are intuitive and you never find yourself reaching for help to get something done. You really need to try it to understand it.
surajrmal··on jj – the CLI for Jujutsu
I think there are a lot of things that work well but still get improved versions. For example, grep works well but there are plenty of better versions these days.
surajrmal··on What is jj and why should I care?
It hasn't been touched in 3 months: https://github.com/rue-language/rue .
surajrmal··on jj – the CLI for Jujutsu
jj edit has good use cases, but it's not the default command you need. For instance, say you were working on some changes but had to change branches for a few minutes to do something. If you didn't manage to create a commit and want to go back to the previous staging area, you would use the jj edit command rather than jj new. It's very intuitive in my experience, something I can't say is true for managing git commits (unless you've spent years forcing it into muscle memory). I never need to run jj help. I run help commands with git all the time.
surajrmal··on jj – the CLI for Jujutsu
I don't usually do that right away, but I often use squash or absorb to move additional changes into a commit I already made in my stack. I think the spirit still applies if you take that course.
surajrmal··on jj – the CLI for Jujutsu
I use jj commit -i a lot when writing the paths is too tedious. What's nice is you can pass -i into most commands (squash, split, absorb, etc).
surajrmal··on GitHub Stacked PRs
Depends on what frontend tool you use. You can use either. These days you can also use jj. I'm not sure the backend resembles peforce any longer.
surajrmal··on GitHub Stacked PRs
You must belong to the club of folks who use hashmaps to store 100 objects. It's amazing how much we've brainwashed folks to focus on algorithms and lose sight of how to actually properly optimize code. Being aware of how your code interacts with cache is incredibly important. There are many cases of using slower algorithms to do work faster purely because it's more hardware friendly.

The reason that some more modern tools, like jj, really blow git out of the water in terms of performance is because they make good choices, such as doing a lot of transformations entirely in memory rather than via the filesystem. It's also because it's written in a language that can execute efficiently. Luckily, it's clear that modern tools like jj are heavily inspired by mercurial so we're not doomed to the ux and performance git binds us with.

surajrmal··on Surelock: Deadlock-Free Mutexes for Rust
If you can get a stack trace of the process it is usually pretty easy to figure you will see two or more threads waiting on different futexes. I would say async deadlocks are far trickier to debug - task a sends a message to task b and task b sends a message to task a. Both tasks wait on processing further messages until the other side replies to their message. At the end of the day you need strict ordering of who is allowed to call into the other and block.
surajrmal··on Sam Altman may control our future – can he be trusted?
Are Irish red and Italians olive? Most folks of color consider Jewish folk of a certain complexion white. Heck, some Mexicans are seen as white.
surajrmal··on Sam Altman may control our future – can he be trusted?
The idea that it's not okay to arm the military is a position of privilege. The ethical issues are around how the military chooses to use its abilities, not around giving them the tools to do their jobs. We're talking about folks who are willing to give their lives up for others. If you're not going to serve yourself you should at least be willing to help them live. This has nothing to do with whether or not you support the political uses of the military. If world war 3 breaks out and you are forced to serve, you may find yourself feeling differently.
surajrmal··on Sam Altman may control our future – can he be trusted?
Depending on what part of Google you work for, you can absolutely feel good about what you do. The vast majority of employees don't work on ads or adjacent areas. I've never seen another company actually care for non profit related externalities so much. People talk about it like it's the same as Haliburton or Oracle and that's not true.
surajrmal··on Codex pricing to align with API token usage, instead of per-message
This lines up with my experience. Antigravity doesn't have this shortcoming though. I think the agent harness matters equally to the model. Gemini CLI and opencode aren't very great harnesses in my opinion.

I too dislike having my choice of ide forced on me. Hopefully that situation improves, but antigravity demonstrates that Gemini isn't necessarily behind by that much.

surajrmal··on In Japan, the robot isn't coming for your job; it's filling the one nobody wants
Does that include stay at home parents?
surajrmal··on Codex pricing to align with API token usage, instead of per-message
Are you using gemini CLI or antigravity? The former is not really comparable to the latter in terms of quality. I wouldn't say antigravity is as good as the competition but it's pretty close. Miles behind is overstating it.
surajrmal··on How many products does Microsoft have named 'Copilot'?
Well it depends on what you're talking about. The model names were originally called lambda, followed by palm and then finally gemini. The chatbot product was internally known as meena, launched as Bard, and then transitioned to Gemini once the Gemini model came out.
surajrmal··on LinkedIn is searching your browser extensions
Don't worry, soon you'll need to pay every website 5.99 a month because AI is destroying click through rates. The internet will likely be far worse without ads than with ads. Solving the tracking problem doesn't need to be mixed up with blocking ads outright. What's funny is that tracking isn't nearly as meaningful for click through rates on ads as relevance to what's on the page, and yet so much effort is placed onto tracking for the slim improvement it provides.
surajrmal··on I quit. The clankers won
Code quality will impact the effectiveness of ai. Less code to read and change in subsequent changes is still useful. There was a while where I became more of a paper architect and stopped coding for a while and I realized I wasn't able to do sufficient code reviews anymore because I lacked context. I went back into the code at some point and realized the mess my team was making and spent a long while cleaning it up. This improved the productivity of everyone involved. I expect AI to fall into a similar predicament. Without first hand knowledge of the implementation details we won't know about the problems we need to tell the AI to address. There are also many systems which are constrained in terms of memory and compute and more code likely puts you up against those limits.
surajrmal··on Claude Code Unpacked : A visual guide
Bad by whose definition? They work really well in my experience. They aren't perfect but the amount of hand holding has gone down dramatically and you can fix any glaring problems with a code review at the end. I work on a multimillion line code base which does not use any popular frameworks and it does a great job. I may be benefiting from the fact that the codebase is open source and all models have obviously been trained on it.
surajrmal··on How the AI Bubble Bursts
That's not a necessarily profitability thing as much as a demand thing. The only way to improve the supply for those willing to pay more is to take it away from those paying less. Once supply catches up to demand things will change
surajrmal··on LinkedIn uses 2.4 GB RAM across two tabs
This is not a chrome problem but an OS problem. Android does a much better job here by comparison. Desktop Linux is simply not well optimized for low RAM users.
surajrmal··on LinkedIn uses 2.4 GB RAM across two tabs
This isn't true for OS like Windows where the kernel is informed that the memory is discardable and it can prioritize discarding that memory as necessary. It's a shame that Linux doesn't have something similar.
surajrmal··on LinkedIn uses 2.4 GB RAM across two tabs
That's not how it works. Process killing is one of the last ways memory is recovered. Chrome starts donating memory back well before that happens. Try compiling something and see how ram usage in chrome changes when you do that. Most of your tabs will be discarded.
surajrmal··on OpenAI to double workforce as business push intensifies
If your work is parallizable, you can get more done. Eg more enterprise features you weren't currently going to do, more sales calls, more marketing campaigns, etc. mythical man month only applies to highly coupled work with large ramp time. Engineers often don't spend enough time planning to keep work decoupled (and with less people it's unnecessary overhead to do so).
surajrmal··on Wine 11 rewrites how Linux runs Windows games at kernel with massive speed gains
I work on OS/embedded and my wife in server backend. I definitely feel like a simpleton when trying to understand all of the high level stuff she works on. It doesn't invalidate my own expertise. There is nothing wrong with acknowledging someone has skills that you don't have and likely would take a long time to pick up.
surajrmal··on Ripgrep is faster than grep, ag, git grep, ucg, pt, sift (2016)
Have you heard of fastmod?
← PreviousPage 7 of 34Next →