pathfinder
pytype
pathfinder | pytype | |
---|---|---|
16 | 21 | |
3,458 | 4,602 | |
0.9% | 1.8% | |
6.3 | 9.8 | |
about 1 month ago | 10 days ago | |
Rust | Python | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pathfinder
-
Capturing the WebGPU Ecosystem
https://github.com/coconut-xr/apfel-kruemel works today, I only know about battery-optimized software in the context of games though.
https://felt.com/blog/svg-to-canvas-part-2-building-interact... and https://github.com/servo/pathfinder/ might also be of interest.
-
Servo, the parallel browser engine written in Rust
Parts of Servo to enable the use of the GPU for compositing layers were merged into Firefox years ago.
https://hacks.mozilla.org/2017/10/the-whole-web-at-maximum-f...
It's a shame that Patrick Walton didn't get a chance to finish his work on the Pathfinder GPU renderer.
>Pathfinder 3 is a fast, practical, GPU-based rasterizer for fonts and vector graphics using OpenGL 3.0+, OpenGL ES 3.0+, WebGL 2, and Metal.
https://github.com/servo/pathfinder
-
Forma: An efficient vector-graphics renderer
You might be interested in https://github.com/servo/pathfinder
-
What do you believe Firefox is missing?
It uses too much CPU and performance leaves much to be desired compared to Chromium. They were going to use Pathfinder in Firefox to solve this problem, but since Pathfinder is discontinued due to the massive layoffs at Mozilla, the project was abandoned. And they need a replacement IMO.
-
Stereokit – open-source mixed reality library by Microsoft
I am not an expert in the area, just somebody who read up on it after realizing desktop in VR does not work out for me (and usually low res is not a problem).
I think something like https://github.com/servo/pathfinder (newer) and as you mentioned SDF (older) are the latest approaches.
-
PSA: OffscreenCanvas now enabled by default on nightly only
This is exciting! And, by the way, are you planning to implement something similar to Servo's Pathfinder in Firefox?
-
Getting into GUI: Shapes moving on networks
Also on my list was pathfinder. There the documented crate is vastly different from https://github.com/servo/pathfinder which looks much more promising – it comes with a few examples, some of wihch might help me get started, maybe?
- De ce atat de multa lume urăște Java?
-
WebKit: Introducing the layer based SVG engine
Have you checked out the Pathfinder library?
https://github.com/servo/pathfinder
-
I wrote a web based text editor to showcase sauron framework, but it turns out better than I expected, less than 20ms typing latency.
Don't forget gpu-based text rendering (e.g. #1, #2, #3). It's still in its infant stages, and seems to be mostly untouched over the past 5 years, but I suspect it will become the preferred method for rendering text later.
pytype
-
Google lays off its Python team
it's open source! check out https://github.com/google/pytype and https://github.com/google/pytype/blob/main/docs/developers/t... for more on the multi-file runner
-
Enhance Your Project Quality with These Top Python Libraries
Pytype checks and infers types for your Python code - without requiring type annotations. Pytype can catch type errors in your Python code before you even run it.
-
A Tale of Two Kitchens - Hypermodernizing Your Python Code Base
Pyre from Meta, pyright from Microsoft and PyType from Google provide additional assistance. They can 'infer' types based on code flow and existing types within the code.
-
Mypy 1.6 Released
we've written a little bit about what pytype does differently here: https://google.github.io/pytype/
our main focus is to be able to work with unannotated and partially-annotated code, and treat it on par with fully annotated code.
-
Mypy 1.5 Released
So, I tried out pytype the other day, and it was a not a good experience. It doesn't support PEP 420 (implicit namespace packages), which means you have to litter __init__.py files everywhere, or it will create filename collisions. See https://github.com/google/pytype/issues/198 for more information. I've since started testing out pyre.
-
Writing Python like it's Rust
What is the smart money doing for type checking in Python? I've used mypy which seems to work well but is incredibly slow (3-4s to update linting after I change code). I've tried pylance type checking in VS Code, which seems to work well + fast but is less clear and comprehensive than mypy. I've also seen projects like pytype [1] and pyre [2] used by Google/Meta, but people say those tools don't really make sense to use unless you're an engineer for those companies.
Am just curious if mypy is really the best option right now?
[1] https://github.com/google/pytype
-
PyMEL's new type stubs
At Luma, we're using mypy to check nearly our entire code-base, including our Maya-related code, thanks to these latest changes. Fully adopting mypy (or an alternative like pytype) is no small feat, but working within a fully type-annotated code base with a type checker to enforce accuracy is like coding in a higher plane of existence: fewer bugs, easier code navigation, faster dev onboarding, easier refactoring, and dramatically increased confidence about every change. I wrote about some deeper insights in these posts.
-
The Python Paradox
Check out https://github.com/google/pytype
-
Forma: An efficient vector-graphics renderer
i work on https://github.com/google/pytype which is largely developed internally and then pushed to github every few days. the github commits are associated with the team's personal github accounts. pytype is not an "official google product" insofar as the open source version is presented as is without official google support, but it is "production code" in the sense that it is very much used extensively within google.
-
Ruff – an fast Python Linter written in Rust
pytype dev here - thanks for the kind words :) whole-program analysis on unannotated or partially-annotated code is our particular focus, but there's surprisingly little dark PLT magic involved; in particular you don't need to be an academic type theory wizard to understand how it works. our developer docs[1] have more info, but at a high level we have an interpreter that virtually executes python bytecode, tracking types where the cpython interpreter would have tracked values.
it's worth exploring some of the other type checkers as well, since they make different tradeoffs - in particular, microsoft's pyright[2] (written in typescript!) can run incrementally within vscode, and tends to add new and experimentally proposed typing PEPs faster than we do.
[1] https://github.com/google/pytype/blob/main/docs/developers/i...
What are some alternatives?
Skia - Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.
mypy - Optional static typing for Python
lyon - 2D graphics rendering on the GPU in rust using path tessellation.
pyright - Static Type Checker for Python
nanovg - Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.
pyre-check - Performant type-checking for python.
sauron - A versatile web framework and library for building client-side and server-side web applications
pyannotate - Auto-generate PEP-484 annotations
Servo - Servo, the embeddable, independent, memory-safe, modular, parallel web rendering engine
pyanalyze - A Python type checker
StereoKit - An easy-to-use XR engine for building AR and VR applications with C# and OpenXR!
ruff - An extremely fast Python linter and code formatter, written in Rust.