Hacker Newsnew | past | comments | ask | show | jobs | submit | more BiteCode_dev's commentslogin

Apple is just better at pretending being all in.

They were part of PRISM.

They recently added a systematic scan, compare and report routine to all your pictures.

They forces you to tie your phone to an Apple account just to use it. My android phone doesn't have an account, or even an email linked to it.

Apple now has an entire mesh network of BT devices constantly looking up each others, even if some of them are not connected to internet.

The microphone on the Apple device is always on, to answer to hey siri.

Finally, you can't install a real alternative browser on iOS, so no real privacy addons.

They make big claims about privacy nobody can check because everything is closed source. So you have to just trust them.

"But apple doesn't have an ad business"

Oh but they do. And they don't have to play by their own rules in the app store, and have the right to track users, gather device informations, location, etc. Fun thing is, they start the list of information they collect (https://www.apple.com/legal/privacy/data/en/apple-advertisin...) by stating "Apple-delivered advertising helps people discover apps, products, and services while respecting user privacy".

I don't think they are any better, just different. And better at PR.


> They were part of PRISM.

Isn't that still a thing?


First, you can't learn anything, you don't have the time, the energy, nor the talent.

Second, it's inefficient. You should leverage humanity experience.

Third, you can learn a lot faster if you start by repeating something without understanding it. Even maths.

So yes, understanding is useful, but doing without understanding is not bad. It's just a tool.


Blindly doing anything without first having tried to understand what the pros/cons are and in which contexts the advise applies and where it doesn’t is crazy.


I immediately got a good impression of their service because their home page loads so fast.

I'm a simple man.


Wasn't it the code name for Vista ?


Yes, but a different Longhorn. The early 00s Windows codenames all had a PNW skiing theme, and that Longhorn is a well-known bar at the base of Whistler mountain.


It's very, very, expensive. I don't know the details for debian, but pypi.org, hosting python packages, costs $800k/month: https://twitter.com/dstufft/status/1236331765846990848

I imaging debian is also super expensive, and so scaling that must not be easy. Every decision could be thousands of dollars.


This lazy constant pulling of dependencies by CI systems and containers is not very substainable. pypi should set up limits and make people use some cache proxy.


I worked at a place (briefly) where the CI process was pulling down 3-4GiB of container images for every run. Same repos, same sites, every check-in on every branch pushed to GitHub set up a blank environment and pulled everything down afresh. Then the build process yoinked dozens of packages, again with no cache. It must have consumed terabytes a day. Madness!


I am curious about how such a cache could be setup reliably.

1. Proxy inside the company network that intercepts every request to pypi? Doesn't work well due to https, I guess.

2. Replacing pypi in your project description with your own mirror? Might work, but at least slows down every build outside of your network. Also needs to be replicated for npm, cargo, maven, docker, ...

3. Start a userspace wrapper before starting the build that transparently redirects every request. That would be the best solution, IMO. But how do I intercept https requests of child processes? Technically, it must be possible, but is there such a tool?


> Also needs to be replicated for npm, cargo, maven, docker, ...

All these frameworks come with a tool to run an internal repo/mirror.

There are also commercial offerings (like artifactory) that cover all these languages in a single tool.

For python, just set PIP_INDEX in the CI environment to point to the internal mirror and it will be used automatically. It's very easy.

By default the downloaded wheels are cached in ~/cache/somewhere. Isolated builds don't benefit from it if they start with a fresh filesystem on every run, consider mounting a writable directory to use as cache, the speedup is more than worth it.


Just so. It does take a little configuration. The system I was talking about had been band-aided since the company's two-person days, when I'm sure the builds were a fraction of the size. Good example of infra tech debt.


For 2.:

pip can be configured to use a local warehouse, and there are warehouses that transparently proxy to pypi, but caches any previously fetched result. E.G: https://pypi.org/project/proxypypi/

Since you control it, and it's read only from the outside, you can actually expose it even outside of your network.

But indeed, it must be replicated for npm, cargo, maven, docker...

There is a startup idea here :)


