News for hackers. Stuff that matters.

Ask HN: What is the Unique Selling Point of each programming language?

I am looking for examples of programming languages and their most distinctive feature. Which languages have a principle which guides development of the language and sets it apart from others?

Some examples:

- C++: Zero-cost abstractions

- Lua: Ease of embedding

- Rust: Memory safety without garbage collection

Other possibilities:

- Go: CSP-style concurrency?

- Julia: Multiple dispatch?

- Python: Executable pseudocode (or, in its early years, "Perl, but readable")?

( 8 comments | 7 points | on HN )
Re:Ask HN: What is the Unique Selling Point of each programm... by SilasX on Sunday July 10, 2016 @05:04PM (#12067260)
I've been really interested in Nim recently, although I don't think it has a unique selling point, but gives the best (or close to) of several worlds: readability of Python, speed of C, expressive power of Lisp/Ruby, and type safety of (whichever).
Re:Ask HN: What is the Unique Selling Point of each programm... by nimmer on Sunday July 10, 2016 @06:56PM (#12067670)
I find readability times speed times expressiveness to be more important than any single feature.
Re:Ask HN: What is the Unique Selling Point of each programm... by SilasX on Sunday July 10, 2016 @07:25PM (#12067776)
Which I guess would explain your username then!
Re:Ask HN: What is the Unique Selling Point of each programm... by Turing_Machine on Saturday July 09, 2016 @07:45PM (#12063885)
JavaScript: can be run anywhere that has a (full-featured) browser without having to install anything. Can load code from the net automatically, again, without having to go through any manual installation process. Has most features found in modern programming languages. Performance is Good Enough for many tasks. Reasonably good as a compilation target for other languages.

Of course, it's also got plenty of drawbacks, but you didn't ask about those. :-)

Re:Ask HN: What is the Unique Selling Point of each programm... by bakery2k on Saturday July 09, 2016 @08:00PM (#12063917)
JavaScript is interesting because the language itself may not have a Unique Selling Point. Its most important feature is its ubiquity, a property of its ecosystem.
Re:Ask HN: What is the Unique Selling Point of each programm... by Turing_Machine on Saturday July 09, 2016 @08:35PM (#12064021)
It's basically (pardon the pun) the BASIC of today. The early microcomputers almost all came with a free BASIC interpreter, and a lot of programmers got their start that way. Nowadays many people get their start with a simple text editor and a JS interpreter running in a web browser.
Re:Ask HN: What is the Unique Selling Point of each programm... by treehau5 on Monday July 11, 2016 @08:52AM (#12070660)
SQL: SELECT

Ruby: method_missing

JavaScript: function myFunction(){}; myFunction.isAn = 'object'

Go: The beautiful simplicity of implementing interfaces, and multiple return values (besides the concurrency primitives)

interface Thinger { DoThinger() }

type Thingy string;

func (t *Thingy) DoThinger() {

// Thingy, which was based of a string, now implements

Thinger. This can get really powerful.

func myFuncCanReturn() (thing1, thing2 Thinger) {};

Re:Ask HN: What is the Unique Selling Point of each programm... by thomasrossi on Saturday July 09, 2016 @08:34PM (#12064016)
Java needs to be mentioned too, it is/has been front end for enterprise databases, all around sound