There's plenty of comments on saying no your career is not doomed. I'll add that using HackerNews is not a strong way of grasping industry needs. If one took their advice solely from HackerNews, one might think the only tech that matters is JavaScript and associated framework of the season. This is simply not true...check out indeed.com, many many languages are in demand. Lastly, AI might be the thing of the future but the press, even the "tech" press, has a way of bubbling up and propagating hot stuff.
Remember "nanotechnology" from a few years ago? I recall reading, in a respected source, soon we would all have nanotechnology technology infused clothing off which would just roll all foreign particles! Well...still wearing my cotton slacks today...