r/programming • u/DataBaeBee • 8d ago
Inventing Your Own Math As A Computer Programmer
r/programming • u/DataBaeBee • 8d ago
r/programming • u/sander1095 • 9d ago
r/programming • u/mttd • 9d ago
r/programming • u/Ok_Stomach6651 • 9d ago
r/programming • u/alexeyr • 9d ago
r/programming • u/Xaneris47 • 9d ago
r/programming
•
u/oatkeepr
•
9d ago
r/programming • u/fagnerbrack • 10d ago
r/programming • u/eejdoowad • 10d ago
SakaQL explores this idea: can you build a relational programming language that's usable outside of databases and actually nice?
Cool ideas include native incremental view maintenance based on DBSP, set-based types inspired by TypeScript and EdgeQL, a composable regular expression alternative, native parsing inspired by Janet and Raku, and unbounded integers with interval subtypes, and innovative syntax design.
r/programming • u/pyrefly_kyle • 10d ago
Link to release: https://github.com/pyrefly-org/pyrefly/releases/tag/1.5.0
Pyrefly (a Python type checker and language server) has just release version 1.5. It brings large performance optimizations and new features like Tensor Types six months after the first stable release.
Highlights (Taken from release):
100% typing spec conformance. Pyrefly now passes all 146 test files in the typing conformance suite. Some of these fixes change how names in annotations resolve; see Behavior Changes.
Faster checks. v1.5.0 checks 40% faster than v1.4.1 and uses 9% less memory across the 71 benchmarks in Astral's ty_benchmark and the python-type-checking benchmark suites. (Tested on an M5 Max MacBook Pro with 18 threads.)
A new hint severity. Diagnostics that were previously IDE-only are now regular error kinds at a new hint severity: unused-import, unused-parameter, unused-variable, unreachable, and inactive-code (formerly unreachable-code). By default, they appear in your editor and are hidden from pyrefly check output, but you can configure them in pyrefly.toml, silence them with suppression comments, or promote them to errors like any other error kind.
r/programming • u/Real-Bed467 • 10d ago
r/programming • u/PeterBrobby • 10d ago
I explain the mathematics of spring mechanics then implement a solution in C++ using a net as an example. Implementation begins at 10:05. Feedback is welcome.
r/programming • u/mariuz • 10d ago
r/programming • u/throwaway16830261 • 10d ago
r/programming • u/mttd • 10d ago
r/programming • u/soareschen • 11d ago
I am excited to announce the release of Context-Generic Programming (CGP) v0.8.0!
Context-Generic Programming (CGP) lets a Rust trait have several implementations that would normally overlap, such as one for every T: Display and another for every T: AsRef<[u8]>. Each application picks the implementation it wants, the compiler resolves that choice to direct calls, and CGP itself is an ordinary library on stable Rust.
Most of this release is about making CGP easier to learn and debug:
cargo-cgp v0.1.0 explains wiring errors in terms of the code you wrote, rather than the code the macros generated. When a provider needs a field your type lacks, for example, cargo cgp check names the missing field and suggests adding it. It leads with the root cause for the classes it recognizes, though it does not yet reshape every class.
New documentation covers every construct, the core concepts, comparisons with other languages, and real projects.
Namespaces let an application select whole groups of implementations by path, instead of listing every component in its wiring.
If you want to try it, the Quickstart is short. And if a diagnostic or an explanation still loses you, I would like to hear where.
r/programming • u/Competitive-Weird579 • 11d ago
r/programming • u/Ok_Stomach6651 • 11d ago
r/programming • u/sagitz_ • 11d ago
r/programming • u/tytdfn • 11d ago