3 ms·
So what would it take to make NewSKD? and could it realistically be done by a YC style startup?
by rms 19y ago
So what would it take to make NewSKD? and could it realistically be done by a YC style startup?
- palish 19y agoIt would simply take a browser plugin for every type of browser. NewSDK code would be inside HTML comments, just like conditional comments are. The browser plugin would parse this code and cache it (aka compile it). From there, it would be trivial to implement image copy and paste. Keep in mind that I have no idea what the limitations of a browser plugin are, but if one can: 1) parse the raw source code that's sent down from the server, including comments 2) manipulate the DOM 3) open an outgoing connection Then you could do, well, anything. Embed Ruby into pages, for example. The reason you can do that is because the Ruby interpreter doesn't have to be a part of your browser plugin. All you have to do is convince users to download your C++ app that DOES contain a Ruby interpreter and runs in the background, then your plugin communicates with that via a socket. Your app then issues commands back to your plugin (you can think of those commands as assembly instructions) which manipulate the DOM or whatever else a plugin can do.
- bokonist 19y agoI got the sense Joel was talking about an SDK that does not require a plugin. Otherwise it seems Flash and Silverlight already meet his requirements.
- palish 19y agoHmm.. They meet the requirements to an extent. They're really little islands of functionality. I'm talking about a plugin that can react to and manipulate HTML elements, persist across page loads, and doesn't have browser-specific quirks.
- Readmore 19y agoI remember hearing about someone making a 'desktop' out of firefox. That would be the perfect way to implement some of the extra functionality he's talking about. Just run a browser as your window manager. Then you could build your interpreter into that and copy and paste between web applications as much as you want.
- jimbokun 19y ago"All you have to do is convince users to download your C++ app that DOES contain a Ruby interpreter and runs in the background..." Good luck with that.
- phenylene 19y agoOr how about http://code.google.com/webtoolkit http://code.google.com/webtoolkit
- palish 19y agoJava?
- phenylene 19y agoI hear you. I haven't written any Java code, but I recognize that my opinion was not formed by modern experiences: I was woefully unimpressed with the insanely slow craplets of the late '90s (and Paul Graham's mentions of Java in his essays didn't help improve my opinion of it either ;). Still, I'd be willing to believe that there are far more skilled Java programmers than there are skilled Javascripters, and something like GWT could only help the move to the web for many applications, especially if it truly helps to bypass the browser compatibility issues, not to mention far simpler testing and debugging.
- natrius 19y agoI'm surprised that you're the first person to point this out. That's the first thing I thought of when I read this: "But then somebody you've never heard of, some bratty Y Combinator startup, maybe, is gaining ridiculous traction selling NewSDK, which combines a great portable programming language that compiles to JavaScript, and even better, a huge Ajaxy library that includes all kinds of clever interop features." No, it won't be some bratty Y Combinator startup. It'll be Google (but the Facebook/Twitter integration features won't be there, mainly because they're silly). Even when GWT matures into the world-dominating SDK Joel speaks of, I still won't use it. To paraphrase jwz: Some people, when confronted with a problem, think, "I know, I'll use Java." Now they have two problems. I'm waiting for someone to generate Javascript from Java through GWT from Javascript through Rhino. I wonder if that's possible...
- jsjenkins168 19y agoYes, it should be possible. BUT you need to make sure Rhino restricts the Java classes being to those core classes in the GWT JRE Emulation library: http://code.google.com/webtoolkit/documentation/jre.html http://code.google.com/webtoolkit/documentation/jre.html Then you would want to wrap the other GWT classes. Mainly what you would be interested in is the RPC libraries so you can directly send Java data types over the wire to the server using GWTs serialization/deserialization routines. You dont know how nice it is to not have to deal with complex XML parsing until you've actually experienced it. Its heaven on earth compared to manual Ajax programming. Oh and the debugging... I shouldn't even have to explain the merit of this to an experienced Ajax developer. Using Rhino for this seems kinda pointless though when you could just write it directly in Java. I find it ridiculous how some hackers have such an aversion to coding Java. I think if people took the time to learn GWT they would quickly discover what kind of competitive advantage it brings when building complex web applications (web applications, not simply web pages). Yes, it is verbose, but once you get the hang of it its very intuitive. Why cant it be some Y Combinator startup who builds what Joel describes? GWT in the hands of a small team can build web applications that compete with Googles. If you dont believe me, then I challenge you to give it a try and see for yourself. Just dont give up too quickly; the learning curve is a bit steep.
- tx 19y agoFireFox already has it built in, it is called XUL and "Mozilla Platform". FireFox itself is written in XUL (you can run 2nd instance of FireFox within Firefox). What you would need is to build an IE/Opera/Safari plugin that runs XUL code. And possibly add some security system on top of that. Zed Shaw, if I understood him properly, built a prototype of an application that used this "API": server side was Ruby/Rails, serving XUL UI to a browser. That works even now - only in enterprise environment where you can make everybody to run FireFox.