HNHacker News
TopNewBestAskShowJobs

kenhwang

4,324 karma · joined February 24, 2017

submissionscomments
kenhwang··on How to Lead in a Room Full of Experts
The lead developer is the person assigned to the lead developer role. I know it's cheeky but it really could be anyone. It's usually at least a senior-level individual contributor (IC). It's not uncommon for it to be a manager (that hopefully used to be an IC).

The lead's authority also tends to be varied in scope. They could be the lead of the feature, project, repo, team, initiative, or org. Depending on the context, their hierarchy might not always be the same.

So really, a lead is someone that is in or uses leadership within their scope and with others in the same position. Alternatively referred to as "politics".

In this context, they're handing the politics of development issues with the goal of getting features done.

kenhwang··on I'm leaving Ruby Central
They probably thought it would be easier to takeover rubygems than ensure every dev and every machine for every possible ruby tool could be and is pointed at the internal gem repository.

Let's be paranoid for a moment. What if there's a supply side attack on a gem used by Homebrew. That's basically installed on every dev machine, auto-updates automatically/silently, could have sudo, that no one would care or even know how to point at a private gem repository.

kenhwang··on Windows 10 resists its end: usage share climbs while Windows 11's falls
The biggest problem I have with 11 is how unstable it is. Almost seems like there's a new BSOD trigger or data corruption bug introduced every month by Microsoft themselves, and 3rd party drivers fare even worse. A bunch of explorer and start menu random crashes too. 7 and 10 never caused this much headache for me.
kenhwang··on Will Amazon S3 Vectors kill vector databases or save them?
Did you have an account manager or support contract with AWS? IME, they're more than willing to set up a call with one of their engineers to disclose implementation details like this after your company signs an NDA.
kenhwang··on Claude Code: Now in Beta in Zed
> Curious as someone dabbling with building an editor: what do you prefer? A different configuration language? A GUI? How do you save and sync settings? Just with JetBrains account sync?

Really just a GUI for editing, the storage format can still be JSON and synced/backed up however you handle text files.

It just really nice having settings grouped by categories, with dropdowns for possible values, indicators for changes from default values or values overridden by project settings, search/hide/filters, and tooltips for what it does.

Right now the experience with Zed is: open the settings file, open the default settings file for documentation, and basically use search and copy-paste magic value strings/int/float/nulls into the right nested object/key.

> Is Zed's "zoom in" feature (shift-escape) that quickly maximises the active pane (excluding the file browser/git pane) enough? Or are you looking for the separate window experience of IntelliJ? (e.g. JetBrains lets you pop-out the commit window, I believe, which can be nice since once you close it you're back in the editor with nothing to switch or rearrange.)

Really the separate window experience (including the file browser/git pane). Really nice having the git panel just open on a window so you can quickly glance at changed files and quickly jump back to them for more editing. Or having search results able to spawn tabs in another pane/window so you don't have to keep switching back to search or rearranging the tab after opening the file from it.

Or even just expanding the workspace across monitors. Right now you can't even move tabs into its own window or across windows.

kenhwang··on Claude Code: Now in Beta in Zed
Top of my head switching between IntelliJ and Zed:

- Git UI is extremely barebones with no support for other VCS

- No merge tool or side-by-side diffs

- Configuration is all JSON

- Would be nice having a full file tree for the search editor instead of just the list; having the functionality split between a tab and the outline panel is quite clunky.

- Ability to move panels (files/git/console/debugger/etc) into standalone windows or other configurations (multiple docks per side, multiple copies of the same panel linked to a specific tab).

Zed is basically a slightly more featured text editor, so it does a good job when I just want to open something quickly and do small edits. So it's really replacing Sublime Text.

But I find myself hopping out to other tools when I'm using Zed which wasn't really common with IntelliJ. So I still want to use a proper IDE for proper development work.

kenhwang··on Toyota is recycling old EV batteries to help power Mazda's production line
In theory, yes, if those shareholders each keep not attending the meeting called by the other shareholder, they could both independently pass or undo each other's actions.

In practice in a hostile situation, they'll be courting the remaining shareholders to gain majority and won't miss those meetings, which tend to also have rules about how quickly or often they can be called.

It is also legal and typical for the bylaws to include poison pill provisions that would automatically protect the existing >33% shareholder, preventing a second >33% shareholder from existing (thus requiring multiple smaller existing shareholders to join forces to overthrow the largest shareholder).

kenhwang··on Toyota is recycling old EV batteries to help power Mazda's production line
Think of it like how Zuckerberg only owns 13% of Facebook but has >60% of the voting power.

