Author Topic: How nice...  (Read 2242 times)

Tomaaz

  • Guest
How nice...
« on: May 14, 2019, 10:31:39 AM »
I was banned from the topic about Cybermonkey's new BASIC. Reason? An honest opinion. I know that it's free (as a beer) and developed for fun, but I'm still entitled to my opinion about it. There is plenty of, for example, bad Linux distros, but it would be insane to stop people from giving an honest opinion about them. Also, SDL1.2 may be discontinued, but you can still use it on every major platform (several years after EGSL was abandoned). And what has happened to Pulsar2d?

B+

  • Guest
Re: How nice...
« Reply #1 on: May 14, 2019, 01:41:21 PM »
Ha! Tomaaz "banned" again! Must be some kind of record, being banned coming back, being banned again... the amazing thing is that you are always allowed back and you keep coming back! ;)

Maybe a sign of how desperate (< was misspelled, what happened to spell checker?) we are for some kind of forum chatter.

Anyway, this thing about Basic's needing some kind of Graphics? Library: SDL (which SmallBASIC uses too), GL (which QB64 is using) and I suppose that is what MUSL and XBGI are too for Cybermonkey?, this need for library's has me wodering how JJ and Paul handled this aspect with their respective versions of Basic.

And could this be the reason why Tomaaz hasn't developed his own version of EGSL with one of the fancy new PL's he plays with?

And could this be what is limiting Aurel's toy interpreters?

And what I was failing to understand about ScriptBasic?

B+ still stuck on how to do string functions without the need of "double quotes" with his NAN0 = Nearly Almost N0thing.  ;D

mispell ? nope no checjer?





« Last Edit: May 14, 2019, 02:57:28 PM by B+ »

B+

  • Guest
Re: How nice...
« Reply #2 on: May 14, 2019, 02:51:13 PM »
Oh and the choice of Graphics library might have allot to do with the PL you use to code the interpreter / compiler.
SmallBASIC works with C and QB64 works with C++.

Cybermonkey

  • Administrator
  • *****
  • Posts: 0
Re: How nice...
« Reply #3 on: May 14, 2019, 04:07:00 PM »
Pulsar can still be downloaded on the page: http://pulsar2d.org/
The source is available, so everyone is invited to improve the code (zlib license!). Anyway my next project will use Pulsar2d (as a framework) and FreeBASIC.
(And SDL 1.2 is absolutely crap nowadays; have you ever tried it with two displays and fullscreen? Well, after that one will use SDL 2...)

Aurel

  • Guest
Re: How nice...
« Reply #4 on: May 14, 2019, 07:59:11 PM »
And could this be what is limiting Aurel's toy interpreters?

Yo Mark..Yoo  :D

No ...i use only GDI graphics for my interpreters ..reason ..simple  I don't need any external lib
and work only on windows ( work on linux too with Wine).
Some time ago i was thinking about using DirectX..but i give up  ;D
« Last Edit: May 14, 2019, 08:02:57 PM by Aurel »

ZXDunny

  • Guest
Re: How nice...
« Reply #5 on: May 15, 2019, 12:52:35 PM »
Anyway, this thing about Basic's needing some kind of Graphics? Library: SDL (which SmallBASIC uses too), GL (which QB64 is using) and I suppose that is what MUSL and XBGI are too for Cybermonkey?, this need for library's has me wodering how JJ and Paul handled this aspect with their respective versions of Basic.

For my part, I only need a pointer to a surface to draw on. The rendering is done by OpenGL (and SDL/OpenGL in Linux/MacOS) which literally just renders that surface to the display. All else is my own code running inside SpecBAS, no libs needed. The source is freely available if anyone wants to gaze in horror at what I do to pointers and strings :)

jj2007

  • Guest
Re: How nice...
« Reply #6 on: May 16, 2019, 03:59:32 AM »
this need for library's has me wodering how JJ and Paul handled this aspect with their respective versions of Basic.

I have implemented interfaces e.g. to the Gnu Scientific Library, Cairo, even Python, but I prefer to roll my own if possible. See below - pure Assembly, pardon: MasmBasic ;-)

include \masm32\MasmBasic\Res\MbGui.asm
  ArraySet current() As double=120, 125, 122, 119, 134, 138, 141, 159, 162, 178
  ArraySet voltage() As double=250, 210, 180, 155, 140, 125, 110, 100, 90, 80
  SetAxisX "Электроток", s 0, d 1/5, grid 1   ; s=start value, d=difference between gridlines
  SetAxisY "Voltage", s 0, d 5/5, grid 1
Event Paint
  ArrayPlotValues "%i V", 8, -12        ; format$, dx & dy positions
  ArrayPlot current():voltage(), RgbCol(0, 0, 255), lines=3
  ArrayPlot exit, "繪製科學數據非常容易!"
EndOfCode



Aurel

  • Guest
Re: How nice...
« Reply #7 on: May 16, 2019, 07:21:14 AM »
Hi JJ

Nice..
but some hings you must explain to me :
something is not normal in your plotting graph

1.what is zlektrok in cyrilic   :o
2.what is that china-letters   :o

3. and most important  part what exactly that graph represent?
I understand voltage trough time should represent electric current ??

and how in your case current jump backward  :o

jj2007

  • Guest
Re: How nice...
« Reply #8 on: May 16, 2019, 06:48:35 PM »
Hi Aurel,

It's just a demo, so the data are arbitrary, and so is the text. The Chinese means, if you can trust google translate "plotting data is easy". The abscissa should be "electrotok", something like electric current. It's merely to demonstrate that this control uses Unicode.

Aurel

  • Guest
Re: How nice...
« Reply #9 on: May 26, 2019, 05:33:05 PM »