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 5y ago · link · parent

Bayesian reasoning also means that treating a female client like shit is likely to encourage her to make a fuss, but somehow "bayesian reasoners" never make that inference.

comment 5y ago · link · parent

Which points straight to the problem: the tools for expectation management, requirements gathering and design validation are severely lacking.

Applications should be built on fast iterations with the user present, until each detail is perfect and the full workflow is validated to be as useful as expected. Only then should engineering issues be addressed, to make the tool robust and fast.

comment 5y ago · link · parent

I'm also surprised that no one's yet mentioned Bret Victor's work.

http://worrydream.com/LearnableProgramming/

His visual interactions for programming are a great advance in the state of the art for fast development, and they've greatly influenced recent advances in development environments - making everything more reactive, and with code and data more intertwined.

comment 5y ago · link · parent

What does the compiler do if you start "from scratch", i.e., without any source code?

comment 5y ago · link · parent

"implementation under the hood requires a lot of work"

"people don't make functionally identical clones"

"massive refactoring to allow for extensibility"

You're enumerating the factors that make my point true. Those are some of the reasons why building software takes a lot even if you know exactly what it is supposed to do.

You can compound that to the problem of figuring out what the software should do, which classic IDEs are also bad at. Online collaboration and prototyping tools that put the program in front of stakeholders early; they're like car makers' focus groups that were used to design cars tailored to a target demographic group.

comment 5y ago · link · parent

> The tools to build a known specification from an existing app are sub-optimal, as are the tools to build a known specification from scratch.

That actually reinforces my point ;-) All the steps in the toolchain could benefit from more agile interactions, allowing the programmer to spend less time fiddling with syntax errors and recalling which functions need to be applied in what order, and more time evaluating and fixing errors in the current logic as written. That would expose what the build program is doing and how it differs from the expected intent.

The online notebooks used in data analysis (Jupyter, Apache Zeppelin) are a step in the right direction; IMHO their approach of 'data is always readable besides the code processing it' makes for a better introspection infrastructure than the REPL loops of old.

comment 5y ago · link · parent

My take is that programming languages have an inadequate ratio between abstract and concrete data flows.

You are supposed to build code by stitching together commands for all the data handling functions required to handle each case in the data. Yet development environments make it really hard to actually _see_ what effect the functions are having on the data. You need to enter a special debug mode and place strategic breakpoints, logs and watched expressions, instead of making easy to compare the full program state before and after executing each function.

In that respect, spreadsheets and reactive functional languages make it easier to prototype new software fast, since they have close together both functions and the data on which the functions operate; and in spreadsheets, you also get the intermediate steps for chains of functions.

comment 5y ago · link · parent

If that were true, it wouldn't take long to build from scratch a functionally identical clone of an existing application. Yet it does.

The conclusion is that the tools to build software from a known specification to working code are sub-optimal.

comment 5y ago · link · parent

Free software and open source are different marketing strategies for the same concept. The most commonly understood meaning for both terms is the same, from the very moment the Open Source Initiative was created.

comment 5y ago · link · parent

If you're comparing arrays to centimeters on a ruler, the first element is at the center of the first cell; at zero, there's the left border of the first cell.

(Also please note that both this and my previous reply are tongue-in-cheek).

comment 5y ago · link · parent

I think the Semantic Web was supposed to be that. Yet it was waaay too abstract for the majority of people, even programmers.

comment 5y ago · link · parent

Having fewer special cases doesn't make it more natural, when those special cases are intuitive and forcing a single homogeneous process feels weird.

The brain is very good at finding patterns for special cases and very bad at following repetitive orders.

comment 5y ago · link · parent

Those are compliant HTML5 tags, right?

comment 5y ago · link · parent

You beat me to it. Any time treenotation.org is involved, the most fascinating part is how you can build compilers for interesting use cases in a very simple declarative way.

Usually, creating a new DSL is a complex programming task; yet with Tree Notation, a domain expert may tweak an existing DSL or even build a simple one from scratch. As you say, maybe the markdown ecosystem would benefit from this approach.

comment 5y ago · link · parent

This whole subthread was about what comes as a natural procedure to humans. Arguing that computers may need a different process is moot.

Anyway, to handle the exception, you could start the algorithm with a "check for the empty collection" base case; that would make it a natural definition for a computational recursive definition as well.

comment 5y ago · link · parent

All of it is, otherwise it wouldn't meet the 4 freedoms that define open source.

The 'project' maintaining the software may be centralized, but all its users "own" the software in the sense that the don't need to ask permission to the maintainer, and they can create their own modifications.

comment 5y ago · link · parent

Yes, when your collection is whatever is inside a box.

comment 5y ago · link · parent

How about using different symbols?

   |-1..12-|.to_a ## e.g. months in a year
    #=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

    /1..\13.to_a  ## e.g. hours from 1h (1AM) to 13h (1PM)
    #=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
It requires compiler support, but hey, you said a new language.

comment 5y ago · link · parent

You don't need to start at 0 to count intervals between objects, it's just easier to say "one" and point your finger to the space to the right of the leftmost item.

comment 5y ago · link · parent

I learned physics and transistors at comp-sci. It didn't help with programming at all (though it made wonders for my understanding of the philosophy of computation).

The kind of understanding you're rooting for relies on formal logic, not electronics.

comment 5y ago · link · parent

If anyone is interested in a notation for this kind of integer ranges, the two different styles in the above example could be represented like this:

   /9..10\  : "short" interval : size 1 (hour)  ==  half-open interval [9..10)
 -|20..21|- :  "long" interval : size 2 (days)  ==  closed interval   [20..21]

comment 5y ago · link · parent

Mystery solved

  0   1   2   3   4   5
  v   v   v   v   v   v 
  |---|---|---|---|---|---...
    ^   ^   ^   ^   ^   ^   
    1   2   3   4   5   6...

comment 5y ago · link · parent

No, that's the lower bound of the first array element.

comment 5y ago · link · parent

What the typical programmer doesn't even realize is that this is an artifact of Von-Neumann architectures (and their assembler language) and optimization of early compilers, not a essential property of computation.

Spreadsheets, expression-rewriting languages or any other functional programming language don't necessarily have this limitation, and declarations can be made in any order if the compiler supports it.

comment 5y ago · link · parent

It's plank-sized topological-connected vibrating goo all the way down.

comment 5y ago · link · parent

That's because hours are announced as points in time, while days are seen as time intervals. The duality intervals/separators is essential to the different ways to understand ranges (specially for range differences).

I once developed a shortcut notation to simplify reasoning about ranges differentiating between "point cero" and "interval between 0 to 1", to make off-by-one errors less likely, but in the end it was functionally equivalent to the popular open/closed interval notations.

comment 5y ago · link · parent

There are handwritten-like fonts which avoid that problem, by having several versions of each glyph and choosing one randomly for each letter. Some of them even introduce some random variation in the shapes to replicate true handwritten text.

comment 5y ago · link · parent

A Heisenberg cat is one you know how fast it can run, but you have no idea where the damn critter is?

comment 5y ago · link · parent

In the modern world, isn't that true for any activity you want to do a lot? Children or not?

comment 6y ago · link · parent

Heating and cooling, OK. Cars require batteries, and there's not enough lithium to support as many electric cars as there exist combustion engine cars now. A breaktrhough will be needed, either in battery tech or shared transportation (either public transport, car-sharing, or generalized telecommuting).
1
282930
71