Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Programming IT Technology

Jackpot - James Gosling's Latest Project 208

Pete Bevin writes "Artima has a fine interview with James Gosling, creator of Java, about his latest project. It's called Jackpot, and it treats the parse tree as the program. This makes refactoring much, much more intuitive. The article has some good insights into code visualization, technical writing, and making your programs more understandable."
This discussion has been archived. No new comments can be posted.

Jackpot - James Gosling's Latest Project

Comments Filter:
  • So you can write what is kind of like a reverse grammar, where you associate structural patterns with what you can think of almost as TeX descriptions of how to represent the patterns graphically. What you see on the screen has been generated from this pattern matching. So we can, on a user chosen basis, turn various program structures into all kinds of visual representations.

    Why, methinks he's reinvented the Matrix. :)
  • by Anonymous Coward on Friday June 13, 2003 @06:33PM (#6195714)
    Always document your code so that a mentally retarded 6 year old can understand what you mean.

    I learned that when doing math proofs. It it wasn't written so retarded 6 year old can understand it, the TA took off marks.
  • by Anonymous Coward on Friday June 13, 2003 @06:40PM (#6195760)
    "Complexity is in many ways just evil. Complexity makes things harder to understand, harder to build, harder to debug, harder to evolve, harder to just about everything."

    So says the creator of Java. I wonder if he's bothered to browse the API lately?
  • Aw, crap. (Score:3, Funny)

    by Qweezle ( 681365 ) on Friday June 13, 2003 @06:41PM (#6195764) Journal
    Does this mean it will be any easier for me to learn Java? Probably not. Will I ever learn Java? Of course. Let's be honest, Qweez No. Probably not.
  • by Anonymous Coward on Friday June 13, 2003 @06:42PM (#6195767)
    It is a SMTP honeypot used to trap spammers. This is going to cause problems between the two groups. How will they be able to tell which one is which. It will be like when no one could tell the diff between the two Phoenixes.
  • by skepton ( 681359 ) on Friday June 13, 2003 @06:53PM (#6195855) Journal
    Hey this is my first post. I have angry half-baked opinions tho. I find that commenting for a retarded 6 year old makes code unreadable. Have you ever tried to find anything in the apache tomcat sourcecode using only notepad? Why is there a comment on "getInfo()" that says "Returns the info."??? Some classes I was trying to understand I just went through and deleted every comment so I could read the damn thing. Turns out the class was only like 12 lines of code. It was like shaving a cat.
  • by MagikSlinger ( 259969 ) on Friday June 13, 2003 @06:56PM (#6195881) Homepage Journal
    Oh yeah. In my ANSI Common Lisp book. Something about the real power of Lisp being that everything, including the program itself is just a tree structure.

    As a Slashdot thread on a programming language progresses, the probability of someone claiming that "Lisp already does that" approaches unity.

  • by frovingslosh ( 582462 ) on Friday June 13, 2003 @07:01PM (#6195921)
    OK, I read the article. What the hell are they talking about?
  • Just Great (Score:4, Funny)

    by sammyo ( 166904 ) on Friday June 13, 2003 @07:15PM (#6196027) Journal
    When you googled for something *java* it was anoying enough to deal with stupid $tarbuck$
    links, with 'Jackpot' an unlucky click and it might take 20 min to undo the popdowns, offers for the *best internet casino*... and oh my gawd, add to the wrong mail list!

    (I was going to add an example link but I wouldn't do that to my worst enemy)
  • by JamesOfTheDesert ( 188356 ) on Friday June 13, 2003 @07:30PM (#6196104) Journal
    We kill what we fear, and we fear what we don't understand....

    I don't understand you. Does that mean I have to kill you?

  • Appropriate (Score:3, Funny)

    by Markus Registrada ( 642224 ) on Friday June 13, 2003 @07:35PM (#6196143)
    Alex Stepanov famously described Java [stlport.org] as "a money-oriented programming language". I guess that makes the name "Jackpot" an appropriate name. I suppose the next projects will be "Jingle" and "Jyp".
  • by Anonymous Coward on Friday June 13, 2003 @09:41PM (#6196754)
    It's all remiscent of my favorite programming language: intent. Unlike other programming languages which are based on strict syntax and grammatical rules, intent goes beyond what you actually type and gets what you mean, or rather, what you intend.

    Here is an example of the full source code of a compiler (filename "intend") for the intent language, written, of course in the intent language:

    write compiler for teh intent languge

    Note that despite the lack of capitalization, punctuation and proper English spelling, this will compile under the intent standard, and will produce object code which is a working intent compiler:

    [ac@/. #] intend "write compiler for teh intent languge" > intend2
    [ac@/. #] diff intend intend2
    [ac@/. #]

    Refactoring code is trivially easy, and in fact a refactorizer written in intent looks like:

    refactor the code

    This refactorizer works on all languages, just as you intend, of course. Refactoring Java is as easy as:

    [ac@/. #] intend "refactor the code" > refactor
    [ac@/. #] refactor *.java

    If simple refactoring isn't enough, you can get all of the features of Gosling's Jackpot with the code:

    write a program liek that one jackpot thing that had the slashdot storey that one time.

There are two ways to write error-free programs; only the third one works.

Working...