4,482 karma · joined Sep 28, 2012 (14y ago) · 2,101 submissions
I hope the spam filter will respect it!
comment 5y ago · link · parent
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
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
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
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
* (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.
comment 5y ago · link · parent
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
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
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
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
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
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
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
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
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
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
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
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
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
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).