Readit News logoReadit News
Chiron1991 commented on Django 6   docs.djangoproject.com/en... · Posted by u/wilhelmklopp
meesles · 17 days ago
My point was that these features that are considered new and exciting have been standard in Rails for many, many years. There are many _other_ features that Django still lacks!

I don't understand your point about the workers, since you argue it doesn't belong in Django, but then in your edit mention they have been added. To be clear I'm talking about a worker abstraction, not actually running the workers pods themselves.

Chiron1991 · 17 days ago
You said "that Django still lacks". Django no longer lacks CSP and background tasks.

Regarding my edit, you need to differentiate between different types of jobs. Sending an email is okay to do in process. Other (mostly async) Python web frameworks have implemented this, so the Django team probably felt compelled to offer the same. Processing a user-uploaded file is much more expensive and shouldn't be done in the web process. If enough users upload files you're starving your workers for CPU.

Chiron1991 commented on Django 6   docs.djangoproject.com/en... · Posted by u/wilhelmklopp
meesles · 17 days ago
Ruby and Rails are even better candidates. CSP, Background workers, and many other features that Django still lacks have been standard offerings for sometimes 10+ years!
Chiron1991 · 17 days ago
CSP is literally in this release, and background workers are intentionally not part of Django because you usually want to offload tasks to other nodes so your CPU can keep serving HTTP requests.

Edit: Background tasks for light work are also included in this release.

Chiron1991 commented on The RAM shortage comes for us all   jeffgeerling.com/blog/202... · Posted by u/speckx
lysace · 17 days ago
I mean, I know that much. The numbers still don't make sense to me. How is my internal model this wrong?

For one, if this was about inference, wouldn't the bottleneck be the GPU computation part?

Chiron1991 · 17 days ago
This "memory shortage" is not about AI companies needing main memory (which you plug into mainboards), but manufacturers are shifting their production capacities to other types of memory that will go onto GPUs. That brings supply for other memory products down, increasing their market price.
Chiron1991 commented on Are hard drives getting better?   backblaze.com/blog/are-ha... · Posted by u/HieronymusBosch
lossyalgo · 2 months ago
RAID isn't a backup, it only handles certain/specific failure scenarios.
Chiron1991 · 2 months ago
It's actually in the name: R = Redundant, i.e. availability.
Chiron1991 commented on Are hard drives getting better?   backblaze.com/blog/are-ha... · Posted by u/HieronymusBosch
rcthompson · 2 months ago
If hard drives increase in capacity while maintaining the same MTBF, does this count as an improvement? If you previously stored your data on 10 drives and now you can store the same data on 5 drives, that reduces the probability of failure of the system as a whole, right? Is there some kind of "failure rate per byte" measure that normalizes for this?
Chiron1991 · 2 months ago
I don't know about this exact metrics, but the Backblaze hard drive report is always a very good read when thinking about failure rates. Maybe check it out and see if you'll get your answers there.
Chiron1991 commented on Go 1.25 Release Notes   go.dev/doc/go1.25... · Posted by u/bitbasher
tete · 4 months ago
Yes, but with all the v2 in stdlib popping up we will get a lot of outdated code and a lot of "I need to know v1 and v2, because I will come across both".
Chiron1991 · 4 months ago
But "outdated code" isn't inherently bad, is it? v1 code is still supported by the stdlib and it still does its job, at least until Go 2.x drops.
Chiron1991 commented on URL-Driven State in HTMX   lorenstew.art/blog/bookma... · Posted by u/lorenstewart
jarofgreen · 5 months ago
> SEO is built in since search engines can crawl every state combination.

This isn't always a plus - bots can find a very large number of pages to crawl and swamp your server with traffic. Maybe they would get stuck on all the combinations of listing page filters and miss the important pages.

Not saying the conclusion is wrong - just something to consider.

Chiron1991 · 5 months ago
That's why you can give guidance to crawlers using sitemaps.
Chiron1991 commented on Have I Been Pwned 2.0   troyhunt.com/have-i-been-... · Posted by u/LorenDB
devmor · 7 months ago
The US solution does not make users whole and does not meaningfully change anything.

The EU solution meaningfully changes the offending company's behavior. I would rather have significantly less breaches of my information than a check for $6 in the mail every couple months.

Chiron1991 · 7 months ago
> The EU solution meaningfully changes the offending company's behavior.

Citation needed. I'd imagine they just add a tiny markup to their prices to pay the eventual fine instead of investing huge amounts of money into fixing their broken processes. Comparing the list of EU-issued fines against the respective companies' profits shows that they can simply afford to make those mistakes instead of preventing them.

Chiron1991 commented on Rewrite It in Rails   dirkjonker.bearblog.dev/r... · Posted by u/WuxiFingerHold
egeozcan · a year ago
Luckily I have a real life example from a customer project I was involved as a consultant: Integrating a custom identity provider with multi-factor authentication. This was from many years ago though. They also used to have some performance problems in some naively implemented middleware and needed to deep-dive into how things actually work before being able to optimize. And commands - I was doing the integration with our software and their command queue was always causing problems with stuck jobs until they read the implementation. The specific problem with Laravel as a product is (was?) that the docs are too beginner oriented and perhaps "you don't need to know what's under the hood" mindset is exactly what's causing this. I got to know many experienced PHP developers who got really frustrated because of the ELI5 style docs.

You can't always rely on the docs too, however excellent they may be - some game developers read code from game engines to optimize, some web developers read code from their web frameworks. But, some change their whole stack when they get frustrated, and I argue that it makes little to no business sense to do so. Just understand what you are working with and deeply.

Chiron1991 · a year ago
I can't speak for the other frameworks, but with Django this would have not been a problem at all. In Django, most "batteries included" features really just are 1st party plugins, i.e. you can choose to not use the builtin authentication stack and bring your own. All of this is officially supported and well documented, e.g. https://docs.djangoproject.com/en/5.1/topics/auth/customizin...
Chiron1991 commented on BookStack: Simple and Free Wiki Software   bookstackapp.com/... · Posted by u/stefankuehnel
xyx0826 · a year ago
It’s a bit of a pain to set up and self host the container stack but Outline has been great for me. Does anyone have experience with using Outline as a public facing docs/blog site?
Chiron1991 · a year ago
What exactly is a pain there? There's a docker compose file in the documentation that will tell you everything: https://docs.getoutline.com/s/hosting/doc/docker-7pfeLP5a8t

u/Chiron1991

KarmaCake day108March 10, 2020View Original