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

That sounded like a joke :)


The price of humor on HN is eternal downvotes.


>The price of humor on HN is eternal downvotes.

Not if its funny.


It's important to understand that for every person familiar with the name and the abbreviation there are roughly 22 people who have no idea who she is.


A great comment to refer to the next time some young coder that never lived through IE6 says it's great to have one single engine everywhere.


> A great comment to refer to the next time some young coder that never lived through IE6 says it's great to have one single engine everywhere.

OP is suggesting that Chrome should have spearheaded a spec that no one but Intel and Google ever showed any interest in. How would that not have been literally "they like a standard (or propose one), they implement it, use it on their projects like google doc, and let the competition deal with the mess"[1]?

Instead they're implementing a spec with broad involvement and support across browsers, it's just taking longer. Seems like exactly how we'd want things to go.

[1] https://news.ycombinator.com/item?id=29405716


> they like a standard (or propose one), they implement it, use it on their projects like google doc, and let the competition deal with the mess

Yes. Exactly what they've been doing with plenty of other "standards"


Which is what the OP is suggesting Google should have done in this case


As someone who has lived through the browser wars, I have no idea what you’re trying to say? The situation today is vastly better than it was back then. It’s not hyperbole to say that porting JS from, say, IE to Mozilla took just as much time as it took to write it in the first place. Today, it’s expected (and often the truth) that something you developed in one browser works in the others.

Also, none of specific reasons people opposed Microsoft’s policies with IE, like it’s attempts to lock people into windows-only APIs (ActiveX etc) apply today.


> I have no idea what you’re trying to say?

In this case, google can pull off something like OP says because it's dominating the market.

> Also, none of specific reasons people opposed Microsoft’s policies with IE, like it’s attempts to lock people into windows-only APIs (ActiveX etc) apply today.

Chrome implements plenty of chrome only API. They like a standard (or propose one), they implement it, use it on their projects like google doc, and let the competition deal with the mess.


Sure, there is a long tail of web API's like this but they tend to be very specialized. They are easily avoided and ignored by most web developers, who likely have no need for them in the first place. (Both WebGL and WebGPU are arguably in this category - you are unlikely to need them for your website.)

This is nothing like the situation was with IE6. Back then basic functionality was half-broken and it was hard to get anything done without a pile of hacks.


> This is nothing like the situation was with IE6. Back then basic functionality was half-broken and it was hard to get anything done without a pile of hacks.

Causes are not 1 to 1, but consequences are the same: monopoly leads to abuse, abuse lead to some site not working with Firefox, consommers needs being ignored by google and them abusing their dominant position to pass what they want as standard, or just destroy API they don't like (see the latest adblock scandal).


What's the difference between Kafka, Pulsar, RabbitMQ and Crossbar.io ? They all seem to be hubs for PUB/SUB and RPC.


- sequence[-1]

- sequence[start:finish:step]

- no need for "==="

- try/except with specific exceptions

- context managers

- yield from

- "in" on any iterable

- raise from

- every empty object is false, all other are true

- spread work on all iterables, not just arrays

- f"{2:03}", f"{2:.2f}" and f"{date:%m/%d/%Y}"

- / and //

- no need for variable declaration keywords

- 0b1111

- "else" in loops

- := makes for explicit assignation + comparison instead of a footgun

- None instead of null + undefined

- set literals

- matmul operator

- foo > bar > baz

- sorting callback semantics

- dunder methods for operator overriding

- list, dict and set comprehension

- generator expressions

- byte literals

- raise SystemExit() for clean script exit

- raw strings

- automatic string literal concatenation

- positional/keyword only parameters

- can use *args and **kwargs together, as opposed to spread

- docstrings

- typing is part of the language, no need for a transpiled dialect like typescript

- "async for" and "async with"

That's only what I come up on the fly, I'm pretty sure I can double the list. Then of course, do we consider builtin to be part of the stdlib, since it doesn't require any import? Because there is a load to say there.

