Re: Would like a preprocessor.
From: Liz (Liz_at_nospam.invalid)
Date: 08/30/04
- Next message: Jacob: "Re: Would like a preprocessor."
- Previous message: apple: "Re: chating in java applet"
- In reply to: Paul Lutus: "Re: Would like a preprocessor."
- Next in thread: Jacob: "Re: Would like a preprocessor."
- Reply: Jacob: "Re: Would like a preprocessor."
- Reply: Paul Lutus: "Re: Would like a preprocessor."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 30 Aug 2004 07:19:11 GMT
"Paul Lutus" <nospam@nosite.zzz> wrote in message
news:10j5gfd8pbi3l6b@corp.supernews.com...
> Glen wrote:
>
> >
> > OK--- I understand the compiler can inline too. I am interested in
> > other features too and want to see what is out there.
> >
> > I have a method that is over 400 lines long. Huge switch statements.
> > The centerpiece is a data structor called a bitboard that represents a
> > chess position in 96 bytes.
> >
> > I've reviewed the JVM op codes and taken that into account.
> >
> > This will probably blown your mind but I would kill for a GOTO
> > statement.
>
> I hate to tell you this, but Java actually does have a GOTO (not under
that
> name). It's a special form of "break" that can go to a defined label. See
> below.
>
> The reason I hate to tell you this is because it is always a bad
programming
> idea.
That guy that invented Pascal, Nick Worth(sp), would disagree. He points to
the situation where you have nested levels of 'if' statements, say 10
levels,
and you have to 'get out' because of an error. Without the 'goto' you would
have
to handle this by having more or more complicated 'else' statements. The
'break label' handles this case nicely.
>
> > Actually if anyone knows of any way to add a goto please
> > tell me. Goto would help me reduce overall code size without using
> > method calls.
>
> Come on! If you are willing to consider this desperate measure to increase
> execution speed, whay are you writing in Java in the first place?
>
> >
> > I considered writing this class in JASMINE the bytecode assembler but
> > decided to try straight java first. After working on this a few days
> > the thing I want most is a goto statement :P
>
> So why not read about Java?
>
> http://java.sun.com/docs/books/tutorial/java/nutsandbolts/branch.html
>
> --
> Paul Lutus
> http://www.arachnoid.com
>
- Next message: Jacob: "Re: Would like a preprocessor."
- Previous message: apple: "Re: chating in java applet"
- In reply to: Paul Lutus: "Re: Would like a preprocessor."
- Next in thread: Jacob: "Re: Would like a preprocessor."
- Reply: Jacob: "Re: Would like a preprocessor."
- Reply: Paul Lutus: "Re: Would like a preprocessor."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|