Skip to main content

26 Is TS More AI-Friendly Than JS?

Paid1999-12-31

26 Is TS More AI-Friendly Than JS?

26 Is TS More AI-Friendly Than JS?

I've always had a question mark on this question, currently no conclusion either, let me summarize the two camps' viewpoints

TS camp, main argument is formal verification: JS language itself has no static types, too flexible, not conducive to AI reasoning

TS adds types to JS, AI generating TS is equivalent to going through a round of weak formal verification first, get types right first, if types are right code has higher possibility of being correct

Sounds somewhat reasonable, but not absolute, the loophole is reasoning is only one aspect

Back to AIGC itself, AI base models rely on massive data pre-training

AI can be understood as compressing world knowledge, the higher the proportion of code in corpus, the higher the code quality, theoretically generated code will be better

Purchase required to continue
This is a paid article. After signing in, your purchase will be unlocked automatically.
Buy now

Comments

No comments yet. Be the first to share your thoughts.

Leave a comment