Recent

Author Topic: FastStrings  (Read 12254 times)

Zorba

  • Jr. Member
  • **
  • Posts: 77
FastStrings
« on: July 30, 2006, 10:15:51 am »

matthijs

  • Hero Member
  • *****
  • Posts: 537
RE: FastStrings
« Reply #1 on: July 30, 2006, 11:51:46 am »
Before you do, contact the maker. It is not freeware or Open Source!
What's in a sig? Would my posting look less if it didnot have a sig? (Free after William S.) :)

:( Why cannot I upload my own Avatar? :(

Zorba

  • Jr. Member
  • **
  • Posts: 77
RE: FastStrings
« Reply #2 on: July 30, 2006, 07:47:29 pm »
Thank you matthijs for pointing that out but from the site:

Quote
In short, postcard ware means that you can use this source code in your own commercial applications. You cannot copy or modify the source code unless you send me a copy so that I may review it for possible inclusion. You must also obtain permission from me before using this library (Just send my children a postcard)


and from the file:
Quote
//No copying, alteration, or use is permitted without

//prior permission from myself.


Confusing, but you are correct.

I don't know how to port it. That's why I asked.

Any guides for how to port something, if it was already made for Kylix? Generally speaking.

Zorba

  • Jr. Member
  • **
  • Posts: 77
RE: FastStrings
« Reply #3 on: July 30, 2006, 07:54:28 pm »
I sent the author an email asking if it's ok....Now I await.

Legolas

  • Full Member
  • ***
  • Posts: 117
    • http://itaprogaming.free.fr
RE: FastStrings
« Reply #4 on: July 30, 2006, 07:57:44 pm »
IIRC, FastString uses a lot of asm optimized routines, so I think it is very hard to make it lazarus-compliant :(

Zorba

  • Jr. Member
  • **
  • Posts: 77
RE: FastStrings
« Reply #5 on: July 30, 2006, 08:28:59 pm »
Couldn't be made to work on Intel arch. only?

There are no components, just string routines that I would like to use on a program that will hopefully work on both Linux and Win32 systems on Intel arch.

Anyhow I fear that it's more work than I thought originally it would be.

Any optimized string routines for Lazarus that you know of?

Zorba

  • Jr. Member
  • **
  • Posts: 77
RE: FastStrings
« Reply #6 on: July 31, 2006, 12:45:11 pm »
OK I received an email stating it's ok to try and make it work.
Quote
Hi

I don't mind at all.  However, you might want to consider using the StringReplace written by the Fast Code project instead as it is slightly faster.

Pete


Since both projects contain asm language, it's safe to say this will not work on every architecture that FreePascal works on.

So this would be valid only for intel architecture/processors.

I still think it's worth it since the optimizations would enhance projects for win/linux and that would constitute a large number of projects.

Zorba

  • Jr. Member
  • **
  • Posts: 77
FastStrings
« Reply #7 on: August 11, 2006, 11:55:28 am »
Can someone explain the steps needed for me to try and do this?

At least point me to the direction to go, tutorials or howto articles on this sort of thing :lol:

Thank you in advance.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
FastStrings
« Reply #8 on: August 11, 2006, 12:55:40 pm »
* download the zip
* extract the sourcefiles into a test dir
* create a console project with the following code:
Code: [Select]

program testfaststring;

uses FastStringFuncs, FastStrings;

begin
end.


Compile the program with -RIntel -Sd.

Fix compilation errors.

Add tests for the functions.
Compile and run the test program to see, if the correct results are shown.

Zorba

  • Jr. Member
  • **
  • Posts: 77
FastStrings
« Reply #9 on: August 15, 2006, 11:44:45 pm »
Thanks Vincent for the directions.

Arek

  • Newbie
  • Posts: 1
Re: FastStrings
« Reply #10 on: August 06, 2009, 11:51:05 am »
Did somebody success in porting FastStrings to FreePascal? I am legitimate user of it and I wish even to sponsor that port. Only i386 / amd64 port is enough.