Better HN
topnewbestaskshowjobs
Log inSign up

qbasic_forever

10,505 karma · joined Feb 3, 2021 (5y ago) · 2,505 submissions

Submissions

comment 4y ago · link · parent

It wasn't a strong enough argument to overcome the final decision that cgi and cgitb are modules which never would be accepted in python today. There were three years to discuss this issue and make a case--was that process not enough?

comment 4y ago · link · parent

Well apparently it's not heavily enough used that any of its current users were motivated enough to discuss the PEP and make a strong case for keeping it in the standard library. The discussion was open for _three years_ and had hundreds of comments: https://discuss.python.org/t/pep-594-removing-dead-batteries... The outcome is that there isn't enough usage to merit this being in the standard library.

comment 4y ago · link · parent

Not to mention python has an entirely open proposal process where anyone at any point could have commented and expressed a desire to keep these libraries in the standard library. It seems after this entire process not enough people need them in the standard library.

comment 4y ago · link · parent

It's a massive footgun and no sane security review would let a production service pass with HTTP basic auth. You're one misconfigured TLS proxy away from major security breaches and issues.

comment 4y ago · link · parent

What is your auth and session story? Because I doubt you're implementing OIDC, JWT, etc. in a cgi script vs. relying on a modern framework that does all the work for you. HTTP basic auth? Well, there's your security issue right there.

So presumably you are happy to have a web accessible endpoint running on your server that will pop a new process and start executing a local script (which might be reading/writing files, other services, etc.) without checking any permissions, enforcing any cross site scripting or CSRF protections, etc. It might be fine for the most trivial appplication. For anything that actually changes state or has side effects, I would be very concerned and it would never pass a serious security review.

comment 4y ago · link · parent

cgi, nntp, telnet, etc. are old and obsolete. And not just in the 5 years out of fashion/not the trendy new thing--these things are decades out of date and have major or glaring security issues, etc. If you're publishing brand new code in 2022 that still depends on python's built-in cgi support, etc. you have far greater problems than having to pull in a third party dependency now.

Python changes in breaking ways--just look at the python 2 to 3 change. You will have to learn to deal with it. There is no explicit guarantee that python will continue to work in exactly the way it has always worked for you forever.

comment 4y ago · link · parent

There are plenty of commodity chips that go into making a full server rack. If any little power regulator, etc. is backordered for months and years it's just more unexpected pain. And that's before we even get to the problems of entire factories shutting down, just look at what's happening to Apple & Foxconn of all companies in Shenzhen this week. If the big players are struggling the small fries are in for pain too.

comment 4y ago · link · parent

When you press . on github you _are_ using one of those options--monaco, as built into VS Code's new client/PWA experience.

comment 4y ago · link · parent

Agreed, it's really surprising to me that MS hasn't put more effort into getting a solid mobile-friendly option with Monaco.

comment 4y ago · link · parent

I would wager 75% or more of those respondents actually are using monaco as a code editor though--it's what powers VS Code's IDE editing experience.

comment 4y ago · link · parent

Nothing is stopping those libraries from being in a new 'legacy internet' package that motivated folks can maintain on pypi.

comment 4y ago · link · parent

Why can't legacy MSI support be a standalone library? It looks like no one is maintaining it right now anyways so that should be some red flags right there.

comment 4y ago · link · parent

I really worry about a startup taking a massive bet on their own custom hardware now in 2022. The world was much, much different in December 2019 when Oxide started than it is now. Let's hope the investment cash keeps flowing and the hardware gets to folks that purchased it.

comment 4y ago · link · parent

Learn Go and spend some time in its world, then come back to Python IMHO. You'll start to appreciate the subset of Python that's just functions at the module and class level and ignore all the complexities of metaprogramming, class hierarchies, etc. You'll find a lot of folks using Go are coming from Python and burnt out on big, complex codebases there--the simplicity and "less is more" is a breath of fresh air to reapply to Python.

comment 4y ago · link · parent

The gameplay rules of Wordle are not patented or protected. Anyone can make a clone with the same rules, just don't call it Wordle or use trademarked/copyrighted names associated with it.

See more here: https://www.lexology.com/library/detail.aspx?g=cd3b3bbc-03d8...

comment 4y ago · link · parent

Far more energy and natural resources are going to be used to make those big screens than melting some sand for glass. Double wall glass doors with a good vacuum are incredibly effective insulators too. I doubt infrared radiation that goes through the glass is a big concern in the real world--unless your 7/11 is on Mercury.

comment 4y ago · link · parent

Get thicker pans if you're experiencing warping. I had loads of problem with inexpensive but thin tri-ply aluminum/stainless cookware. I switched to big thick cast iron and carbon steel, and 8mm thick aluminum disc base nonstick/stainless and have never had a warping problem since.

comment 4y ago · link · parent

That is the sad truth. It is absolutely maddening the control schemes on every induction cooktop I've used. It's like an 80's car dashboard and radio. Nothing is obvious or makes sense--the most simple action like turn up the power is a complex process of multiple presses, different modes, etc.

comment 4y ago · link · parent

I've been at a store that used this technology and it was obnoxious. I really don't see how it will catch on or survive in the real world. The cost to run these screens 24/7 is enormous, especially in a world where energy costs are increasing. I doubt the ad revenue they make will come anywhere near recouping the costs after the honeymoon period and investor cash runs out.

comment 4y ago · link · parent

How is Google making money off of golang?

Are they selling tools for it? Not that I see.

Are they selling the compiler? Nope (they don't even 'own' it, it's open source)

You really need to explain your thought process here because it doesn't sound based in reality.

comment 4y ago · link · parent

Incorrect, the beta variant vaccine for example showed quite good strength at stopping the beta variant vs. the wild type vaccine (which beta much more easily evaded). The problem is beta variant grew for a bit last year but is entirely gone now.

comment 4y ago · link · parent

The article I posted has a quote and video of the director of the CDC explicitly saying in March of last year that vaccinated people "do not carry the virus" and were 90% protected __against infection__.

That's a direct quote from the head of the CDC, it does not get more official or more of a primary source than that IMHO.

comment 4y ago · link · parent

Yes, it says "On Monday, the CDC released a study finding mRNA vaccines __90% effective at preventing infection__."

I remember last year when this news hit, that bit about 90% effective *against infection* was amplified and played nonstop for the public. The message was clearly get vaccinated and you will not get sick.

It was not until July and the CDC MMWR report on the Providence, Rhode Island, bear week festivities that lead to unexpected breakthrough infections that the CDC admitted the vaccines were not 90% effective against infection anymore. Unfortunately this updated message has never been clearly told to the public, at least not as clearly or loudly as the original 90% protection against infection message.

comment 4y ago · link · parent

It's more that sars-cov-2 is just a nasty virus with exceptionally good skills at evading the immune system, not that mRNA vaccine tech doesn't work after a few months. From what I understand covid-19 can suppress the immune system response and replicate before your body can really detect or react to it. It's only if you have a recent supply of covid-19 spike protein antibodies floating around your blood, like if you were recently vaccinated/boosted, that your immune system can get a faster alarm and head start at clearing a real infection.

So really any vaccine mRNA or not that's targeting the spike protein is going to see similar waning efficacy against infection. We see this with the Johnson and Johnson and Astrazenica shots which don't use mRNA tech for example.

comment 4y ago · link · parent

Updated vaccines _have_ been developed and are in trials. Moderna created a beta variant vaccine last year that is the furthest along in any trial IIRC. Pfizer has an alpha variant specific booster with quite good results from trials too.

The problem as I understand it is that it isn't profitable for either company to take a risk on producing these boosters at scale. They have to take a bet that the variant they target for the booster will be the one to dominate in the next months, and right now with variants like omicron mutating and growing at astounding rates it is quite risky. If they target the wrong variant that's a whole lot of completely wasted vaccine doses and they have to start over again. As I understand it their production lines are limited too and can only produce one specific type of vaccine or booster at once (i.e. wild type or new variant, but not both).

Honestly we need operation warp speed again. It needs to just never stop, at least while we are in such a critical stage and massive amount of virus spread. We need the government and the billionaires/trillionaires to bankroll parallel development of all major variant boosters at once.

comment 4y ago · link · parent

Unfortunately the public was told last year that the vaccines were near perfect and vaccinated people wouldn't get sick. Here's the head of the CDC at the time saying vaccinated people "do not carry the virus" and were 90% protected against infection: https://www.businessinsider.com/cdc-director-data-vaccinated...

The CDC needs to be explicit and clearly admit that it was wrong or the data changed, and that vaccinated/boosted people can and will get sick or even spread disease to others. The new 'deal' is that they will likely not be hospitalized or suffer severe disease if infected.

Far too many people are still walking around thinking their shots and booster, now nearly 6 months old for some, are an impenetrable force field against any sickness.

comment 4y ago · link · parent

We really need a 'Bash: The Good Parts' book like Doug Crockford did for Javascript. IMHO bash and the shell are in a state that Javascript was ~2005--an old language/tool full of complexities but that can be sharpened and honed down to something beautiful.

IMHO writing procedural style code with lots of if, loops, etc. in the shell can quickly turn into an anti-pattern. Try to stick to simple functions that are chained together in pipelines. The only loop is typically one that processes arguments and that's it.

comment 4y ago · link · parent

It's interesting that go text templates have shell-like pipelines but that never bled over into the rest of the language: https://pkg.go.dev/text/template#hdr-Pipelines

It seems like a shame that this kind of power and expressiveness is reserved only for generating text.

comment 4y ago · link · parent

If you care about image size you need to switch to a distroless image base. It's incredibly easy nowadays with multi-stage builds. IMHO people use alpine not because they seek it out but because they're reading old guides and advice that hasn't been updated with the times.

Blindly switching to alpine to save space is opening yourself up to exactly these sorts of musl-libc quirks and issues--you better have solid test coverage and a plan to make sure there aren't unexpected edge cases.

comment 4y ago · link · parent

Yeah my experience with physical media from the cassette age to now is that CDs are by far the most finnicky of the physical medias. Any little scratch or gunk leads to skipping and bad playback. I can count on one hand how few DVDs I've seen that had problems, and I've never seen a blu-ray that ever failed to play.
1
525354
84