Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LargeInt/BigNum library ported to FB
#1
FreeBasic exceeds all reasonable expectations. :king: It rocks, it rules.

Compiles my QB large integer library painlessly into a FB/VB-callable DLL.
Running the elliptic curve factorization machine now feels like ridin' the ole trusted bike with a brand new engine.
My hat's off to you, people.

http://www.home.versatel.nl/vspickelen/L...wnload.htm
Reply
#2
Thank you very much for this really impressive software !

I have tried the FB version. I was able to compile the DLL with the MakeDLL.bat file, then I placed:

* LargeBin.bi in the INC subdirectory of the FB directory
* libLargeBin.dll.a in the LIB\WIN32 subdirectory
* LargeBin.dll in WINDOWS\SYSTEM

I was then able to run the demo programs, except Encoder and Decoder which, as you mention, do not work in FB.

I have some questions/remarks:

1) What is the use of the files LargeBin.bat and Copypack.bat in FB?

2) It seems simpler to place the input files in the same directory than the programs and to redirect the input (e.g. chineser.exe < chineser)

3) The program MakeDLL.bat invokes the demo program EllCrvFr.bas but this doesn't work since it is in another directory, and this is not necessary to compile the DLL.

4) Would you allow me to distribute an FB-limited version of your software along with my FB Math library ?

Thanks in advance
ean Debord
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip
Reply
#3
Really nice, just tried some examples.. btw, decode/encode don't work probably because string's are filled with binary data, what the runtime lib may not process right -- chr$(0) can't be part of FB strings.
Reply
#4
Thanx for pointing out the unclarities and Chr$(0) issue.

For the moment I added this remark to the FB-readme:

Quote:This a project in progress. All batchfiles except "MakeDLL.bat"
are designed to work with the QB-library versions only.

The FB adaptation at this stage is a rather hybrid matter, only just taken on its new guise.
I'll split up the .zip into distinct QB and FB packages later on.

Currently trying to convert the Encoder/Decoder-modules into byte-by-byte versions, to avoid using strings.

jdebord: great to have all these numerical recipes in 1 complete mathpack!

S.J.S.
Reply
#5
So, I will wait for a stable FB version.

Thanks for your interest in FBMath. The library is updated regularly. So, stay connected Tongue
ean Debord
----------------
Math library for FreeBasic:
http://www.unilim.fr/pages_perso/jean.de...fbmath.zip
Reply
#6
The Encoder/Decoder-modules are now FB compliant, and simpler to boot.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)