HNHacker News
TopNewBestAskShowJobs

arrowleaf

392 karma · joined August 16, 2023

submissionscomments
arrowleaf··on The Birth of Parquet
Using polars in Python I've gotten similar to work, using LazyFrame and collect in streaming mode:

``` df = pl.scan_parquet('tmp/'+DUMP_NAME+'_cleaned.parquet')

with open('tmp/'+DUMP_NAME+'_cleaned.jsonl', mode='w', newline='\n', encoding='utf8') as f: for row in df.collect(streaming=True).iter_rows(named=True): row = {k: v for k, v in row.items() if (v is not None and v != [] and v != '')} f.write(json.dumps(row, default=str) + '\n') ```

arrowleaf··on 3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup
It would have been awesome if that ISBN issue were an actual ISBN re-use issue. I've run into issues coupling my system's design to the assumption that ISBNs uniquely identify a single edition of a single book. The intent of ISBNs are to be unique, but mistakes are made and resellers lose track or straight up abuse some ISBNs.
arrowleaf··on Time Magazine's Best Inventions of 2023 Award for Humane's AI Pin
What do you mean by TFA?
arrowleaf··on Court approves 3M multi-billion dollar settlement over PFAS in drinking water
This HN comment section is fascinating from a sociological point of view, most of the debate here comes down to whether an individual believes the burden of proof lies in proving safety vs proving danger when releasing a product with unknown risks and externalities.
arrowleaf··on Research shows plant-based polymers can disappear within seven months
This is a good chance to ask something I've wondered for a while, why isn't cellophane more commonly used as an alternative to plastic film? Is it coatings on cellophane that make it just as bad as plastic? Or does the environmental impact of producing cellophane outweigh the fact that it's biodegradable?
arrowleaf··on Show HN: Wallstreetlocal – View investments from America's biggest companies
There are a lot of GIS / mapping software that shows property ownership and their boundaries, useful for hunting. onX, for example, and I think you can purchase 'ownership layers' on stuff like Avenza.

I agree with what you're saying though, it would be cool to take something like those property owner layers and find the ultimate legal entity for stuff like LLCs owning land.

E, only semi-related: In the 'urban design' part of the internet I've seen really cool mapping that puts bar charts on top of a city's grid, with the bar charts being how much tax revenue the city generates. It's really stark to see skyscraper-sized bars in downtown cores and mostly flat all around where cities have zoned residential separate from commercial, or even where suburbs tax less than the core city.

arrowleaf··on Eloquent JavaScript 4th edition (2024)
The book is actually maintained on GitHub too, https://github.com/marijnh/Eloquent-JavaScript.

When I was just starting out I read this book and noticed a small mistake, I was really proud that one of my first contributions to any open source project was a PR to this repo.

arrowleaf··on Nvidia hits $2T valuation as AI frenzy grips Wall Street
The time value of money is constantly in flux, so even if future growth were priced in / perfect market theory held, prices would still change with P/E swings as investors can get more or less for their money elsewhere.
arrowleaf··on Nvidia hits $2T valuation as AI frenzy grips Wall Street
Hah, when? It's always been a random walk.
arrowleaf··on After 14 years in the industry, I still find programming difficult
I've always hated this saying, and I think the reason applies here too.

If you take up running and it never gets easier, that means you're never managing your pace and you're always going full throttle. That's a straight shot towards injury if not chronic disability. Most aerobic benefits happen at zone 2, where your heart rate is just above 'easy effort'. When you start out, this might just be walking, so it makes sense to run. But once you are able to sprint, you open up the ability to do more than just walk or sprint. You can jog, skip, run at a tempo pace, run at a race pace, etc., and you need to do those to maintain fitness and build up your chronic training load. That's not to say there aren't hard efforts at times, like when you do a sprint workout or hill repeats, but 90% of the time it should be and feel easier than when you started.

