HNHacker News
TopNewBestAskShowJobs

charrondev

1,224 karma · joined March 3, 2015

[ my public key: https://keybase.io/charrondev; my proof: https://keybase.io/charrondev/sigs/0sW6BkThCCdwzGnXARSPKXTuP2p11J6U9_267R519Tg ]
submissionscomments
charrondev··on OrbStack: The fast, light, and easy way to run Docker containers and Linux
Because windows has WSL? You have a 1st party directly integrated Linux already. My work laptop is a MacBook Pro and we use Docker Desktop, but for my personal work I use a desktop and run WSL/Ubuntu.

All my GUI stuff and text editors are on the windows side and the actual software all runs in docker in the Ubuntu subsystem.

charrondev··on Time-Memory Trade-Offs Sound the Death Knell for GPRS and GSM
Most headers today are expandable and need to be”open up” to take the full more of the screen when interacted with.

This is not possible with a frame.

charrondev··on I sped up serde_json strings by 20%
To me the size of the codebase after installing dependencies isn’t that relevant. Are you starved for 30GB for your work? My current company has projects in PHP, rust, and a bunch of frontend projects with all the modern build tooling.

The largest service we deploy is ~300Mb, maybe 200Mb if you exclude copy of Monaco that we ship in the Dist folder. That web server will have terabytes of database storage behind it and 32 or 64 Gb of Redis/Memcached behind it. If we add in the Elasticsearch we’ve got another terabyte and a ton of memory.

If those dependencies aren’t checked into version control or being shipped to prod does it really matter?

charrondev··on Did you lose your AirPods?
It’s better with the newer AirPod models. The older ones are bad enough that I have an AirTag attached to my AirPods case.
charrondev··on Show HN: Grug Notes, a simple take on text notes
Now I could be way off here, but could you hash/salt the users password in 2 different ways:

- the first way would be used before sending the password to the server. This would then be hashed and salted again to be used for authentication with the server. - the second way would be used locally. You could have the user create a pin to go with the password that would be used to create this hash. This hash would be the key to decrypt the contents. It would never be sent to the server.

I haven’t actually done the thinking or research to validate or invalidate something like this though. My uses of encryption have all been rather standardized.

charrondev··on Apple's requirements are about to hit creators and fans on Patreon
I was planning to write about how iOS PWAs didn’t support push notifications, but it seems they added it since I last checked.

They were a bit late on that but with that finally here there really is no excuse for Patreon to not be a PWA.

charrondev··on Apple's requirements are about to hit creators and fans on Patreon
If you do that Apple still takes a 27% commission today even after going through their special entitlement process.

https://developer.apple.com/support/storekit-external-entitl...

All purchases must still be allowed as in app purchases as well.

charrondev··on Apple's requirements are about to hit creators and fans on Patreon
I’ll note their app actually sucks at least for reading serial fiction from a few people I subscribe to.

What does require an app though is sending notifications. As a result I have their app just to receive notifications of new chapter releases, then go read the post on the website.

If Apple stopped locking this functionality into applications then something like Patreon could just be a website that you pin on your homescreen.

Now another alternative is email notifications but I will tell you email sucks and most people won’t bother with it. If I start allowing notifications from my mail client I’ll get a ton of notifications that I don’t give a crap about. There is a real spam problem there which application based notifications don’t have.

charrondev··on Verso – Web browser built on top of the Servo web engine
I mean this year we did have the porting of Arc browser to windows. I use it my gaming PC and it is starting to feel like it has a similar level of polish to the MacOS version.

https://speakinginswift.substack.com/p/swift-meet-winrt

https://speakinginswift.substack.com/p/swift-tooling-windows...

Now that’s not an engine but the UI.

charrondev··on Airlines are running out of 4-digit flight numbers
At least the pain only has to be dealt with by the companies that wrote code like that?
charrondev··on Australia starts peanut allergy treatment for babies
I’d be curious to see statistics on this as well. If I were to hypothesize it would be a combination of 3 factors:

- Nut Allergies in particular seem to be reduced with early exposure [0]. Maybe dietary trends have changed in a way that causes less early exposure? - Child mortality rate used to be much higher. Children with allergies used to be part of this mortality rate. This combined with parents with mild allergies that might have previously not survived to have children cause the incidence to increase. - People today are exposed to many more types of food. Many people who might have a particular allergy may not have ever been exposed to that allergen.

Another one I’d throw out there would be nearsightedness. Of course a lot of people wear contacts, but I’d imagine incidence of glasses is higher than it used to be.

Reported rates of nut allergies rates have definitely increased though. [1]

[0] https://www.nih.gov/news-events/news-releases/introducing-pe... [1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8477625/

charrondev··on A new path for Privacy Sandbox on the web
It would have been nice to have a replacement for it ready and shipped before they started getting removed.
charrondev··on Google presents method to circumvent automatic blocking of tag manager
You can issue cookies on a sub path though.
charrondev··on Binance built a 100PB log service with Quickwit
Am I crazy here? We run all of our app logs and error logs through LogStash and just have a few filters in there to normalize stuff like the timestamp. Honestly the only peace of data that absolutely HAS to be standardized because that’s the piece of data that splits our log indexes, is the primary sorting mechanism, and at what point we roll up an index into some aggregates and then compress and send it to cold storage.
charrondev··on YouTube embeds are heavy and it’s fixable
I work on a community forum platform and we detect YouTube embeds and replace them proxied thumbnails that don’t load until clicked.

Just because one person in a thread shares a YouTube video doesn’t mean everyone else loading that page should have to download 1MB+ of YouTube’s JavaScript bloat and have their IPs tracked by google.

charrondev··on AirPods fast connect security vulnerability
For me it’s the opposite. They have a “transparency” feature that works lets through ambient noise.

I often wear one set to transparency when I’m alone and have a podcast going or something. Ideal for something like a grocery store but still leaves me with full awareness. They also detect if I start speaking and automatically pause whatever is playing.

charrondev··on Farm: Fast vite compatible build tool written in Rust
I’ll get right on that. Let me call up my product manager and CEO and tell them to cancel our upcoming enterprise contracts. The codebase is too big, we can’t add any more features.

After that we can start laying off the devs and firing our biggest customers. The features they use are taking up too much code!

charrondev··on H.264 Is Magic (2016)
I mean the thing with something like SVT-AV1 is, even if it doesn’t give you the best efficiency encode, does it do a more efficient encode than your alternatives in a reasonable timeframe.
charrondev··on in Rust, methods should be object safe
I mean if you know all the concrete types ahead of time you can put them in an enum.

It kind of makes me we wish there was a keyword that would grab all implementations of that trait being compiled and do the same thing though. At least for a statically linked codebase it could figure out all the sizes of the implementations

charrondev··on Home ownership is not the boon to older Americans that it once was
As it’s been explained to me (I just bought my first home), the first 500k of capital gains on a primary residence are tax exempt.

FWIW in Canada capital gains on a primary residence are completely tax exempt and their housing market is even more of a mess than in the US.

charrondev··on As private equity dominates wheelchair market, users wait months for repairs
I mean they could market similar to Not a Wheelchair I guess? https://notawheelchair.com/products/the-rig
charrondev··on The Rise and Fall of 3M's Floppy Disk (2023)
Did you read the article? This is a few pages in:

> Now, to be clear, 3M did not invent magnetic storage—that was done by Austro-German engineer Fritz Pfleumer, in 1928. He created audio tape, a recording medium that started as broad strips of paper coated with iron-powder granules, and eventually moved to less-fragile cellulose acetate with help from what would become another big name in floppy disks, BASF. At first, the innovation didn’t spread outside of Germany because of World War II.

charrondev··on Bun 1.1
One of things that makes me more bullish on bun rather than Deno is that bun is intentionally aiming for compatibility with node and the npm ecosystem while Deno doesn't seem to be.
charrondev··on Bun 1.1
I can give a bit of perspective here. I'm currently porting our the Vanilla Forums frontend (~500k lines of typescript) from using Node, Yarn (we used it back before npm supported lockfiles) and Webpack, to build with bun and Vite.

There are a few notable differences:

- The out of the box typescript interoperability is actually very nice, and much faster than using `ts-node` as we were before.

- Installations (although rare) are a fair bit faster.

- With bun I don't have to do the frankly crazy song and dance that node now requires for ES modules.

- Using bun is allowing us to drop `jest` and related packages as a dependency entirely and it executes our test suite a lot faster than jest did.

For my personal projects I now reach for bun rather than node because

- It has Typescript support out of the box.

- It has a nice test runner out of the box.

- It has much runtime compatibility with browsers (`fetch` is a good example).

- The built-in web server is sufficient for small projects and avoids the need to pull in various dependencies.

charrondev··on Majority of web apps could just run on a single server
I mean it really depends on what your doing.

If you’re just serving static content then of course you can get away with one small box.

If you have user content that’s being constantly updated and inserted you need a lot more.

You need databases, caches, and in our case elastic search (with ~10 billion documents). The data needs to be indexed 16 ways to Sunday to make sure that a user hitting the page with this filter or that sort selects just the right records.

If you care about reliability you should have read replicas of your DBs as well.

Where are your logs going? I’d expect servers for that as well.

Now alternative to a bunch of this you could just use SaaS products but that costs an arm and a leg.

charrondev··on U.S. sues Apple, accusing it of maintaining an iPhone monopoly
I recently tried to migrate my Grandmothers Galaxy S21 phone to an iPhone and we had to return the iPhone because try as I might I could not get get her 30000 text messages (including 1000s of images and messages from people that are now dead) to transfer over intact.

The built in services transfer failed as did third party software.

Honestly I can’t tell you much about transferring the other way, but interoperability is definitely not seamless in this respect.

charrondev··on Coding in Vision Pro
I guess most people just like their UI elements much smaller than me, I work all day on a 42” 4k display running 1080p@2x 120hz and I wouldn’t want to shrink the UI elements any further. I sit ~4 feet from the display.

My husband uses an iMac (27” 5k display running @2x) and I struggle to do anything at that resolution.

charrondev··on Panda CSS: build time and type-safe CSS-in-JS
Is there a way to install only your own dev dependencies?

As far as I can tell installing a package will also pull down all of its dev dependencies. This unfortunately leads to many typescript related annoyances such as jest typescript global types being pulled in despite not needing them.

charrondev··on A lesson in dockerizing shell scripts
I’d be quite surprised to see a company not using code reviews. Nowadays I work with a pretty large CI/CD pipeline, but even when we were a small company we enforced code reviews on all changes.

I’ve seen people be a lot looser with code execution though.

charrondev··on Intel's Humbling
Somehow you are comparing Apple’s first gen laptop/iPad chip to a a desktop setup requiring 10x the power consumption and 10x the physical size (for the chips and all the cooling required). The power envelope for these chips is very different and they prioritize different things.
← PreviousPage 3 of 17Next →