Better HN
topnewbestaskshowjobs
Log inSign up

TuringTest

4,482 karma · joined Sep 28, 2012 (14y ago) · 2,101 submissions

Send me a note at turingt+fromhackernews (at) gmail.com

I hope the spam filter will respect it!

Submissions

comment 6y ago · link · parent

> Are you asking why _all_ programming languages don't make their own Abstract Syntax Tree

No, I'm asking why there isn't _any_ programming language (that I'm aware of) with an integrated IDE where you can make static code rewrite expansions (replace an function call instance with its definition) at writing time, and instead depend on waiting until runtime to have an in-memory stack and navigate between functions to see how a function call will run.

comment 6y ago · link · parent

The problem with powerful languages is they're great for allowing you to create new abstractions, but they're terrible at piercing that abstraction and let you know what's going on inside when you need it (such as, when learning what the abstraction means when you find it for the first time).

Current modern languages are built around the false dicotomy that you have to choose between one of two representations, like those in the provided example:

1. mydict1.merge(mydict2, handle_duplicates=(key, v1, v2) => v1 + v2)

2. mydict1 + mydict2

A mid-level language will use the first style so that programmers will know what's going on, but then the team will be stuck to using that style everywhere even when they already understand that it's "oh, just adding two dictionaries". Powerful languages let you use the second style but then, as the article explains, it's hard for a new programmer to tell what's the mental model behind that complex operation.

A good powerful Lisp-like language should allow you to build the second abstraction in terms of the first, and use the simple syntax everywhere, but then switch between both representations easily.

I.e. you should be able to inspect the meaning of the more abstract syntax by expanding its definition in place and see how it works in context. Programmers typically address this shortcoming with support of powerful (yet ad-hoc) IDE's runtime debugging tools. But why that approach is not integrated into the language itself, I have no idea.

comment 6y ago · link · parent

You assume non-essentials wouldn't be created. Instead, they could be created by people who enjoy creating them - but they would be much more influenced by what they like, not necessarily what people demand.

comment 6y ago · link · parent

There's an alternative model: that people who do nothing productive don't work at all in producing silly products and services, and they can spend their time doing things they enjoy instead.

https://harpers.org/archive/1932/10/in-praise-of-idleness/

comment 6y ago · link · parent

> ``drumroll`` scaling back shit that nobody needs.

Maybe, but what do you do with people whose livelihood depend on those superfluous bullshit jobs?

Until we have a system that guarantees a right to life even if you do nothing productive, those busyworks are used to justify giving food, shelter and healthcare to those people.

comment 6y ago · link · parent

This is a Twitter thread summarizer, that stitches together all the separate posts in a thread. You can enjoy the original here[1], with the experience that the platform creators intended.

[1] https://twitter.com/BallouxFrancois/status/12388371580074475...

comment 6y ago · link · parent

ML-like languages all look the same, but compile in completely different ways.

comment 6y ago · link · parent

> Personally, I think this means the opposite of recitation.

Possibly true, but my point was that Epic Poems would not have been transmitted merely by recitation of exact learned words, but by a rhapsodist learning the story and internalizing it.

Then it would be conveyed as a mixture of repeated learned verses and freestyle improvisation of parts of the story; that would explain how completely new sections appear in the different versions of epic poems.

comment 6y ago · link · parent

Also akin to freestyle rap, where the storyteller knows the beats of the tale they're telling, and comes up with a particular rhyme on-the-fly for each sentence by following the structure of the verse.

comment 6y ago · link · parent

You can filter article history by user [1] to check whether their contributions are still in the current version, or use Wikiblame creatively to find who wrote some specific part of a live article [2].

[1] https://tools.wmflabs.org/sigma/usersearch.py

[2] https://en.wikipedia.org/wiki/Wikipedia:WikiBlame

http://wikipedia.ramselehof.de/wikiblame.php

comment 6y ago · link · parent

You can learn a lot about a topic you care by reading the Talk page and its archives; most relevant information that people wants to add has been discussed at length there, evaluating all pros and cons of the proposed text, and the biases and analysis of the quality of sources. Some small amount of talk is "oversighted" (hidden from view to all but administrators), but that's typically only for scandals who affect living persons. Also you'll have to wade through inflamed battles with unbridled passions, but the main issues of conflict become clear.

That said, there are two kinds of articles: hot topics which get the above treatment for any suggested change (either for political or fanboyism reasons); and abandoned gardens where no one cares and weeds grow, marked with warning signs. These were created either by copying a public domain old encyclopedia, or by a passionate editor in the earlies , and have seen few since then.

Either way, the most valuable resource of Wikipedia has always been the References section. You can skim the definition and safely ignore the rest of the article, and still use it as the starting point for learning about an unknown topic by searching the most promising sources of a well-curated collection of relevant links, that would be hard to find anywhere else using a search engine.

comment 6y ago · link · parent

That's not ignorant on his part, it's just a silly analogy to get the point across; and I think you're missing the point by thinking of what happens after the network is trained; the point made is about the initial state of the network, not the outcome.

The neural network will have preconceptions on how to play no matter how, even if you wire them randomly; the difference of making them random is that you'll have no idea what those preconceptions are, not that they don't exist. The original story on which the koan is based might make it clearer.

[1] https://simple.wikipedia.org/wiki/Hacker_koan#Uncarved_block

If you still want this to be about the final state, the point would be that, if the training process works well, it shouldn't make any difference whether the net was wired randomly or orderly.

comment 6y ago · link · parent

The sandbox architecture model makes me think of cell membranes.

https://plsyssec.github.io/rlbox_sandboxing_api/sphinx/

comment 6y ago · link · parent

> When fixing broken layout, it is always easier to add stuff that you forgot than removing stuff that your framework did for you and you that can’t see.

This paragraph reminded me of this old Jargon File koan:

---

In the days when Sussman was a novice, Minsky once came to him as he sat hacking at the PDP-6.

“What are you doing?”, asked Minsky.

“I am training a randomly wired neural net to play Tic-Tac-Toe” Sussman replied.

“Why is the net wired randomly?”, asked Minsky.

“I do not want it to have any preconceptions of how to play”, Sussman said.

Minsky then shut his eyes.

“Why do you close your eyes?”, Sussman asked his teacher.

“So that the room will be empty.”

At that moment, Sussman was enlightened.

comment 6y ago · link · parent

> But for computer scientists, modeful editing may be better. The article mentions modeless editing to be better for no scientific users only, not necessarily for everyone.

That's why they kept on investigating, and concluded that modes are bad for anyone; as long as they are human, using modes increase their rates of error. Jef Raskin went so far as to invent quasimodes, to get the benefits of modal interfaces without the burden on short-term memory. (https://en.wikipedia.org/wiki/Mode_(user_interface)#Quasimod...)

comment 6y ago · link · parent

Bear in mind that the definition of "mode" includes a subjective part in its definition, i.e. an interface is in a mode if the user thinks of the input in a state as the same action with different results than the same input on a different state. [1] For example, single click on a web link navigates to a new page, but single click on a desktop folder merely selects it.

But this does not necessarily applies to content. If you have two different apps, with very different media and data (e.g. one is a spreadsheet, the other a slide presentation), they don't represent different modes if they respond the same to the same actions. You may have a zoom button in both which works the same, a similar color palette, similar scroll bars...

This is the reason why GUIs are composed with a small set of widgets, and these represent standardised behaviours that work essentially the same across all applications that use them (and also, this is why it's such a terrible idea to build widgets that deviate from these expected behaviours). Tesla should know, he was there when they invented them. [2]

You have a point that it's too easy to find applications that don't follow the standards and reinvent the wheel for no benefit, and also that the standards only extend to low-level interactions - before mobile OSs, there never was a unified metaphor for reading, storing and sharing information at the end-user space.

[1] https://en.wikipedia.org/wiki/Mode_(user_interface)#Definiti...

[2] https://web.archive.org/web/20040511051426/https://computerh...

comment 6y ago · link · parent

IMHO it would also benefit from a "raw typing" mode. It's a bit silly to have to explicitly write 'type "cat"' and 'press "enter"', when you're already typing 'cat' and 'enter'.

You could simply start this raw mode with a keyboard shortcut, and everything you type is automatically transformed into this "type" and "press" commands, until you exit the mode with either the same shortcut or Esc.

comment 6y ago · link · parent

Here is a fascinating talk where he describes the approach for designing Apple's Lisa:

https://web.archive.org/web/20040511051426/https://computerh...

Fascinating because that exploratory process is essentially what we recognize as "graphical user interface" as of today, and the whole industry has committed itself to that particular design, to the point that exploring how to build interfaces from any other set of principles feels like a titanic task.

comment 6y ago · link · parent

That doesn't invalidate GP's points. A collection of B&W icons with similar base shapes (circle, square, rectangle) and no contrast is terrible for using the interface. Each icon needs a distinctive element, be it color, weight or shape, to make it stand out from the other icons near it.

If you're designing a B&W icon set, at least make sure that each one has a very eye-catchinge, different outline.

comment 6y ago · link · parent

>A truly general framework will be tough, because of the different nature of different types of content.

I've been thinking for years what it would take to create a general framework like that, and I think we're in the middle of a language revolution like the one in the 80's, that will end-up creating such new system; all the pieces are in place, it just need one project to integrate the best parts and take off.

My ideal solution would integrate:

- the programming model of a spreadsheet (reactive functional programming), useful for building models;

- interactive graphics like those in explorable explanations, integrated with the data models stored in the spreadsheet;

- a good templating library with a visual designer and auto-generated markup, for building visual components based on the models;

- and an outliner storage model with "external reference" transcluded nodes, to build and evolve projects from the tool itself, without an external IDE.

Several companies are very close, but none of them include all these pieces, as some of them come from programming language design and others from user interaction; right now, only a very senior interdisciplinary team would know how to integrate all them in a single unified approach.

comment 6y ago · link · parent

Funny that your #1 requirement, for me, would be turning coding into mostly visual reasoning. Different skillsets, I suppose.

I think of code as laying out the results of a program execution (in terms of changing GUIs or lists of transformed data), and then building up an abstraction that captures all the instances.

So, a visual tool that let me paint examples, and build (named) abstractions that group them, would be my ideal development environment. Spreadsheets are the oldest somewhat supporting this desired workflow, and things like Brett Victor's Ladder of Abstraction or tools like http://aprt.us/ are the next level, but still fall short.

comment 6y ago · link · parent

Correct me if I'm wrong, but I think program synthesis works more from writing very general formal specifications, rather than learning from a sample of desired outputs.

The latter is called Programming By Example, and the pattern-finding process needed to infer generalities from specific samples does benefit from machine learning techniques.

comment 6y ago · link · parent

True, but automated people removal won't change any of that.

comment 6y ago · link · parent

If you have a compiler that can write a correct program from examples of the desired output, definitely yes.

comment 6y ago · link · parent

What good is applying formal verification software to have proof that part of your input behaves properly, but edge cases are not proven? This is already what test cases do.

comment 6y ago · link · parent

That sounds like a net positive, allowing you to tell apart proper websites from privacy nightmares :-P

comment 6y ago · link · parent

Sure, you just need to hack into the camera hardware system and inject a browser-specific machine learning library. Easy-peasy

comment 6y ago · link · parent

Maybe it's a good thing that common people will finally learn to distrust the kind of propaganda that governments and corporations have been able to sneak into unsuspecting populations since the emergence of mass media.
1
313233
71