You can bring that to programming too. If it never gets easier, that means you're always pushing yourself and seeking challenges. That's not good for you, your coworkers, or your projects... everyone needs some grounding and to perform at a level they excel at. Not only will your velocity be more predictable, you won't burn out as easily. Challenges that increase that comfortable pace can be sought out, but usually they come naturally too.

arrowleaf··on The perverse policies that fuel wildfires
Yes. There's business interest in getting legislators/officials distracted from what is really good land management, namely prescribed fires and public services around clearing combustibles away from infrastructure and homes.
arrowleaf··on Built-in workaround for applications hiding under the MacBook Pro notch
You seem to be thinking that Apple will introduce under-screen cameras next... I highly doubt that. Under-screen will never have the fidelity of a camera without layers of screen in front of it. If anything the notch's dead space will become physically smaller, with the visible notch staying the same size to provide 'dynamic island' functionality, like on the iPhones. I'd pay for that.
arrowleaf··on Built-in workaround for applications hiding under the MacBook Pro notch
I'm saving up to replace my personal intel MBP with a new one partially because using my work MBP I really appreciate that little bit of extra screen space. In regular use I hardly notice the notch, sometimes I'll even have fun watching my cursor jump back and forth when it gets close to one side of it.
arrowleaf··on The perverse policies that fuel wildfires
Fighting wildfires is expensive, which means it's big business. There's absolutely business interests in keeping wildfires raging. Fire suppression means the government gets to purchase planes and helicopters, 3M can supply countless brand new sets of fire resistant gear every year considering how high wildland fire employee turnover is, Perimeter Solutions gets to sell Phos-Chek faster than they can produce it, etc.
arrowleaf··on Apple built iCloud to store billions of databases
Even better, external NVMe SSD enclosures over Thunderbolt 3 can reliably read at 2500 Mbps and write at over 1500 Mbps. That's faster than internal SSD R/W speeds a few years ago. The newer generation of enclosures coming out claim to use the full bandwidth of USB4, 40 Gbps, and get >3000 Mpbs R/W.
arrowleaf··on Apple built iCloud to store billions of databases
My point is that I'm sure the only way iCloud is profitable or even break-even for Apple is if they rely on over-provisioning storage to users of the more paid plans. I started paying for the 200GB iCloud+ plan, and once my photos exceeded 200GB I ponied up for the 2TB plan. Unless I take up a photography hobby it'll be a long time until I get close to that 2TB, and I'd wager this is what Apple expects. Raising that baseline usage with Time Machine backups would mean it would need to be more expensive for end users, either by making iCloud+ more expensive or rolling out a new subscription product.
arrowleaf··on Apple built iCloud to store billions of databases
I agree with you here and that's why I'm mildly surprised they haven't come up with a solution rolled into iCloud yet. Syncing apps and preferences shouldn't be that difficult, but unless they're App Store applications the binaries would take up a lot of space. Most of the apps I care about are from outside of the App Store. AFAIK our iOS backups don't actually back up application binaries.

The way I was looking at it is that Apple has successfully sold iCloud+ 2TB plans to a lot of people who don't need much more than 200GB. If everyone on the 2TB plan used even close to 2TB, I'd bet they'd have to charge me a lot more to make up the provisioning and usage costs of storage.

arrowleaf··on Apple built iCloud to store billions of databases
I'm mildly surprised they haven't, but the reasons seem pretty obvious. Redundancy (in offerings), storage costs, and home network upload speeds.

Redundancy because the thing most people care about backing up is media and important documents, which are likely already stored in iCloud. If you care about Time Machine back ups you probably want your whole filesystem with point-in-time restores. That's a lot more data for Apple to hang onto, for a small segment of its target market. Of course, Apple does have 2TB+ iCloud+ plans, but I would bet that the average iCloud+ subscriber is using nowhere near their limit.

