News for hackers. Stuff that matters.
Re:Graal and Truffle could accelerate programming language d... by ktRolster on Tuesday July 19, 2016 @01:53PM (#12123454)
if the industry were really striving for perfection, there would be no COBOL or BASIC, for instance.

COBOL was a huge improvement at the time, an innovation in readability. BASIC is a good demonstration of why the platonic ideal language is wrong: it was designed for beginners (that's what the acronym stands for), and it did a reasonably good job at that. Beginners might be overwhelmed by OOP, multiple dispatch and a list of design patterns. Sometimes experts are too.

Garbage collection is a nice feature, but it doesn't fit everywhere. Sometimes you want to manage your own memory. That's why we have more than one language.

Re:Graal and Truffle could accelerate programming language d... by outworlder on Tuesday July 19, 2016 @02:21PM (#12123668)
> COBOL was a huge improvement at the time, an innovation in readability. BASIC is a good demonstration of why the platonic ideal language is wrong: it was designed for beginners (that's what the acronym stands for), and it did a reasonably good job at that.

Sure. But these systems were created from the ground up, every single time. Given a good foundation, which could be Lisp or something even better, you can whip up the "simpler" languages in no time. Even ditch the parentheses if you so desire. While getting all the benefits of the underlying system.

> Garbage collection is a nice feature, but it doesn't fit everywhere. Sometimes you want to manage your own memory. That's why we have more than one language.

Sure. But I disagree with that's the reason why we have multiple languages. There's no single reason, it is probably a mixture of preferences, previous knowledge, budget, time to market (JS!) among others.

We can manage our own memory from higher level languages. We can compile them. We can even make them spit out assembly custom-made for a given, niche application (see the Galileo magnetometer patch).

Sorry if I sound like a smug lisp weenie. But even that description is not accurate: had we focused our collective resources towards "perfection", as that sentence implies, we would have something way better than Lisp itself. Or anything else that we currently use.

It is as if we had invented jet engines before planes. But then placed steam engines on them because they were cheaper. Or that more people understood them.

Re:Graal and Truffle could accelerate programming language d... by euyyn on Tuesday July 19, 2016 @07:03PM (#12125614)
Lisp didn't miss the train because it was too good or because people were idiots. For a good foundation to be good it has to meet the pre-requisite to work for most use cases. Lisp didn't when C did, in a time when hardware was small and expensive.

Times have changed now? Sure, but history didn't wait.

Re:Graal and Truffle could accelerate programming language d... by nickpsecurity on Wednesday July 20, 2016 @12:34AM (#12126919)
That's a significant part of it. Check out PreScheme, though, for how that might have worked:

https://en.wikipedia.org/wiki/PreScheme

It's a Scheme created as a C alternative for low-level programming used in a verified Scheme48, VLISP. It was quite efficient. LISP's doing more of that kind of thing might have fueled more use of the language.

Re:Graal and Truffle could accelerate programming language d... by pjmlp on Wednesday July 20, 2016 @02:45AM (#12127280)
UNIX and C were free as beer, because AT&T was forbidden to sell it and initially gave it away.

Lisp usually required expensive mainframes and workstations.

Of course C got the adoption of the 80's hipsters with such price tag.

Re:Graal and Truffle could accelerate programming language d... by TeMPOraL on Wednesday July 20, 2016 @02:14AM (#12127193)
Lisp worked well before C was even conceived. It's that C could be fitted on less expensive hardware, which was in turn easier to market to companies. C and UNIX success is a literal "worse is better" example - crappy solutions (compared to other contemporary ones), but with smaller up-front costs, so easier to sell. Buyers didn't seem to care that it costed more down the line.
Re:Graal and Truffle could accelerate programming language d... by ktRolster on Tuesday July 19, 2016 @02:36PM (#12123755)
The reality is: programming languages are fun, but the programming language is not the biggest barrier to writing good code, or even getting it done quickly.

Good programmers can write good code in any language, lousy programmers will write lousy code in every language. Malbolge might be excluded from that, but with a decent macro pre-processor, even brainfuck can be workable.

Re:Graal and Truffle could accelerate programming language d... by elbear on Wednesday July 20, 2016 @09:39AM (#12128889)
Most programmers are average though, so it helps to have languages that make it harder for you to introduce bugs.
Re:Graal and Truffle could accelerate programming language d... by kaeluka on Wednesday July 20, 2016 @10:32AM (#12129268)
> Given a good foundation, which could be Lisp or something even better, you can whip up the "simpler" languages in no time.

In practise, that foundation (for many programs) is Java byte code.

Re:Graal and Truffle could accelerate programming language d... by kbenson on Tuesday July 19, 2016 @02:11PM (#12123595)
> BASIC is a good demonstration of why the platonic ideal language is wrong

That's often my point when people bring up arguments against a language that seems a bit more complex (Perl), or for language simplicity (Python). Some complexity falls into a sliding scale where there is more cognitive load while learning, but it pays of in the every day usage. The siple example of an extreme end of this is APL. If you can internalize and understand the extremely concise and powerful syntax and semantics of the language (I haven't), you can do amazing things very quickly[1].

Now, doing amazing things very quickly isn't the only metric by which we judge a language, but it is a useful metric, and it's probably worth having a language on that end of the spectrum in your tool set.

1: https://www.youtube.com/watch?v=a9xAKttWgP4

Re:Graal and Truffle could accelerate programming language d... by sevensor on Tuesday July 19, 2016 @04:24PM (#12124611)
> If you can internalize and understand the extremely concise and powerful syntax and semantics of the language (I haven't), you can do amazing things very quickly

Not to mention figuring out how to type APL -- that's where I got stuck.

Re:Graal and Truffle could accelerate programming language d... by eggy on Wednesday July 20, 2016 @03:27AM (#12127394)
Try J then. It uses the ASCII character set, and has added some concepts that APL seems to be adopting. [1] And it is amazing what you can do once you have put some time into it. Jd and Jdb, both database apps for J beat Spark/Shark and others at the big data game. I'd call that pretty powerful. Similar to the way qdb/k is used a lot in the finance sector for ticker data, but J is opensource. [1] jsoftware.com
Re:Graal and Truffle could accelerate programming language d... by ktRolster on Tuesday July 19, 2016 @06:39PM (#12125485)
Keyboards are available, but they're expensive:

http://www.dyalog.com/apl-font-keyboard.htm

Re:Graal and Truffle could accelerate programming language d... by kd0amg on Tuesday July 19, 2016 @06:45PM (#12125521)
Don't worry too much about typing it. The syntax of APL isn't all that powerful and actually limits how you can leverage the aggregate operation semantics.
Re:Graal and Truffle could accelerate programming language d... by TeMPOraL on Wednesday July 20, 2016 @02:18AM (#12127208)
> Some complexity falls into a sliding scale where there is more cognitive load while learning, but it pays of in the every day usage.

I think quite a lot of complexity falls into this scale, and the quest for simplicity - or rather, "user-friendliness" - in computing is utterly misguided. The difference between a toy and a tool is that a tool exchanges more upfront learning requirement for ability to get more done. Not just more efficiently, but more. We're doing ourselves, and the world, a huge disservice by expecting that everything - be it a website, an IDE or a programming language - should be able to be mastered in first 5 seconds of exposure. The only way to achieve that is to dumb the product down.

In other words, we need more learning culture (or even RTFM culture), less "user-friendliness".