HNHacker News
TopNewBestAskShowJobs

surajrmal

2,078 karma · joined October 31, 2017

submissionscomments
surajrmal··on Cost of enum-to-string: C++26 reflection vs. the old ways
Anybody the derive traits rust has are a good demo.
surajrmal··on Google says criminal hackers used AI to find a major software flaw
If you've ever actually looked into the implementation details of how face unlock works, you might feel a bit less spooked. Android and iOS go a very long way to isolate biometrics from the rest of the system. It's good to be skeptical, but it's also worthwhile to do some research.
surajrmal··on Google says criminal hackers used AI to find a major software flaw
I can assure you that Google is not coordinated enough to pull off this sort of thing. Security researchers only care about security research. There might be some level of oversight on what's published, but the core security teams are not actively seeking a way to promote a particular narrative.
surajrmal··on Hardware Attestation as Monopoly Enabler
It's hard to listen to arguments when everything is so hyperbolic. The stated rationale for attestation for captcha is to ensure there is a human on the other end and not a bot. This requires a system which is not capable of automated input. The other use case is for ensuring that an application is running on a system which protects the app from being tampered with (by the user, malware, or otherwise). While that seems to run counter to the preferences of the hn userbase, it is a legitimate desire from an application developer.

Neither of these situations are related to any so-called spyware. The fact that Google is involved here had to do with the fact that they are a trusted party for folks to rely on to ensure the desired properties are being met, nothing more. In theory it should be possible for other parties to provide similar attestation, but that party needs to be deeply involved in the OS and boot chain. Apple is obviously capable and is equally trusted. Graphene probably provides the necessary properties but lacks a good way to attest due to the reliance on Google specific attestation APIs. That could be remedied. Otherwise Graphene would need to create their own APIs and applications would need to use them, which would be a harder sell. In both cases the party asking for the attestation needs to decide to trust Graphene, which is still a barrier, but that's an easier way forward. Alternatively, Google could trust Graphene and everyone who already trusts Google would inherit such trust.

surajrmal··on Google broke reCAPTCHA for de-googled Android users
I did read your comment, but making money from speaking about software is not selling out to me. Is that what you meant?

I think open source works best when folks don't expect to make money off of it. I don't think Linus or Stallman expected to make money off of their free software. In some cases you might be lucky and able to get consulting contracts from firms related to your open source code but it's not reasonable to assume that will happen. It's possible it's harder to get lucky today than before but it was always unlikely.

surajrmal··on I returned to AWS, and was reminded why I left
Arguably the town is at fault for choosing to permit Walmart to open in their town in that analogy. If you want to control the negative externalities of capitalism you can't just expect to not provide regulations and hope things will work out.

Even if it weren't AWS, someone else with enough determination could use the same open source code to create a compelling alternative taking away business from the original authors. Trying to use social norms to make people not do that is not effective. You need mechanisms that can be enforced via legal procedures to be effective.

surajrmal··on AI is breaking two vulnerability cultures
Go is not suited for kernel development. Memory safety is not sufficient for the use cases where rust excels.
surajrmal··on Google broke reCAPTCHA for de-googled Android users
Arguably anyone else who can provide a similar level of trustworthy authentication that they are not a bot can work with Google to get support. Fundamentally this is a trust based problem and only OS providers are even capable of building such systems. There are very few of those out there. The key is that the systems need to be locked down to prevent automation of input and that automatically disqualifies most android alternatives that the community likes. It's clear that Apple offers this capability though. I can imagine a more locked down version of Windows also providing this in the future.
surajrmal··on Google broke reCAPTCHA for de-googled Android users
What do you define as selling out? Having a different perspective from your own? There are many legitimate reasons for why someone can believe the opposing view points. Devolving into us vs them rhetoric is not conducive to a reasonable conversation.
surajrmal··on Google broke reCAPTCHA for de-googled Android users
I'm not sure the definition of anti-trust matches what you're saying. Are there any retail android devices for sale without Google Play Services? Also, notably iPhones will be able to still work despite not having Google Play Services.
surajrmal··on The Upper Middle Class Trap
It's absurd to say the upper middle class doesn't use public transportation. Of course they do. My commute is $8 each way on public transportation and would be significantly worse or more expensive if I drove (traffic) or used Uber. I could afford to live closer to work, but I wouldn't have nearly a nice home or sense of safety for my family. Childcare also is still a major consideration when deciding how many children to have. No one wants to earn upper middle class wages and still end up living paycheck to paycheck.
surajrmal··on Async Rust never left the MVP state
Arguably the state it was left in is the state that was sufficient for the needs of all adopters. Don't fix something if it ain't broke. I know it's been sufficient for fuchsia which did a lot of the initial investment. The types of improvements described in the post tend to only matter at scale or in embedded use cases. No one from those realms has decided it was a sufficiently important problem to prioritize solving until now so it didn't get solved.

Even if MVP is the correct term for its current state, it has a connotation to it which less informed folks will take away the wrong meaning from, so perhaps it's not useful to continue to propagate it even if true.