Use Nix instead. :P


Agreed. In fact, if you do more than 100 requests/minute for the same IP, you should get throttled. If you want out of it, you should pay.


Setting up your own proxy that covers pretty much everything (maven/npm/nuget/pypi/gems/docker/etc.) is not difficult and takes only a few hours of work. I went for sonatype nexus, but many (most?) cases can even be covered with nginx caching proxy.


This didn't go so well for Docker Inc. when they tried to do this with Docker Hub


Doesn't matter, the PSF is not for profit. If people starts trying to avoid the throttle by using alternatives, it just saves money.


AIUI, PyPI doesn't _actually_ cost that much to host: it's all donated/sponsored hosting (with data largely served from Fastly), and the "cost" I'd expect is "what it would cost if we actually had to pay the normal published prices".


Is that with at least some attempt at building a CDN? Generally cloud providers don't charge for traffic between hosts in the same availability zone. One could think about putting a slave into each major availability zone of various cloud providers. The main service would then only be used to create HTTP redirects to the specific slave, or if none exists, or the package isn't replicated yet at the slave, just answer directly.

Even if such a system isn't built, with that kind of money on the table you could get a team of FANG scale developers to build it for you.


Talking about myself, as a python dev:

- cheap VPS for hosting, postgres for the db, nginx as a proxy, redis for everything else, including caching.

- deploy python projects by packing them as zipapp with shiv, then use fabric to ssh and performs any migrations necessary. No, not even ansible.

- build, lint, format and test, like all automatizable stuff, are made using pydoit. If you are solo, you don't need a CI service. Your laptop is the CI machine.

Scaling is always the same story:

1 - start with the cheapest VPS possible. This will force you to code with some constraints. Not crazy, just enough to balance it out.

2 - once you start seing your load average rising, just move the db on a second cheap VPS. You just tripled the load you can sustain. Not doubled, tripled. Most solo projects will stop here actually.

3 - wait again, collect some perfs data when you see the site starting to be slow. Check for slow queries, code hot paths, etc. Optimize that, add some cache, setup tasks queues. Use cron to purge / regenerate cache if you need to smooth out the curve. Maybe slap some varnish for extra peps, or just cloudflare.

4 - now you got what looks like a real load, and a more realistic code base, so when you peak again, request more perfs for your server, or migrate to another bigger one. You can scale vertically to crazy highs nowadays. Really, really crazy. You can get terabytes of RAM, 64 cores servers, etc. At your current scale, your service should generate enough money to pay 10 times for it anyway. But you probably won't need to. Even cheap servers are beast, look at the current leaseweb offer: https://www.leaseweb.com/dedicated-servers#NL

For €320.09 per month, you get:

    2x 16 cores 2.30GHz
    28GB DDR4
    4x960GB SSD
    30 TB traffic
To put it in context, myspace used to serve all its users with 2 servers only, until they reached 500,000 accounts. Only then it was too much. This was with hardware (and price!) in the years 200x.

5 - you will probably never reach this point. This is the point where kubs, load balancers, sharing, etc. start to be interesting.

How to preserve your data:

- Raid

- Dump the db with a _randomized_ cron

- rsync the dump and all assets. You can do it to another server, or just your laptop at the beginning.

You can get fancy with database replication if you want, or use backups that stream in real time.

But there is one trick: not all data are equal. Identify some data in your db that you can't afford to lose, and make sure this one is saved separately and very regularly while being given priority. There are plenty of data, if you have a hole in it, most people don't care. E.G: if 1 tweet out of million from 10 years ago is missing, do you think it affects the service?

Monitoring:

- Sentry

That's all. It's free (or cheap), and for a small service, you don't need real time. It's ok to be down a few hours once a month for most services at first. I have a service with 700k unique users a day, it still goes down sometimes. It's a blip.

Sometimes, log into the servers, run htop and checks what's up. You can install open telemetry later if you really need to, but for now, even HN hug is not going to kill you.

Summary:

- Modern software and hardware are amazing. Max them out. Horizontal scaling is hard, and expensive.

