Designing And Building A New Pragmatic Language 192
ctrimble writes "A bunch of folks on the pragprog Yahoo! Group have banded together to design and implement a 'pragmatic' programming language. Ostensibly, the language is informed by the principles in Hunt and Thomas's well-received book, The Pragmatic Programmer: From Journeyman to Master but the purpose of the language is to help ease some of the pain of development and bridge the impedance mismatch between the academic aspects of a programming language and the discipline of software engineering. The design is still very much in flux. If you're a programmer, this might be a language you'll be using in a few years (or earlier). This is your chance to get in on the ground floor. What kind of features do you want the language to have? What are your PL pain points? Where could this language do better than existing languages?"
make the case.... (Score:4, Insightful)
they should come up with some good improvements for a specific language.
the world doesn't need an entirely new language. (we already have python).
The 100 year language (Score:5, Interesting)
VBA is being used currently for a lot of that work - but it is truly horrible. Wharton has started teaching its MBA students Python.
Check out what Paul Graham has to say about programming languages in 100 years (basically they won't change much).
http://www.paulgraham.com/hundred.html [paulgraham.com]
And Artima had a discussion on this topic, "After Java and C# - what is next?". http://www.artima.com/weblogs/viewpost.jsp?thread
Re:The 100 year language (Score:5, Insightful)
VBA is isn't horrible. It's the MS Office object models that are pure cluster fucks.
However, what's truly horrible is the code that those same self-taught average office works write. I didn't get the impression that was their target, but if it was, they'd have their work cut out for them.
In my experience, the average office worker's explorations of VBA always follow the same path... they discover it and play with it... they build something useful with it... the useful thing is shared with other workers... it becomes a critical business tool... it fails miserably (possibly causing lots of confusion and/or costing a lot of money)... then it's thrown over the fence to IT for an emergency-fix... What does it do? "We don't know, we just have to run it every morning. It was written by that guy who quit last year. It worked until yesterday."
If these pragmatic-language guys ever decide to tackle the non-professional-programmer experience, they REALLY have their work cut out for them -- and not even the best language in the world can solve the problem of a really badly-designed object model.
Re:make the case.... (Score:4, Funny)
Agreed. I certainly wouldn't wish another C++ on the world.
Already done (Score:5, Insightful)
Re:Already done (Score:3, Insightful)
A pragmatic language should have mature class libraries. (That's pragmatic, isn't it?) Ruby doesn't.
Re:Already done (Score:2, Informative)
Ruby does have mature class libraries. And the end is only if you use begin, you can use {} if you prefer.
Re:Already done (Score:2)
Really? That's good. Every Ruby example I've ever seen had begin/end; it looked so nasty that it kept me from looking further. If it allows for multiple means of creating a code block, that's a good thing, allowing people with different styles of coding to code in the same language. It'd be nice if it did python-style whitespace indentation as well.
Of course, I expect the purists to flame me, but thankfully I've got this +5 Cloak of Ret
Re:Already done (Score:3, Informative)
Re:Already done (Score:2)
While I've seen a lot of abuse of globals (any PHP piece code being a good example), I think being purely anti-global is a little too strong.
Global variables should hold global data. Global data does exist. I don't know about the specific case of Ruby, but in Smalltalk (which is obviously the inspiration for Ruby's semantics) all uppercase variables are global, which conveniently includes classes, as classes are first-class
Re:Already done (Score:2)
Re:Already done (Score:3, Insightful)
Moving libraries into the language is like moving web servers, web browsers, office suites and solitaire games into the kernel. Some people will think it's cool, but others will wonder why they can no longer fit a bootdisk onto a 1.44Mb floppy.
People who want 1.44Mb boot floppies should:
1. Buy a real comput
Re:Already done (Score:2)
Real people don't buy a computer, they buy the parts and build it themselves. That way, you can ignore the floppy issue completely...
Of course, real people also feel no pain when vendor X claims the instability is due to vendor B's component and vice versa. ;-)
Re:Already done (Score:2)
Let me help translate from kwerle to common - it can be tricky.
Keep up with the times.
There's no reason to write another lightweight language (the topic at hand) - we have C for that. If you're going to roll another language, it should probably be feature-rich and have good libraries.
I took the 1.44M boot floppy to be kind of an analogy, so I latched on to it. Just as any new language should be feature rich, any new OS should also be feature rich. Unless you're writing a
Re:Already done (Score:2)
I do try to keep up with the times. it's hard though. I came from the world where you only had 64Kb of RAM. You made every byte count. But nowadays the trend seems to be "make the user upgrade." I've got a 1.4GHz Pentium and Java still runs like a sick dog on it. I'm going to be purchasing a new system next week, but dammit it's o
Re:Already done (Score:2)
I don't think so. If you want more than C, get better libraries. Anything "more" in the language adds overhead...
Something like a more advanced C, or a cleaned up C++?
C++ is a mess and always will be. Use Objective-C. It's a great language. But don't write kernels with it - it's got about a 10% message overhead because it supports introspection.
I do try to keep up with the
Re:Already done (Score:2)
The role of libraries (Score:5, Insightful)
I think I understand where you're coming from, and I agree with the principle, although I don't entirely agree with exactly what you've said.
I think the issue of how libraries are handled is crucial to the success of a modern programming language, as numerous success stories and famous failures can testify. Here are a few random thoughts; how do they match up with yours?
Firstly, I agree that it is best to keep a small "kernel" standard library. This library should be very well designed, with as much thought put into it as the language itself. In particular, it must be readily extensible by other libraries without being overcomplicated. If you like, it should provide a framework for doing common programming tasks, without filling in too many specific cases.
However, I don't think it's either easy or desirable to separate libraries completely from the language itself (as in syntax, grammar, etc). Your own comment about C++ is wrong, for example: you cannot ignore the standard library completely, because certain language operations (such as a failed dynamic_cast on a reference type) result in behaviour that needs library support (throwing an exception of a type defined by the standard library).
Now, you could get around that by creating new standard types for such cases, but do they really belong in the formal grammar of the language, alongside normal exception behaviour but distinct from it? The point is, from a programmer's perspective, it doesn't matter whether that exception type is in the library or the language. It should function identically, offer the same interface, exhibit the same behaviour, either way. It shouldn't matter whether my string type is part of the language or part of the library; it should just work.
The same goes, to a lesser degree, for other libraries. Once I've decided to use a library (or part of it), that extra functionality should just be there. I shouldn't have to care where it came from, and the only time I should have to know it's in a library is when I'm identifying the functionality I want to use. The syntax, style and function should be just like any other feature of the pure language and its standard library.
As a final point, while I believe the standard and portable library should be compact and highly flexible, it's obvious that having a widely recognised and comprehensive library of commonly used functionality is advantageous. Look at the success of Java, for example; although many of its standard libraries suck compared to alternatives for other languages, or even replacements available for Java, that doesn't matter to many Java programmers, because they're good enough. OTOH, this results in suboptimal code due to laziness and/or lack of knowledge of alternatives on the part of many Java developers.
The solution to this, IMHO, is to follow the path set by Perl (CPAN), TeX (CTAN), etc. The sponsors of the language -- commercial or community -- should provide a well-known and recognised central repository, into which contributers can add their own offerings. Better yet, adopt a genuine community review process, such as the C++ Boost community has, to force higher standards within the libraries in the repository.
So, in my ideal little world, a language would have a structure such that libraries and language were indistinguishable except where identification is concerned (basically just a matter of how to specify which libraries are desired, and naming conventions to prevent clashes between them). The language should come with a standard library that provides really common features (basic math functions and string handling, for example) in flexible frameworks on which other libraries can build. The bulk of library functionality shouldn't be standard -- that's too invasive and too limiting -- but ideally should be collected in a central repository of peer-reviewed offerings, with simple, standard and widely known conventions for using those libraries in programs. This way, no-one uses substandard code by default, but you still have the comprehensive functionality base there when you want it.
Re:The role of libraries (Score:2)
I like libraries, don't get me wrong. I use them all the time. But there are times when you don't have the luxury of lugging along a mandatory library. Most people on Slashdot seem to be making the assumption that every system in the world is a PC. This is simply not the case. When you are working on an embedded device with 2MB of flash memory, you can't afford a 3MB runtime.
I don't have a problem per se with standard libraries. But I do have a problem
Re:The role of libraries (Score:2)
Oh, I expect we don't disagree very much at all. :-)
I thought your original point was probably that it was important to keep the required part of the library small. (I've worked in instrument control and embedded markets myself, so I'm all too aware of the limitations there, and their size relative to the desktop PC apps market.) From your second comment, I can see that I got the right idea about your point of view.
Keeping the optional libraries separate from the core is exactly what I would want to see
After thinking about it... (Score:3, Funny)
Re:After thinking about it... (Score:3, Informative)
And there's also pysco [sourceforge.net], a specializing compiler, which generates machine code for python, and gets dramatic speed ups.
Re:After thinking about it... (Score:3, Informative)
Need more information... (Score:4, Funny)
Wish list (Score:2, Interesting)
Metacode/macros: Sometimes I would like things done at compile time, especially if they have to do with types.
Overloading: Can be implemented with a decent macro system.
OO/functional: So many languages miss one. So few have both (Eiffel, O'Caml)
So many languages are so close, especially ones w/ active user communities, like perl and C++. They're just not there yet . . .
Strong emphasis from a GUI standpoint. (Score:3, Interesting)
I think we need a language that not only performs those operations but is built with Cross-platform GUI design in mind. I don't know HOW or even it it is simply another part of the standard libraries, but I think you you REALLY want you rlanguage to be successful it should be able to hook into existing GUI APIs and/or implement its own with ease and consistancy. If anything a strong enphasis of a GUI library is a must have.
Delphi (MAYBE VB) is the closest thing I have seen that allows this. Yes I know the "language" is object pascal, but the IDE allows for quick and semi-graceful GUI design.
In addition to that if you could implement a pointerless environment with automatic garbage in a FAST way it would be helpful...but allowing for manual overrides if necessary.
Let the elitist flames begin.
Re:Strong emphasis from a GUI standpoint. (Score:5, Informative)
Pyhton: pointerless, automtic garbage coll, vary FAST if using psycho.
wxWindows: portable, yet platform optimized. Very good tools for design.
Re:Strong emphasis from a GUI standpoint. (Score:2)
I was wondering about a good GUI system for Python. I need to get up to speed on it it looks great.
Re:Strong emphasis from a GUI standpoint. (Score:2)
Python: www.python.org
wxPython: www.wxpython.org
wxWindows (only if you want to roll your own wxPython): www.wxwindows.org
Psyco: psyco.sourceforge.net
Weave: www.scipy.org/site_content/weave
Pyrex: www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
Nu
Good luck.
Re:Strong emphasis from a GUI standpoint. (Score:2)
Re:Strong emphasis from a GUI standpoint. (Score:3, Interesting)
P
Re:Strong emphasis from a GUI standpoint. (Score:2)
Re:Strong emphasis from a GUI standpoint. (Score:3, Funny)
I have considered deeply what you said here, and have carefully formulated my reply:
Noooooooooooooooo!
Re:Strong emphasis from a GUI standpoint. (Score:2)
If you don't care too much for native GUI widgets, you can check
... and for God's sake get it right this time! (Score:5, Insightful)
Second, make sure the language has a formal semantics from the start. This semantics needs to include concurrency and how it works. I can think of half a dozen languages (Ada, C++, Java,
Third, make sure that the notation either explicitly uses files, or is completely independent of files. Probably the most annoying aspect of Java is that the package structure implicitly depends on a directory hierarchy (but some OS's don't have hierarchic file systemss) but doesn't deal with package structure in anything like the way hierarchic file systems do (what does 'import java.*.event' mean?)
Fourth, write a lot of sample programs, and test each with experienced programmers, saying 'what does this program do?' If the programmer doesn't get it approximately right, rethink the syntax.
Re:... and for God's sake get it right this time! (Score:2)
Do you know of any language or system that got this right?
Re:... and for God's sake get it right this time! (Score:2)
Well, VHDL, the hardware description language, has a formal semantics defined (in a book written by some friends of mine.) It also addresses concurrently explicitly in the standard, which is nice.
It's far from a useful general purpose programming language though.
Re:... and for God's sake get it right this time! (Score:2)
Re:... and for God's sake get it right this time! (Score:3, Interesting)
Re:... and for God's sake get it right this time! (Score:3, Insightful)
I recall Inmos stating "We want to make occam the FORTRAN of parallel processing." My reply was "You have." (ref. to lack of data structuring other than fixed sized arrays).
It wasn't until the hacked up occam 2.5 that it got some better programming language features.
Maybe Oz (Score:3, Informative)
Get the book [ucl.ac.be] free while you can; it's gotten high praise, a real treat for getting a wide view of different styles of computer programming. It compares favorably with SICS [amazon.com].
Re:Maybe Oz (Score:2)
Re: ... and for God's sake get it right this time! (Score:2)
> First thing: read Tony Hoare's critique of Ada. (CAR Hoare, Hints on Programming Language Design, 1978). All the current common languages are way too complex.
I thought it was in his 1981 speech, but either way notice that he commented on the language before it was complete (1983). However, I understand that the language was simplified somewhat between the time of his remarks and the time it came out of the oven, possibly as a direct result of his comments.
> This semantics needs to include concur
Re: ... and for God's sake get it right this time! (Score:3, Insightful)
The cite could be wrong -- I was scrounging quickly on the net. In fact, thinking about it, it's almost certainly wrong, because the paper came out when I was in grad school, and I started in '83.
Concurrency as in multitasking/multithreading? It's really easy in Ada, and it works quite well everywhere I've used it.
The problem isn't that it works badly, necessarily -- it's that it doesn't work the same way everywhere. At least as of Ada 83, the semantics of a
Re:... and for God's sake get it right this time! (Score:2)
1978? Ada wasn't standardised until 1983, though it was essentially complete by 1980. Hoare has had much nicer things to say since then.
Second, make sure the language has a formal semantics from the start. This semantics needs to include concurrency and how it works. I can think of half a dozen languages (Ada, C++, Java,
Re:... and for God's sake get it right this time! (Score:2)
Ada 95
Re:... and for God's sake get it right this time! (Score:3, Informative)
According to the compiler, it means a syntax error:
Re:... and for God's sake get it right this time! (Score:2)
Re:... and for God's sake get it right this time! (Score:2)
Close.
It represents a namespace to the compiler.
To the JVM, it represents a path to a particular class (or set of classes if you use the * notation). That path can be found in either the directories or the
why doesn't it do the same thing as ls foo/*/CVS
Isn't it the shell that does the expansion of the * (as opposed to ls)?
An import statement serves the purpose of declaring a namespace,
Re:... and for God's sake get it right this time! (Score:3, Insightful)
First, unfortunately, the package name does not represent just a name space to the compiler. javac as distributed by Sun, and every other implementation of Java I'm aware of (with the exception of the late lamented Visual Age for Java), requires the package naming structure to correspond 1-1 with a path tree structure.
You're misunderstanding the namespace notion a bit though: If I import java.util.Date, I'm not adding a namespace, I'm adding a name to my curre
Re:... and for God's sake get it right this time! (Score:2)
Re: veiws of a heretic (Score:2)
I kinda was hoping for something that wasn't as much of a pain in the ass as the rest of my life.
Re:... and for God's sake get it right this time! (Score:3, Insightful)
But, as someone or other undoubtedly said, quis custodiet ipsos databases? Someone has to write the damned things.
(Plus, there are a lot of things other than databases which need concurrency control, eg, an operating system kernel.)
Lisp (Score:2)
Re:Lisp (Score:2)
Since my company will *never* standardize on Lisp, it looks like we are going to standardize on Python, which isn't as powerful but is certainly more readeable for the
Give me every feature and make it fast. (Score:3, Insightful)
All these features have uses. There is always 5 cases for every single one where it's *much* easier to implement while using it.
Now abandon backwards compatibility and think up reasonable syntax. I don't know if it's possible to do an elegant language with all that, but if it is, I think we should have one. Every other language lacks some of the above features. I would like to see a langauge that really had everything.
Re:Give me every feature and make it fast. (Score:2)
It's not. Seriously. The closest thing to what you mentioned is C++, with some external libraries added for things like garbage collection.
A lot of your features collide. Having pointers and references makes it very difficult for the GC, and you can typically get into situations whe
Re:Give me every feature and make it fast. (Score:2)
Eiffel has all these feature with a nice syntax.
Eiffle do not have interface, but I don't see the difference between interfaces and abstract virtual base classes, when you have multiple inheritence.
Apparently, it is quite possible to have both GC and manual memory management: C# have it..
I like the idea of having GC by default (secure and easy to use) and still being able to manage memory "by hand" if there is a need.
Oh and I disagree that C++ *ha
Re:Give me every feature and make it fast. (Score:2)
!!like_hell_it_is
j/k
Re:Give me every feature and make it fast. (Score:2)
Yes to create a new object you use !! in Eiffel, it could be better true but still its syntax is far more elegant than C++, no?
I think that the best syntax to create an object is in Limbo (a script language in Plan9), you can say:
var_name: type_name; as in Pascal but you can also say other_var
Nice, no? This way when you change the type of var_name, you change also the
i've leart one thing ... (Score:3, Insightful)
that there is no "one language", there are multiple languages for multiple purposes, and the boundaries between languages are often blurred (just like everything else in life).
in addition to making your case (as stated by other poster), also
- what particular context/problem are you trying to solve;
- what are the specific characteristics and issues in that context/problem;
- how does your new language provide a better solution than other solutions;
- how does your new language stand up on theoretical issues (looking at the science of design of languages themselves)
if there's an existing well used language that is "close" to what you want, and such language has quite a following/momentum, then can you try to adapt/evolve it rather than creating a dud language that goes nowhere (a waste of time for everyone). do you really need a new language, or do you need to help educate on the use of an existing language (i.e. are you more about process than product).
Re:i've leart one thing ... (Score:2)
Damn, where are my mod points when I need them?
This post has hit the mark exactly. You can't create a good solution until you understand the problem, and different problems require different solutions.
My Wish List.... (Score:2)
- Generic design patterns that you could "plug" into via some sort of object and run from there.
(Sorta future Java/.Net, but more ambitious).
- *Simple* GUI classes included to get a GUI up and running (old VB). Facade pattern to get under the hood and hit native libraries if need be. (SWT, perhaps, but that's a stretch)
- A GUI library that reads XML definitions either at design/run time as wel
patterns not really possible in language (Score:2)
For what it's worth, either you can trivially do that now (like Singleton), or it's effectively impossible (like MVC). IIRC, "the" Patterns book explicitly disclaims the possibility of this, because they're just too high-level.
As a concrete for-instance, Python has first class support for "Iterators". But they are very specific iterators, and there's a discussion going on right now in the newsgroup about a sligh [google.com]
*My* Wish List.... (Score:2)
A language with sound underlying models, with simple implementation, which helps me do what I want rather than telling me what I want to do, and which has no dependence on today's buzzwords.
I think I'd hate your language. :-)
Just one language? (Score:3, Funny)
Wish List (Score:3, Interesting)
Give me both OO abstraction and powerful bit-twiddling capabilities. If I want a 29 bit variable type, dammit I want a 29 bit variable type. Give it to me and let me do all kinds of low level stuff like shift three bits and mask it and treat the first 3 bytes as a unit. Then let me encapsilate that in an object oriented lock box.
The language MUST have these things built in: associate arrays, regular expressions, iterators, introspection, "here" documents, both static and dynamicly sized arrays.
The language should be database savy. This means implicit SQL cursors (like in SQLJ or PL/SQL) so that I can say something like
Re:Wish List (Score:2, Insightful)
Re:Wish List (Score:2)
As to the standard libararies, I went back and forth on this. At some point you have to accept that if the language designer makes a good core language, that the community will arrive and handle ever expanding libraries. You can't "design" the community, so I left that off. Obviously it's desirable.
If OCaml would be your ideal language but for limited stan
Re:Wish List (Score:2)
Your description (and your example) look as though you like Perl, but find it mildly lacking in a few areas. Am I close?
Re:Wish List (Score:2)
I would criticize this duo in several ways: why are they such different syntax? Also, in the big picture, when you compare to C and Pascal, Java is slow. I know there are native compilers like gcj, but they are an afterthought.
So long as it compiles in to object code. (Score:3, Insightful)
I've thought about this a bunch over the last few years. IBM has the PL series of languages. PL/S and PL/X were deamed "strategic" and as such they were never standardized outside IBM, yet IBM continued and still continues to use them for different tasks. There are reams of code written in them and REXX, another IBMism. Lucent has a dozen languages for their own use. Modula-3 started as a DEC thing before is was kind of opened to the world (damn beautiful language I might add, if only more people used it and DECpaq-Hewlet relicensed the gcc front-end code so we could integrate it..) MS has their BASICs and now C#. And numerous other companies have found it either advantageous or some engineer got it in his head that it was a good idea for them to produce their own custom langauge and that they could produce apps in it faster than by using off the shelf components. To some degree I think it's true, you'd be surprised at some of the REXX that holds the world together. I've kind of thought that it was time for an OpenSource language of sorts, there is perl, python, ruby and others but something that can be compiled in to real high performance object code and something that helps us solve the problems we run in to.
I'll tell you what I think would be killer, in my rambling sort of way. Syntax is key just because people are picky about it, something java like would be great. Make it a front-end to gcc, this gives it a sense of credibility and support and a great optimizer and platform support. Build it so it can easily link with C code. Give it bounds checking and type checking. I thinking it will be very C like for the most part; have that light weight feel to it where you can see the opcodes that the compiler is going to produce as you write in it. Give it objects and classes, but make it light weight on the syntax, building new classes in java requires a new file, doing it in C++ can be feel like lifting the titanic some times because it's proper to add headers as well as implementations. Then with the standard class library, it needs some fundamental object classes like strings (I can't believe how long it was for a standard C++ string class to exist, i've use about a dozen different ones prior...) and sockets (make OpenSSL as close to a boolean flag as you reasonably can...) probably some others I'm not thinking of at the moment. Keep them lean and mean like they are in C but beef up the areas of weekness. Some sort of regular expression engine should be available also.
For example, strcpy shouldn't exist or there should be some kind of type checking to verify that the inputs are indeed strings and it allocates memory. memcpy is missing several arguments, notably the source and destination sizes. I can probably list dozens of C and C++ problems are aren't language issues so much as library issues that have realworld impact and cause real problems. Now the first class objects that are passed in to strcpy or memcpy (whatever they get called in this new language) could have the missing pieces of information or the API can be built to support it. Basically, I'm suggesting that we add the few instructions it takes to do bounds checking, it's simple code to add to a c compiler. Let's get rid of buffer overflows as much as we reasonably can with the under lying language. Now if you want to do tricky shit with pointers then so be it but if you use standard language constructs (functions will have in and in-out parameters like the C++ & qualifier.) then you should be pretty safe from buffer overflows. With good type checking and such w
No Need I Just Released What You Need. (Score:2, Funny)
My PL pains (Score:4, Insightful)
- lack of sum types. Languages have long offered conjunctions (structs in C, tuples in python). Disjunctions are equally useful. (With it, a function could return one of two possible types. The overuse of 'null' as "the other pointer" in C/C++/Java accounts for a tiny corner of the possibilities here.)
- lack of higher-order, nested functions. You can do so so much with functions once they are first-class in your language. All this stuff about iterators over containers in Java and "I want SQL built into my language so I can say for each employee in query do" is subsumed by map/fold operations and higher order functions, for starters.
- lack of safety. Man, I sure hate tracking down memory corruption bugs, and I sure hate it when there's an exploitable security hole in my or someone else's code because of them.
I already have languages with these features and more, so I don't need recommendations. But if your new sparkling language doesn't have these features... then what are you doing?!?
Re:My PL pains (Score:2)
Sum types also take care of the crap where a numeric type is used to idicate some value or -1 to indicate an absence of value and things like that. Something like x
Holy War (Score:2, Interesting)
It also seems that committee-designed languages usually fail because they compromise so much that they don't "sing" to any one group. You need a fan-base to get a language to take
Enough already? (Score:3, Interesting)
Man. Anybody else tired of keeping up?
Keeping up just sounds hard -- it isn't really (Score:3, Interesting)
I think the problem today is that everything seems to be moving on much faster than it actually is.
Quite a few years ago, I learned to program in C and x86 assembler. They were useful at the time, and I learned a lot about structured programming and such while using them.
Several years later, I learned C++, and encountered OO for the first time.
At university, I discovered things like Java and ML. ML was new and interesting, but at the time Java was just underpo
Re:Keeping up just sounds hard -- it isn't really (Score:2)
It's not just personally catching up that's the problem. New languages may be easy to learn, but they each still take some time to master. You can write Fortran in any language, and a lot of mistakes (it's easy to understand the concept of OO, it's quite another skill to come up with a appropriate and scalable object model for a complex new project) are made alo
Could be hard... (Score:4, Insightful)
It's sad, but I believe this will fail horribly. The past has shown that "committee" languages don't succeed (or at least only in some niches, like Ada).
In my experience systems (like PL, applications or even OS's) are best when designed by just a small group of people: not too few and too many (I guess four to six people is a good value). Too few (just one or two) tends to include just the exclusive view of thing from the designer, while too many just makes a great mess since it's hard for a group of people to settle on one point.
Another thing I learned while reading some of the stuff about C and its history on dmr [bell-labs.com]'s homepage is that languages which are defined first and implemented later often hold some promises in the form of "in theory this should be very elegant and nice, but it turns out to be annoying or very, very hard to implement".
dmr also said one of the reasons C succeeded was because it was created to fit a need, not to make a point or as demonstration. So if there is need for some features then this project might succeed, but I don't see any striking needs any more, there is already a PL for almost every problem out there (and interestingly nearly every PL out there is very strong/elegant in solving certain problems but fails horribly in others).
But nonetheless I wish the people participating in this project all the best, if they would come up with an interesting, useful and beautiful language that would make an improvement to the PL world this would be a very cool thing :-)
Re:Could be hard... (Score:3, Informative)
On top of this the project is progressing rapidly. It may not ever take off, but it has been fun doing it and thats worth while to me.
Re:Could be hard... (Score:2)
I am one of the people deeply involved in this project and so far there are two people directly involved with the design. There is a third handling administration and a few others working on documention. The community comments and provides suggestions. Thats hardly a big commitee.
Then you are soon to aproach the number of people I consider the healthiest for such a project, which is Good Thing(tm). Make sure not to exceed about six people directly involved with the design ;-)
On top of this the projec
My thoughts (Score:2, Interesting)
1) No convenient way to call methods by name. Takes quite a few try-catch constructs, etc. What about this snippet:
Object x =
call someMethod(a, b, c, d) at x;
or something. Ok, it may throw any necessary exceptions.
2) No standard way to access DBs. JDBC is a pain. It works, but with lots of workarounds for different dbs. One must implement class loaders, selecting the driver at runtime is ter
Re:My thoughts (Score:2)
Re:Pragmatic License (Score:3, Funny)
Re:What about a graphical language (Score:5, Interesting)
The basic argument is this: are the complexities of notation (language, whatever) essential or accidental aspects of the difficulties in programming? Brooks' argument is that the notation is an accidental issue -- that you can't gain, say, an order of magnitude improvement by chaning notation alone.
This is clearly not 100 percent true 100 percent of the time -- "drawing" a GUI with something like Powerbuilder, Eclipse, or JBuilder is clearly a lot more effective than coding it, even with EMACS. On the other hand, in real industrial development, actual coding is only about 15 percent of the total time and cost invested -- so no matter how wonderful the language is, it can't possibly account for more than about a 15 percent improvement.
Re:What about a graphical language (Score:2)
Is it? I've started coding my GUIs largely by hand and I can make them sing and dance in ways that users love, and forms-based builders can't even think about approaching. It's only more effective for highly static GUI panels, and the reality is nearly nothing should be static, it should be getting generated from external, easy-manipulable data sources. The forms builders
Re:What about a graphical language (Score:2)
But most UIs have great chunks that are pretty static.
Re:What about a graphical language (Score:2, Informative)
Sort of like how things are added to C like dynamically typed object oriented programming (GObject), namespaces (by prefixing functions with a namespace), generic lists, hash tables, UTF-8 string manipulation, etc (GLib), arbitrary precision math (GMP). They are added not by syntax, which may make things somewhat simpler, but not significantly so.
Models and implementations (Score:2)
I agree entirely with you (and Brooks) that syntax is just a means to an end. What's important is the underlying models behind that syntax. Today's models -- be they procedural, OO, functional or whatever -- lend themselves pretty well to textual representation. You could perhaps advance things a little with graphical representations, but I suspect the place for that sort of thing is in better development tools, rather than the definition of the language/environment itself.
The interesting question about g
Re:What about a graphical language (Score:2)
Re:Not interpreted! Make it compile! (Score:2)
I think it would be really cool to have a Ruby compiler. But I suppose it would end up like the gcj compiler, and not give you much of a benefit because of the runtime overhead.
Re:Not interpreted! Make it compile! (Score:2)
Re:Not interpreted! Make it compile! (Score:2)
We are going to try to supply multiple backends, one or more of which will compile to native code. We already have suggestions in place to target C-- and GCC as backends.
Re:what is a pragmatic language? (Score:5, Insightful)
No, that just makes is clumsy, quirky, difficult to read and difficult to write.
A "pragmatic" language would be one with little or no "red tape", with sensible defaults, clean syntax, easily optimised, portable, easily extended, consistent, orthogonal and easy to learn. It should be difficult to "shoot yourself in the foot."
In my mind, PERL has its place : scripting. Serious application development should be done is somehting more "pragmatic".
Re:what is a pragmatic language? (Score:3, Interesting)
I started coding when I was 8 years old.
My day job involves a lot of shell scripting, Makefiles and the very odd bit of Java and C.
For pleasure, in my own time, code in C.
I have found C to be the most pragmatic language I've tried so far, closely followed by Turbo Pascal (I can't comment on Delphi, I stopped using Wind
Re:How about procedural XML? (Score:2)
I take it you've never suffered writing and debugging a complex XSLT set-up on a deadline, then? ;-)
Mark-up languages should be used for mark-up. Programming languages should be used for programming. Many people have suggested swapping these over; many more have tried and found it doesn't work.
Re:Haskell or Lisp (Score:3, Funny)
A powerful library, a clear syntax, flexible underlying models and a wide user base?
Re:Haskell or Lisp (Score:2)
Re:Make it TYPEable (Score:3, Insightful)
Ultimately, while being easy to write does confer a small advantage, being easy to read is much more significant. As the oft-quoted motto reminds us, code is only written once, whereas it's likely to be read many times. A vanishingly small amount of a developer's time is spent typing. Most is spent in design, testing, documenting and such rather than programming, and even of what I'd call programming, only a tiny fraction of the time is spent pressing keys on a keyboard.