HNHacker News
TopNewBestAskShowJobs

wryanzimmerman

69 karma · joined June 17, 2023

submissionscomments
wryanzimmerman··on Keeping Figma Fast: perf-testing the WASM editor
For everything outside the canvas (sidebars, toolbars, etc) figma is a react app.
wryanzimmerman··on Keeping Figma Fast: perf-testing the WASM editor
You should get a mac laptop, you can run figma all day without even needing to plug in the laptop to charge.
wryanzimmerman··on Keeping Figma Fast: perf-testing the WASM editor
For #1: don’t use it in chrome, download the app (it seems like it takes advantage of the wrapper pretty well); for #2, just click on the designer’s name in the top corner to zoom your screen to theirs and let them drive for a second!
wryanzimmerman··on Show HN: I automated half of my typing
All depends on what you’re doing… sometimes people have to write, like, css.
wryanzimmerman··on Changing my relationship with GitHub Copilot
This does not match my experience… Copilot produces code that I would be fine with coming from a junior, but I’ve never seen it do something more than one or two lines that doesn’t have serious issues or bad practices.

Copilot seems to have vacuumed up all the “quick hack to make this work” code from blogspam and bootcamp-final-project type open source repos, but I’m in an area absolutely flooded with that kind of code (typescript/react) so maybe it’s better with other kinds of code. Typescript/react is so bad now that google searches often return blog posts full of confidence and issues.

A few times it’s generated bugs that I couldn’t even catch by reading but it blows up spectacularly when scaled up even a little bit.

wryanzimmerman··on StarLite 12.5-inch Linux tablet
“Smooth vscode setup for development”

I assume you’re using some sort of remote dev server?

wryanzimmerman··on We Ruined Status LEDs; Here’s Why That Needs to Change
First step in any hotel room is find the nightstand light and unplug it to plug in your phone charger. Second step is unplug the tv to kill the status lights… I’m shocked that hotels haven’t started changing things just to save the cost of plugging it back in.

Airbnbs, on the other hand, usually come with the nightstand lights pre-unplugged in my experience, sometimes with the cables all coiled up neatly because everyone knows they’re only there for the listing photos and nobody will ever use them.

wryanzimmerman··on ChatGPT Isn't as Good at Coding as We Thought
But the real question is whether or not an LLM can let someone who can hear the music (they’re an expert in the context, the project, and the business environment) but who can’t read or write the sheet music (can’t code) will be able to make the computer do what it needs to do well enough using the LLM as a sort of person to machine translator to eliminate the need for a person to listen to the subject matter expert and write the code.
wryanzimmerman··on Every phone should be able to run personal websites
I thought this sounded weird so I tried it.

It took me about two mins, and most of that was because I typed a minimal html page on my phone using vi.

My phone has an apple logo, and the whole point of the article is that android is the one which blocks you from doing this without jailbreak. But on an iPhone it takes like one minute and zero configuration. (I literally just ran `python3 -m http.server 80` with no issues in ish).

wryanzimmerman··on Downfall Attacks
But “regular old apps” don’t do all the same things.

The whole point of properly developing web apps is that html/css indicates a certain level of semantic understanding which allows for different interpretation in different contexts.

If you build a web app well, you build it to be a good experience on a computer for a power user with a huge screen and a keyboard for shortcuts, good for a user on a tiny touch screen, good for a blind person who doesn’t use a screen, and good for robots to parse and index. It should even be good for someone on an iPad with a mouse or a pencil which interprets the whole concept of the mouse differently from the desktop user’s mouse.

The agreed-upon semantics of HTML and the separation of visual styling into CSS is what allows you to take a step beyond just building an app and add a layer of “say what you mean” such that human and non-human users can re-interpret it into their own devices, use cases, and specific needs.

Web frontends are at their best when you don’t expect to perfectly control the end user experience, but try to convey the semantic meaning as perfectly as you can so it can be interpreted into good experiences even in situations where the display is wildly different than originally intended.

wryanzimmerman··on Being a short-term rental host has become much harder
For people who travel a lot and stay in each place for less than three months at a time, it makes sense. I have had 1-2 airbnbs booked at a time almost constantly for the past two years, and know lots of people who work remote and do the same thing.

Airbnb is pretty much the only option for the gap between “stay a few nights” where a hotel makes sense and “stay for 4+ months” where renting a place makes sense.

wryanzimmerman··on Being a short-term rental host has become much harder
You’re still there if you need to be and you know the situation; a lot of the time Airbnb hosts don’t even live in the same country as some of their properties. A lot of the time the “host” is just someone hired to answer the Airbnb messages and let the guests in.
wryanzimmerman··on Ask HN: Any New iTerm2 Alternative?
I sometimes use and like alacritty, and also have kitty fully set up for my use, but have mainly ended up going back to iTerm.

With a slow motion camera I can prove that alacritty is faster / more responsive, and I think I can feel it, but it also has slightly more bugs and uses massively more battery. One funny issue is that I can’t screen share alacritty in zoom.

I use tmux/neovim so I’m in the terminal 100% of the time I’m working.

wryanzimmerman··on Apple reports third quarter results
It’s more that the system itself is designed with the assumption of a super fast SSD, so it keeps way more in both ram and swap longer because it can swap fast enough to not be bottlenecked.

So almost no matter how much ram you get, in multi-application day to day workflows it’ll still use swap sometimes just because it can.

If your workflow involves something like giant objects in python or huge data structures that need to be in ram for performance, then you need the ram. But for use cases like 2,000 browser tabs plus photoshop plus Lightroom plus ten electron apps, mac osx “feels” like it has way more ram than an equivalent windows machine.

wryanzimmerman··on The Canopener Bridge
In the video they explained that part of their reasoning with the water curtain is that this solution allows ambulances and police to drive through the stop sign without damaging their vehicles or slowing them down or removing the sign.
wryanzimmerman··on 18-Wheel ATV Is Borderline Unsettling to Watch
Seems like it’s basically tank treads missing the treads; how does it perform compared to something like ripsaw-style treads?
wryanzimmerman··on Ask HN: Anyone else notice that HN isn’t full of JavaScript frameworks lately?
Since the beginning, the way to solve derived state is to remove it from state—these patterns are both anti patterns.
wryanzimmerman··on Ask HN: Anyone else notice that HN isn’t full of JavaScript frameworks lately?
Almost all of the issues you’re pointing out come from misunderstandings about derived state and side effects.

Derived state should be eliminated! If it can be derived, it’s not state.

If you aren’t trying to do derived state patterns, you don’t need to access the previous value. That’s a huge red flag. Likewise, “state” in useRef is a huge red flag. useMemo() is often a signpost pointing to bugs. If the useMemo cannot be removed without getting a different behavior in the application, that’s wrong—it might be slower, but the result should be the same with or without it.

It’s not a side effect free rendering model. Mouse interactions, requests, etc, are side effects; the pattern is side effect sets state and state defines the render. The problem happens when people try to “outsmart” this pattern and try to jump from side effect to outcome by subverting the state pattern, which makes them lose most of the advantages of react.

Any discussions around “triggering renders” or “preventing renders” before the component is behaving correctly are also big time red flags.

wryanzimmerman··on Ask HN: Why can't I buy a MacBook that is connected to the cellular network
They do this with iPads without need ing too many SKUs.

And the iPad is less of a general market device than a MacBook with cellular would be!

wryanzimmerman··on “The days of using untyped languages on non-trivial projects are over.”
“Any” is a switch to disable typescript.

So if you’re using it, you aren’t really using typescript, you’re disabling typescript and saying “I want to write this part in plain JavaScript.”

wryanzimmerman··on “The days of using untyped languages on non-trivial projects are over.”
My guess is he’s referring to the way that types are fundamentally optional no-op statements in python, and therefore the level of “typing” in a given project is necessarily opinion-driven and can only be enforced through building up a lot of tooling, like making sure a type checker passes or fails all code going into deployment or CI. And even in the best case, types are duct-taped on, so there is no such thing as “perfectly type-safe”

