Re: Would like a preprocessor.
From: Paul Lutus (nospam_at_nosite.zzz)
Date: 08/30/04
- Next message: IchBin: "Re: WANTED: SOFTWARE INVENTIONS"
- Previous message: Paul Lutus: "Re: WANTED: SOFTWARE INVENTIONS"
- In reply to: Glen: "Re: Would like a preprocessor."
- Next in thread: Liz: "Re: Would like a preprocessor."
- Reply: Liz: "Re: Would like a preprocessor."
- Reply: Niels Dybdahl: "Re: Would like a preprocessor."
- Reply: Christopher Barber: "Re: Would like a preprocessor."
- Reply: Glen: "Re: Would like a preprocessor."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 29 Aug 2004 22:58:04 -0700
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.
> 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: IchBin: "Re: WANTED: SOFTWARE INVENTIONS"
- Previous message: Paul Lutus: "Re: WANTED: SOFTWARE INVENTIONS"
- In reply to: Glen: "Re: Would like a preprocessor."
- Next in thread: Liz: "Re: Would like a preprocessor."
- Reply: Liz: "Re: Would like a preprocessor."
- Reply: Niels Dybdahl: "Re: Would like a preprocessor."
- Reply: Christopher Barber: "Re: Would like a preprocessor."
- Reply: Glen: "Re: Would like a preprocessor."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|