312 points · by munificent · 15y ago · 197 comments
- Gilad Bracha was working on a way to run Newspeak in the browser.
- Newspeak is a bad name because Newspeak is a bad thing, when I read Newspeak I think "bad". The could mean that if google would want to support it they would maybe change the name.
So my guess is: Dart is Newspeak that runs on the browser and on the server and it gets support by google.
http://bracha.org/newspeak-101.pdf
it can currently work only in its own IDE, which, IMHO, immensely reduces the possibilities for its application.
Even if we get "a kind of smalltalk in a browser" who's going to use it? Imagine, all that goodness I have in my favorite editor, just goes away. I'm supposed to click around in some IDE modifying some classes with something, only to change something that works only in that same single IDE? What should be the real use of it all?
Newspeak is somewhat tied to its IDE but that not inherent. Newspeak has the feature of not having a global namespace this means all the functions that a global namespace normaly provieds has to be tied to some tool outside of the language. At the moment I think theres only the IDE that can do this but I remember Gilda saying that it would be easy to do this in other tools (think something like make).
Im no expert on newspeak but that how I understand it.
Probably there's a CoffeeScript-style transcompiler too to convert Dart (or a subset?) to JavaScript for execution client-side in non-Chrome browsers (any V8 browser could "speak" Dart directly)...
There are two ways you could go about this: - Write a VM in JS where you run Dart/Newspeak on. This could be a Interpreter or to make it fast a Jit that runs ontop of a JS VM. Jit on a Jit has been don before (pypy with the .NET backend is an example (look for the paper on the website its very intressting)
- Write a compiler like CoffeeScript or ClojureScript.
I think with newspeak gilad when down the VM road as far as I know (don't hold me to that).
Maybe the are snicky and work it in a way that it runs anywhere JS runs but build spezial support into V8 to make it faster.
So I'm going to update my guess: I reckon Dart will be a tweaked version of Newspeak natively supported by V8 (server and Chrome browser), plus a JavaScript VM for running Dart on non-Chrome browsers.
More of a guess, but I imagine it might come with its own node.js-y framework with perhaps some interesting Seaside-style continuation approach and/or Lift-style view-oriented approach...
It sounds like Lars himself may not have tons of expertise creating a language, but teaming up with someone who does and throwing in his own expertise getting it to run fast in a browser... might be interesting.
However, is there a concern here that only Chrome will support it for a while? Then anything you write in it will be Chrome only. Isn't that kind of like the bad old days when each browser had its own tags and whatnot?
Sounds promising - will be interesting to compare to Io/Ioke/Seph...
In what practical sense would that differ from JS?
Your point is well taken; I know some who hate JS because, well, it's JS. I doubt Google is trying to cater to THAT crowd as such, but if Gilad Bracha is involved in it I think it will at least be worth looking at.
http://www.se-radio.net/2009/07/episode-140-newspeak-and-plu...
It was one of the most memorable and interesting podcasts that I have ever heard. Newspeak will likely remain one of those languages that I really want to learn, but won't find the time for.
Considering the speakers, I'm actually very interested in what Dart is like.
Who knows what "structured web programming" is, as Google defines it? For all we know, Dart could be a unification framework that compiles to browser-independent JS/CSS/DOM. In which case, the Dart would be very good for reducing implementation fragmentation.
I'd love to see people tackling that problem instead of inventing Yet Another Framework,
But then, maybe Dart is something client-side. Of course, then only Google's browser would support it and we'd go back to pretending we like JavaScript while writing in CoffeeScript. :)
Although, I wonder if the language may be more suited to Google's needs (which are pretty specific) than the general web programming world.
Since they also love Java a lot, I am not that optimistic.
That's why I welcome the creation of any and all new languages. I don't need to be on the cutting edge and try to learn all of them, I can wait until the early adopters see value in them and then learn from the things that work.
The key thing is to develop new techniques for solving problems - think iterative versus recursive, or functional programming versus logic programming.
A given language is most likely targeted (or has least resistance) towards one style of programming, which means that new abstractions are likely to work better in a new language, one that has been developed with these blocks as starting points rather than added later.
It might be nice to focus development of specific key languages to avoid too much fragmentation by picking best-of-breed, but everyone's got their own itch... and for some that is developing new languages.
Do you want a company to 1) only brew products (with a business model) internally until it is ready to ship, or 2) develop and release lots of things and see what works or not?
Google leans towards #2. They don't really care if they can make money off of something, if one of their engineers is interested in something they're allowed to take that risk. They put lots of stuff in the wild and if it doesn't stick then they kill it (or in most cases leave the source to the public - see wave) - or try to make it profitable (look at gapps).
Yes, a lot of things coming out of Google die, but that's only because they're putting out lots of things all the time. The day they stop putting out unproven stuff and only release v1.0 products is the day they lose their innovation edge.
https://github.com/socketstream/socketstream#readme
It's nice to see where a link goes before you click on it.
Obviously I'm speculating here, but since we don't know what Dart is, we're all speculating here.
However since you've asked I was thinking that perhaps something Javascript based, like Coffeescript or perhaps Clojure/Clojurescript or perhaps even Links http://groups.inf.ed.ac.uk/links/
There are probably another 100 reasonable candidates. I guess this leads me to the point I should have outright stated, that given that so many languages have already been written, it is highly likely that any new language will spend a lot of time covering ground that has already been covered by some other language. Surely it makes most sense to start off hunting through all these languages to find something that most closely matches what you need and continue from there.
Who knows, perhaps that's exactly what they've done.
If this is the case, it is more or less like Hacker News, or Seaside using continuations in web programming.
If so, I'm interested to know how they overcome the mismatch between the statelessness of the web and stateful continuations. How are we going to permalink, for example?
First impression: I'm not really sure what this is solving - the syntax is a bit ugly and the projects seem unstructured. Seems like the ability to customize the stack is minimal. I couldn't find any solid examples of this being used in production.
It looks fairly young so hopefully these concerns will be addressed.
RPython is not really the same because RPython has to be staticlly compiled and that takes a long time.
Both of these things have nothing to do with Dart however because we do not know if Dart is about speed. Its probebly about having a better language.
Right now this problem seems to be usually solved by writing the software with some other language and the preprosesing or compiling it to Javascript.
Obviously a new language alone does not solve the problems but maybe a good combination of a language and framework would.
It's a pain to develop in one language and then have to use JS. Of course you can use coffee script and such things but if it breaks you're going to have to debug JS code.
At the same time I'm a bit afraid to be disappointed. All programming languages suck.
Perhaps this language in the near future will be a key to all projects Google
Perhaps this language in the near future will be a key to all projects Google
An innovative framework that utilizes an established language for web development would be more beneficial, IMO.
http://news.ycombinator.com/item?id=2972108 - "What’s better: Pricier Google App Engine, or nothing?" or, more honestly: "Tough shit. What you gonna do about it?"
I think a simple, general purpose programming language is good enough(1) for the web and I'd rather have one tool for all jobs versus another edge case language. In fact I'd rather have someone concentrate on one good "multi-tool" than provide me with a hundreds of cheap short-lived screwdrivers with different shaped heads.
Innovation should be about making the status-quo better, not introducing a new status-quo every 5 minutes with new promises.
(1) - "Good enough" is an under-used term these days.
That's what Google is doing: a company famous for closing fast projects that don't get immediate traction launches a new programming language when they have Go out there already...
Programming languages are like platform APIs: they effectively lock-in you into their environment. If you're in academia or doing research, you're free to throw out there whatever you want, but I'm not switching my development into this, at this stage there's too much risk and no proven benefits.
Just because Google is doing it doesn't mean it can't be an academic experiment. Experimentation with new programming languages is very much more useful than with new browsers, because you can't easily slap on new features to a programming language whereas you can on browsers.
Go is a systems programming language. Its goal is to supplant C and C++. I'm not sure what exactly they mean by "structured web programming," but it does not sound like a systems programming language would naturally fill that goal.
Not exactly a surprise for a language whose announcement has only just been announced.
There is plenty of innovation in the programming language space. There is too much. We're too busy working out how to talk to the machines versus how to get problems solved. We're here to solve problems, not serve the machines.
In fact, the shortage is in computer-science research. There has been NOTHING as fundamentaly important as Knuth's work in the last couple of decades. It's an innovation standstill. Nothing fundamentally better than the UNIX and LISP paradigms is out there for example.
Until something fundamental changes, most of what we have will do the job fine.
I have read hundreds of computer science papers from the 60s, 70s and 80s as part of my academic work, and frankly, everything I'm seeing today was conceptualized and/or invented then. It's staggeringly obvious if you read the sweep of history as written by journal article titles in, say, Software Practice & Experience, between 1970 and 2010. Somewhere in the late 80s things just peter out.
I strongly suspect a few things have come into play here.
* Disdain for formal mathematics by software writers. Mathematics is so absolutely key to heavy-duty breakthroughs in computer science.
* Increasing percentages of academics who never worked in the real world (and consequently knew how to get stuff done or what really matters).
* Lack of the academic industrial research labs such (Hi MS Labs! You are awesome! Keep it up please!). Also, lack of massive DARPA/DoD/DoE & NASA funding.
* The general decline of academic research quality, sacrificed on the altar of metrics (e.g., papers per year) & budget cuts.
* Friction caused by standards and legacy data & code. It's easy to innovate in a greenfield world. When you have to support five gazillion things & have 'batteries included', barriers to adoption are a lot higher.
I suspect major seminal work in the next decade will come from the Haskell crowd, since they are the most mathematics-heavy writers, and it is gaining traction in Microsoft and Google, which have the budget to support offbeat research.
Mozilla's language [Rust](https://www.github.com/graydon/rust/wiki) is working on static verification (using typestate) and concurrency in a C/C++ level language.
The Haskell community has several people ([Conal Elliot](http://conal.net), [Luke Palmer](http://lukepalmer.wordpress.com)) who are working on new models of functional I/O such as functional reactive programming.
There is a lot of programming language innovation in parallel/concurrent programming that's just hitting mainstream- actor model, asynchronous programming, CUDA/OpenCL, etc.
The way you talk to the machine is an extremely important part of "how to get problems solved." If you can't express something without absurd amounts of overhead, you're not going to solve the problem that way.
Plenty of languages does not mean plenty of innovation; in the web programming there's certainly too less of it. Every new or currently fashioned language evolves to a point where community implements its own Rails in it. I hope you don't call this trend innovation because it's not.
There were some promising trends in web programming like use of delimited continuations, but they didn't make a breakthrough. Today's web dev still is a hack around stateless http protocol, requires you to know at least 3 languages and there are no composable components you could easily reuse. World definitely needs innovation in this area.
and
> There is plenty of innovation in the programming language space.
Are at odds with each other. All of the programming languages that we use today can trace their roots back to computer-science research, either in the dark ages or in the immediate past.
Things like software transactional memory and other goodies are the pay-offs from that research and those things are only now making their way into programming languages.
You can't have the one without the other. And that goes both ways, computer-science research needs to have people that try the concepts it comes up with in the marketplace to see what survives in an adversarial context, so that it will be able to make the next step based on what survived and what didn't. So that's two birds with one stone, it's a proving ground and the foundation for the next generation of concepts.
Examples of languages that are innovative are Mozart/Oz, Haskell, Alice ML, Coq, Agda and Mercury. These completely redefine what it means to program, and all of them were created in the last 15-20 years. And if you think there haven't been great strides in each of these domains, then you're simply not familiar with them.
What work of Knuth's? TOACP? TeX? I'm a huge Knuth fan, but I don't see his work as fundamental to computer science, rather mostly as an amazing gatherer and editor of such work.
both, similar in some concepts, just kills UNIX on the design stand point.
None of them are really used. Sad :( Eventually we will merge toward them tho, they're the future somehow. Not because they're "new" (compared to UNIX) but because they solve resource and security issues we have today. Also solves a lot of the complexity.
No such thing. Innovation is a good thing, period. Perhaps what you find objectionable is the proliferation of stuff that people call "innovation", but really isn't very innovative.
Google should focus on fixing what's already done, not re-inventing the wheel again.
see what node.js is doing
Granted, Node.js is nice and all, but it's hardly innovative. It's built on an old language using ancient async tricks running on a VM built using old performance techniques learned during the development of an old language.How is node.js innovating in the language space?
It also makes it difficult to find new talent because there is less of a chance they'll be able to work in the language we've chosen. And yes, a good programmer should be a polyglot, but it's an attraction issue. If I'm advertising a Ruby job and looking for skills with Ruby-specific tools, there may be a great Python programmer that could switch over but who doesn't apply because they don't want to deal with switching gears to another language.
Let's keep it to 3 or 4 major languages. I think that's all I can take right now...
I'm reserving judgement until I actually see it. Maybe it's a great, fun to use language that gives significant performance advantages over other high level languages. If I need half the servers, that could be a big win. If threading and concurrency are abstracted away in a way that's performant and I don't have to worry about it, that's a big win. I don't know what it will be, but if it's useful it's useful. Seems a bit silly to judge it before it's out, especially criticizing it simply for being a "new" language.
In my experience, a good developer doesn't care about the language, and, in fact, would be excited to learn a new one. However, our industry has the mantra of "find someone with perfect proficiency or hire nobody," leaving those good developers afraid to apply unless their skill-sets match exactly.
Solution: don't advertise 'a Ruby job'. Advertise 'a programming job'. What it is you really want in your applicant?
"Here try these tools."
hands you a python
hands you a linux
I think that PHP could be replaced by something just as specific, and without the warts. You could also look into typing and compilation (optional static typing, with implicit declarations where possible?).
Now, I don't use PHP, but you have to admit it's useful and productive for a lot of people. If Google can improve it, and I think it can, it would be a boon.
That said, every time I try to guess what the implications of Google's next big thing is, I'm completely off track. I think a PHP replacement would be the most useful thing they can do in this space, but they will no doubt have a different plan.
And since when did innovation become about preserving the status-quo? It's exactly the opposite of it.
No. Not really. I keep promising myself I'll learn it, but, so far, the goodness of the excuse to learn it does not outweight the lack of time.
Help making the present language better, if you really want to!
Go appeared in 2009 Scala appeared in 2003
For more perspective, Ruby appeared in 1995 and Python in 1991, and yet those just became really popular in the past 5-10 years. It takes a while for languages to gain maturity. Go wasn't going to "take off" after two years.
Javascript programs can be relatively pure now, and even Haskell isn't truly "pure."
Could you explain what you mean with that?
On the other hand, and to your point, nobody wants to reinvent SOAP.
Maybe for you, but not for the hundreds-thousands of people using it.
> Technology is not consist with web apps
What?
> all of the new web languages doesnt have a mature ide like Eclipse or Visual Studio
I'm going to assume be "web languages" you are talking about Python, Ruby, Javascript (on nodejs), and Perl. Most people get along fine with the existing tools. Many people don't even like ides like VS.
> me to use vim or emacs, i dont have enough time, i am not an idiot to fuck my brain with those useless shortcut keys.
Not sure how learning fast, easy shortcut keys would 'fuck your brain'.
> but real world dont have free time to play with these toy languages.
False. Developers in the 'real world' work with cool new languages, frameworks and tools every day. If you're not willing to learn them that's your own problem.