Search found 5855 matches

by dodicat
Aug 20, 2019 13:07
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 2851

Re: StringArray Sort (case independent)

jj2007. With avira I scaned your .exe files while still compressed. I scanned them uncompressed. I checked them with nm.exe to see your functions, but you have them stripped of all symbols. Avira still quarantined MbsortText.exe when I dragged a text file on it. HEUR/APC was the name of the offender...
by dodicat
Aug 20, 2019 12:08
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 860

Re: Array Descriptor (split from Wiki Improvements)

I think that when using -Wc -O3, the functions in my snippet are inlined into the scope block and the byref parameter is assigned an address on the heap. Thus causing local confusion and the wrong answer.
(Only a guess)
by dodicat
Aug 19, 2019 23:48
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 64
Views: 860

Re: Array Descriptor (split from Wiki Improvements)

Kinda crude array pointer and dynamic tester. The dynamic tester fails with -O optimisations. #macro __Arrayptr__(array) Iif(Ubound(array,0)=1,@array(Lbound(array)), _ Iif(Ubound(array,0)=2,@array(Lbound(array,1),Lbound(array,2)), _ Iif(Ubound(array,0)=3,@array(Lbound(array,1),Lbound(array,2),Lbound...
by dodicat
Aug 19, 2019 21:55
Forum: General
Topic: Squares
Replies: 6839
Views: 393113

Re: Squares

In mathematics Analysis is the branch dealing with concepts. Maths is broken down into branches, calculus, co-ordinate geometry, numerical analyses . . . Most of it is used in an applied manner. A while back in the UK they decided to drop the times tables. Instead they decided to teach kids concepts...
by dodicat
Aug 19, 2019 9:27
Forum: Community Discussion
Topic: New array features
Replies: 127
Views: 6730

Re: New array features

OK array(sort, (l, NOCASE)) works. (Uppercase nocase) I get about .88 seconds for the sort and about .7 for the scan. My machine is obviously slower than yours. For the syntax_test_sort.bas I had to change all to uppercase. viz: '#COMPILER FREEBASIC '#compile console 32 exe /o "-pp -maxerr 10&q...
by dodicat
Aug 19, 2019 8:18
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 1926

Re: Physics question

Thanks for testing, basiccoder2 & badidea.
basiccoder2.
You can make a slightly bigger grave, line 221--Dim As Long roomforerror=10
You could make 15 or something.
But your tweak has been noted, and it would make sense in the real universe for a nice send off.
Thank you.
by dodicat
Aug 19, 2019 0:12
Forum: General
Topic: Squares
Replies: 6839
Views: 393113

Re: Squares

Hi Albert. I have been busy messing around with sorts. Dividing by zero is not allowed in maths because the answer is infinity. If you divide by nearly zero 1/.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 you get 100000000000000000000000000...
by dodicat
Aug 19, 2019 0:00
Forum: Community Discussion
Topic: New array features
Replies: 127
Views: 6730

Re: New array features

Hi JK. I hate doing this again, but sorry the errors are still there with your FB64 fbc.exe for the dodicat-sortorig I get error 42: Variable not declared, nocase in 'array(sort, (l, nocase)) '0.58' if I switch to my own sort sortup(L(),Lbound(L),Ubound(L)) I get .9 seconds for the sort and .7 secon...
by dodicat
Aug 18, 2019 21:13
Forum: Community Discussion
Topic: New array features
Replies: 127
Views: 6730

Re: New array features

I followed your instructions. With a fresh copy of fb 64 bit. 1) made your fbc_64.exe into fbc.exe 2) Added your two .bi files to the include folder. 3) Added the fbrt0.o, libfb.a and libfbmt.a Your array descriptor and insert deletete compiled OK. But my main interest (your syntax_test_sort.bas ) t...
by dodicat
Aug 18, 2019 18:16
Forum: Game Dev
Topic: Physics question
Replies: 62
Views: 1926

Re: Physics question

One of the astronauts has unfortunately passed away. But that is not the end of the story, he must now be laid to rest on a nearby asteroid. The resting place has been prepared. Type pt As Double x,y,z End Type Const pi=4*Atn(1) Dim Shared As Double systemconstant Sub createpolygon(p() As pt,n As Lo...
by dodicat
Aug 17, 2019 23:33
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 2851

Re: StringArray Sort (case independent)

Looks like nm.exe resides in mingw, which I have a 32 bit version on path.
I apologize for wasting time.
by dodicat
Aug 17, 2019 22:56
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 2851

Re: StringArray Sort (case independent)

Call this file this.bas

Code: Select all

 
'this.bas
sub getnames()
 shell "nm -g this.exe"
end sub

Print "starting"
getnames
sleep


Compile it with the -g flag (to keep the symbols)
Then run it.
do it with 32 bits then 64 bits.
by dodicat
Aug 17, 2019 21:53
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 2851

Re: StringArray Sort (case independent)

My question was not for JK. (Any .o or .a or .exe (with symbols) apply) 32 bit versus 64 bit has been discussed. This system is 64 bits, but the shell command nm only catches 32 bit files. (nm should show all the functions used inside library files) So, a function of the command shell in a 64 bit sy...
by dodicat
Aug 17, 2019 19:18
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 2851

Re: StringArray Sort (case independent)

Win 10 64 bits. Why does nm not work for 64 bit files It shows the table of .o files only e.g. nm libfb_64.a gives Microsoft Windows [Version 10.0.18362.295] (c) 2019 Microsoft Corporation. All rights reserved. (then the path) then . . . . . . nm: array_sort.o: File format not recognized nm: array_t...
by dodicat
Aug 17, 2019 16:53
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 2851

Re: StringArray Sort (case independent)

Used to like that old song https://www.youtube.com/watch?v=W6N3o4TDYsI JK Power basic. Is this where you got those ideas of built in array functions? What about recursive macros as well? I think by inlining code in my quicksort it makes not a jot of difference to 64 bit with optimisations. I think -...

Go to advanced search