(no title)
dcreager | 9 months ago
We are happy with the attention that ty is starting to receive, but it's important to call out that both ty and pyrefly are still incomplete! (OP mentions this, but it's worth emphasizing again here.)
There are definitely examples cropping up that hit features that are not yet implemented. So when you encounter something where you think what we're doing is daft, please recognize that we might have just not gotten around to that yet. Python is a big language!
flakes|9 months ago
Can you explain how you came up with this solution? Rust docs code-examples inspired?
hathawsh|9 months ago
https://docs.python.org/3/library/doctest.html
indiosmo|9 months ago
https://hexdocs.pm/elixir/main/docs-tests-and-with.html
__mharrison__|9 months ago
_whiteCaps_|9 months ago
unknown|9 months ago
[deleted]
zem|9 months ago
dcreager|9 months ago
echelon|9 months ago
The subject of a "scripting language for Rust" has come up a few times [1]. A language that fits nicely with the syntax of Rust, can compile right alongside rust, can natively import Rust types, but can compile/run/hot reload quickly.
Do you know of anyone in your network working on that?
And modulus the syntax piece, do you think Python could ever fill that gap?
[1] https://news.ycombinator.com/item?id=44050222
dcreager|9 months ago
https://kyju.org/blog/piccolo-a-stackless-lua-interpreter/
mdaniel|9 months ago
I would never ever want a full fledged programming language to build type checking plugins, and doubly so in cases where one expects the tool to run in a read-write context
I am not saying that Skylark is the solution, but it's sandboxed mental model aligns with what I'd want for such a solution
I get the impression the wasm-adjacent libraries could also help this due to the WASI boundary already limiting what mutations it is allowed
tadfisher|9 months ago
https://github.com/gluon-lang/gluon
julienfr112|9 months ago
davedx|9 months ago
Following these projects with great interest though. At the end of the day, a good type checker should let us write code faster and more reliably, which I feel isn't yet the case with the current state of the art of type checking for python.
Good luck with the project!