jeertmans / differt Goto Github PK
View Code? Open in Web Editor NEWDifferentiable Ray Tracing Toolbox for Radio Propagation Simulations
Home Page: https://differt.eertmans.be
License: MIT License
Differentiable Ray Tracing Toolbox for Radio Propagation Simulations
Home Page: https://differt.eertmans.be
License: MIT License
Currently, we do not provide a minimum Rust supported version. We should provide such a version and add CI tests to check that it can compile with that version.
E.g., DiGraph.all_paths(from_=0, ...)
does not work as the text signature (from_
) differs from the true signature (from
). This is an issue because from
cannot be used in Python.
Possible solutions:
from_
and others explicitly positional-only parameters.from
to from_
inside Rust code (at least in the function signatures).This feature suggestion is highly inspired from maciejhirsz/logos#374, from a repository I maintain.
Actually, the idea would be to follow what pydantic-core
does, see https://github.com/pydantic/pydantic-core/blob/44621f1dee5160c737a0749d21e0b2118fa99705/.github/workflows/ci.yml#L464-L557, to generate more performant code.
The setup for DiffeRT should be as follows:
rustup component add llvm-tools-preview
RUSTFLAGS='-Cprofile-generate=/tmp/pgo-data/profdata' maturin build --release --out pgo-wheel
pdm run python -m pip install differt --no-index --no-deps --find-links pgo-wheel --force-reinstall
pdm run pytest --benchmark-only tests
llvm-profdata
may change, see https://doc.rust-lang.org/rustc/profile-guided-optimization.html.~/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/llvm-profdata merge -o /tmp/pgo-data/merged.profdata /tmp/pgo-data/profdata
RUSTFLAGS='-Cprofile-use=/tmp/pgo-data/merged.profdata' maturin build --release --out dist
The only question I have is whether this is actually useful (did run a benchmark after, but not improvement noticed). I might need to write better benchmarks (that target actually what I want to optimize).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.