Hacker News new | past | comments | ask | show | jobs | submit | shepherdjerred's comments login

How does Apple make money on Apple Maps without ads?

It doesn’t need to. It’s a part of the platform. It’s a necessity.

But I’m sure they make some money off of the Uber/Lyft integration


The $1199 I paid for my iPhone is how they make money on Apple Maps.

Isn’t borrow checking only compile time?

Yes, but sometimes it forces you to write slightly slower code that can be proven safe.

You don't need s whole compiler for that... You can use `unsafe`. Sometimes you don't even need that either!

> forces you

Definitely doesn't, you can just slap unsafe and manipulate raw pointers if that's what you want


I went from an 11 Pro to a 15 Pro and definitely appreciated the difference, but upgrading every year or two doesn’t seem necessary at all

You can definitely run graphical environments without a screen in a virtual environment, e.g. https://github.com/selkies-project/docker-nvidia-egl-desktop which is even GPU accelerated


The "statistical value of a life" doesn't mean what you think it does. It's essentially a measurement of how much, on average, people value their own live at the margin (i.e. how much are they willing to pay for a slightly safer car, how much more does a slightly more dangerous job have to pay for people to still apply etc.)

It's not a political "cap on how much to spend on saving somebody's life". There have of course been rescue operations more expensive than that per person, and some medical expenditures exceed that cap as well.


It is used in public healthcare, for example, with biologic drugs. According to my rudimentary calculations, Spain has an 80-100B euro public healthcare budget. If every person who would benefit from a biological drug treatment received it, that would add close to 40% to that budget.

And in the US, these drugs are much more expensive.


What drug treatment are you referring to, in particular?

In many countries, including those with both socialized and private healthcare, insurance companies routinely pay for treatments costing much more than the statistical value of life.

Also, these incredibly expensive single-dose cures usually are that expensive because they don't benefit from any economies of scale and/or haven't recouped their investment yet. In competent healthcare systems, the price is driven down substantially sooner rather than later for almost all drugs through negotiations.


Adalimumab and others. Yes, they do pay more, but not for everyone. Not for seniors in public healthcare.

If you’re curious I have all my automations on GitHub: https://github.com/shepherdjerred/homelab/tree/main/cdk8s/co...

Nothing on there is really crazy or complex. Just things like running the Roomba when I leave, or turning on lights at sunset.

I’ve found it to be very nice because I can automate common things around temperature, motion, waking up/falling asleep, and leaving/coming home. It also all integrates with HomeKit so I can control everything with Siri.

It’s definitely more in the hobby territory than something truly essential, but I would say that it is definitely useful and better than managing a bunch of random apps to automate lights or whatever.


I definitely like the idea, and I do think it's cool. But I just can bothered with the complexity and the fact it needs to be maintained and networked, etc. Also yaml...


That's fair! For me it has been a really fun way to learn Docker, Kubernetes, etc.

For those who want something similar with way less work I'd use https://www.home-assistant.io/green

On the side of writing YAML, this was actually all generated by the UI and then exported to YAML when I decided I wanted to version control it. It's really nice because Copilot works pretty well for creating/editing automations.


Copilot Edits works incredibly well. It writes 80% of my code with the majority of my work being small fixes.

https://code.visualstudio.com/docs/copilot/copilot-edits


What kind of code/projects do you work on?


Python, TypeScript, Java, Go.

I've done some stuff for a compiler in Java, backend web services in Python/Go/TS, frontend w/ React/TS.

I was a huge skeptic of this stuff at first but started using it about a year ago. I could definitely live without it, but it also saves me a significant amount of time.

I've been working on a feature in Python. With Copilot edits I just needed to find files the implemented the pattern, add it to the chat context. and write something like "implement feature x following the same pattern". It never gets it right the first time, but you can just keep the conversation going and have it iterate.

Afterwards I can just write /tests and Copilot generates reasonable tests. If it missed cases I can ask it to write cover those tests. Often times I can also just write literally "cover edge cases" and it handles all reasonable scenarios.



I dislike TypeScript enums for two reasons:

1. They have a runtime representation unlike most of the rest of TypeScript

2. They follow nominal typing instead of structural typing, again unlike the rest of TypeScript

IMO it's best to use string union types instead of enums. If you need to map that to another representation you can use a function or a record.


> This way rich people subsidize the repairs of poor people.

tbh I have no problem with this as long as the work was done well.


Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: