Show HN: Rust library for set operations on CIDRs, you can try it in a terminal I had a work objective that required me to be able to "slice" a subnet by a smaller subnet and I didn't manage to find any other libraries that accomplish this kind of computation so I set out to write one myself. Supports calculating CIDR unions, differences, and complements. The rest of the existing set operations don't really make sense for CIDRs since the only way they can overlap is if one fully contains the other (or they are equivalent). I figured a binary tree-like data structure would be the most memory efficient way to represent this, but I'm super open to any feedback especially if there's a well established better way to do this. Play with it on the command line if you have rust installed: `cargo install fcidr`! https://ift.tt/6ARdDFt July 26, 2023 at 11:02PM
Show HN: Rust library for set operations on CIDRs, you can try it in a terminal https://ift.tt/vS4B1bH
Related Articles
Show HN: Turn your dreams into reality with this life planner app https://ift.tt/5ITebjnShow HN: Turn your dreams into reality with this life planner app Hi, … Read More
Show HN: Open-source text classification CLI – train models with no labeled data https://ift.tt/wMvzVJ7Show HN: Open-source text classification CLI – train models with no la… Read More
Show HN: I Made TabDock–Organize Tabs,Kbar,and Searchbar Commands in the Browser https://ift.tt/UoVLY1hShow HN: I Made TabDock–Organize Tabs,Kbar,and Searchbar Commands in t… Read More
Show HN: An Elliptic Curve-Based Secure Chat, Written Using Rust and Protobuf https://ift.tt/De6ZSL1Show HN: An Elliptic Curve-Based Secure Chat, Written Using Rust and P… Read More
Show HN: Bot or Not? AI voices vs. humans https://ift.tt/T4s5qPMShow HN: Bot or Not? AI voices vs. humans My cofounder and I were play… Read More
Show HN: EloqKV – Scalable distributed ACID key-value database with Redis API https://ift.tt/W4qUgzeShow HN: EloqKV – Scalable distributed ACID key-value database with Re… Read More
Show HN: PDF to MD by LLMs – Extract Text/Tables/Image Descriptives by GPT4o https://ift.tt/NrGJBzdShow HN: PDF to MD by LLMs – Extract Text/Tables/Image Descriptives by… Read More
Show HN: Inngest 1.0 – Open-source durable workflows on every platform https://ift.tt/ncG1BQ9Show HN: Inngest 1.0 – Open-source durable workflows on every platform… Read More
0 Comments: