logoalt Hacker News

aretu7888yesterday at 5:44 PM1 replyview on HN

You just need to know what you are doing. In this case, the problem is not "rewriting the logic" but "mapping Perl syntax to Typescript syntax" and "mapping Perl libs to Typescript libs". In other words, you'd be better off with an old-fashioned script that merely works on syntax mangling along with careful selection of dependencies (and maybe some manual labor around fixing the APIs of the consumers).

This is easy work, made hard by the "allure" of LLMs, which go from emphatic to emetic in the blink of an eye.

If you don't know what you are doing, you should stay away from LLMs if there is anything at all at stake.


Replies

dwaltripyesterday at 8:18 PM

Are you sure you know what you are doing? ;)

The actual goal is to faithfully replicate the functionality and solve the same use cases with a different set of base technologies.

You describing similar but different instrumental goals, which may help reaching the real goal.

Cheekiness aside, your framing is helpful!