- You don't need a perfect service. Unless you are handling patient cancer data, that is. Don't worry about perfect uptime, 0 data loss, etc. If you are a solo dev, the cost for that is huge. Just do 97% right⋅

- what worked 20 years ago still work today, and will likely be there tomorrow. And you can move from that to the cloud later. The reverse is not that nice.


People are renting 32 cores for E$320/mo?

...Anybody wanna rent 56 cores and 128GB of RAM for that rate?


If you can give the guarantees and convenience that lease web give, then yes.

Is your bandwidth unmeterred?

Do you have redundancy everywhere, including link and power?

Do you have software to remotely manage the server, including install, reinstall and emergency access?

Can I pay you with the company credit card? Do you provide a billing system with VAT?

If the answers are yes, then congrats, you can open your own hosting business.

But remember next year, the servers will be obsolete.


You did that, as a solo dev with little money, and made a profitable business out of it?


not quite yet ;)

ps some of the google cloud next announcements today around appsheet, appscript, looker, ai vertex notebooks, and "no-code" solutions are starting to look really sophisticated!


Well, we know that mass surveillance has been installed in the USA, we have detailed proof of it, and this hasn't change a thing. They are still under mass surveillance.

And people are still carrying trackers in their pocker. They put cameras in the front door bell, always online microphones with speech analysis in their living room, give all their life records, textual or in images, to giants companies that have demonstrated the ability to store and analyse that forever.

People don't use more free software. They look at you like you are mad if you don't want to install whatsapp. Even in HN we have people still wondering why we should use Firefox.

Why would we be judging Australians as "complacent" ? Humanity is complacent.

I've been told the boiling frog is a myth, but I'm pretty sure frogs are talking about boiling humans as a telling metaphore.


This literally is the divide between HN types and everyday individuals.

The latter pays little attention because they generally do not care whilst HN will debate and suggest endless fixes to the problem - which are always technically more difficult or cumbersome. This is why people buy Apple products on each iteration, religiously for some, because they want it to work, be pretty and the desire of everyone.

The UK has been well known for their love of CCTV and yet crimes still go unpunished and people don't get caught.


I wouldn't say ordinary people "do not care". To some extent, even ordinary people know that the mega tech empires concentrate too much power and data. Popular media hasn't completely failed to report on stuff like FB fiascos, privacy leaks and so on. Many more people are aware than HNers might imagine. But viable solutions are not there. As you point out, alternatives are workable only to the technically inclined, which means they might as well not exist. To be sure there are alternatives which swap one silo for another, but truly private options are too cumbersome to make inroads into mainstream, and they never will, if they continue to remain so fiddly. Of course the other side of this is legislation and regulations but even here the transnational nature of these corps allow them to work around even progressive national laws, and the latter are rare enough, with most politicians bought off one way or another.


While it's definitely true that humanity is complacent overall (clearly), there are some very important differences between the US and Australia.

Australia has actually moved on ending secure encryption for example. That's not yet the case in the US and it's questionable whether the authorities will be able to (they already would have, if they could have), overcoming the significant constitutional hurdles.


There is no need to end encryption in the USA, because the way they collect the data works around the problem entirely.

With secret subpoenas, gag orders and programs like PRISM, they get what they need directly from the source. Either from the services hosting the data, or the devices producing/receiving the data.

The data is never collected while in transit, when it's encrypted. They got the keys for the servers, and back-doors to our devices. They don't care about encryption at all.

Once again, freedom is not a technical problem:

https://xkcd.com/538/


Yes but self driving cars, which could be a solution for this problem since we could then have cars on demand, are way harder to implement using oil than electricity.


unsafe rust code is not safe, but the rest of the program is, and the unsafe blocks provides very nice benefits:

- limit the size and scope of the unsafe code

- make the unsafe part stand out, "here be dragons", so you know when to be particularly alert

- act as a safe way to encapsulate unsafe code so that it can be used by safe code, and used without the lack of safety propagating outside of the unsafe zone


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

Search: