6 ms·
The Nile Programming Language
- trymas 11y agoI've seen it from Alan Kay's talk 'Is it really "Complex"? Or did we just make it "Complicated"?' [0] Though GH repo is not updated for more than 3 years and maybe it's just my inexperience or I am spoiled, but from lack of proper documentation I have no idea how to setup and use this language? On what platforms does it work? Also looking in the examples, it looks somewhat APL'ish due to use of special characters. How do I type them (and do it quick) on regular laptop? [0] https://www.youtube.com/watch?v=ubaX1Smg6pY https://www.youtube.com/watch?v=ubaX1Smg6pY
- TuringTest 11y agoThanks for the link. I had problems understanding what Nile was all about from reading the slides, which provide very little in terms of context and explanations. Watching that talk and hearing that Nile is a declarative streaming language from the research group where Bret Victor works, I now understand what are the practical applications of such language.
- sparkie 11y agoHere's a more interesting demo of Gezira: http://tinlizzie.org/~bert/Gezira.ogv http://tinlizzie.org/~bert/Gezira.ogv
- sparkie 11y agoAlan Kay talks about Gezira, a library built with Nile (and the motivation for making Nile, althoug Nile is much more general purpose). There's a JS version of Nile/Gezira which was used for Brett Victor's demonstrations, which can be found here [1] The main Nile compiler here is written in Maru, a programming language of Ian Piumata's which is another awesome project on it's own. It's essentially a Lisp where you can define how the evaluator behaves for a given type.[2] The version of Maru used is included in the Nile repo though. It can be built with GCC or MinGW. The compiler translates Nile to either Maru or C code. There's a squeak version which can be found at [3] And also a Haskell vector library which exposes a similar interface to Cairo, but is modeled as Gezira under the hood (used for purely functional image generation). Although this implementation is function based and doesn't really provide a proper streaming abstraction as provided by Nile. [4] [1]: https://github.com/damelang/gezira/tree/master/js https://github.com/damelang/gezira/tree/master/js [2]: http://piumarta.com/software/maru/ http://piumarta.com/software/maru/ [3]: http://tinlizzie.org/updates/exploratory/packages/ http://tinlizzie.org/updates/exploratory/packages/ [4]: https://hackage.haskell.org/package/Rasterific https://hackage.haskell.org/package/Rasterific
- e12e 11y ago> Though GH repo is not updated for more than 3 years and maybe it's just my inexperience or I am spoiled, but from lack of proper documentation I have no idea how to setup and use this language? On what platforms does it work? Looks very interesting, it's a bit sad to see things like: https://github.com/damelang/nile/issues/4 https://github.com/damelang/nile/issues/4 Mostly hanging from this summer. I would love it if more of these code dumps from research projects at least included a section on how to get the examples running (and something on requirements, such as which OS it has been tested on, even if that turns out to be "Only tested on DOS 2.1").
- amelius 11y agoI'm wondering why this was implemented as a language, rather than as a library in, say, Python or Haskell. Is "streaming" something that is overlooked in conventional programming languages?
- orbifold 11y agoI think the philosophy behind it is that they (View Point Research Institute) want(ed?) to be able to create lots of domain specific programming languages easily. So being able to implement those little languages from scratch and not as part of an existing language was part of the research effort, not just the language itself. They have created tools like OMeta2 for this purpose, because they think that this way every problem is expressed in the natural language of the problem domain. A huge compiler like GHC with its >= 100.000 lines of code runs also against the goal of creating a system that needs orders of magnitude less code (I think their initial budget was ~10000 lines of code).
- TuringTest 11y agoThe Viewpoints Research Institute is going to be the Xerox PARC of our generation. They're developing this really cool computing model which is user-friendly and extendable, and it just makes sense for removing unnecessary details in programming, allowing you to center on one aspect of the program at a time - reducing complexity in a way that classic text-based languages + IDEs are not able. It improves the current state of interaction with computers, in the same way that PARC's windowing desktop with direct manipulation improved over the existing form-based applications of the time. I expect the next 30 years of computing tools to be heavily based on that model.
- sparkie 11y agoThere are certainly ideas coming from VPRI which will make it into mainstream use, but there's a big difference between it and Xerox PARC - namely, Inertia. PARC was developing from mostly a clean slate and got to define how computing would become for the average user. (And let's face it, not all of what came out of PARC was good. The windowing desktop has its flaws). Nowadays everyone already has an electronic device and there are thousands of other companies working on related research. It's unlikely, in this context, that the VPRI can have such a massive impact - particularly when they've decided to use tools (ie, Smalltalk) that the rest of the computing industry rejected decades ago (whether for the right reasons or not, the superstition is already in place, and reversing that attitude isn't going to happen quickly). I'm a fan of some of the work VPRI has done, especially Gezira, but it's only a small part of a much bigger picture, and there's no silver bullet in computing. I've seen work from outside of the VPRI which is likely to have a larger impact on the state of software development, and hardware developments which seem impossible to succeed given the current state of software. It will be a nice fairytale in 30 years if we can point at one company for creating what has become, but it ignores the tens of thousands of research papers that contributed to the current state of computing, and the state which it will become. What's more fascinating about the VPRI isn't the results, but the methods. Start by throwing away superstition about how computing is currently done and lets look at other ways we could do it, rooted in well-understood theory. It's a shame that this kind of development is rare and most of the industry is bandwagon-hopping.
- danschuller 11y agoNeat. The speed-up with respect to cores is particularly impressive (though it would be interesting to know the exact conditions. Or is just some type of average-case?)
- sklogic 11y agoA very well designed DSL. And I did not know about Maru before, it's quite impressive.