83 points · by dahjelle · 12y ago · 74 comments
This is the function-calling train issue and what happens if you try to make a sort of quasi homoiconic language ("Hierarchical organisation of data complects the data itself with the common access paths.") and attempt a push-pull approach to programming (you push the data down into the hierarchy) with traditional data scoping through parameters.
The bad is not the hierarchical organization of data. That is the correct direction.
The bad is trying to use a traditional scoping approach to what is effectively a homoiconic type language. Homoiconic type systems need a different scoping approach.
But we can implement our own scoping mechanisms based on the domain we are developing a program in.
For example, Eve mentioned that they were looking at a sort of "Excel" spreadsheet type visual language.
The scoping mechanism of spreadsheets are a sheet with row/column. So, I would create objects that are able to quickly pull from a row/column and push into a row/column. For example, somewhere in their hierarchy they had an algorithm that required access to a cursor.
Since it is a spreadsheet we can have our global active spreadsheet which, somewhere, contains the cursor. We know it is there because we put it there.
Somewhere deep in the bowels of the data hierarchy we have this line of code to get a cursor:
var cursorCurrent = global.curSpread[34,65];
because our scoping mechanism is based on an excel spreadsheet and not the one "forced" on us by the programming language: usually a stack.There is no need to push that current cursor down the function calling train and, in the end, it is probably faster because we are doing a simple cell lookup.
Another reason we weren't really satisfied with any of the hierarchical models because they required making lots of choices about ordering in the hierarchy that weren't really relevant to the actual problem being solved.
Now that we've moved to relational datalog-like language we just don't have scoping at all. Every table has a unique id and ambiguity between names is resolved at edit-time (eg by choosing from an autocomplete or by dragging a reference directly). We don't have a solid plan for handling reuse but we haven't actually felt the pain yet because doing things collection-at-a-time removes a good chunk of the use cases for reuse.
A concrete example is a function that writes something to stdout. If you want to output to a file instead, parameterise the function call by setting current-output-port to the handle of your file.
This is just a repeat of the xml database vs relational database debate. This fight has been fought so many times before - http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.113....
Xml database, key-value-store, relational databases, csv files, etc. are all ways of persisting.
These are very different disciplines with very different problems being solved.
The question in both cases is how should we model, query and update our data. The original tradeoff was that hierarchical databases and network databases were faster but relational databases were more flexible and maintainable (due to the separation of logical and physical data representation). Better implementations (eg http://en.wikipedia.org/wiki/IBM_System_R) narrowed the divide and made relational databases more attractive. Systems like Bloom (http://boom.cs.berkeley.edu/) and LogicBlox (http://www.infoq.com/presentations/wavefront) show that the same tipping point could be reached for programming languages.
Trying to map source-code that stores a lot of it's context on the stack is really hard to visually represent. Trying to represent the stack in a visual way makes for a icky looking visual language.
However, if you can keep all of the context/state of your program in one area and it is hierarchal... Then, you can build great visual representations of your program because, really, you are displaying a data-structure (your program becomes a data-structure). So, all the cool things you can do visually representing data-structures, you can do with your actual program.
'Visual language' is a very overloaded term and we are in no way set on any particular ideology. Textual languages and visual layout have different strengths and weaknesses and there are lots of cases where it makes sense to mix both. There is plenty of evidence that both are useful (eg http://www.amazon.com/Small-Matter-Programming-Perspectives-...). My only aversion to text is as an unstructured storage and communication format - it makes much more sense to allow tools to communicate using a shared, versioned and structured database rather than watching for changes in text files.
> visual languages are inherently hierarchal
Excel - https://www.google.com/search?q=excel&client=ubuntu&hs=fRx&c...
Access - https://www.google.com/search?q=access&client=ubuntu&hs=Jnc&...
Labview - https://www.google.com/search?q=labview&client=ubuntu&hs=v5H...
Blender - https://www.google.com/search?q=blender+node+editor&client=u...
PureData - https://www.google.com/search?q=puredata&client=ubuntu&hs=4S...
TouchDevelop - https://www.google.com/search?q=touchdevelop&client=ubuntu&h...
Kodu - https://www.google.com/search?q=kodu&client=ubuntu&hs=N9H&ch...
Pretty much the only hierarchical example that comes to mind is Scratch.
> Trying to map source-code that stores a lot of it's context on the stack is really hard to visually represent.
Yes. But non-local scope and control flow are also pretty hard to represent and understand. That's why we ended up avoiding both.
> However, if you can keep all of the context/state of your program in one area and it is hierarchal...
It doesn't have to be hierarchical. Excel and Access both have amazing (by programming tool standards) visual representations of your program and your data.
> So, all the cool things you can do visually representing data-structures, you can do with your actual program.
Data and code are different though. Eve is homoiconic-ish (code is stored in tables) but the actual visualisations and manipulations applied in 99% of the use cases are very different. We don't spend nearly as much time manipulating code as data compared to reading, writing and understanding code so it makes sense to default to visualisations that optimise for the latter.
TLDR: There are three new maintainers (https://github.com/one-more-minute https://github.com/cldwalker https://github.com/joshuafcole). The docs are now community owned. The plugin server will be soon. We will be hosting a weekly hack night in our new office to get community members up to speed.
And now it looks like they have found something else more interesting to work on anyway.
I still run PyCharm in a separate workspace for debugging, running programs and searching through code, but for editing I find LightTable is wildly preferable imo.
There are some mostly minor annoyances, like the behaviours file simply switched locations at one point, and for some odd reason I can't get the tab settings to work properly for makefiles and such.
I will probably stick with LightTable for the forseeable future, nothing else quite seems to hit my sweet spot. Admittedly I haven't actually tried sublime text.
Did you have some weird plugins installed? Did you create a bunch of Clojure processes and count those?
EDIT: Ah, there was a memory leak for a while. I bet that's what the problem was. It's definitely fixed in master.
javascript:document.querySelector('meta[name=viewport]')
.setAttribute('content','
width=device-width,
initial-scale=1.0,
maximum-scale=10.0,
user-scalable=1
');
Shame on the author to force users to retort to hacks like this, by the way. "B-but you can click on the images!" is not an answer, damn it [2]. Pinch-and-zoom is arguably the premier feature/innovation of the post-iOS era, for you geniuses to disable it for whatever UI/UX cargo-culting fad is going through your head. Seriously. Just stop [3].[1] http://apple.stackexchange.com/questions/28391/how-can-i-for...
Thanks for the indirect pointer on how to correct the issue though. If you hard refresh you can zoom now.
In any case, thank you for re-enabling it. I'm sure many future readers would thank you too.
[1] See for instance Box 2 in Proulx et al. 2012 (http://www.michaelinzlicht.com/wp/wp-content/uploads/downloa...).
At the very least, the post (edit: post title) could give some indication as to what the hell Eve is and why I should care—it looks like a spreadsheet meets a repl.