4,482 karma · joined Sep 28, 2012 (14y ago) · 2,101 submissions
I hope the spam filter will respect it!
comment 6y ago · link · parent
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
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
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
[1] https://twitter.com/BallouxFrancois/status/12388371580074475...
comment 6y ago · link · parent
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
[1] https://tools.wmflabs.org/sigma/usersearch.py
comment 6y ago · link · parent
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
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
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
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
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
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
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
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
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
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
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.