JS does have some nice stuff too though:

- ? and ??

- futures are more ergonomic than coroutines and awaitable anyway

- more powerful destructuration

- regex literals


Weakref finalizers can help with instance destruction in Python

https://docs.python.org/3/library/weakref.html#weakref.final...


You haven't been flooded with comment advising to use firefox instead yet ? Must be a slow day on HN.

But, joke aside, firefox is great and we do need people to use more to preserve rendering engine diversity.


I wish there were more Firefox forks. I would love to have some of the features of Vivaldi, but running with Firefox's underlying engine. But that just isn't a thing, as far as I'm aware.


Why a fork though ? about:config + addons probably allows you to make it the browser you want already.


I'm meaning in terms of appearance, and especially customizing shortcuts. I already use Firefox customized mostly to my liking, but I don't like having the same generic (very tall) top bar that everyone gets. Tab management leaves some to be desired compared to Vivaldi. Yes, there are extensions for that, but they don't function as sleek.


On the plus side, they could implement it in few days while waiting for the phone version to be up. Businesses could print it for grandmas and hobos that were limited tech wise.

Paper has advantages.


And during these few days they created a paper that was barely understandable. Luckily we had the news at 20:00 with an everyday FAQ related to that.

This was literally a piece of paper, but they managed to make it difficult to understand.

On the other hand, I must say that the police is human here as well and when you had almost the right papers and obviously were not trying to play the system they were very understanding (at least where I live)


Sure, but the 'madness' is to require this in the first place because, really, it serves no purpose (apart from allowing to prosecute people for perjury on top of fining them for breaking lockdown). That's the point re. love of French administration for paperwork and forms.


There are some differences indeed:

- python is more active than most alternatives, you have new packages created every day.

- python is massively used outside of the web, unlike JS, ruby or PHP, that are 99% web. You get Python in SIG softwares, data analytics, automation, pen testing, sysadmin, biology, etc. It's a huge graph.

- python is used by the distro themselves to code features of the OS. E.G: you remove Python, there is no yum.

- python has a rich compiled extensions ecosystem, produced from c, c++, fortran, and assembly. It's very complicated to ship them.

- it's much more common to have several Python installed than for other dynamic languages. So isolation matters even more.

So the difference is the sheer size of the problem.


Aside from the variety of languages in the extension ecosystem, how does this explain Perl doesn't generally share these dependency issues?


> Aside from the variety of languages in the extension ecosystem

That's a big one to omit. But alright, I'll play.

It has much less packages, it's almost never used on windows, it has stopped being popular 10 years ago, it doesn't have anaconda because it's not a "corporate tech", you rarely install several versions of perl on the same system, you don't make enough projects with perl to justify one isolation per project, nobody moved to perl 6 so the all CPAN transition never had to happened, perl is not used to script DB/GIS systems/3D engines/IDE, perl is not used by millions of non coders (geographers, mathematicians, physicists, bankers, etc) that have no idea how their machine work.

But to be honest, the nail in the cofin is that distros decided not to split perl and cpan in separate packages. In fact, in somes distros, perl and cpan are already installed and ready to be used.

So for linux:

- python: you must decide among several python, then intall the right package to use pip and venv, isolate your install with venv. The procedure is different for windows. Also 2.7 is a thing.

- perl: you have one perl that hasn't change for years, no new packages, it's already installed, cpan is installed as well, and it's not gonna break your system if you use it. You don't care about windows. Perl 5 forever.


That's a good analysis, thanks.

But I don't think any of it justifies the ire towards Python, its community, or its devs that was expressed in the blog post.

I also do want to point out that there are quite a lot of general-purpose CLI tools written in Perl, Ruby, and Node.


The distros devs live in their own world, they don't have to work on a fast api service connected to a sap db that must run on windows with no admin rights for dev but must be deployed on centos 7.


