143 points · by protomyth · 10y ago · 113 comments
I don't think graphical programming has ever really solved this problem. The only time interface builder is useful is with really small applications. Once you have any amount of complexity you're much better off creating your interface programmatically. Interface builder is just another thing I have to learn, and relearn when Apple decides to change it 2 years from now. If Apple partners with Adobe and creates an interface builder / photoshop hybrid, maybe we could talk. If I could connect my designers psd file directly to a core data backend, that might provide some legitimate time savings.
Dragging and dropping to create a data processing pipeline is much faster and less error prone than writing the equivalent code.
An easy to see example are audio pipeline building software, where you hook together various components - http://factmag-images.s3.amazonaws.com/wp-content/uploads/20...
Google also has something like this - https://i.imgur.com/bGTSDf5.png
Max/MSP and PD are the goto products here.
They're incredibly horrible for anything complicated. Even a simple for loop requires multiple clicks to select the modules you need, multiple lines of typing to set their parameters, and multiple mouse movements to define the connections. It literally takes about around ten times longer than typing.
Neither handles encapsulation elegantly and transparently. (Max 7 is the best effort yet, but it's still not pain free.)
They have some nice DSP features for building DSP chains, and as long as you stick with those they're useful. But they're an instant nightmare if you try to do anything with logic that would be trivial in written code.
Reaktor doesn't compare because it just does the DSP thing. It's a very simple pipeline.
The takeaway is that simple module composition is easy, but non-trivial logic flows with many data types can be very challenging indeed.
(I feel Haskell syntax is dreadful once you start trying to achieve anything beyond "functional pearl"-type material.)
This library is open-sourced - http://stlab.adobe.com/group__asl__overview.html#asl_overvie...
sheet clipping_path
{
output:
result <== { path: path, flatness: flatness };
interface:
unlink flatness : 0.0 <== (path == empty) ? 0.0 : flatness;
path : 1;
}He would always tell his manager, "You can give me two weeks to enhance the tool, or two weeks to do it manually. Your choice."
I was playing with it for a while even before iPhone was a thing and I kind of liked it, but it's basically only for Apple devices. Nobody on Linux or Windows sides uses it for anything.
I have had the misfortune of using GNUStep about a year ago, and it's, unfortunately, still very buggy. Why is there no more activity there?
Not to leave course of the original comment re:ObjC, but I think to a certain extent you don't see C# really being used outside the Microsoft ecosystem, as Mono does exist. An integrated framework is probably the programming language equivalent of having an "army and navy."
Dart is a great language - it's way more feature complete than typescript, it comes bundeled with official package manager, build system and a dev server (huge value compared to the js ecosystem schicoprenia) and it's designed by people who actually know their shit and have decades of expirience in both language design and VM implementation/compilers (isn't constrained by JS design decisions)
Dart started marketing it self as a JS.next, IMO unrealistic goal, but has dropped that agenda for like 2 years now (?). It still dosn't prevent people from making uninformed comments about it being a failed google js.next language.
It's really an amazing ammount of working tools and code in that project, waay better than angular 2 js/typescript for example but people won't even evaluate it because of reputation.
The same is true for .NET, Microsoft took JVM and Java and then took it to the next level - stuff that just got in to Java (Lambdas) or will be getting in years (Value types) have been a part of .NET for a decade now - and in recent years Microsoft made a 360 on cross platform and OSS with Core.CLR - this is not even mentioning F# being a MS sponsored and supported tool with the tooling support that implies, and just the best in class tooling with VS in general.
Yet most people won't even touch .NET because it's not hip.
Sure but truth be told, Mono is not as good as the official .NET Framework, even more so when it comes to doing GUI applications. I don't think most people would choose Mono to do a serious cross platform application, when Qt and Java are so much better for this.
Ask Singing in the Rain and West Side Story :)
I think it's interesting to compare Objective-C with Microsoft's COM. Both originated at roughly the same time (late 80s). Both aim to add dynamic, object-oriented features to plain old static C. Both provide a thin runtime library and C-based API to bring those features to C. Both use the same reference-counted memory management. Both allow you to dynamically load objects at runtime, and query about the capabilities of these dynamically-loaded objects in a general way. Both have been integrated into multiple different object-oriented programming languages. Objective-C differs in that it is both a runtime library and a language, where COM is just a runtime library.
COM become hugely popular in the late 90s. While it's natural to use COM to implement a plug-in framework for an app, people started to use COM for everything. This led to the deCOMtamination movement of the early 2000s.
I too did a bunch a COM development in the late 90s, just like everyone else. If I knew then what I know now, I would have ditched COM entirely and used Objective-C and OpenStep. But even if one had a time machine and could travel back to 90s with knowledge of the future, there is no way you could convince anyone else to ditch COM for Objective-C. The syntax is unusual to C, C++, and Java programmers, and there are just too many misconceptions about Objective-C floating around (e.g., see some of the other responses in this thread).
Objective-C has many interesting features that make it ideal for doing the kind of large-scale client-side desktop and mobile app development that it's known for. But I think the truely compelling aspect of Objective-C is the cohesion between the language and UI frameworks that make up Cocoa and Cocoa Touch. The frameworks and the language were developed hand in hand.
Objective-C without the Frameworks isn't compelling to people who aren't already familiar with the language, and those frameworks are (now) only available on OS X and iOS.
When a free-threaded apartment (multithreaded apartment model) in a client creates an apartment-threaded in-process server, COM spins up a single-threaded apartment model "host" thread in the client. This host thread will create the object, and the interface pointer will be marshaled back to the client's free-threaded apartment. Similarly, when a single-threaded apartment in an apartment-model client creates a free-threaded in-process server, COM spins up a free-threaded host thread (multithreaded apartment on which the object will be created and then marshaled back to the client single-threaded apartment).
I remember thinking I sort of understood this back in the day, but now I'm pretty sure I didn't.
+5 Insightful
The cranky person in me would also point out comp.lang.objective-c had an individual who really hated NeXT and made life heck on others.
Java as a competitor is just a much easier language to read and write, though I would not say it is a better language. It gained widespread adoption because of that ease of use and ability to run on so many platforms.
Whether you agree or not, C++ is perceived as a better language and is definitely better supported across multiple platforms. As an example, making an App that shares code on both iOS and Android is impossible without the Native C++ bridge on both. So despite the failings of the language (of which there are many), it really comes down to portability.
This is why Swift is such an interesting experiment to me. As a language it is pretty good, very modern and easy to understand (though not super expressive or powerful), but, the thought of using it for both Android and iOS development is actually very appealing to me.
I think the interface can be even "lower" than C++ ...
C interface to iOS: http://stackoverflow.com/questions/10289890/how-to-write-ios...
C programs can access Android's JNI ( http://developer.android.com/ndk/samples/sample_hellojni.htm... ).
Once I got it, I wondered why are not other languages cool like this.
And then I never used it again in real life (since back then nobody had Apple, and then I moved to javascript...)
Like many technically-superior technologies, they don't find market success because of momentum of an inferior product.
What matters are tooling, libraries and vendor support.
GNUStep is quite old and only had a couple of devs maximum working on it, already since the NeXT days.
Also gcc never had 100% support for the Objective-C runtime, there was just the initial contribution that FSF forced NeXT to do.
Yeah, I thought so, too. Then we built a content management system in Objective-C on Sun/AIX/Linux. We had a so so Foundation and that was it. It was amazing. Completely changed my mind.
Probably only Smalltalk had a similar experience in those days, with commercial Lisp vendors already fading out.
Hello, Smalltalk.
I feel like the NextTeam where right about the system specs for graphically driven OO environment. It took them 20 years to really get their software environment to the point where developers could produce compelling experiences. In that time the same specs shrunk from a table top cube to a pocket size computer.
Probably #1 on Stallman's list of "things I regret most".
https://en.m.wikipedia.org/wiki/Objective-C#cite_note-7
At least, this was the story that was presented to me as the reason that GPL results in more open source software than permissive licenses.
http://stackoverflow.com/questions/473758/what-does-the-ns-p...
The whole concept of the menu bar on the top was nice on a 9" display, but it is a major pain on a 34" monitor.
By default the appl menu was in the upper left, it went down and submenus opened to the right.
You did not like it there, just move it to where ever you liked, NS remembered where you wanted it for every individual appl.
Want access to to a particular submenu at any time, just tear it off and drag it to where ever you like.
Don't want to move the mouse to get to the menu, just middle click and the appl menu appears under your mouse cursor.
NS menu was best of both approaches.
Mach is essentially a microkernel PLUS most of a BSD kernel wrapped around it, all running in ring 0. It's not very microkernely in a true sense. This was done to achieve performant Unix compatibility, which was a major goal of the CMU research project Mach originated as.
NeXTStep used Mach 2.5, where the BSD personality was based on 4.3 BSD. OS X upgraded to Mach 3.0, with the BSD personality derived from FreeBSD. In both cases all of the drivers are running in kernel space -- NeXTStep never had, eg, filesystem drivers running in user-space like you'd expect from a "true" microkernel.
I could do in a couple of months what would take more like a year on other platforms [1].
You can download the source code.TBL got permission from his manager to do WWW as a side project. For NCSA Mosaic, it took a team of 5 a year to produce 100KLOC of C. In other words, it would not have been possible as a side project, and thus we would not have the WWW.
That would be BeOS.
BeOS approach to multithreading was really just a dead end. Nobody does multithreading that way anymore.
NeXT also had a more sophisticated display system, based on 2D vector graphics. They had the bundle concept and a lot of other things which I think in sum made it a better system.
What I liked about BeOS was the heavy use of the file system attributes, and the translators were you could just drop in a GIF translator and then all you graphics apps could suddenly read GIF images.
I was about to start digging up more on its multithreading due to interesting things I read in architecture documents. Not to mention their multimedia demos. Read lots of positive stuff with interesting tricks like "benaphores."
So would you clarify why you think it was a bad design and why nobody will use it any more? And did their concurrency or other design efforts get anything right in your eyes?
NeXTSTEP broke with Unix tradition in many ways, notably using Display PostScript rather than the X Window System for display, offering Objective-C rather than vanilla C as the primary systems language, and attempting to provide a friendly WIMP interface as the primary mode of usage rather than the somewhat primitive windowmanagers in use on Unixes at the time. The NeXT hardware, in contrast, emphasized multimedia features (like CD audio, megapixel display, and desktop publishing) over graphics rendering performance.
AFAIK NeXT didn't even come close to putting out any hardware that came close to allowing that sort of rendering capabilities. Xerox PARC's platform is probably the closest analogue.[1] Basically all of our modern day GUI paradigms are based off of what they did in the late 70s. @pjmlp will jump in with more detail if he sees this.
[1] http://www.cnet.com/news/tracing-the-origins-of-the-macintos...
Every workstation vendor had their own UNIX back then. SGI built in what became OpenGL and had the graphics hardware to pair it with.
Later on they added things like the XFS file system (think 9TB volumes in 1994), 64-bit MIPS support, and multi-CPU support. All which were key in allowing SGI to do the things they did with 3D.
It had 64-bit processors, high-bandwidth NUMA links for CPU's/boards, plenty of RAM, interconnects from CPU's to graphics cards that removed obstacles to performance, often custom graphics cards, custom software interfaces, whole-program optimization, and ability to scale up to 256 CPU's and hundreds of gigs of RAM in one image. Compare original Final Fantasy movie to anything 3D animated from that time period to see what SGI Onyx machines could do. ;)
Hell, it still looks good despite all the advances since then by gaming and rendering engines:
https://www.youtube.com/watch?v=2zQ-LhwYqdQ
That doesn't happen a lot. Quite a bit can be done in real-time on modern systems. A few things in trailer still look better to me than modern games. I recall the detail even included individual strands of hair's physics and rendering. Too bad the plot and acting sucked because it was first to look real enough to fool people passing through the living room. Scared the rural ones, too. Took 32 Onyx2 Machines fully loaded plus tons of custom software.
For desktops, Bill Gates and SGI did this demo on a machine with two, 150-200Mhz processors plus their graphics cards:
https://youtu.be/zuMSk_S2ARI?t=1m22s
I start there because the first trick will impress you if you recall what multimedia, graphics, or concurrency were like on Windows PC's in 1998.