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

Glad to hear that! Yes, I agree with having good defaults and orienting the program toward finding them first; I understood that this part from the article referred to this.

The thing is I'm a firm believer in putting the user at the centre of decision-making in automated processes, especially in AI tools that combine multiple sources of data without a clear of model of how they arrive to their solutions.

Too often these process provide their result as a foregone conclusion, and leave the user helpless if it is not the right one. By providing hints on how the process has arrived at that outcome, the user can form a mental model of how it works and learn how to use it more efficiently, or for which situations it is not suitable.

comment 5y ago · link · parent

Quite true, and too often developers are not aware of how important data-first is for their own work in the exploratory part of programming.

Programmers have powerful interactive shells and debug environments, yet most courses center the teaching and communication of how a program works around the concepts in the finished product (a working program), more than how you arrive piecewise to the full solution by iterating small parts of the concepts in the domain problem and finding the correct parts of code to handle them.

comment 5y ago · link · parent

That touches an important point of this kind of "automation magic" in autocompletion tools. They are great when they guess your intent correctly, and terrible when they misfire - specially when, as is common with Microsoft's tools, they are applied automatically and you have to take extra action to reverse them.

It annoys me that they research and apply complex algorithms to analyse the available data, detect the most likely ways to fill the document, build alternative programs to solve the problem and rank which is the most useful; only to then choose one of the inferred options and discard all the rest of the analysis work, getting only a (possibly incorrect) guess of the data completion task.

If, once the work is done, the user were allowed to see what the process was to detect the data, and were allowed to choose between the discarded options or give additional clues as to what the original intention was (the "active-learning session with the user to resolve the ambiguity" that the author of the article discards), the technique could be controlled more precisely and be useful in more situations, not just the ones that work the first time. Giving control to the user would make the technique more robust in my opinion instead of being hit-or-miss.

comment 5y ago · link · parent

What would be useful is an "Excel for web apps". The spreadsheet runtime model is much better adapted to the way non-developers think than what VB6-style visual programming provides.

Having code and actual application data allows people without programming experience to build data types and simple to average functions and debug errors in the business logic, whereas with classic code they can't get pass the parser to get their poorly written syntax understood by the compiler.

Developers tend to think that writing simple code makes application development easy, but actually learning the syntax and runtime model of classic imperative code is usually the hardest part to newcomers.

The functional-reactive execution of the spreadsheet together with the intermixing of data and code provides a simple mental model of instant evaluation and exploration, similar to the benefits a REPL provides to a seasoned developer, minus the syntax errors and deep nested structures.

Notebook-style development environments like observablehq.org are almost there (specially those with a spreadsheet-like semantics), though it still keeps too harsh a separation between the code environment and the "runtime values" environment - i.e. its cells are "too large" when compared to spreadsheet cells.

comment 5y ago · link · parent

Zettlr does almost the same*; and it's markdown based so you can get non-technical users working with raw code without freaking out, thanks to its in-place preview.

