News for hackers. Stuff that matters.
Re:We need less powerful languages by nickpsecurity on Saturday November 14, 2015 @08:03PM (#10568041)
The most powerful language I know of is LISP. Guess what one of most field-proven verification tools uses and verifies? LISP via ACL2.

There were also hardware kits like DDD that did correct by construction hardware from LISP specs. So, power != hard to verify. One should subset, though, for best results.

Re:We need less powerful languages by kd0amg on Saturday November 14, 2015 @11:16PM (#10568468)
Guess what one of most field-proven verification tools uses and verifies? LISP via ACL2.

The dialect of lisp that ACL2 verifies is not very powerful at all.

Re:We need less powerful languages by nickpsecurity on Sunday November 15, 2015 @08:32PM (#10572131)
It can be integrated into LISP or transformed into forms of Turing complete languages. It doesn't have to be powerful to be used powerfully. :)

Part of my recurring them that you can have both worlds.

Re:We need less powerful languages by kd0amg on Sunday November 15, 2015 @11:34PM (#10572620)
Any language's code can be integrated or transformed into some Turing-complete language. That doesn't make a language powerful. You don't see anyone raving about how amazing the language of variable-free arithmetic expressions is, but that's already integrated into most languages people would call "powerful."

The idea that ACL2 verifies a powerful language is outright false. ACL2's verified language is stripped down (no first-class functions, nontermination, exceptions, etc.) because added power makes it too hard to verify.

Re:We need less powerful languages by nickpsecurity on Monday November 16, 2015 @06:23AM (#10573816)
Alright I'll give you that. My main argument is for a language powerful enough for both solving problems concisely and creating DSL's should be used with DSL's for common or hard problems. The DSL's or the language can be subject to verification.
Re:We need less powerful languages by Avshalom on Saturday November 14, 2015 @08:06PM (#10568059)
>One should subset, though, for best results.

... So giving up power produces better results?

Re:We need less powerful languages by angelbob on Saturday November 14, 2015 @09:57PM (#10568303)
Giving up power makes it easier to write good tools. That's one reason that IDE support for Java is amazing, but IDE support for JavaScript isn't nearly as good - JavaScript allows and encourages way more freeform do-it-however runtime unverified stuff. Java locks everything down with a lot more "must be compile time" and static type system conventions.

You can permit the dynamic stuff as an alternative (as Java more or less does.) But if people actually use it, it screws up the tools' ability to introspect into your code.

As a result, less-dynamic formats like HTML and CSS get better tooling, as a rule, because the tools have an easier job to do. And highly-dynamic languages like JavaScript and Ruby have terrible tools support, because they make the tools' lives quite difficult because of their language and library design.

Re:We need less powerful languages by spion on Sunday November 15, 2015 @07:30AM (#10569425)
As you can clearly see from your example, power is entirely different from being amendable to tooling and static analysis. This whole thing is just a false dichotomy.
Re:We need less powerful languages by nickpsecurity on Sunday November 15, 2015 @08:55PM (#10572189)
The latter were my exact words here:

https://news.ycombinator.com/item?id=10572044

(see second half)

Re:We need less powerful languages by PeCaN on Saturday November 14, 2015 @08:54PM (#10568184)
Naturally, if you give up Turing completeness, you can have excellent 100% verified results.

Sometimes yeah, it's easier to prove things about simpler systems.

Re:We need less powerful languages by nickpsecurity on Saturday November 14, 2015 @09:49PM (#10568284)
Hard to say as nobody has pushed it to the full extent. Giving up complexity gets better results for verification. So, you use a simple subset of the powerful language. That subset might still be more powerful than many languages but a bit less powerful and complex than the original.

Complexity, ease of modelling, and state explosion are the real issues in verification.