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…
What it does
In the maker’s words, at launch
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`!
Does the same job
all alternatives →- CACannoli – A compiler for a subset of Python written in Rust2018 · github.com · ▲292
- RLRisp – Lisp in Rust2019 · m.stopa.io · ▲314
- ACAlgorithm Cookbook in Rust2017 · github.com · ▲320
- FAfcp – A significantly faster alternative to cp(1), written in Rust2021 · github.com · ▲88
- ARA Rust macro that parses Java-like syntax and runs it as a Rust program2018 · gitlab.com · ▲195
- AFA fast lines-of-code counter written in Rust2016 · github.com · ▲26
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 2d ago · opentrailpaper.com

Launched alongside, July 2023
the whole month →
- WL
Hey everyone, I here is a small open-source project I've been working on lately. I'd love to hear your thoughts and improvement ideas :) GitHub: [github.com/Vincenius/workout-lol](https://github.com/Vincenius/workout-lol)
Dev tools · 2023 · workout.lol
- HN
I saw this [0] pretty cool thread by user revskill, and wanted a quicker way to search through it, but also to keep them all in one place so I can read them at my leisure whenever I get time. Right now is like 60 lines of Ruby using Nokogiri, but I will certainly look into it further down the line and improve the list. There's a cronjob checking the thread every 12 hours but I will eventually shut that down and it will become static after that. There are some really awesome blogs in there. I really recommend going through the list, it made my day. [0] "Could you share your personal blog…
Life & fun · 2023 · dm.hn


A safe space for your thoughts, private, local, p2p & open
Commerce · 2023 · anytype.io
