Search found 2024 matches

by srvaldez
Aug 20, 2019 1:57
Forum: General
Topic: Inine assembler intel syntax with fallback x86 vs x86_64 and Windows vs Linux ABI.
Replies: 6
Views: 686

Re: Inine assembler intel syntax with fallback x86 vs x86_64 and Windows vs Linux ABI.

as to what version of Darwin I am using, I don't know, I am running macOS 10.13.6 High Sierra you may be able to install OpenDarwin in VirtualBox, have not tried it myself and don't know how compatible with macOS it might be if you search for opendarwin you will get plenty of hits, one of them is ht...
by srvaldez
Aug 20, 2019 0:47
Forum: General
Topic: Inine assembler intel syntax with fallback x86 vs x86_64 and Windows vs Linux ABI.
Replies: 6
Views: 686

Re: Inine assembler intel syntax with fallback x86 vs x86_64 and Windows vs Linux ABI.

D.J.Peters wrote:Question 1: if __FB_ASM__ = "att" is defined(__FB_DARWIN__) redundant ?

in my opinion, no -- because the the other platforms support att syntax
by srvaldez
Aug 05, 2019 13:00
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 8563

Re: StringArray Sort (case independent)

on Windows, perhaps use stricmp (not sure if it's available in plain C)
by srvaldez
Jul 26, 2019 14:02
Forum: General
Topic: How to draw simple scatterplot with GSL
Replies: 8
Views: 1378

Re: How to draw simple scatterplot with GSL

I was not aware of GSL Shell, but as the name implies, it's a an interactive shell giving you easy access to GSL functions, but it's not part of the GSL library. The graphics module in GSL Shell is implemented using the excellent Anti-Grain Geometry library, version 2.5, of Maxim Shemanarev. btw, if...
by srvaldez
Jul 26, 2019 13:30
Forum: General
Topic: How to draw simple scatterplot with GSL
Replies: 8
Views: 1378

Re: How to draw simple scatterplot with GSL

I am not aware of GSL having any plotting functions, the only examples I have seen use gnuplot to do the plotting.
by srvaldez
Jul 26, 2019 12:21
Forum: General
Topic: Simple Barchart with Dislin error
Replies: 5
Views: 1095

Re: Simple Barchart with Dislin error

I think that you need to install the libraries, probably in /usr/local/lib , after installing the libs, you may also need to issue the command:
sudo ldconfig
or you could install the libs in /usr/local/lib/freebasic, but this is not the norm
by srvaldez
Jul 26, 2019 0:50
Forum: General
Topic: Simple Barchart with Dislin error
Replies: 5
Views: 1095

Re: Simple Barchart with Dislin error

not tested, try #include once "dislin.bi" METAFL ("CONS") DISINI NAME ("X-axis", "X") NAME ("Y-axis", "Y") TITLIN ("This is a Title", 2) DIM intarr(...) as DISLIN_TYPE = {1,2,3,4,5,6} QPLBAR(@intarr(0), ubound(intarr)+1) END
by srvaldez
Jul 24, 2019 14:11
Forum: General
Topic: is there a *right* way to check for QNAN?
Replies: 11
Views: 2083

Re: is there a *right* way to check for QNAN?

please test the following program using the FB 32-bit compile command: FreeBASIC-1.06.0-win32\fbc -gen gcc -O 2 -w all nan-test.bas nan-test.bas Dim As Double x, y, t Dim As Integer i Print Print "START TEST #1:"; x = 1.234567 y = 2.345678 t = Timer For i = 1 To 100000000 x = x * y Next t ...
by srvaldez
Jul 24, 2019 0:49
Forum: General
Topic: is there a *right* way to check for QNAN?
Replies: 11
Views: 2083

Re: is there a *right* way to check for QNAN?

if you are using the 32-bit compiler then it would be to your advantage to test for conditions that may produce a NaN and avoid producing them, the Intel FPU is incredibly slow dealing with NaN's, in 64-bit it's ok, most likely because SSE is used. see https://randomascii.wordpress.com/2012/05/20/th...
by srvaldez
Jul 23, 2019 17:56
Forum: Beginners
Topic: Advantages of different GUI libraries
Replies: 18
Views: 2313

Re: Advantages of different GUI libraries

if your platform is Windows and you are not concerned with cross platform, then I recommend WinFBE viewtopic.php?f=8&t=25215
it's like Visual Basic, very intuitive.
by srvaldez
Jul 21, 2019 8:38
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 6491

Re: Physics question

@badidea
I ran your program from post viewtopic.php?p=262619#p262619 on macOS, it flickers a lot
in line 132, if you place clearscreen(0) after screenlock then it's ok
by srvaldez
Jul 20, 2019 0:02
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 6491

Re: Physics question

deltarho[1859] wrote:I also noticed short oblique lines on the screen as if it was raining so something untoward is going on with the graphics.

that I believe is by design, look at the code for rain.
by srvaldez
Jul 19, 2019 23:19
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 6491

Re: Physics question

it works poorly on my Windows 10 VM, dragging the red ball it not at all smooth
on the other hand it works smoothly on macOS, however if I drag the red dot around and around, the CPU usage rises to 92%
by srvaldez
Jul 19, 2019 11:01
Forum: Community Discussion
Topic: VBScript editor
Replies: 0
Views: 1911

VBScript editor

I accidentally came across this editor VbsEdit, it is commercial product, but there's no time limit on the evaluation version. VbsEdit supports VBScript with syntax coloring, Intellisense, code snippets what I think some of you may find of interest is the nice help file, it's a nice reference to not...

Go to advanced search