arrowleaf··on Beaver Drop
In this situation it's not necessarily how 'big' the rural area is, it's the topography. As the crow flies, the basin in the SNRA these beavers were dropped into isn't more than ~60 miles away from where they were picked up from.
arrowleaf··on In 2024, please switch to Firefox
Yeah, I actually switched from Firefox to Safari this month. I didn't know Safari had tab groups, the feature I missed from Chrome when using Firefox. No speed differences and Safari has less of a battery impact so far.

Hard to complain about a browser that still cares about privacy, but with tighter OS integration.

arrowleaf··on Amazon receives FDA warning letter for supplements with undeclared ingredients
Right. Walmart doesn't let someone drive up with a semi-load of what looks like bags of King Arthur bread flour, mark the pallets with a tag, and cut them a check when they stock the items from that pallet onto the shelf. That's basically what Amazon does.
arrowleaf··on Amazon receives FDA warning letter for supplements with undeclared ingredients
Grocery stores typically have an extensive if not integrated supply chain they have absolute control over.
arrowleaf··on High myopia is now the leading cause of blindness in Japan, China, and Taiwan
The treatment itself didn't generate any new floaters, but in the past year I did start experiencing a set of new floaters which correlates with the new atrophic hole my doc found. It's taken a few months but I can finally just ignore them or not even see them if I'm inside.
arrowleaf··on Chevrolet Blazer first drive: GM's EV platform goes mainstream
Oh, that's good to know. Throttles are commonly by-wire, but I must have misinterpreted the move away from hydraulic to electric steering assist as moving from mechanical to signals. Thank you for the correction.
arrowleaf··on High myopia is now the leading cause of blindness in Japan, China, and Taiwan
I briefly took up a hobby of trying to raise some tomato plants indoors. The lights that claim to emit the full spectrum of non-visible light to match sunlight are insanely expensive (thermally and otherwise). There's probably more to the sunlight's effects on dopamine production than lux.
arrowleaf··on High myopia is now the leading cause of blindness in Japan, China, and Taiwan
The article talks about that a bit, there have been a number of 'causes' of myopia that are 'common knowledge' but end up not holding water. Genetics and close-up work being the two major scapegoats. Modern studies are showing a lack of dopamine in the eyeball to be the most likely factor, without a strong link to genetics.
arrowleaf··on High myopia is now the leading cause of blindness in Japan, China, and Taiwan
Very true, if it were very common you'd see retinal surgery centers in every hospital or more blind folks in rural communities. Thankfully it's not so rare that we don't have decent treatment for it. Like the article pointed out, rising myope rates are concerning for the implication on how many people will experience retinal issues. Sight is the last sense I want to give up, maybe the warning signs of RD should be as common as knowing the warning signs of strokes.
arrowleaf··on High myopia is now the leading cause of blindness in Japan, China, and Taiwan
Glad you got yours taken care of! They were definitely concerned about the tear, they're apparently common but when asymptomatic they're hardly noted (or even noticed if in the peripheral retinal areas).

The laser is definitely uncomfortable, hard to say if it's even pain when your ocular globe is injected with so much anesthetic. Brain freeze, but extremely acute and right behind your eyeball might be accurate. During one of the prophylactic treatments he did some 'spot welds' near my optic nerve. I couldn't tell if I was even looking at his ear like he told me to, every burst of green triggered my reflexes. It was impossible to keep my other eye open. At least the discomfort is so temporary, I forget about it until someone asks if it was painful.

arrowleaf··on High myopia is now the leading cause of blindness in Japan, China, and Taiwan
Same here (until I started getting new ones)! The best thing to do is to get a dilated fundus exam by someone who really knows retinas to rule out anything major if you start noticing them more.
arrowleaf··on High myopia is now the leading cause of blindness in Japan, China, and Taiwan
Well, the real problem is that children's eyes aren't getting enough sunlight exposure to trigger dopamine production, which regulates the lengthening of the eyeballs, while cooped up inside. Eye strain is muscle fatigue, unrelated to myopia.
← PreviousPage 4 of 5Next →