surajrmal··on Dav2d
What is your criteria to measure this by and over what time scale? In 5 years, I have doubts we will see even 5% penetration of riscv on platforms which end user software runs (outside of China). I wish I could be more optimistic, but after paying attention to the standards process due many years and seeing the landscape evolve, I've become pesemistic on the matter. Even after hardware is competitive, software support will continue to lag. This culminates in security, performance and power challenges that would regress user experience compared to arm and limit adoption by device makers.
surajrmal··on Async Rust never left the MVP state
Rust can be used in contexts like dynamic linkers, kernels, libc, microcontrollers, dynamic libraries, and all sorts of places go has no business running. And it can use async in many of them. Go works fine for many contexts but we already have languages like go that work for those contexts. Rust is for the contexts it doesn't work well for. It's painful that it keeps being pushed to support things that would make it more difficult to support the areas it is unique in supporting.
surajrmal··on Async Rust never left the MVP state
That's the thing though, it's possible but it makes the simple hello world example more tedious. It's totally possible to make an abstraction layer, provide a tokio implementation out of the box but leave the door open for other implementations to slot in. Anyone who's written portable code for non posix systems is used to this experience. Standardization is definitely better but it also has its own share problems as it can limit what's possible. I expect that the decision to delay standardizing on these interfaces too early will end up leading to a better long term design. Especially if major improvements to async are on the horizon and can alter the final shape of that standard.
surajrmal··on Async Rust never left the MVP state
It's very much possible to use rust for a lot of areas with async without needing to be dependent on tokio. I think it's really just the web/server stuff that's entirely tokio dependent. Writing libraries to be executor agnostic is not terribly difficult but does require some diligence which isn't necessarily present in most of the community.
surajrmal··on Dav2d
riscv is primarily used in microcontroller or peripheral cores on an soc. It'll be a while yet until it is competitive on application cores that applications people run on such that we adopt it in mass. Arm and x86 are also not legacy or going away. The choice to focus on them is rational at this time.
surajrmal··on Your phone is about to stop being yours
You can in fact side load it. There are no restrictions on apps loaded via adb. The 24H restriction period on side loading only applies to apps retrieved by other means.
surajrmal··on Box to save memory in Rust
This clippy lint does a good job of warning you when this might happen: https://rust-lang.github.io/rust-clippy/master/index.html?se...
surajrmal··on Box to save memory in Rust
I'm a huge fan of perfetto. It requires some manual steps to get working with Linux, but it's a great tool: https://perfetto.dev/docs/data-sources/native-heap-profiler#...
surajrmal··on My audio interface has SSH enabled by default
Linux defaults are unfortunately not great for production of devices of this nature. By comparison, android ships with 3 default image types, eng, userdebug, and user. By creating this system of preconfigured defaults, it makes it easy to avoid this sort of mistake.
surajrmal··on Our eighth generation TPUs: two chips for the agentic era
What benefit is there to sticking on older models? If the API is the same, what are the switching costs?
surajrmal··on Our eighth generation TPUs: two chips for the agentic era
Gemini CLI isn't a great product unfortunately. While it's unfortunately tied to a GUI, antigravity is a far superior agent harness. I suggest comparing that to Claude code instead.
surajrmal··on Jujutsu megamerges for fun and profit
I was in this situation long before llms came along. They may have exacerbated it a bit, but they are not the root cause.
surajrmal··on Jujutsu megamerges for fun and profit
It depends. We have pretty good review culture (usually same day rarely more than 24H), but some changes may need multiple rounds of review or might be have flaky tests that uncovers after a few hours. Also some work is experimental and not ready for pushing out for review. Sometimes I create a very large number of commits as part of a migration DND I can't get them all reviewed in parallel. It can be a lot of things. Maybe it happens more with monorepos.
surajrmal··on Jujutsu megamerges for fun and profit
If you wrangle a lot of in flight changes that are not yet merged into your teams primary git repo, it's very helpful. I have some 10-30 changes in various states at any time. Sometimes they have dependencies on each other sometimes they don't. Placing them all into one branch can work but it's a lot less ergonomic in many ways. jj makes my life simpler because it accommodates my workflow in a way git doesn't.

Honestly, if you don't find it appealing you don't need to use it. I think a lot of folks don't find vim appealing and stick to vscode and that's okay too.

surajrmal··on Jujutsu megamerges for fun and profit
There are a lot of assumptions baked into your assessment. We are not at the point where manual workflows are obsolete. Maybe it is for folks who work on web apps, but it's certainly not the case for many others. AI Agents are constantly making mistakes and need oversight. Things have gotten dramatically better, but not enough for me to trust it to not create a terrible mess.
surajrmal··on WebUSB Extension for Firefox
There is a host of software that only runs on Windows which can now run on any os with webusb. It's a glorious improvement
surajrmal··on Keep Android Open
Yes because enforcement of the signing is also done via Google play services.
surajrmal··on GitHub Stacked PRs
Previous iterations have been a bit dated in terms of UI, but modern versions are pretty good. What interactions are bizzare? Leaving comments, approving a change and running presubmit tests are all pretty straightforward.
← PreviousPage 6 of 34Next →