News for hackers. Stuff that matters.
Re:Ask HN: Consumer WiFi router options in 2020 by barlo on Monday October 12, 2020 @03:21PM (#24758345)
I'm a huge fan of MikroTik. The RB4011 is fantastic router at the price point and even has a 10G SFP+ port. Great hardware.

The configuration UI isn't the best, but they also have a full scriptable CLI that isn't too bad. Huge future set. I just wish they would move the newest version (7) along quicker in development.

Re:Ask HN: Consumer WiFi router options in 2020 by Cicero22 on Monday October 12, 2020 @06:33PM (#24760234)
Big fan of MikroTik myself, but the scripting language can be pretty finicky and has a somewhat steep learning curve. I won't claim I've mastered it, but after a couple of months of working with it, I still feel handicapped by the syntax, quirks, and general lack of usability.

For example, this is how I'm finding the subnet mask from a string like "192.168.1.0/24" in a script I recently wrote (I think I got this from a forum post, but I can't find it anymore.)

:local mask do={ :return (255.255.255.255 << (32 - [:pick $1 ([:find $1 "/"] + 1) [:len $inet]]))}