Basicprogramming(.org) > Community news and announcements

"New" BASIC (based on MUSL)

<< < (2/2)

Cybermonkey:

--- Quote from: Tomaaz on May 11, 2019, 09:04:16 PM ---
--- Quote from: Cybermonkey on May 11, 2019, 06:26:18 PM ---Yes, with "modern" I mean things like OOP and lambda etc.

--- End quote ---

Lambda? It's very important in Lisp and Lisp is one of the oldest languages.

--- End quote ---
Yes, okay. But it was never important in BASIC, was it?  ;) (I refer to the first generation, unstructured BASIC which this one is/will be.)

Cybermonkey:
Anyway, back to topic. I implemented a few graphics function, so the following program can now be executed (ported from microME) - new version attached:

--- Code: ---2 INITWINDOW (640,480)
5 SCNCLR
10 xmin=-8601
20 xmax=2867
30 ymin=-4915
40 ymax=4915
50 maxiter=64
60 dx=(xmax-xmin)/200
70 dy=(ymax-ymin)/200
80 cy=ymax : yp=0
90 cx=xmin : xp=0
100 iter = 0 : x=0 : y=0 : x2=0 : y2=0
110 y=((x*y)/2048)+cy
120 x=x2-y2+cx
130 x2=(x*x) / 4096
140 y2=(y*y) / 4096
150 if x2 + y2 > 16384 then goto 180
160 iter = iter + 1
170 if iter < maxiter then goto 110
180 VGACOLOR iter: FILLBOX (xp,yp,xp+3,yp+2)
200 cx = cx + dx : xp = xp + 3
210 if cx < xmax then goto 100
220 cy = cy - dy : yp = yp + 2
230 if cy > ymin then goto 90
240 test=GETKEY()
250 IF test=0 THEN GOTO 240

--- End code ---

Yes, another mandelbrot ... and it's now named XBGI BASIC ... (just because I am using the XBGI library)

Tomaaz:
I can't see this thing becoming the most popular BASIC. Neither I can see it making to the top ten (or the top hundread). It's not even interesting from any point of view. Let's be honest - it's another garbage. I don't get it. Usually, developpers start from something poor and then make it better and better. You started from something good (EGSL) and then it was a race to the bottom. Sorry, for harsh words, but I'm just being honest. Why couldn't you stick with EGSL?  :(

Aurel:
Well ..this one is written in C.
EGSL is in Pascal(object Pascal- Lazarus ?) or something similar ....right Cyb

..also original author have another one tcl like - Fiz  ???

Cybermonkey:

--- Quote from: Tomaaz on May 13, 2019, 07:41:56 PM ---I can't see this thing becoming the most popular BASIC. Neither I can see it making to the top ten (or the top hundread). It's not even interesting from any point of view. Let's be honest - it's another garbage. I don't get it. Usually, developpers start from something poor and then make it better and better. You started from something good (EGSL) and then it was a race to the bottom. Sorry, for harsh words, but I'm just being honest. Why couldn't you stick with EGSL?  :(

--- End quote ---
Well, I know that it is not becoming popular. But I don't care - I make this for me, myself and I and just for fun. Use it or use it not, it's your choice. You don't have to pay for it, do you?
EGSL uses SDL 1.2 which is obsolete, so because of that it's not developed anymore.

EDIT: Since no one is interested I locked this thread (as a precaution against trolling/hijacking).


Navigation

[0] Message Index

[*] Previous page

Go to full version