Search found 249 matches

by frisian
Dec 16, 2016 10:16
Forum: General
Topic: new header file GMP
Replies: 36
Views: 5822

Re: new header file GMP

However, when I tried to calculate "70,000,005,000,000,007", this program was terminated abnormally when 15 million times repeated the loop . If any corresponding method is thought about, please teach me it. Toke me some time to realize that there are two division routines one for integer...
by frisian
Dec 11, 2016 20:18
Forum: General
Topic: new header file GMP
Replies: 36
Views: 5822

Re: new header file GMP

I don't know if dodicat is working on his program, but I post my version of his program with some alterations. I still had the one I had done some time ago so it wasn't that hard. I have not commenting every things. ' 1 December 2016 - orinal by dodicat ' 11 December 2016 - frisian, added mpf_clear/...
by frisian
Dec 11, 2016 19:51
Forum: General
Topic: gmp 6.2.0 and mpfr 4.0.2
Replies: 22
Views: 3861

Re: gmp 6.1.1 and mpfr 3.1.5

@srvaldez Both links (GMP/MPRF) do not work, in both cases I get Invalid or Deleted File. The key you provided for file access was invalid. This is usually caused because the file is no longer stored on MediaFire. This occurs when the file is removed by the originating user or MediaFire. Still have ...
by frisian
Nov 30, 2016 22:00
Forum: General
Topic: new header file GMP
Replies: 36
Views: 5822

Re: new header file GMP

Dear frisian Dear dodicat I think that your programs (test_gmp.bas and dodicat's own stuff) show how to use GMP in FreeBasic plainly. I would like to translate your programs into Japanese and introduce them to Japanese people on my website. Please consent to this. Makoto WATANABE You have my consen...
by frisian
Oct 27, 2016 19:53
Forum: Community Discussion
Topic: Rosetta code: help needed
Replies: 3
Views: 690

Re: Rosetta code: help needed

I've put up a FreeBasic solution for the lexical analyzer task (feel free to improve it!) I added sleep because Windows and FBEdit(mod) closes the window when program ends making it impossible to see any error message(s). I also changed "\" on a few places with chr(92) . The code highligh...
by frisian
Sep 10, 2016 8:27
Forum: Projects
Topic: Soberango 0.00.0 (chess engine) realized.
Replies: 44
Views: 5886

Re: Soberango 0.00.0 (chess engine) realized.

I must read again the rest about macros. Edit: I could not find even the word macro in FB Help!! For searching under index you must use the hole keyword #macro in other words as it's used in the program listing. 'Halfmove: If espacios = 5 Then hmV = hmV * 10 + val(Char) End If Comments are removed ...
by frisian
Sep 08, 2016 18:03
Forum: Projects
Topic: Soberango 0.00.0 (chess engine) realized.
Replies: 44
Views: 5886

Re: Soberango 0.00.0 (chess engine) realized.

Luis Babboni First something I noticed seeing Soberango play. When Soberango’s Queen is take and his opponent manage to hold his Queen, the value that Soberango gives to it own moves is wrong. Soberango had already lost some pieces and it start rating it moves with + (positive) but it should be rati...
by frisian
Sep 07, 2016 21:13
Forum: Tips and Tricks
Topic: Powerbasic port to Freebasic MOD operator
Replies: 6
Views: 1600

Re: Powerbasic port to Freebasic MOD operator

For the function cmCeiling:
replace Function = cmFloor(x * -1) * -1 (need's two multi ply's)
with Function = -cmFloor( -x) (same result but faster).
by frisian
Sep 02, 2016 21:38
Forum: Projects
Topic: Soberango 0.00.0 (chess engine) realized.
Replies: 44
Views: 5886

Re: Soberango 0.00.0 (chess engine) realized.

Luis Babboni Yes I was taking about Soberango, Numpty\NoMega has a .exe file just under 300 Kb and can processes about 2 to 3 times more nodes then your program and it still has some problems. About debug. The debug information is only needed when you are looking for bugs or weird behavior, it does ...
by frisian
Sep 01, 2016 18:52
Forum: Projects
Topic: Soberango 0.00.0 (chess engine) realized.
Replies: 44
Views: 5886

Re: Soberango 0.00.0 (chess engine) realized.

Luis Thanks for the fast correction of the link. The listing is somewhat hard to follow since I don't speak Spanish. I had to swap my favorite editor FBEdit for CSED_FB because FBEdit does not display the international characters the right way. I have managed to compile your program and got working ...
by frisian
Sep 01, 2016 14:32
Forum: Projects
Topic: Soberango 0.00.0 (chess engine) realized.
Replies: 44
Views: 5886

Re: Soberango 0.00.0 (chess engine) realized.

Here the code. I resisted to public it cause the great mess it is.... but I feel like if I want to hide something that have no reason (other than the mess it is as I said) to be hide: https://dl.dropboxusercontent.com/s/69iu15354rkqu5t/Soberango%200071%20explained.docx?dl=0 (In any case I do not su...
by frisian
Feb 15, 2016 17:10
Forum: Projects
Topic: Welcome to my newest 2D Truecolor Game Lib in FB: AFlib III.
Replies: 44
Views: 10198

Re: Welcome to my newest 2D Truecolor Game Lib in FB: AFlib III.

@Adigun A. Polack Just some thoughts about speed. When possible avoid using floating point calculations, it's slower then integer calculations. Don't send variables to a subroutine that are not used in that subroutine. Don't test for conditions that never can occur. Don't store values if you can avo...
by frisian
Apr 30, 2015 18:26
Forum: General
Topic: faster MC for AndAlso and OrElse
Replies: 4
Views: 778

Re: faster MC for AndAlso and OrElse

Have you seen the already existing feature request: #246 Execution speed optimization of 'Andalso' and 'Orelse' ? You can add text inside 'discussion' (need to login)! Forgot to check the forum and the feature-requests. I had written my one timing program, to get timings. The timings with -exx diff...
by frisian
Apr 24, 2015 11:48
Forum: General
Topic: faster MC for AndAlso and OrElse
Replies: 4
Views: 778

faster MC for AndAlso and OrElse

For the Devs and all others who understand machine code. When testing a program where the “And” and “Or” statements where replaced by “AndAlso” and “OrElse” I discovered that the program was slower than before. A GCC compiled version on the other hand was much faster than it (GCC) predecessor. A loo...
by frisian
Feb 05, 2015 10:27
Forum: General
Topic: [SOLVED]Compiler throws "segmentation violatio" with -fpmode
Replies: 7
Views: 984

Re: Compiler throws "segmentation violation signal" with -fp

Tested the short version. FBC 0.21.0, FBC 0.22.0 and FBC 0.24.0 compile correct. FBC 0.90.0, FBC 1.00.0, FBC 1.01.0, FBC 0.25 (01-26-2013) and FBC 1.02.0 (01-17-2015) all abort with a "runtime error 12" when they are compiling. When replacing -fpmode fast with -fpmode precise or dropping -...

Go to advanced search