TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why there are so many programming languages?

7 pointsby gembirdover 11 years ago

5 comments

theseoafsover 11 years ago
The big reason is that different languages do different things well, and new languages try to capture the good traits of other languages or language families. Maybe you like the JVM and the surplus of packages that are available for it, but you hate writing Java code and want a Lisp-like language instead: that&#x27;s how you get Clojure. Or maybe you like C and its syntax and native performance, but you want the type-safety, memory-safety, and support for concurrency that modern languages offer: you&#x27;ve got Rust. Or maybe you just love Ruby&#x27;s syntax and idioms but want the performace of machine code: that&#x27;s the motivation behind Crystal, which is a newer, less popular language.<p>It&#x27;s all about the transmission of ideas. &quot;I&#x27;m going to take traits A and B from language X, and traits C and D from language Y, all while avoiding traits E and F from language Z.&quot; You try to isolate the good ideas from languages and suppress the bad ones -- but your new language is sure to have some bad ideas of its own, so somebody&#x27;s bound to reinterpret it later if your language gets sufficiently popular. There&#x27;s no language that&#x27;s perfect for every single use-case, and there never will be, so this will probably continue on forever.
samsquireover 11 years ago
We have no idea what we are doing.<p>More seriously, Languages are linked to cognition and thought processes. I wouldn&#x27;t go so far as to say they&#x27;re a serialisation or marshalling of thought but you could see language as the rules that dictate the semantics of communication.<p>Like human languages, they simultaneously evolve and cross pollenate as we improve our &#x27;vocabulary of semantics&#x27;.
ankurdhamaover 11 years ago
Anything that is &quot;general purpose&quot; can have many many variations. This is exactly the case with general purpose programming languages. Special purpose language (eg: SQL) doesn&#x27;t lead to such situations.
a3nover 11 years ago
Because everyone takes Compilers in school.
评论 #6790012 未加载
J_Darnleyover 11 years ago
Because people refuse to use hand-written machine instructions!