Recent Posts

Pages: « 1 2 3 4 5 6 7 8 9 10 »
41
BCppX / Re: New Toy
« Last post by Zlatko Vid on June 14, 2020, 09:13:42 AM »
Oxygen Basic
42
BCppX / Re: New Toy
« Last post by Theo Gottwald on June 13, 2020, 09:29:49 AM »
Ok, James.
Actually there are so many half baken PB-Successors.
Would be better we have one who is full baken.
43
BCppX / Re: New Toy
« Last post by James C. Fuller on June 11, 2020, 11:32:12 AM »
The project is on hold for the time being

James
44
BCppX / Re: New Toy
« Last post by Theo Gottwald on June 11, 2020, 08:49:58 AM »
So you need Visual C++ to compile?
45
BCppX / New Toy
« Last post by James C. Fuller on May 31, 2020, 08:11:05 PM »
With Mr BCX resurrecting BCX, and starting another forum (https://bcxbasiccoders.com/smf/), I decided to start over with the latest BCX as my base instead of updating bc9Basic.
BCppX is basic syntax translated to c++ for compiling with Visual c++ only.
I was hoping I could persuade Kevin to add more c++ to BCX but sadly he is not a fan.

More to come shortly.

James

46
Steve,
On JK-IDE, click the button (bottom on status bar) labeled "Output" green square with white arrow, to toggle on/off the output window with compiler results.
47
I looked at the editor with interest as I'm currently using SED

I compiled my code in sed and got the expected error "Missing Declaration"

When I compile in JKE I see the error show briefly on the bottom pane and then it closes.

48
General Discussion / Re: Has anyone tried True Basic compiler ?
« Last post by José Roca on May 04, 2020, 12:56:02 AM »
Use

DIM SHARED sArr(100000) as string

or a variable-length array.

Code: [Select]
DIM start AS DOUBLE = timer
DIM sArr() as string
REDIM sArr(100000) as string
DIM s AS STRING :  s = "test string"
FOR i as long  = 1 TO 100000
   sArr(i) = s   
NEXT
DIM endx AS DOUBLE = timer
print endx - start

Each language does things in a different way. Jumping from one to another everyday it's the best way of never being proficient with any of them.
49
General Discussion / Re: Has anyone tried True Basic compiler ?
« Last post by Zlatko Vid on May 03, 2020, 08:31:12 PM »
Jose i tested how fast all 3 compilers fill 100000 size string array and come to this

Oxygenbasic - 0.31 sec
Powerbasic   - 3.09 sec
FreeBasic ...crush ???

Oxygen Basic:
Code: [Select]
'con cat strings in o2
$ filename "strSpeed.exe"
include "rtl32.inc"
Declare Function GetTickCount Lib "kernel32.dll" () As INT

DIM start AS int
DIM endx AS int
DIM strArray[100000] as string
start = GetTickCount()
string s = "test string"
DIM i AS int
FOR i = 1 TO 100000
   strArray[i] = s
NEXT i

endx = GetTickCount()

 print "Current value  is: " + STR((endx-start)/1000)


Power Basic :
Code: [Select]
#COMPILE EXE
#DIM ALL
FUNCTION PBMAIN () AS LONG

DIM start AS DOUBLE
start = TIMER
DIM s AS STRING : s = "test string"
DIM sArr(100000) AS STRING
DIM i AS LONG
FOR i = 1 TO 100000
   sArr(i) = s
NEXT
DIM endx AS DOUBLE
endx = TIMER

  MSGBOX "Current value of X% is: " & STR$(endx-start)
END FUNCTION


Free Basic :

Code: [Select]
DIM start AS DOUBLE = timer
DIM sArr(100000) as string
DIM s AS STRING :  s = "test string"
FOR i as long  = 1 TO 100000
   sArr(i) = s   
NEXT
DIM endx AS DOUBLE = timer
print endx - start

print LEN(s)

SLEEP

I use your CSED_FB
This program simply crush ...???
50
General Discussion / Re: Has anyone tried True Basic compiler ?
« Last post by Zlatko Vid on May 03, 2020, 08:03:39 PM »
Jose
i made this test with PBWin with messagebox and give me 62 sec
but results with Oxygen are not good ... 159 seconds
in both JIT and exe mode

and in Freebasic 0.023 seconds ...it is amazing !

How is possible that FB is that much faster ?
Pages: « 1 2 3 4 5 6 7 8 9 10 »