egglog
highfleet-ship-opt
egglog | highfleet-ship-opt | |
---|---|---|
4 | 4 | |
337 | 6 | |
3.3% | - | |
9.5 | 10.0 | |
9 days ago | about 2 years ago | |
Rust | C++ | |
MIT License | 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.
egglog
-
Towards a New SymPy
The herbie project using egraphs to explore different ways of rewriting floating point expressions. https://herbie.uwplse.org/ One can also write custom rulesets in egglog (a new egraph rewriting system / language / datalog) https://egraphs-good.github.io/egglog/?example=herbie
The approach is not yet anywhere near being able to touch all the domains sympy can handle. Destructive term rewriting tends to be a bit more forgiving to unsoundness in the rules and still returning roughly meaningful results. EGraph rewriting (and other automated reasoning systems) tend to just return junk as soon as you aren't careful about your semantics. Associativity and commutativity are ubiquitous in CAS applications and encoding these concepts in general purpose terms is rather unsatisfying. The post above emphasizes specialty methods for polynomials, which it would be desirable to find a clean way to integrate into egraph techniques. Variable binding (which is treated in a rather mangled form in CAS systems) is seemingly important for treating summation, differentiation, and integration correctly. The status of doing variable binding efficiently and correctly in egraphs is also unclear imo.
-
What is the state of the art for creating domain-specific languages (DSLs) with Rust?
For semantic analyzers, check out egg and egglog. They're custom data structures for representing compiler rewrite rules in a non-destructive way.
-
Ask HN: What is new in Algorithms / Data Structures these days?
The recent work on relational, datalog-inspired egraphs in PLDI this year ("Unifying Datalog and Equality Saturation") is actually interesting because it can solve cases like the y/x*x -> y identity example, by the power of an interval analysis on x (among other things.) Sort of like adding a postulate but instead it's by adding relations between terms in the graph.
https://github.com/egraphs-good/egglog
https://arxiv.org/pdf/2304.04332.pdf
-
Better Together: Unifying Datalog and Equality Saturation
Close, but the link is on Page 13, and it points here: https://github.com/mwillsey/egg-smol
Unfortunately the naming is all a bit confusing, isn't it....
highfleet-ship-opt
-
Enhancing the Factorio experience with SAT solvers
This is my favorite pastime as well! Well done. I've also dipped my toes in the "over engineer a game" with:
A highfleet ship optimizer which chooses optimal module sets using ILP at
https://hfopt.jodavaho.io
And a hunt showdown loadout A/B test package that lets you run stats queries on your game journal at (for now)
https://crates.io/crates/kda-tools
-
Ask HN: Tell us about your project that's not done yet but you want feedback on
If you play "Highfleet" at all, can you poke around https://hfopt.jodavaho.io and see if you can get it to generate module lists that make sense?
It's an optimizer, just add what you know you want, set some cost / range / speed limits, and it will output the cheapest version of the ship that includes all required modules and has all requested stats.
-
Ask HN: What is new in Algorithms / Data Structures these days?
I used a MILP solver to optimize my ship loadouts in Highfleet. It's rugged-looking, but works great. https://hfopt.jodavaho.io
-
Any have updated modules requirements and stats calculations for 1.16?
If you are a bit more techy, a working python version is available here: https://github.com/jodavaho/highfleet-ship-opt
What are some alternatives?
ezno - A JavaScript compiler and TypeScript checker written in Rust with a focus on static analysis and runtime performance
libclc - Cache Line Container - C11
scryer-prolog - A modern Prolog implementation written mostly in Rust.
flix - The Flix Programming Language
rosboard - ROS node that turns your robot into a web server to visualize ROS topics
yjs - Shared data types for building collaborative software
obsidian-releases - Community plugins list, theme list, and releases of Obsidian.
mpack - MPack - A C encoder/decoder for the MessagePack serialization format / msgpack.org[C]
yazz - Self Service Apps Without the IT Department