Japanese law allows corporations to only require 1/3 of voting shares present for quorum, and then a majority of those present to pass resolutions. It also allows cross-shareholders (like Toyota) to have special privileges over regular class shareholders (typically right of first refusal over any resolution).

In practice, nothing much will pass without the largest shareholder's approval.

kenhwang··on Toyota is recycling old EV batteries to help power Mazda's production line
Toyota owns a de facto controlling stake in Subaru (~20%).

Due to typical Japanese corporation by-laws, it only takes 33% share ownership for uncontested control of a corporation, and >50% of 33% means they'll never lose a vote for simple majority matters, which is basically everything except selling or dissolving the company.

The 20% threshold is for a guaranteed seat on the board, which lets them put issues up for a vote.

kenhwang··on Toyota is recycling old EV batteries to help power Mazda's production line
That's a trust account though, they're just holding shares on behalf of fund managers or individuals. They also generally don't vote.

So for all intents and purposes, Toyota is the largest singular voting shareholder.

kenhwang··on Toyota is recycling old EV batteries to help power Mazda's production line
Mazda as a company has a very good track record of adopting green production initiatives. For example, they were one of the first to switch to water based paint to reduce VOC emissions, and specifically formulating the paint to not require heat-drying to lower energy use.

Their current stance seems to be that PHEVs are better than EVs for the environment because it better matches the driving patterns of the typical customer and charging availability, and minimizes the weight of the vehicle and production of batteries, both of which are still contribute significantly to pollution.

kenhwang··on Waymo granted permit to begin testing in New York City
A single middle lane shared by both directions for left turns. Also unofficially used as parking for food/package delivery drivers in LA.
kenhwang··on Waymo granted permit to begin testing in New York City
Here in Santa Monica, the Waymos will happily cut off pedestrians in crosswalks as soon as it decides it has waited reasonably long enough and it won't hit them.

Same with 4-way stops: once it thinks it waited long enough, it doesn't matter whose turn it rightfully is, if it sees an open path it will just take it.

kenhwang··on Waymo granted permit to begin testing in New York City
Not sure why you have the impression Waymos follow written driving rules. Here in LA they break every rule that LA drivers would with the aggressiveness to match. It really does seem like they try to make them drive as "human" as possible, with all the typical behavior found in the locale. I can't imagine it'd be any different in NYC.
kenhwang··on Waymo granted permit to begin testing in New York City
People in LA wait to jaywalk on the street or even in the suicide lane all the time. The Waymos handle it fine; generally by asserting it has right of way unless collision is obviously imminent. They'll even happily swerve around you if you're too far out.
kenhwang··on Waymo granted permit to begin testing in New York City
Waymo in LA also drives pretty much like a human here would, which includes: not yielding for pedestrian-only crosswalks, running red lights, driving in the oncoming traffic/suicide/bike lane, occupying two lanes, blocking entrances/driveways/intersections, and stopping/parking in no-stop/parking curbs.

They're only really phenomenal at not hitting things; they really aren't good/courteous/predictable drivers under most conventional definitions.

Still, I think rollout in NYC will be fine. NYC generally drives slower and much less aggressively than LA, and slower gives the Waymo plenty of reaction time to not hit things.