* (as long as what you really need is technical writing, and you don't need that magical unicorn of a complex DTD componentized content reusing).

It's also open source, which helps with integrating it in any DevOps workflow you want to use for your documentation.

[1] https://www.zettlr.com/

comment 5y ago · link · parent

XML is awful for structured text with metadata. Half of the time you don't know whether your object properties were -or should be- stored as element attributes, element children or a CDATA block when trying to access it programmatically.

Defining a sane schema fit for all the places and use cases where it will be needed is an exercise in frustration. Lightweight markup won for structured text because it is simple to use, and you can expand it in a piecemeal fashion as needed. See Worse-is-better and the adoption of the C language for how this happens.

This happens even for well-designed lightweight markup; everybody prefers Markdown over asciidoc because you only need to learn like 5 syntax elements to get it up and running, even if it forces you to to add by hand later all the functions that were already available in asciidoc.

comment 5y ago · link · parent

True, FRP doesn't need to be asynchronous; it's just a very good paradigm to support multi-process computation and module composition.

As I said above, it just happens to also be a very good at handling state without a fear of side effects.

comment 5y ago · link · parent

If you do that, then you have to admit different kinds of imperative code: C-imperative style that can modify any state in the application as side effects, and Haskell-imperative where you can only modify state explicitly declared as input to the procedure.

It's not just mind games, the difference has very real implications to the architecture of the whole program and the control you can exert over unpredictable side errors.

comment 5y ago · link · parent

Concur about the C++ examples, but that's not just on the language. The author seems to be averse to whitespace to separate one chunk of code from the next.

comment 5y ago · link · parent

> I want to have a purely functional domain that I wrap in an imperative shell. Trying to model side-effects in a purely functional manner using something like applicative functors just doesn't give the productivity boost that I want.

Funtional Reactive is a very good way to create that mix. Web Front developers have realized that, and that's the reason why most modern frameworks have been veering towards this model slowly, with Promises and Observers everywhere.

When you represent state as an asynchronous stream that you process with pure functional methods, you get a straightforward model with the best of both paradigms.

comment 5y ago · link · parent

So, you recognize imperative is a subset of functional? :-P

do-blocks have perfectly functional semantics, so if you consider that to be imperative as well, this means that a sequence of instructions changing state is both imperative and functional, as long as you declare where the state is being handled in your code.

And yes, of course functional code can handle state. The good thing about this 'Haskell imperative' style is that it doesn't fall prey of side effects, the bane of imperative programs (uncontrolled side effects are NOT a good thing). In Haskell, you control why and where you allow them.

comment 5y ago · link · parent

> We don't have access to unbounded quantities, so any discussion of them is necessarily going to be more abstract than the notions we're used to dealing with.

I've always thought of infinite as very concrete unbounded processes, rather than quantities (but then, I'm a computer scientist, not a mathematician).

You cannot count the size of an infinite set because you can never stop counting; the process goes on and on. So the way to compare infinities is to map things between them.

If you can map all elements from the first infinite to the second, but not the other way around, the second is larger than the first. It makes sense as to define this process as the way to compare sizes, since actually counting all their items is ruled out.

"Almost all" elements of an infinite set could be defined similarly, if for each item without a particular property you can create a limitless variety of different items with it.

comment 5y ago · link · parent

That's an important part, yes. Morals are ideas, and as such evolve in an environment that makes them thrive, with the ones more adapted to the situation gaining more weight. If only because a population led by maladjusted ideas will disappear.

Ideally, scientific facts thrive by surviving to experiments that fail to disprove them, but this does not exclude them entirely from that dynamic of social evolution. What experiments are performed is decided on the basis of what is desirable to investigate, according to the beliefs of the type of research that is deemed appropriate.

comment 5y ago · link · parent

> The models themselves aren't political.

It depends on what you are modelling. If you're modelling human populations and behavior, they may become loaded with extreme political assumptions embedded in the model; and not all of those will be wiped out by the scientific method.

comment 5y ago · link · parent

Pedantic tidbit of archaic lore: this was so because each digit was represented by the number of clicks that the rotating disc triggered on the line (with 10 clicks for 0).

comment 5y ago · link · parent

Bridges have expansion joints to absorb temperature-induced expansion and contraction, passively stabilizing the structure.

Why couldn't a Dyson sphere have uncoordinated movement joints distributed all around to absorb those spherequakes? Or even active locally coordinated ones?

I'm sure a Dyson-sphere-building civilization would figure this out.

comment 5y ago · link · parent

Conversely, it is impossible to be rational without emotions.

Reason needs axioms (beliefs) to build a rational discourse, and without emotions, it is impossible to choose a limited set of starting axioms to begin making logical inferences from.

I agree with the person above who said being rational is about making post-hoc rationalizations. We know by cognitive science that a majority of explanations are build that way: after observing facts, we intuitively develop a story that is consistent with our expectations about the fact, as well as with our preconceived beliefs. "Being rational" in this context would be limited to reviewing our beliefs when these ad-hoc rationalizations become inconsistent one with another.

comment 5y ago · link · parent

Well, it does have "float" in the code, doesn't it?

comment 5y ago · link · parent

Notebooks don't need to be online. You can run a local notebook same way as you run a local IDE.

The most significant difference is that the notebook always has runtime information about how the available information is being processed, while the IDE only has this information available while it's in debug mode. The first model provides much more information about the system behaviour, easier to access.

comment 5y ago · link · parent

You can use toolchains with notebook software, provided

a) the notebook has an internal text representation that can be version-controlled, and

