logoalt Hacker News

williadc • yesterday at 2:55 PM • 12 replies • view on HN

There's no goal mentioned in this article as why 98% of the code needs rewriting.


Replies

HarHarVeryFunny • yesterday at 3:05 PM

Yeah - code rewrites are generally a thing to be avoided since the requirements of older production code is typically not fully documented, even if it originally had been. Production code accumulates bug fixes, performance tweaks, special cases, additional requirements, etc, with documentation and test suites not always being updated in sync.

Your rewritten codebase will presumably look much cleaner and more maintainable that what it's aiming to replace, but it's easy to miss the purpose/necessity of all of the old "cruft" which need not be just poor coding but rather later enhancements not anticipated by the original design whose implementation was therefore crufty.

Does anyone here work at Cisco, and have any insight as to why a rewrite is considered necessary and might be expected to succeed?

➕ show 3 replies
InsideOutSanta • today at 12:08 AM

It's because the old bits are starting to stink a bit from age. Get those stinky bits out of here, I say! Let the AI make some new bits!

schainks • today at 3:31 AM

It’s been a while, but configuring their hardware manually in 2016 was bug ridden ridiculousness. Awful UI/UX. Their own techs had specific field notebooks for our make and firmware version that we couldn’t access unless persuaded, detailing various land mines to avoid while working. Literal “don’t click these things in this order” kinds of notes.

A critical security firmware update once brought down redundant pair of firewalls we used because the bug didn’t manifest until a counter buffer overflowed months after application. Three hours into the outage the tech power cycles the thing and our services came back to life.

Cisco is only doing this because some other alternative is more expensive. They had more than a decade to get started.

➕ show 1 reply
entrope • yesterday at 11:22 PM

Because it's Cisco?

We had to turn off a bunch of on-by-default features in the system I'm deploying now because IOS matches too aggressively and decides that arbitrary UDP datagrams are DHCP requests or PTP packets that need rewriting (and then dropping when they turn out to not be DHCP/PTP). I have to think that an AI rewrite with a today-good model would recognize the lax checks and do them better.

nitwit005 • today at 12:07 AM

No goal, and no results, but a younger guy was enthused about AI!

➕ show 1 reply
oceansky • today at 12:03 AM

It is not in Rust.

taneq • today at 7:20 AM

All of the known bugs will be gone.

add-sub-mul-div • yesterday at 3:05 PM

AI has electrolytes!

➕ show 2 replies
Hikikomori • yesterday at 11:52 PM

It's what Cisco does, as they've done several times before.

DonHopkins • yesterday at 11:38 PM

It's got tabs instead of spaces. Yuck!

vonneumannstan • yesterday at 3:24 PM

Somebody needs a promo packet. Duh

aaron695 • yesterday at 11:55 PM

[dead]