in reply to Re: Re: Fast string hash in portable perl?
in thread Fast string hash in portable perl?

Thanks tachyon, that's great.

I did compile the original C code as a C program and use it for comparisons with the perl version when I was working on this, though that was some time ago. The C was obviously much faster.

Unfortunately, despite my best efforts, I still live in the "nothing I must compile myself" perl world.

I do have a version of 5.8.1 that I compiled with Borland that works, but every time I've tried to use modules that require compilation in conjunction with that build, I spend hours or days trying to hack the build into working. I'm ashamed to say that I gave up and went back to being a AS dependant.

Thanks to the number of kind folks around that make binary versions of those modules that AS haven't gotten around to yet, I rarely encounter a module that I cannot install and use in short order, given the appropriate googling.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
Hooray!

  • Comment on Re: Re: Re: Fast string hash in portable perl?

Replies are listed 'Best First'.
Re: Re: Re: Re: Fast string hash in portable perl?
by tachyon (Chancellor) on Dec 20, 2003 at 07:04 UTC

    To compile under AS Perl all you really need is M$ VCC of some variety and A Practical Guide to Compiling C based Modules under ActiveState using Microsoft C++. You just emulate the AS build environment (aka copy all the missing M$ headers etc into Perl/lib/CORE), fixup the environment by running VSVARS32.BAT (Last seen in C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools but you know M$ ;-), occasionally have to copy a DLL into System32 for reasons that totally elude me (and I have never bothered to work out ;-) and nmake and CL.EXE will happily compile all sorts of 'basic' XS stuff ie any vanilla C generally works.

    Now I know VCC costs money but it does make Perling on Win32 using Active State Perl a helluva lot easier. You only need an old copy - but you can pick it up new on ebay for between $50-100 US. There were 3 X Visual C++.NET sealed in box for 50 quid buy now a few minutes ago.

    cheers

    tachyon

      <sarcasm>Oh, is that all?</sarcasm>

      -sauoq
      "My two cents aren't worth a dime.";