kenhwang··on The surprising geography of American left-handedness (2015)
String actuation requires much finer and varied motor skills than simply pressing down on the string. There's many strengths and directions in how a string can be plucked or bowed or strummed and it changes how it sounds, but pressing down on the string is pretty on/off binary.
kenhwang··on GCP Outage
If you want a stronger confirmation about Claude being hosted on GCP, this is about as authoritative as it gets: https://www.anthropic.com/news/anthropic-partners-with-googl...
kenhwang··on Cloudflare was down
From their incident page (https://www.cloudflarestatus.com/incidents/25r9t0vz99rp):

> Cloudflare’s critical Workers KV service went offline due to an outage of a 3rd party service that is a key dependency.

I bet that 3rd party service is GCP.

I would be pretty pissed if I were a CF customer that used Workers KV for redundancy because it was heavily marketed as running on CF data centers.

kenhwang··on Cinematography of “Andor”
I echo the sound/dialog complaint for Andor as well. I think it's one of the few high production budget shows in recent memory that sounded like it was mixed for 2.0 audio.

Watching on my 7.1 setup was actually more annoying than watching on my computer with 2.0. There's a very obvious bass-boost as if they assumed there isn't subwoofer in the setup, and dialog didn't get any clearer with a dedicated center, it was still kinda floaty across the front. Surround channels just sounded like they echo'd the L/R channels.

kenhwang··on Cinematography of “Andor”
I had the opposite opinion of Andor's cinematography. On a nice OLED, everything looked so gray and flat because most scenes were devoid of true dark blacks or bright whites or vivid colors; like every detail on every scene had to be softly uniformly lit so it could be seen. All the beautiful shot composition was defeated by the color grading and lighting that just screamed that it was targeted towards lower common denominator streaming quality screens and not theaters.

Whole time I thought there was really no point watching on an OLED or in HDR cause it's not taking advantage of either.

You can even see it on the photos in the article. The BTS photographs have contrast and blacks while the stills from the show are muted and gray.

The whole series basically looked like it was trying to recreate the "Shot on Google Pixel" look and completely opposite of HBO's black on black on black.

kenhwang··on Android Isn't the Anti-iPhone Anymore
I'm in the same boat as well, my current Android will be my last.

The hardware keeps falling further behind on specs while it cuts features and raises prices.

The software is quickly becoming forced AI gimmicks that stop being supported in the next update and change for the sake of change for worse and bugs galore. I pretty much dread when Android updates now; the best case scenario is everything gets a bit uglier, but the typical case is instability for a couple months.

Meanwhile, Apple's ecosystem keeps getting better.

kenhwang··on Block YouTube ads on AppleTV by decrypting and stripping ads from Profobuf (2022)
SSAI (server side ad insertion) is not uncommon for premium streaming video; Twitch and Hulu have had the technology in use for years. It's also practically just a checkbox option to enable the feature for all major ad serving tech platforms, including Google's DoubleClick.

They're not using it simply because it increases server and bandwidth costs. YouTube is still positioned as part of Google's "moat" by driving down video ad price so no one else can build an ad empire off video instead of being a profit generating division on its own.

kenhwang··on Tiny JITs for a Faster FFI
I believe this is the paper that started it all (there are a couple of follow up papers): https://arxiv.org/pdf/1411.0352v1

The author was eventually hired to develop YJIT.

kenhwang··on Tiny JITs for a Faster FFI
Not at all saying Ruby's compiler is more capable, more that typical Ruby code is easier to optimize by their JIT design than typical JS, largely because Ruby's type system is more sane.

The whitepapers that inspired Ruby's JIT was first tested against a saner subset of JS, and shown to have some promising performance improvement. The better language/JIT compatibility is why the current Ruby JIT is actually showing performance improvements over the previous more traditionally designed JIT attempts.

JS can get insanely fast when it's written like low level code that can take advantage of its much more advanced compiling abilities; like when it's used as a WASM target with machine generated code. But humans tend to not write JS that way.

Agreed about Go as well, it tends to be on the slow side for compiled languages. I called it out not as an example of a fast language, but because it's typical performance is well known and approximately where the upper bound of how fast Ruby can get.

kenhwang··on Tiny JITs for a Faster FFI
For Ruby, it's code where variables and method input/return types can be inferred to remain static, and variable scope/lifetime is finite. From my understanding, much of the performance gain was from removing the need for a lot of type checking and dynamic lookup/dispatch when types were unknown.

So basically, writing code similarly to a statically typed compiled language.

kenhwang··on Tiny JITs for a Faster FFI
If the code JITs well, Ruby performs somewhere between Go and NodeJS. Without the JIT, it's similar to Lua.
kenhwang··on Tiny JITs for a Faster FFI
Ruby has realized this as well. When running in YJIT mode, some standard library methods switch to using a pure ruby implementation instead of the C implementation because the YJIT-optimized-ruby is better performing.
kenhwang··on How Nissan and Honda's $60B merger talks collapsed
For starters, the Leaf wasn't a sedan, it was a hatchback. In the US market, hatchbacks have always significantly lagged sedans in sales despite being more practical. The regular Prius has evolved to look sleeker and sportier with each generation, but the boxy hatchback Prius V variant was quickly discontinued after introduction due to poor sales.

US consumer preference seems to weigh aesthetic appeal much more than other markets, even at the cost of function. Some other examples are the rugged boxy SUVs that have an aerodynamic/fuel economy penalty compared to their sleek blob counterparts, or the the coupe SUVs that sacrifice both rear headroom and storage capacity for a "sportier" look.

kenhwang··on Google Maps now shows the 'Gulf of America'
I see Gulf of America when it's zoomed in, but Gulf of Mexico when zoomed very out or very very in.
← PreviousPage 4 of 31Next →