Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
scolvin
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
Future Plan for Arq - move into Pydantic
(github.com)
2 points
by
scolvin
3y ago
|
0 comments
32.
▲
by
scolvin
3y ago
Pydantic author here. Pydantic won't change again significantly, so it won't be any effort to keep it up-to-date. There were good reasons to make all the changes made in the V1->V2 upgrade, I think those are pretty clear. I thi
33.
▲
by
scolvin
3y ago
We've had one very small change within V2, related solely to typing. I think you're overblowing this.
34.
▲
by
scolvin
3y ago
That's simply not true. It's much faster than most similar libraries, 16x faster than DRF, 30x faster than Cerberus. Msgspec is impressive in some ways, but there are good reasons to use Pydantic instead - for a start msgspec is w
35.
▲
by
scolvin
3y ago
Yes I think that's fair as the no-brainer use case. I hope it can be do more powerful things too.
36.
▲
by
scolvin
3y ago
That's probably not a very good strap line - FastUI let's you declare new views and parts of views without writing any React, but the frontend if still just React, albeit optionally pre-built.
37.
▲
Show HN: FastUI – Build React apps without writing any JavaScript
(github.com)
9 points
by
scolvin
3y ago
|
3 comments
38.
▲
by
scolvin
3y ago
As far as I can remember it just seemed sensible to me at the time.
39.
▲
by
scolvin
3y ago
Yes, Pydantic does: https://docs.pydantic.dev/latest/api/standard_library_types/...
40.
▲
aicli – CLI for OpenAI in less 100loc
(github.com)
2 points
by
scolvin
3y ago
|
0 comments
41.
▲
by
scolvin
3y ago
Author of Pydantic here, very sorry you've had problems migrating. We were very aware this was going to cause problems, and have done our best to make migrating easier. I truly believe that v2 will be a big improvement. I think there a
42.
▲
by
scolvin
3y ago
Please please take a look at V2, both the code and the documentation (although I admit, the documentation for V2 isn't finished). I (the developer of Pydantic) had many of the same frustrations with Pydantic V2 which is why I've s
43.
▲
by
scolvin
3y ago
¯\_(ツ)_/¯ - I get different results, see the PR.
44.
▲
by
scolvin
3y ago
would love to see a benchmark where typedload is faster than Pydantic V2. Could you share a link?
45.
▲
by
scolvin
3y ago
This is simply not true. So sad. We removed benchmarks from the docs completely when the rule of "only show benchmarks with comparatively popular or more popular libraries" no longer made sense, and maintaining benchmarks with man
46.
▲
Pydantic Product Roadmap
(pydantic.dev)
5 points
by
scolvin
3y ago
|
0 comments
47.
▲
by
scolvin
3y ago
It's slow with pypy because of some problems with pyo3's interaction with pypy, not a pure python fallback. I agree unions were wrong in V1, but smart unions helped, and unions are fixed properly in V2.
48.
▲
by
scolvin
3y ago
I agree that pydantic could have been faster while still being written in Python. The argument for Rust: 1. If I'm going to rewrite - why not go the whole hog and do it in rust - and thereby get a 20x improvement, not 2x. 2. By using R
49.
▲
by
scolvin
4y ago
More details here https://pydantic.dev/announcement/
50.
▲
by
scolvin
4y ago
Not in detail, but there's more information at https://pydantic.dev/announcement/
51.
▲
Sequoia backs Pydantic OSS to build cloud services
(techcrunch.com)
44 points
by
scolvin
4y ago
|
4 comments
52.
▲
Pydantic V2 – The Plan
(pydantic-docs.helpmanual.io)
1 points
by
scolvin
4y ago
|
0 comments
53.
▲
by
scolvin
5y ago
And it would be much more complex to implement, particularly with recursively nested types.
54.
▲
by
scolvin
5y ago
I disagree, this is much less clear. It also don't work well with pytest's error output.
55.
▲
Show HN: Dirty-equals – Doing dirty (but useful) things with equals
(github.com)
25 points
by
scolvin
5y ago
|
6 comments
56.
▲
Scunthorpe Problem
(en.wikipedia.org)
3 points
by
scolvin
5y ago
|
0 comments
57.
▲
Show HN: Edge-mock – dev. server and unit testing for Cloudflare-workers
(github.com)
4 points
by
scolvin
5y ago
|
0 comments
58.
▲
by
scolvin
5y ago
Because even their homepage is down intermittently/for some people.
59.
▲
by
scolvin
6y ago
I don't believe it can be used for previews. Also, it requires an api key, so can't be used on pull requests from forks on github actions.
60.
▲
by
scolvin
6y ago
One of the most useful trick I found was installing the tool via sitecustomize.py so you don't need the import: # add devtools debug to builtins try: from devtools import debug except ImportError: pass
More ›