Search found 37 matches

by ppf
Jun 19, 2019 17:17
Forum: General
Topic: Bit strings ? ( "Bit string datatype" )
Replies: 7
Views: 329

Re: Bit strings ? ( "Bit string datatype" )

@Lost Zergling
thanks for LZLE tip.
No worries about timer, using external device data, adjusted perfectly.Just only data for computing.
by ppf
Jun 19, 2019 16:36
Forum: Documentation
Topic: TYPE - bitfields
Replies: 2
Views: 170

TYPE - bitfields

Hi fxm, I am using offline FB manual 1.05 html. Just founded on page "Type" this : "Description - Type is used to declare custom data types containing ... bitfields, ... so I am interested in this syntax: "fieldname : bits As DataType [= initializer]" and "As DataType f...
by ppf
Jun 19, 2019 15:51
Forum: General
Topic: Bit strings ? ( "Bit string datatype" )
Replies: 7
Views: 329

Re: Bit strings ?

Right, I really talk about bit arrays, aka "Bit string datatype" In my code I need to summarize happened events (in boolean sense happened/NOT happened equal to 0/1). My above VERY simple example you can understand as 10 events monitored in time of 50000 seconds. For example event 1 would ...
by ppf
Jun 19, 2019 13:47
Forum: General
Topic: Bit strings ? ( "Bit string datatype" )
Replies: 7
Views: 329

Bit strings ? ( "Bit string datatype" )

Hi, a special question.Is possible to work with 'bit strings' in easy way in Freebasic ? I would like to spare significant amount of memory and rapidly increase the speed of computations. Say, 10 bit strings with length 50000 each. dim as bit string a(10) a(1)="01110001110100101100....." ?...
by ppf
Jun 09, 2019 10:46
Forum: Tips and Tricks
Topic: break testing printouts ( For / Next one loop )
Replies: 1
Views: 227

break testing printouts ( For / Next one loop )

Hi, one small tip; founded this tricky usefull for shorten create&debug process; in case of 'For-Next' very long loop (of some action). Originally used one more cycle 'Do-Loop' inside of 'For-Next' to detect keypresses and break testing printouts, whatever you want to see if it's created correct...
by ppf
Jun 09, 2019 10:42
Forum: General
Topic: 64 bit Alt enter problem ( Solved )
Replies: 2
Views: 4487

Re: 64 bit Alt enter problem

Yeah, I forgot to test 'no flag' possibility on Fedora. Usually using screen flags, thank you for this advice. In meanwhile I decided to test another 64 bit distro, totally in RAM. Founded distro named Tahr 6.0.6 (puppy linux 64 bit), because of knowledge its 32 bit old versions. Quick test of your ...
by ppf
Jun 08, 2019 9:06
Forum: General
Topic: 64 bit Alt enter problem ( Solved )
Replies: 2
Views: 4487

64 bit Alt enter problem ( Solved )

Hi
this works on 32 bit, switching windowed and fullscreen mode.But on 64 bit Fedora 24 not.Only. to fullcreen and app is not closed, moreover.What is wrong with, can you duplicate this behavior ?
Thank you.
by ppf
May 29, 2019 0:08
Forum: General
Topic: Memory access ? (Solved on 64 bit distro)
Replies: 11
Views: 459

Re: Memory access ?

Yes, I have fbc 64 bit installed.
After searchin, founded this compiler parameter - 'fbc -arch 64...'.
Then correctly identified bad 32 bit libs and code in compiled sources.
After correction, compiled Ok.Now Ldd shows searchin in /lib64/ as awaited.
Memory is Ok too.
Looks good !
by ppf
May 27, 2019 21:57
Forum: General
Topic: Memory access ? (Solved on 64 bit distro)
Replies: 11
Views: 459

Re: Memory access ?

Yes, founded&compared with yum.Thank you. Now, uff, it works.Seeing on ldd output, it searches libs in /lib/ folder. So added 32 bit version libX randr render pm.., compiled and works in quick test. Sorts seems a bit slower, then on old 32 bit distro.No changes in sources. IMO I have 32 bit app ...
by ppf
May 27, 2019 16:58
Forum: General
Topic: Memory access ? (Solved on 64 bit distro)
Replies: 11
Views: 459

Re: Memory access ?

Ahh, you are right ! Completely forgot on additional libs of 3rd party.
Used 'libpng' for beauty intro image, sGui for Messagebox and C function 'fflush'.
Firstly it 'll be commented out, to see what happened next.
Much appreciated advices, thank you again.
by ppf
May 27, 2019 10:41
Forum: General
Topic: Change string to ordered index ?
Replies: 22
Views: 837

Re: Change string to ordered index ?

Sure.But next associated things, e.g. .as online finalizing sorts of sheet 17M rows x 50 cols and store that to (temporary) archive files is harder.
I would like to see it working on 64bit, what is a computing speed there and possible way of flow design.
by ppf
May 27, 2019 2:12
Forum: General
Topic: Change string to ordered index ?
Replies: 22
Views: 837

Re: Change string to ordered index ?

Hi badidea

very helpful code, looks closer to what I am exactly looking for, thank you very much !
by ppf
May 27, 2019 2:10
Forum: General
Topic: Change string to ordered index ?
Replies: 22
Views: 837

Re: Change string to ordered index ?

Hi MrSwiss due memory troubles on 32 bit distro I must reduce amount of data saved to disk/ramdisk. Complete range of generated data is 1 to 17M.Here I know formula to get index & compute all needed things with pleasure. I got 3M for now, impossible to handel with. Moreover, mostly it's garbage,...
by ppf
May 27, 2019 1:56
Forum: General
Topic: Memory access ? (Solved on 64 bit distro)
Replies: 11
Views: 459

Re: Memory access ?

Well, currently on 64 bit distro. 'free' says 5.7 Giga RAM available. OK. But compiled prog doesn't work. Where are FAQ , hints, other dcs etc related to 64 bit Freebasic compiling ? Ldd says missing libraries, but all is installed in 64 bit version. Seems like 64 bit fbc tries to compile source as ...
by ppf
May 25, 2019 16:34
Forum: General
Topic: Change string to ordered index ?
Replies: 22
Views: 837

Change string to ordered index ?

Hi, for saving disk space it interest me, if exist here some generic solution/formula for conversion string (e.g. string*18) to integer value (index - position) in (incoming ) order 1 to N. Say, something produce string*18. Then happens: a)if string is empty, null - do nothing b)if its known already...

Go to advanced search