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

That's like 0.1% of people


As long as there are filtered words in the US no one can claim the higher moral ground here.


Ah yes, because Apple in the US filters words that fall under an enforced trademark or under vulgarity just like most "custom engraving/writing" services do, it means that the US cannot claim moral ground over a regime filtering strings related to historical events or politics.

US would lose its moral high ground on this one when Apple stops allowing people to reference US politics or dates of historical events in their engravings. Which is not something that is the case now, and I do not foresee it becoming the case anytime soon.

Check the list of words that are banned for engravings in the US here[0] and then compare it to the list of words that are banned in China[1]. Note how pretty much every single word banned in the US is either a racial slur or something vulgar. While the Chinese banlist (in addition to the list of all the ones included in the US) features gems such as "STANDWITHHONGKONG" and "XIJINPING" and "8964".

0. https://github.com/citizenlab/chat-censorship/blob/master/ap...

1. https://github.com/citizenlab/chat-censorship/blob/master/ap...


The images are sent for manual verification before you're turned in, so no.


What should they use instead, some half assed open source solution subcontracted to the usual cronies of the consulting business?


Anything else, even something proprietary.


Where do you live where that is common?


Same in restaurants. They hate it when you pay with your card. They love untaxed income and I don't blame them.


The laws of my country already make it illegal for my mobile provider to take my private data and sell it away.


This is US-only anyway. But apart from the data selling, there are also leaks.


Why would you ever want to turn bluetooth off?


1) that's completely irrelevant, if there is a toggle switch for bluetooth, then changing it to off should switch bluetooth....off. I hate Apple constantly pretending they know better what I want to do with my device than I do. If there is a use case here(keeping BLE working for watches and trackers...then make this option explicit in settings)

2) Since I imagine you'd like an example anyway - because I want to prevent my device from automatically connecting to headphones/speakers/cars that it has been paired to in the past.


I got your back: Shortcuts. Shortcuts on iOS lets you create (even location based automated!) actions. Also a single button on your home screen to disable your BT and / or WiFi.

BTW the Bluetooth button USED to turn BT off (same for WiFi) but it was changed to "do not connect to all visible BT devices for one hour" since so many people forgot to re enable their BT / WiFi and complained. So for you and me it is unwanted behaviour, for plenty of others it is now more what they expect.


Thank you for this. I had heard of the shortcuts allowing you to achieve this but never got around to it.

Took me all of 10 seconds to set it up, thank you.


I agree with point 1.

My phone never connects to pre-paired devices when in low-power mode (Apple-off) though.

In fact, I use it to force it to disconnect from devices - sometimes I do that to disconnect the phone from the headphones so I can connect them to another device without powering them off.

BLE is mostly for beacons, to find and suggest hotspots, airdrop, etc.


Avoiding undesired connections to Bluetooth headphones and battery consumption.


The easy toggle prevents Bluetooth headphone/speaker connections without breaking everything else which uses Bluetooth.

Power consumption is extremely low – rather than trying to micromanage that, you’ll see far more savings from using low-power mode earlier or uninstall the top consuming apps.


That's... exactly what the toggle does, though? It remains barely active for things like AirDrop, but toggling it "off" turns it off in any way the average person would expect, and it definitely doesn't try to establish new connections, or even maintain existing connections, when turned "off."


bluetooth beacon tracking in retail settings


This was mandated legally by the European Union for videos that are not suitable for minors. (I assume this one contains gore or something like that? I haven't watched it)


I'd rather states legislate themselves any way they want.


That means you support an end to the federal "War on Drugs". States are still free to legislate however they want after that.


So much this. Practically any other option is better than Python for web development if you're looking for performance.


By this logic, why not Java, C++, Rust, Go, C#?

They’re all web-capable and blow the doors off PHP, Python, etc.


Yes all of those would be way better options than Python and probably PHP. Well maybe not C++. You'd have to be pretty crazy to have web developers writing security sensitive code in C++.

The "blame our co-founder for the choice" bit is exactly what that graph about the cost of defects vs how early they are fixed is talking about.

If they had just picked Go or Java right at the start they wouldn't have had to expend all this engineering effort to get to a still-not-very-good solution.


This thread arose from a person that said "Use PHP", as an argument to using Python. It's a silly argument.


It was just a silly remark about the snail-like performance of Python.

Another silly thing:

https://benchmarksgame-team.pages.debian.net/benchmarksgame/...


I'm not really seeing what's silly about what you're linking. I'm seeing Java blowing the doors off of PHP, which matches my previous assertion.


Much better comparison for typical web load, what this discussion is about.

https://www.techempower.com/benchmarks/#section=data-r20&hw=...

Java wins as expected, but a typical setup with Spring versus the typical top PHP frameworks isn't blowing the doors off. Typical Python + Django is far behind, as someone pointed out.

However what we can see in the diagrams is that ORM layers, regardless of language, are more expensive than what most people realize, even for a compiled language like Java.

Why PHP wins is because it is fast enough, compared to other dynamic languages, but is a better fit for web development than Java or other compiled languages.


In the link you provided PHP is 53% as fast as Spring. I would argue that’s an insane performance reduction.

If Python weren’t fast “enough”, would it be used to power so many successful web backends?


That is for spring-webflux, is that a typical spring set up for web today?

I haven’t coded spring for a few years now, but I was thinking about the traditional spring setup that most use and that is comparable.

You can of course use Python successfully, my argument is that it is easier with PHP, not that it is not possible with Python.

It is a similar argument compared with Java, it is easier with PHP than Java in a web context. Java has other benefit thats fits better for web services IMHO, general higher performance is one.


C#, Java, C++ need application servers, no?

"Serverless" scales infinitely due to its simpler request/response lifecycle.


Serverless is too overloaded a term to have any meaning. I'm not really seeing how Python or PHP "scales infinitely" in any way that C#, Java, C++ couldn't.


PHP is usually easier to scale because it just a matter of how many webservers. e.g. apache or nginx, you choose to deploy. This also possible with other platforms, but can be a bit trickier to get right.

For large PHP setups it is usually the number of database connections that is the limiting factor, however that is why historically the replicated MySQL databases was such a good fit for PHP, thus only creating a limit for writes on the master.


> For large PHP setups it is usually the number of database connections that is the limiting factor,

For pretty much every modern programming language, IO is the bottleneck over everything else.

To save you some time, there are practically no metrics in which I think PHP beats another programming language other than maturity, and even then, not really.


Php needs an application server as well.


Yet YouTube, Instagram, Pinterest, Reddit, Robinhood, DoorDash, and Lyft backend were originally primarily written in Python. What’s funny is that nobody can really deny Python is slow yet somehow the biggest websites in the world were written in it. More proof that Worse Is Better?


In the early stages:

Speed of development is far more important than optimizing CPU usage.

You can fake your way to fast responses with good caching, but there's not really many ways to fake having the best features.


It blows my mind how quickly PHP7.4 processes even shitty code.


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

Search: