HNHacker News
TopNewBestAskShowJobs

bobbylarrybobby

4,370 karma · joined July 12, 2018

submissionscomments
bobbylarrybobby··on Drug trio found to block tumour resistance in pancreatic cancer in mouse models
That's not what the prisoner’s dilemma is.
bobbylarrybobby··on Apple introduces new AirTag with longer range and improved findability
A bit pricey but works well. https://ridge.com/products/tracker-card
bobbylarrybobby··on LED lighting undermines visual performance unless supplemented by wider spectra
You are basically hitting on what has been referred to as high modernism, which promotes a level of confidence in science and technology that can only be maintained by eschewing all the inherent complexity of the world. The scientific method can really only study systems by modifying a handful of variables at a time and keeping the rest fixed, and isn't really capable of handling hundreds of interacting variables. Rather than acknowledge this limitation, high modernism embraces simplification even to the detriment of its products.

Further reading: https://en.wikipedia.org/wiki/Seeing_Like_a_State

bobbylarrybobby··on A macOS app that blurs your screen when you slouch
I don't care how good of a programmer you are, if you don't know Apple stuff (Swift, Xcode, all the random iOS/Mac app BS) you aren't making an Apple app in a weekend. Learning things is easy but still takes time, and proficiency is only earned by trying and failing a number of times — unless you're an LLM, in which case you're already proficient in everything.
bobbylarrybobby··on Bugs Apple loves
At least this one can be disabled: settings > accessibility > Face ID & attention > attention aware features.
bobbylarrybobby··on Bugs Apple loves
This doesn't really work for things that are already words like it's/its. I type the one i want, iOS “corrects” it to the wrong one, and even after I tap the one I typed in the prediction bar? iOS still inserts its own suggestion again.
bobbylarrybobby··on Bugs Apple loves
I've been seeing this from time to time since at least 2016. As others have noted, it's more likely to happen when you type quickly or immediately after pasting your search in the url bar.
bobbylarrybobby··on Understanding Rust Closures
The three Fn* types correspond to the three ways you can refer to a value: &T, &mut T, T. Fn captures its environment by shared reference, FnMut by exclusive reference, and FnOnce by value, and everything flows from that. Calling a Fn is the same as using a reference. Calling a FnMut is the same as using a mutable reference (you can do it as many times as you want but no two uses may overlap in time). And calling a FnOnce is the same as moving a value (you can do it at most once).
bobbylarrybobby··on Tell HN: Bending Spoons laid off almost everybody at Vimeo yesterday
Youtube also doesn't let you replace an already-uploaded video while maintaining the URL, which is incredibly painful if you need to edit a posted video for whatever reason.
bobbylarrybobby··on STFU
You tend to know your spouse, you don't know the mental state of people on the train. Especially people who have already demonstrated they don't care about social norms or preserving tranquility in public spaces.
bobbylarrybobby··on How problematic is resampling audio from 44.1 to 48 kHz?
Where does dither fit into this picture?
bobbylarrybobby··on iCloud Photos Downloader
If I'm not mistaken, the Photos app stores originals on disk and then uses a sqlite database to track metadata (and maybe edits to photos as well, given that it has the originals). Seems reasonable to me.
bobbylarrybobby··on Eulogy for Dark Sky, a data visualization masterpiece (2023)
To those who are interested in viewing the “shape” of weather data (and who are using an apple device), I cannot recommend https://www.weatherstrip.app enough. I think its visualization is even superior to Dark Sky’s, mostly by virtue of being more compact without losing anything.
bobbylarrybobby··on How Markdown took over the world
A reasonable format would not insist you lay out tables visually any more than it would insist you center your headers if you'd like them horizontally centered when rendered. For instance, Asciidoctor has syntax for table cells that requires no whitespace and lets you put any content at all in a cell.
bobbylarrybobby··on The unreasonable effectiveness of the Fourier transform
And even non cycling functions (e.g. a gaussian)
bobbylarrybobby··on Eat Real Food
Steak’s not great for you, but in moderation is probably a better source of calories than refined grains, which should be treated more or less the same as candy.
bobbylarrybobby··on C Is Best (2025)
As long as the compiler is new enough to handle 2024 code (i.e., you're not using a 2021 version of the compiler itself), 2021 code can use 2024 code.
bobbylarrybobby··on It's hard to justify Tahoe icons
Apple spent the next several years walking lots of the changes back, in particular the thin text and overdone translucency
bobbylarrybobby··on It's hard to justify Tahoe icons
In theory, the problems highlighted in the article would have become apparent shortly into the process of assigning an icon to every menu item. Forging ahead despite the impossibility of doing a good job on the task is a sign of orders being issued from top to bottom without feedback working its way from the bottom to the top.
bobbylarrybobby··on Rust the Process
Is the following accurate? “If a type has a generic bound T: ?Sized, then its data lives on the heap.” (Except for &T because it's the one type that doesn't take ownership of its T upon construction.)
bobbylarrybobby··on Project Vend: Phase Two
At the same time, there are humans who can be convinced to buy iTunes gift cards to redeem on behalf of the IRS in an attempt to pay their taxes.
bobbylarrybobby··on Things I learnt about passkeys when building passkeybot
Why would a website leave you with an account but no way to log in aside from the account recovery procedure?
bobbylarrybobby··on Rust's Block Pattern
Try blocks let you encapsulate the early-return behavior of Try-returning operations so that they don't leak through to the surrounding function. This lets you use the ? operator 1. when the Try type doesn't match that of the function this is taking place in 2. when you want to use ? to short circuit, but don't want to return from the enclosing function. For instance, in a function returning Result<T,E>, you could have a try block where you do a bunch of operations with Option and make use of the ? operator, or have ? produce an Err without returning from the enclosing function. Without try blocks, you pretty much need to define a one-off closure or function so that you can isolate the use of ? within its body.
bobbylarrybobby··on Rust's Block Pattern
You can also de-mut-ify a variable by simply shadowing it with an immutable version of itself:

let mut data = foo(); data.mutate(); let data = data;

May be preferable for short snippets where adding braces, the yielded expression, and indentation is more noise than it's worth.

bobbylarrybobby··on We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
Would it be possible for messenger apps to simply ignore <script> tags (and accept that this will break a small fraction of SVGs)? Or is that not a sufficient defense?
bobbylarrybobby··on Thousands of U.S. farmers have Parkinson's. They blame a deadly pesticide
Shouldn't most chemicals be assumed unsafe until proven otherwise? How many chemicals have we produced in a lab that have no harmful effects? Even medicine is bad for you, it's just better than the disease it's meant to treat. I don't know why we'd treat something designed to kill animals as safe for humans without studies showing that it's not harmful. (Well I do know why, but I don't know why voters go along with it.)
bobbylarrybobby··on JSDoc is TypeScript
On the one hand I can see the appeal of not having a build step. On the other, given how many different parts of the web dev pipeline require one, it seems very tricky to get all of your dependencies to be build-step-free. And with things like HMR the cost of a build step is much ameliorated.
bobbylarrybobby··on 4 billion if statements (2023)
You can combine the second and third strategies to hit the sweet spot of time and space.
bobbylarrybobby··on 4 billion if statements (2023)
You brought up an important opportunity for optimization. If you know the distribution of your data, it may make more sense to implement it in terms of the odd numbers and leave even numbers as the fallback. It's important to profile with a realistic distribution of data to make sure you're targeting the correct parity of numbers.
bobbylarrybobby··on An SVG is all you need
Safari supports base64-embedding font files in a <style>’s @font-face {} (iirc it's something like `@font-face { src: url('data:application/x-font-woff;charset=utf-8;base64,...'); }`) that can then be referenced as normal throughout the SVG. I don't recommend this though, nobody wants to deal with 500KB SVGs.
← PreviousPage 2 of 34Next →