metashade
example-code-2e
metashade | example-code-2e | |
---|---|---|
2 | 3 | |
52 | 3,023 | |
- | 3.5% | |
8.2 | 0.0 | |
7 days ago | 9 months ago | |
Python | Python | |
Apache License 2.0 | MIT License |
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.
metashade
-
Show HN: Metashade – a Pythonic GPU shading/compute EDSL
Thanks!
Multiple targets is definitely the plan, and GLSL is my next priority. Metashade can currently generate HLSL for the DX12 version of https://github.com/ppenenko/glTFSample/tree/metashade_demo, and there's also a Vulkan version of that demo using GLSL. So implementing GLSL generation for that would be a great proof of concept and a test bed: HLSL and GLSL generated from single source and producing identical rendering results.
The diagram on slide 31 of my presentation shows how implementation is currently inherited between the Metashade packages. The future GLSL generators should inherit common functionality from the "rtsl" package, just like the existing HLSL generators. However, I expect heavy refactoring to be necessary because I was initially targeting just one language and so not all code is implemented at the appropriate level.
BTW, here's a poll where you can vote for a target language you'd like to see prioritized: https://github.com/ppenenko/metashade/discussions/17
example-code-2e
-
Ask HN: How can I get better at writing production-level Python?
Yeah, reading the Fluent Python book[1] and / or following along with their support files[2] would a good way to start
[1] https://amzn.to/3J48u2J
[2] https://github.com/fluentpython/example-code-2e
- I want to make a deck of cards in Python. I seem to get the assignment wrong, even with using copy.deepcopy
What are some alternatives?
glom - ☄️ Python's nested data operator (and CLI), for all your declarative restructuring needs. Got data? Glom it! ☄️
curio - Good Curio!
asynchrony - asyncio Python framework for writing safe and fast concurrent code
interleave - Yield from multiple iterators as values become available
python-mastery - Advanced Python Mastery (course by @dabeaz)
hissp - It's Python with a Lissp.
paroxython - Tag and recommend Python exercises based on algorithmic features
AutoParaSelenium - A library to make concurrent selenium tests that automatically download and setup webdrivers
attrs - Python Classes Without Boilerplate
ruff - An extremely fast Python linter and code formatter, written in Rust.
Toolz - A functional standard library for Python.
funcy - A fancy and practical functional tools