b) the notebook follows a spreadsheet-loke paradigm with incremental non-mutable data structures, so that all state is represented consistently at all times (no dependence on what order you've run the cells in the current session).

comment 5y ago · link · parent

I stand corrected.

comment 5y ago · link · parent

The mental model distance between dev tools and user tools is simply too large. Dev tools are still too anchored in the 50's model of source-code >> compilation >> runtime code, when consumer products have a much more healthy mixture of active content and tool palletes working on the content. Heck, even the guy in the article asks about "Programming Languages Startups" when he means "Integrated development startups".

This difference is shrinking in the web, both client (DevTools run like an app inside the browser, with live changes to the code reflected instantly in the page) and the cloud (the entry point interface is a collection of collections, where you can inspect and operate on any component running in the system, and even create some kinds of workflows in the live environment).

But the lowest level for designing components relies on specifying a fully formed program in formal code, and having to run a build-deploy-test cycle without errors before seeing whether it works, instead of having code and data run side by side to see how the code behaves.

I put my hopes in online notebooks, but these are used mainly for data analysis, and "true developers" seem determined to ignore them.

comment 5y ago · link · parent

How are they more existent? They are both patterns of recognized concepts in human brains.

Is it because more people understand rationals than reals? Ok, that would make rationals more existent, as they exist in more brains.

comment 5y ago · link · parent

No numbers exist, they are abstraction on human-created procedures. Even naturals, which are an abstraction over pointing to things and counting.

comment 5y ago · link · parent

> The same applies to rational numbers (which exist more than real numbers)

Wait, did you say there are more rationals than reals? Isn't that the other way around?

I don't know if that's a slip of the tongue or I'm missing something in my recall of basic math lessons

comment 5y ago · link · parent

At the end of the day, a number is a _reification_ (or thing-a-fication, watching a process as a separate entity) of the processes of mapping and ordering. You may begin with a very simple use of those processes, which get you the natural numbers. But you may use them in more creative ways, which will get you other different classes of numbers. Mathematician love to explore all the implications of using basic processes and combining already defined numbers to create new kinds, never seen before.

For example, if you start with number '1' and apply operator _successor_ (or "adding one more"), you get the *natural numbers*, which are a mapping from the size of sets to strings of operators {'1', 'successor(1)', 'successor(successor(1))', ... }. You can use this process to define an order: number A is smaller than B if you can repeatedly apply _successor_ to A and generate B in a finite time. (Not the best definition, I know, but bear with me for a second).

If you reverse the _successor_ operator, you get the _predecessor_, which can be used to dismount large numbers and make them smaller. If you apply _predecessor_ to '1', you get 'predecessor(1)' which doesn't match any of the *natural* numbers as defined in the paragraph above. However, this new number is useful because you can map it to a collection without elements, allowing you to count a set of size 'zero'. This set doesn't exist, but it has a well defined size thanks to the process explained above. (You may as well apply _predecessor_ to 'zero' and count *negative numbers*, which allow you to create a mapping with debt, and thus count _I owe you_ amounts that don't exist in the physical world either).

Now as for real and complex numbers, they can't count physical objects as you said because at some point you can't measure smaller and smaller magnitudes (though you can create orders with them, even if it doesn't directly involve the _successor_ operator). But mathematicians use them to count the size of _infinite sets_, which being immaterial never lose precision; you just know you can repeat their defining processes once and again, showing that there exist a mapping between any step in the process and the instance of the real or complex number that correspond to its size.

comment 5y ago · link · parent

On the open source front you get zettlr.com, a pure markdown WYSIWYM editor with image preview, pandoc integration for exporting groups of pages into whole documents, support for Zettlekasten workflows, and academic references management.

It's a one-man effort by a guy who created it for working on his PhD, but it's quite robust and usable despite a few small flaws (who should be corrected in version 2.0, likely coming during the year).

comment 5y ago · link · parent

That's the reason why CS degrees teach core principles, not a collection of every possible platform and technology.

comment 5y ago · link · parent

A single human mind won't do it, but we have a way to record information for successive generations, AND now we also have a method to validate information and tell it apart from myths and superstitions.

So maybe it's time to start thinking long term?

comment 5y ago · link · parent

A single human mind won't do it, but now that we have computers and the scientific method, we can build models to study how those variables behave; and reduce intervention to well chosen interventions to check the quality of the model.
1
252627
71