Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pdhborges
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
91.
▲
by
pdhborges
2y ago
Web dev context here. Just from the top of my head: django-constace breaks storage format with no built-in no downtime transition, django-modeltranslations, want to add translations to a heavily used field and you are using a database witho
92.
▲
by
pdhborges
2y ago
> Auth is a solved problem It is solved until you have to integrate with third party home grown implementations and providers that implement the specs except for a little bit of behavior that is not in the spec.
93.
▲
by
pdhborges
2y ago
Well if your working set fits RAM your tables will be stored in memory in the shared buffers.
94.
▲
by
pdhborges
2y ago
Some people use the ORM models as pure persistence models. They just define how data is persisted. Business models are defined elsewhere. I think makes sense when you application grows larger. Domains become more complex and eventually how
95.
▲
by
pdhborges
2y ago
How much time did the PyAST_mod2obj actually take? The rewritte is 16x faster but the article doesn't make it clear if most of the speedup came from switching to the ruff parser (specially because it puts the GC overhead at only 35% of
96.
▲
by
pdhborges
2y ago
It doesn't to be puzzling just read the motivation section of https://peps.python.org/pep-0703/
97.
▲
by
pdhborges
2y ago
> But once your tables start to grow it will become misery to work with. I buy the data layout argument for databases with clustered tables without any smi-sequencial uuid support. But the storage argument looks vanishingly applicable to
98.
▲
by
pdhborges
3y ago
I'll be blunt, having experienced the damage caused by DRF Model* accelerators in mid sized codebases I just hate it. CRUD stops being CRUD quickly, these CRUD accelerators just intruduce more non linearity into the development. Its ea
99.
▲
by
pdhborges
3y ago
If a government is small does it have enough power to impose the rule of law and be an economic and social moderator ?
100.
▲
by
pdhborges
3y ago
Congrats to the team. I think it is particularly impressive (and a bit scary) that DDL changes are also synchronized to the clients automatically!
101.
▲
by
pdhborges
3y ago
They are not polyfills. Multiple scheduling modes are provided for libraries that are not thread safe (it's a total mess and I avoid these wrappers like the plague)
102.
▲
by
pdhborges
3y ago
Is this resource up to date? ALTER TABLE ADD FOREIGN KEY NOT VALID (PARENT) shows a stronger lock than ALTER TABLE ADD FOREIGN KEY (PARENT) while the PG docs says that the locks should be the same.
103.
▲
by
pdhborges
3y ago
Isn't a Pareto optimal solution always at the edge of the feasible space?
104.
▲
by
pdhborges
3y ago
Should this be the take away? It looks to me that people are building pipelines without taking into account that they change roles every time they have to build a package, from a package consumer to a package packager. Even if the package d
105.
▲
by
pdhborges
3y ago
If you need to buy into the async ecosystem for some special reason my recomendation is to: - pick a mature ASGI server - pick a framework and libraries that have been designed from the start with async in mind. Be suspicious of libraries t
106.
▲
by
pdhborges
3y ago
Look at the intended semantics [1], and then read the implementation [2]. Can you figure out if the implementation is correct? Can you infer the possible limitations of the approach at glance? Can your async library actually handle being ca
107.
▲
by
pdhborges
3y ago
I'll have zero trust running async Django until all sync_to_async and async_to_sync calls are removed from the code base.
108.
▲
by
pdhborges
3y ago
In my current codebase there is a lot more overriding going on than simply implementing the retrieve/list/etc... methods. On a quick review I found overrides for: - get_object - get_serializer_class - perform_create - get_queryset
109.
▲
by
pdhborges
3y ago
I read the article and I'm left scratching my head why this advice doesn't apply to DRF. The DRF Generic ViewSets and Views provide maximum magic plus they also shift part of the creation process into Model Serializers. Doing anyt
110.
▲
by
pdhborges
3y ago
With the Vector API comming I don't see this PR going through. A light search on the OpenJDK mailing list found no discussion.
111.
▲
by
pdhborges
3y ago
There is a good article [1] discussing this state of affairs where application developers are straight jacked because they end up integrating too many systems and there is no distributed transaction covering them all. [1] https://
112.
▲
by
pdhborges
3y ago
Scala is probably not a good example because if you need some quick and dirty printing you can override toString and keep the rest of the generic code intact. In OCaml, Rust and Haskell you would have to add type constraints in a bunch of p
113.
▲
by
pdhborges
4y ago
Tom DeMarco expressed the same exact point: > https://www.computer.org/csdl/magazine/so/2011/06/mso2011060...
114.
▲
by
pdhborges
4y ago
Is there a backup for all the problems and solutions?
115.
▲
by
pdhborges
4y ago
More examples: the browser can display pictures because there is a media type for them, same for sounds and videos.
116.
▲
by
pdhborges
4y ago
There is one book about the CPython internals: https://realpython.com/products/cpython-internals-book/ . You can also explore the CPython dev guides: https://devguide.python.org/internals/ .
117.
▲
by
pdhborges
4y ago
Kdiff3 is still developed. You can download newer versions here: https://download.kde.org/stable/kdiff3/
118.
▲
by
pdhborges
4y ago
I'll rephrase my point: This dismissal of business requirements as not generating technical problems big enough to require deep work is very interesting.
119.
▲
by
pdhborges
4y ago
This dismissal of business requirements as not technical is very interesting. Don't you ever get business requirements that touch hundreds of existing use cases? Or business requirements that sudenly require paying atention to concurre
120.
▲
by
pdhborges
4y ago
For these 64-bit index entries we’d expect to have to scan roughly: index_row_size⋅rows=2⋅64bit⋅10^5=1.5MiB Where do the 10^5 rows come from? With a composite index and a point query doesn't the database scan just the 100 ret
More ›