Search found 1187 matches

by jj2007
May 20, 2019 20:11
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 6168

Re: Creating (scientific) plots via gnuplot

Thank you all for your attempts to help me, but I am out . Most of these "additional" packages suffer from the same problems: they require environment variables to be set, specific folders, specific IDEs, no installation instructions, and conflicting advice from people who managed to get t...
by jj2007
May 20, 2019 18:58
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 6168

Re: Creating (scientific) plots via gnuplot

I followed exactly the instructions and get this: gcc version 8.1.0 (2018) C:\FreeBasic\lib\DisLin\tmp\TmpFb.bas(6) error 41: Variable not declared, metafl C:\FreeBasic\lib\DisLin\tmp\TmpFb.bas(7) error 41: Variable not declared, disini C:\FreeBasic\lib\DisLin\tmp\TmpFb.bas(8) error 41: Variable not...
by jj2007
May 20, 2019 17:05
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 6168

Re: Creating (scientific) plots via gnuplot

Go to the dislin page (https://www.mps.mpg.de/dislin/win-64-bit). You will find there the official distribution for Freebasic. No luck (I hate working with environment variables, but for the sake of testing this I set them...): *** compiling TmpFb.bas with -t 2000 -gen gcc -Wc -Ofast -s console (32...
by jj2007
May 20, 2019 15:19
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 6168

Re: Creating (scientific) plots via gnuplot

dodicat wrote:Here is some dislin code for the original voltage over current display.
I found inc\dislin.bi but the linker is not happy: ld.exe: cannot find -ldismgc

I have also downloaded the MediaFire dislin.zip but there is no readme explaining where the files should end up, relative to fbc.exe.
by jj2007
May 19, 2019 10:29
Forum: Projects
Topic: Creating (scientific) plots via gnuplot
Replies: 68
Views: 6168

Re: Creating (scientific) plots via gnuplot

@Aurel: Do you mean software or hardware, i.e. plot on a metal surface??? Challenge? ;-) Challenge? ;-) Absolutely! Just post the code that uses badidea's data and displays it as close as possible to his version ;-) Here is my version (complete source; the window is sizeable, ArrayPlotValues is opti...
by jj2007
May 16, 2019 18:45
Forum: General
Topic: using gnuplot in Windows
Replies: 13
Views: 654

Re: using gnuplot in Windows

Sorry if this is a stupid question: How would you display the plot inside an application, i.e. in a control or a window?
by jj2007
May 14, 2019 1:19
Forum: General
Topic: SSE & floating point
Replies: 7
Views: 394

Re: SSE & floating point

Two dedicated instructions are available (plus several non-dedicated ones like movq, movlps, movups etc): include \masm32\MasmBasic\MasmBasic.inc ; download .data s1 REAL4 11111.11111 s2 REAL4 22222.22222 s3 REAL4 33333.33333 s4 REAL4 44444.44444 s5 REAL4 55555.55555 Init movss xmm1, s1 movd xmm2, s...
by jj2007
May 14, 2019 1:13
Forum: General
Topic: Squares
Replies: 6886
Views: 403076

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: 1181

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: 2758

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: 424

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: 424

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: 33747

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: 33747

Re: sGUI

Window_UserGFXDemo compiles and works "out of the box" - compliments! But please test the older demos, for example sGUI_Misc.bas.

Go to advanced search