Readit News logoReadit News
AlphaSite commented on Metacode: The new standard for machine-readable comments for Python   github.com/pomponchik/met... · Posted by u/pomponchik
degamad · 12 days ago
Looks interesting - is there a PEP [0] for this?

[0] https://peps.python.org/

AlphaSite · 12 days ago
i assume therye trying to build some community before trying to standardise it.
AlphaSite commented on Airbus A320 – intense solar radiation may corrupt data critical for flight   airbus.com/en/newsroom/pr... · Posted by u/pyrophoenix
rkagerer · a month ago
In redundant systems like these, how do you avoid the voting circuit becoming a single point of failure?

Eg. I could understand if each subsystem had its own actuators and they were designed so any 3 could aerodynamically override the other 2, but I don't think that's how it works in practice.

AlphaSite · a month ago
Voting can be coordinated between the N cpus rather than an external arbiter (even making that redundant eventually required the CPUs to decide what to do if they disagree so may as well handle it internally).
AlphaSite commented on Kratos - Cloud native Auth0 open-source alternative (self-hosted)   github.com/ory/kratos... · Posted by u/curtistyr
throwaway894345 · a month ago
I've often wondered why there isn't a simpler identity provider service that does the thing that ~90% of applications need without all of the complex configuration.
AlphaSite · a month ago
Honestly. We used dex. It worked pretty well.
AlphaSite commented on Friendly attributes pattern in Ruby   brunosutic.com/blog/ruby-... · Posted by u/brunosutic
sfgvvxsfccdd · 2 months ago
Haters gonna hate. My take: DSLs are a useful way to make code easier to read, and more importantly easier to write correctly. Exploring this space and sharing your learnings is useful and valuable.
AlphaSite · 2 months ago
Ruby is a language that optimizes for the local maxima at the cost of the global maxima.

Now every library, company or code base has its own pattern and you have to learn its pit falls. Better to learn once, cry once and just deal with it imo.

As they say, good enough is the enemy of perfection.

AlphaSite commented on Friendly attributes pattern in Ruby   brunosutic.com/blog/ruby-... · Posted by u/brunosutic
boredtofears · 2 months ago
> For instance you’re probably iterating over those six plans and inserting them individually in the DB. Another approach would’ve been to accumulate all of them in memory then build and perform a single query. That’s not something people really consider because it’s “micro” optimization and makes the code look worse.

This same pitfall exists in every language. This has nothing to do with Ruby.

AlphaSite · 2 months ago
eh. Ruby makes it easy to do the wrong thing. imo.
AlphaSite commented on The future of Python web services looks GIL-free   blog.baro.dev/p/the-futur... · Posted by u/gi0baro-dev
hunterpayne · 2 months ago
So its the worst of all possible worlds then. It has the poorest performance due to forced locking even when not necessary and if you load a library in another language (C), then you can still get corruptions. If you really care about performance, probably best to avoid Python entirely, even when its compiled like it is in CPython.

PS For extra fun, learn what the LD_PRELOAD environmental variable does and how it can be used to abuse CPython (or other things that dynamically load shared objects).

AlphaSite · 2 months ago
It’s another step in the right direction. These things take time.
AlphaSite commented on Pipelining in psql (PostgreSQL 18)   postgresql.verite.pro/blo... · Posted by u/tanelpoder
vlovich123 · 2 months ago
That literally isn’t what pipelining is about in general nor is it relevant to this benchmark which is an insertion workload. The performance benefit observed literally is the ability to start executing the second request even though the ACK for the first one hasn’t fully ACK’ed.

It’s also not true pipelining since you can’t send a follow up request that depends on the results of the previous incomplete request (eg look at capnproto promise pipelining). As such the benefit in practice is actually more limited, especially if instead here you use connection pooling and send the requests over different connections in the first place - I’d expect very similar performance numbers for the benchmark assuming you have enough connections open in parallel to keep the DB busy.

AlphaSite · 2 months ago
Connection pooling has its own severe downsides in Postgres. Considering how limited we are by connection counts.
AlphaSite commented on K8s with 1M nodes   bchess.github.io/k8s-1m/... · Posted by u/denysvitali
wb14123 · 2 months ago
Instead of giving up the good guarantee of etcd, a better approach maybe grouping some nodes together to create a tree like structure with sub clusters.
AlphaSite · 2 months ago
That was the whole concept behind KCP iirc. It was designed to provide tenancy atop 1 or more clusters.
AlphaSite commented on Examples are the best documentation   rakhim.exotext.com/exampl... · Posted by u/Bogdanp
horsawlarway · 3 months ago
Personally - what you're asking for is type definitions.

And it's a blurry line, since type definitions are a good form of documentation. It's just that type-system tooling has mostly replaced the need to go read through the docs for that. I expect to get it easily and obviously in whatever editor or IDE I've configured.

I think the prevalence of example based documentation is because of this trend - don't waste time manually writing the same thing type tooling is going to give your users anyway.

When I hit docs - I'm much less interested in the specific arguments, and I'm very interested in "Capabilities": Problems this tool can solve.

Examples are a great showcase for that. Especially if I have a specific problem in mind and I just want to know if a "tool" can solve that problem, and how to use it to do so.

---

If I have a type system: I want examples first.

If I don't have a type system: 1) I'm not happy. 2) I want examples first, followed by the detailed arguments/return/data structure docs you're referring to.

AlphaSite · 3 months ago
Types don’t explain intent or gotchas. They’re also useful, but you need both.
AlphaSite commented on Python 3.14 is here. How fast is it?   blog.miguelgrinberg.com/p... · Posted by u/pjmlp
feoren · 3 months ago
You hope it doesn't?

> [Donald Knuth] firmly believes that having an unchanged system that will produce the same output now and in the future is more important than introducing new features

This is such a breath of fresh air in a world where everything is considered obsolete after like 3 years. Our industry has a disease, an insatiable hunger for newness over completeness or correctness.

There's no reason we can't be writing code that lasts 100 years. Code is just math. Imagine having this attitude with math: "LOL loser you still use polynomials!? Weren't those invented like thousands of years ago? LOL dude get with the times, everyone uses Equately for their equations now. It was made by 3 interns at Facebook, so it's pretty much the new hotness." No, I don't think I will use "Equately", I think I'll stick to the tried-and-true idea that has been around for 3000 years.

Forget new versions of everything all the time. The people who can write code that doesn't need to change might be the only people who are really contributing to this industry.

AlphaSite · 3 months ago
While i think Latex is fantastic, i think there is plenty of low hanging fruit to improve upon it... the ergonomics of the language and its macros aren't great. If nothing else there should be a better investment in tooling and ecosystem.

u/AlphaSite

KarmaCake day1420September 25, 2010View Original