Please don't take it the wrong way, I have a lot of respect for distros packagers and maintainers. I donate to debian, and I report bugs. I think you are basically heroes of the FOSS world, because without your invisible (and frankly thankless) work, mine wouldn't exist.

But come on, there are 300k entries on pypi, 200k more for perl and 160k for ruby. I'm not even counting the whooping 1.3M on npm because I assume this is considered taboo at this point.

You cannot package 0.0001% of that, not to mentions updates.

And unless distros make it as easy to package and distribute deb/rpm/etc than it is to use the native package manager, this means distro packaging will never be attractive to most users because:

- they don't have access to most packages

- the provided packages are obsolete

- packages authors have no way to easily provide an update to the users

- it's very hard to isolate projects with various versions of the same libs, or incompatible libs

And that's not even mentioning that:

- package authors may not have the right to use apt/dnf on their machine.

- libs may be just a bunch of files in a git repo, which pip/gem/npm support installing from

- this is not compatible with anaconda, which has a huge corporate presence

- this is not compatible with heroku/databrics/pythonanywhere, etc

- this is hard to make it work with jupyter kernels

Now let's say all those issues are solved. A miracle happens. Sorry, 47 miracles happen.

That would force the users to create a special case for each distros, then for mac, then for windows. I have a limited amount of time and energy, I'm not going to learn and code for 10 different packaging systems.

It's not that we want to screw over linux distros. It's that it's not practical, nor economically viable to use the provided infra. The world is not suddenly going to slow down, vulnerabilities will not stop creeping up, managers will not stop to ask you to use $last_weird_things. This ship has sailed. We won't stay stuff only published 5 years ago with delays of months for every updates.


Sure, so my lib works on mac, windows, centos and debian.

Tell me how I'm supposed to define my lib python deps ?

How am I suppose to package the lib ? Distribute it ? Deal with os versions differences? Allow isolation for my user projects ?


I'm sorry, doesn't pip already works there? Otherwise, there's pyinstaller which is great but it requires an entrypoint so it won't do with a pure lib that doesn't expose any script at all.


I have apt/brew - I don’t want to install yet another package manager. Anytime I see just use pip I just walk away and find something else.


Yes that's the point. We won't use distro packages because only regular python packages allow this.

Edit : arf, sorry, I answered the wrong comment, I actually agree with my parent.


All right, sorry I didn't get it (I'm non native)


Yes, explaining to a beginer how to bootstrap python is hell because windows, mac and linux keeps making sure nothing work the same.


Actually, explaining how to get Python working on Windows is far, far easier than on either linux (modulo various distros) or the Mac. That's because there is one obvious distribution of Python to use, the official one, and new versions of it are always consistent and play well together.

Yes you can use Anaconda if you want, and people who do that are probably data scientists or something and know what they want to do and why. It's well documented and has it's own robust ecosystem.

I say this as someone who's been on Macs at home since 2007 and works professionally on Linux, but I started with Python on Windows back in 2002.


Unfortunatly windows has plenty of problems too. First, the system PATH will kick you if of you have more than one python installed, so the official installer does not add to it by default, hence the python command doesn't work after an install. Instead, you get the py launcher, but it's not provided if you installed python from the app store or with anaconda.

The you have powershell permission system.

It's a ton of fun.


> That's because there is one obvious distribution of Python to use

Lol, no. There is one in the Windows appstore too, which has issues with privileges. And I'm almost sure now MS ships it in some other tool too.


I wonder what percentage of the six people who use Windows app store have found that situation confusing.


You may be surprised outside of the HN crowd how many people use that crappy app store.


Fun fact, if you type "python" in a cmd in windows 10 but no command is found, it opens the windows store and prompt you to install python from there.


I don't doubt the factuality of that statement but the fun part is definitely questionable.


". . . and then he installed cygwin, and decided to manage and run python through the bash environment. . . " (fun fact: the git client's bash shell is actually cygwin. Also; MobaXTerm has cygwin bundled-in as well).


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

Search: