HNHacker News
TopNewBestAskShowJobs

lallysingh

9,763 karma · joined July 28, 2008

I work at Tesla, but speak for myself. Opinions are my own.

Performance of high-scale/low latency systems, counter-censorship systems, embedded systems, distributed VR systems, web browsers, compilers, some kernel work, even the occasional webapp.

Contact: lally.singh AT gmail

submissionscomments
lallysingh··on C++ left arrow operator (2016)
Pointer to what, exactly? It doesn't make sense for it to be an object instance pointer, because you can use the same pointer to member on several different objects instances. If one instance's pointer was embedded in the pointer-to-member, it wouldn't work for other instances.

I have no idea what the format of a pointer-to-member is. It sure looks like a small closure.

lallysingh··on Microsoft again bothers Chrome users with Bing popup ads in Windows
They use the tactics because people stay, because they're probably too afraid to leave. As MS knows this, they're free to abuse as they wish.
lallysingh··on A TUI Git client inspired by Magit
git commit -am 'commit message'
lallysingh··on SpaceX just achieved speed of 17Mb/s from satellite to stock Android phone
A map for how to get out, or a video for first aid procedures, or a guide on what's safely edible around you, or other survival information until help can get there can make a big difference.
lallysingh··on Ask HN: How can I learn about performance optimization?
It really depends on what level you're working on improving. It's effectively queues all the way down, but programmers hate reading statistics. E.g. a server process is a series of queues between your TCP socket to your process to your disk, CPU's reorder buffer, and scheduler.

You have three areas to study:

1. Measurement - makes you define the performance you're looking for and measure it. Until you do this it's mostly a bullshit "make people stop complaining about performance" errand that's too wishy washy to do with more than a few stabs in the dark. With containers and decent capture of samples of your load, a benchmark is pretty straightforward to set up.

2. Modeling - these models are usually little more than measured rates and latencies applied to Little's Law. Pocket-calculator math is often good enough. At worst, an M/M/1 queue.

3. Instrumentation - Figuring out how to attribute your computer's resources (memory, CPU time, iops, etc) to different parts of your code. Tracing libraries, Linux perf, and ebpf can be useful here.

There are a decent number of computers performance books. I like the ones by Jain (great, but AFAICT out of print) and Harchol-Baltar. For work, you shouldn't read them straight through but iterate through parts as you better understand the problem you're trying to solve and start choosing strategies. For the tactical side. Brendon Gregg (sp?) has some decent measurement tool books. Figure out what you want to improve and how to measure that. Then start attributing the existing performance to implementation choices that you can control. Then control those choices (e.g. change algorithm, load balance better, make design trade-offs) to improve performance.

lallysingh··on HDMI Forum Rejects Open-Source HDMI 2.1 Driver Support Sought by AMD
I searched "TV with displayport" and found a bunch..
lallysingh··on The KDE desktop gets an overhaul with Plasma 6
Gnome's toolkit, gtk, originated as the toolkit the gimp folks wrote to get off of Motif a long time ago. Since then the Gs have had reassigned meanings.
lallysingh··on HDMI Forum Rejects Open-Source HDMI 2.1 Driver Support Sought by AMD
There are lots of TV manufacturers to choose from, thankfully.
lallysingh··on Only real people can patent inventions – not AI, US Government says
I think that 'proof' would be making a prompt showing the AI's output, with it having done most of the "innovation."
lallysingh··on Only real people can patent inventions – not AI, US Government says
If someone challenged your patent, they can try to prove that you used an AI.
lallysingh··on Japan's precision moon lander has hit its target, but appears to be upside-down
They did lose a thruster on the way down.
lallysingh··on The Global Project to Make a General Robotic Brain
And make the simulator more realistic
lallysingh··on The Global Project to Make a General Robotic Brain
I do wonder about automation in training. Build 50 robots and have them execute in parallel, then reconcile. Or train in a VR system.
lallysingh··on Hertz to sell 20k EVs in shift back to gas-powered cars
You'd think they could give you a pamphlet with the key to cover the basics.
lallysingh··on A CEO's Guide to Emacs (2015)
I think EMACS is a fantastic editor, partially because you can extend it however you like. And, those extensions work forever, they don't get lost every time you change teams and have to change IDEs.

No, you can't live your entire life there, but that was never a great idea. Instead, it's great for software development activities. Org mode and magit are very hard to match outside of EMACS.

The primary things you do in an IDE are debugging, browsing code, writing code, and then writing documentation. With LSP, it's now fantastic at all of those. I can write documentation easily with org mode, and GUD is a really good debugger. And I can extend GDB with Python, to simplify the common stuff I often have to do with my own data structures and types.

With emacs, a web browser, and a terminal, I can do effectively anything I need to do on a computer and do it well.

lallysingh··on I cut GTA Online loading times by 70% (2021)
I agree with you, but let's play devil's advocate. People waiting already paid for the game, so the business value here is hard to justify. And $10k is a decent amount of $ for the labor involved.
lallysingh··on Copilot key will eventually be required in new PC keyboards
You could argue the same for bic (the pen/lighter company). Solid, stable, enterprise friendly (100 packs!) and still somewhat innovative (new kinds of pens, white out, etc).
lallysingh··on Niklaus Wirth has died
ACM Historian JAN Lee said he was the origin of that joke, if I recall that conversation correctly.
lallysingh··on The cheesy charm of the Clapper
North is a qualifier of American - denoting a subset of America. "American" is used by citizens of the USA only because the country's name doesn't give a better moniker. If the USA wasn't rich or powerful, "American" would mean the same as "Asian" or "European."
lallysingh··on Salim Kara stole $2M in coins with a magnet and a car antenna (2022)
I believe FDIC limits what the owners can do.
lallysingh··on Driverless cars immune from traffic tickets in California under current laws
No it doesn't, but they should ticket the cars anyway. The ticket gets paid by Waymo or whoever runs the car. They don't want any more resentment from other drivers.
lallysingh··on First new U.S. nuclear reactor since 2016 is now in operation
You don't have to worry about disposing of any copper pipe!
lallysingh··on LinkedIn shelved plan to migrate to Microsoft Azure cloud
I meant a competitor to Azure
lallysingh··on US nuclear-fusion lab enters new era: achieving 'ignition' over and over
I think someone would've said the same thing about megaflop computers before the IC was invented.
lallysingh··on LinkedIn shelved plan to migrate to Microsoft Azure cloud
Could LI have selected a competitor?
lallysingh··on LinkedIn shelved plan to migrate to Microsoft Azure cloud
It was MS buying LI and then wanting them on Azure. There's a huge Azure branding play here that - I'm guessing - drove this work. A distant second was some cost savings in the far future.

The hit to Azure's brand for this is probably significant. Who was looking at a migration to Azure before who's now discouraged?

lallysingh··on Tesla Recalls 2M Cars to Fix Autopilot Safety Flaws
It's not mainly dumb users, it's users when they're tired, distracted, or ill. Everyone gets like that and some safeguards make sense.
lallysingh··on GM says it's dropping Apple CarPlay and Android Auto because they're unsafe
25yrs old is a bit extreme for anecdotal data on used cars. My 10yr old truck has been pretty reliable.
lallysingh··on Ask HN: What apps have you created for your own use?
My profiling tool: github.com/lally/ppt

I needed really high quality performance telemetry ("profiling" is a mixed choice) for my PhD. You specify the payload type in an IDL and it generates types and transport code. Fill in a struct and hit save(). If the process is being observed, this'll copy the struct to a lock-free ring buffer that the observer injected in. Includes CPU performance counter support.

lallysingh··on Beeper Mini is back
Shh don't mention Voice. Google obviously forgot that they still had it turned on. If they remember it'll get killed.
← PreviousPage 6 of 34Next →