Re: declare 64 bit integers?



On Sep 27, 3:42 pm, "Alex Mizrahi" <udode...@xxxxxxxxxxxxxxxxxxxxx>
wrote:
j> I'm writing a chess program using rotate bitboards (64 bit integers)
j> (http://en.wikipedia.org/wiki/Bitboard) . Anyways, I'm competing
j> against some people writing the program in Java and C++, and I want to
j> top them when I get mine all compiled. So I know you can declare
j> fixnums (28-bit), but is there any way to declare 64-bit integers to
j> get compiled LISP running super fast?

i'm afraid it won't run "super fast" (if you mean using directly machine
registers/CPU instructions) on any available implementation.
you can pick one -- for example, SBCL -- and ask developers if it's possible
to extend compiler to suport this stuff.

The original poster didn't specify what the target machine was
(although it
sounds like he's using a 32-bit machine), but for the record, SBCL on
x86-64
can do unboxed operations on 64-bit integers just like Java or C++.

-Nathan


.



Relevant Pages

  • Re: Cpp Considered Harmful
    ... >> programming language, the compiler, the IDE, the libraries, etc. ... source file, the implementation shall locate the declaration, (and ... to name one of the defining source files on the command line that initiates ... The counterpart to this in Java is accomplished using the following: ...
    (comp.lang.cpp)
  • Re: wie Array für statische Methoden
    ... > auf gar keinen Fall Java empfehlen;) ... Ich hab mal mit virtuellen Methoden auf einem Microkontroller experimentiert und bin zu dem Schluss gekommen: ... > Es ist ja gerade der Vorteil bei Java einen Compiler ... > Dinge zu optimieren, ...
    (de.comp.lang.java)
  • Re: What is the fastest method of parsing scheme?
    ... These issues can be eliminated by the use of custom memory allocators ... Any other ideas why Scheme would be faster than C++ and Java for heap ... For example, in my compiler, the procedure ) ...
    (comp.lang.scheme)
  • Re: A 21st Century Apple II?
    ... Java 6 -Xms64m 24.00s ... Which is actually 9.6% better than the C++ Intel compiler. ... I'm sure in some cases the GNU compiler produces better results. ...
    (comp.sys.apple2)
  • Re: C to Java Byte Code
    ... > Java) cannot do, and you cannot write a compliant Java engine that can ... "I think you would agree with me that a C compiler that directly ... compliant ANSI C compiler are described in MPC's product description." ... these "minor differences" include this requirement: ...
    (comp.programming)