News for hackers. Stuff that matters.
Re:Final “STEPS Toward the Reinvention of Programming” Paper... by Animats on Thursday May 12, 2016 @08:26PM (#11687789)
This is a strange paper. It reads a lot like "Personal Dynamic Media", Kay's paper from the 1970s, which led to the Alto and Smalltalk. Back then, this was all new. Now, it's not.

The big thing here seems to be defining domain-specific languages (they don't use that term) which allow certain classes of problems to be written concisely. The examples given of those language look rather conventional:

    selectionWatcher <- 
      when 
        DocEditor.selectedDocBox :b 
      then 
        this.textContents(if b then b.printString() else "")
    ...
Their approach to GUI programming:

    layout
        ^ KSSimpleLayout new
        keep: #topLeft  of: ’titleBar’ to: 0@0;
        keep: #right    of: ’titleBar’ to: #right offset: 0;
        keep: #height   of: ’titleBar’ to: 25;
    ...
These are constraints for a constraint engine, which is a good idea not original with them. But writing constraints as text is painful. You can do that sort of thing in CAD programs such as Autodesk Inventor from the GUI, and you get useful error messages when you overconstrain or underconstrain. That's how web page layout really ought to work.

They created about 100 domain-specific languages, and in each, the demo programs are short, because the languages are well-matched to the specific problem. But they didn't get to the point where they put users on these languages. That's needed to find out if they're as concise as claimed, or the users end up writing complex code to get around limitations of the language.

There are widely used domain-specific languages, such as Matlab and Excel. In each of those, stuff the language designer thought of is easy, and hard stuff is really ugly. That's what usually happens.

Not seeing the big breakthrough here.

Re:Final “STEPS Toward the Reinvention of Programming” Paper... by sp332 on Thursday May 12, 2016 @09:08PM (#11687952)
The big breakthrough is making it easy to create new DSLs for any situation. Every area of the OS has its own language (and you can just add more if you feel the need) so that the whole OS including networking and GUI is very compact, understandable, and hackable. This particular project focused on compactness, just to prove that it is quantitatively more expressive.
Re:Final “STEPS Toward the Reinvention of Programming” Paper... by skratlo on Thursday May 12, 2016 @10:23PM (#11688220)
I was studying Racket lately, and it sounds very familiar now. DSLs, or dialects as Racket calls them, is surely way to go and improve productivity, it should however, always be possible to descent down, or escape from that DSL, where needed, to avoid the hacks that work around a certain limitation of this or that DSL. (lisp macros, wink wink)
Re:Final “STEPS Toward the Reinvention of Programming” Paper... by lokedhs on Friday May 13, 2016 @06:05AM (#11689511)
That sounds like Lisp to me. As someone who writes lots of Common Lisp code, this sounds exactly what I'm doing daily.
Re:Final “STEPS Toward the Reinvention of Programming” Paper... by dkersten on Friday May 13, 2016 @10:28AM (#11690588)
"But writing constraints as text is painful."

I find writing the anchors in QML (Qt Quick's layout language) to be quite pleasant and easy.

Eg:

    Rectangle {
        Rectangle {
            id: a
            anchors.top: parent.top
            anchors.bottom: parent.bottom
            anchors.left: parent.left
            width: parent.width / 2
       }
       Rectangle {
            anchors.top: parent.top
            anchors.bottom: parent.bottom
            anchors.left: a.right
            anchors.right: parent.right
       }
The two most "interesting" parts of this are the width: parent.width / 2 and anchors.left: a.right

There is much much more, much of which makes it more concise, but that's the basics.

Re:Final “STEPS Toward the Reinvention of Programming” Paper... by Animats on Friday May 13, 2016 @02:03PM (#11692061)
That's because you're a programmer, not a graphic designer.
Re:Final “STEPS Toward the Reinvention of Programming” Paper... by dkersten on Friday May 13, 2016 @06:31PM (#11693621)
Oh, I didn't realise the context was non programmers. My bad.