Search found 1134 matches

by jj2007
May 14, 2019 1:13
Forum: General
Topic: Squares
Replies: 6658
Views: 376827

Re: Squares

albert wrote:A megabyte string , compresses down , to just a few bytes..
That's a really good start! If you are stuck with the details of decompression, here is some reading for you.
by jj2007
May 11, 2019 12:34
Forum: General
Topic: Problem writing 8GB array to disk
Replies: 25
Views: 751

Re: Problem writing 8GB array to disk

marcov wrote:Afaik windows API has such limits, the common win32/64 write-block-to-file writefile also has "dword" as argument, iow 32-bit.
Indeed. Interestingly enough, even WriteFileEx has that limit. There is an easy workaround, though: MapViewOfFile.
by jj2007
May 04, 2019 8:20
Forum: Documentation
Topic: SWAP keyword
Replies: 35
Views: 897

Re: SWAP keyword

Intel Core i5, not the latest model, GAS: swap time proxy time int: 0.003103105379864246 0.003105157893855903 str: 0.007858134918478754 0.08723219351736589 udt: 0.009785106172330416 0.1015518810260119 integer swap/proxy ratio: 0.9993389985109232 Under the hood, there is little to improve: push dword...
by jj2007
Apr 30, 2019 23:29
Forum: General
Topic: Floats vs Integers
Replies: 3
Views: 332

Re: Floats vs Integers

In the GPU world, many newer cards support half (which is half a single, iow a 16-bit float). In the FPU world, you can use half integers (-32768 ... 32767, enough for most screen resolutions): include \masm32\MasmBasic\MasmBasic.inc ; download W1 dw 1234 W2 dw 4321 Init fild W1 fiadd W2 Inkey Str$...
by jj2007
Apr 29, 2019 20:14
Forum: General
Topic: Floats vs Integers
Replies: 3
Views: 332

Re: Floats vs Integers

Take whatever suits you, there is no speed difference. Every little line, circle or triangle you are drawing costs you thousands of cpu cycles, therefore a cycle more or less with integers instead of doubles will change absolutely nothing. I would pick floats, they are fast and sufficiently precise ...
by jj2007
Apr 20, 2019 11:24
Forum: Projects
Topic: sGUI
Replies: 213
Views: 31838

Re: sGUI

Even after correction of the two chr $ (), I get a bunch of cryptic errors: ** compiling TmpFb.bas with -t 2000 -s console ** sGUIWin_v0.9.00_01\tmp\TmpFb.bas(6) error 14: Expected identifier, found 'TextObject' sGUIWin_v0.9.00_01\tmp\TmpFb.bas(7) error 41: Variable not declared, TOList sGUIWin_v0.9...
by jj2007
Apr 20, 2019 5:45
Forum: Projects
Topic: sGUI
Replies: 213
Views: 31838

Re: sGUI

Window_UserGFXDemo compiles and works "out of the box" - compliments! But please test the older demos, for example sGUI_Misc.bas.
by jj2007
Apr 18, 2019 16:57
Forum: General
Topic: Check if active
Replies: 4
Views: 272

Re: Check if active

On Windows, check the difference between GetActiveWindow, GetForegroundWindow and GetFocus.
by jj2007
Apr 18, 2019 3:16
Forum: Tips and Tricks
Topic: 3d animated tunnel in pure FB
Replies: 15
Views: 17502

Re: 3d animated tunnel in pure FB

Looks interesting, but I don't have TinyC installed. So I tried Visual C, Gcc and PellesC. All three fail with this code, with very different error messages, of course. It would be nice if C was compatible to something ;-)
by jj2007
Apr 16, 2019 13:06
Forum: Documentation
Topic: Wiki improvements
Replies: 335
Views: 24143

Re: Wiki improvements

dodicat wrote:it says no matches for get
"By default, searches are limited to text strings greater than 4 characters". And I agree that this is a problem. My personal favourite help system is the old and terribly obsolete WinHelp32 btw. Clearly the best!
by jj2007
Apr 13, 2019 5:38
Forum: General
Topic: Speed issue with string concatenation and a solution
Replies: 14
Views: 628

Re: Speed issue with string concatenation and a solution

Stringbuilders typically do the first default, and the second if you set a capacity. Or they avoid both to simply not wrap a single block allocation, but a linked list of say <n>MB blocks that you can then write to a socket one by one. That is basically what an array does. In fact, there is rarely ...
by jj2007
Apr 12, 2019 18:03
Forum: General
Topic: Speed issue with string concatenation and a solution
Replies: 14
Views: 628

Re: Speed issue with string concatenation and a solution

The problem boils down to either - marcov's StringBuilder class (several reallocations, risk to fail a HeapRealloc for large sizes) - or finding a way to know beforehand which size you need, at least approximately (requires coder to think ) There is no perfect solution. Even in assembly string conca...
by jj2007
Apr 12, 2019 2:05
Forum: General
Topic: UEFI FreeBasic programming
Replies: 12
Views: 596

Re: UEFI FreeBasic programming

angros47 wrote:the runtime libraries would not work.
That's the point.
by jj2007
Apr 08, 2019 19:54
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) :-)
Replies: 56
Views: 4304

Re: Gas64 (no more use of gcc, only gas) :-)

At the start of the project I was using dec/inc then I read somewhere that was not efficient. I don't remember why Once upon a time there were CPUs which were slightly slower when using inc instead of add reg32, 1. Modern CPUs don't show any performance difference, but inc is a one-byter while add ...
by jj2007
Apr 08, 2019 13:36
Forum: General
Topic: Endian
Replies: 14
Views: 650

Re: Endian

I've programmed a lot in 68000 Assembler (big endian) when I was younger. Nowadays it's the Intel family of processors, and I must admit that little Endian code is often more convenient and elegant.

Go to advanced search