So as soon as you have two developers on one project, you have two different opinions about it.

wryanzimmerman··on PostgreSQL: No More Vacuum, No More Bloat
I’m not sure the cpu load being higher is a bad thing, isn’t that basically showing that it is using less IO so it can use more of the cpu?

The throughput is way, way higher, so it’s using less cpu per transaction. If this were showing equal numbers of transactions the CPU usage would be lower.

Ideally, in a benchmark, I think we’d be seeing basically 100% cpu usage because that would mean the test hardware is being fully utilized and the software being tested isn’t being bottlenecked in some way.

wryanzimmerman··on It's official: Smartphones will need to have replaceable batteries by 2027
With iPhone you can’t claim warranty for water damage, but if you have apple care+ you can just say “oops I broke it, here’s $100 for a new one”
wryanzimmerman··on EU might not force Apple to make iPhones with user-replaceable batteries
There are lots of situations where it’s nice to be able to have a phone with you, like going to the beach but still having transit maps to catch the bus back.

Also swimming pools, rivers, rain, snow… you can go lots of places where a phone would most likely or definitely get soaked or submerged, and it’s useful to have a phone with you for payment, maps, messages, everything you normally use it for. Water is the only thing that has killed/broken phones for me in years.

wryanzimmerman··on EU might not force Apple to make iPhones with user-replaceable batteries
If the result of this law is “iPhone Baywatch edition”that seems like a complete win.

Worrying about your phone when you go to the beach and similar activities is super annoying.

wryanzimmerman··on Figma Is a File Editor
Most people who really use figma don’t use it in their browser.
wryanzimmerman··on Disney, Netflix, and more are fighting FTC's 'click to cancel' proposal
> Also, why has safari's mobile "request desktop site" not worked for me in over 5 years?

In large part because it’s really bad practice to have separate desktop and mobile sites, it’s generally better to just have one responsive site.

However, some badly designed sides achieve “responsiveness” by hiding functionally, which is bad because phones have no way to “zoom out” (emulate a larger screen size) to get the buttons to show up.

wryanzimmerman··on Easy SVG sparklines
I find it hard to imagine a use-case for thousands of sparklines on screen at the same time! And if it’s not on screen, you don’t need to render it.

Instead of using svg files, just include them in the html, and make them simple. Each svg sparkline only needs to be two elements (the <svg> tag and one <path>), which is crazy efficient.

Canvas uses one element, instead of two, but you have to create a custom implementation of path rendering and do all that work in JavaScript instead of native browser APIs.

Canvas pulls ahead with drawing complex images where you have a single pixel buffer representing thousands of individual “shapes” because the DOM itself is optimized for interaction, not just drawing pixels, but I think that’s a different use-case from sparklines.

wryanzimmerman··on Ask HN: How is it going to those who are using Copilot when coding? Or any LLMs?
It’s an interesting novelty sometimes, but difficult to get used to, because it often suggests more than a LSP backed autocomplete but it is never guaranteed to be correct (unlike an LSP backed autocomplete which guarantees a certain level of correctness based on your project setup and language).

I have traditional autocomplete and copilot mapped to separate keys in my editor and have learned to treat them separately.

Copilot seems to be best for things like refactoring boilerplate within the same file, where it grabs patterns and can expand them, or if you are working “backwards” like you use a variable and then move up in the file to define it (where the LSP would see the error but won’t help you).

I never let copilot complete more than the end of my current line because I’ve been burned by very sneaky bugs way too often. It’s easier and less error prone to write code than read it.

LSP understands your project but has no idea what you want to do, copilot is like a helpful coworker looking over your shoulder at what you’re doing and suggesting things based on patterns they’ve seen in the past in different projects.

wryanzimmerman··on Ask HN: Why does Apple refuse to add window snapping to macOS?
I’m a power user who wants minimal distractions… OSX provides that just fine, my workflow is nearly identical between OSX and Linux because it’s just a full screen terminal.
← PreviousPage 2 of 3Next →