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

Tomaaz

  • Guest
How nice...
« on: 14. May 2019, 12:31:39 »
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+

  • Hero Member
  • *****
  • Posts: 853
    • View Profile
Re: How nice...
« Reply #1 on: 14. May 2019, 15:41:21 »
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: 14. May 2019, 16:57:28 by B+ »

B+

  • Hero Member
  • *****
  • Posts: 853
    • View Profile
Re: How nice...
« Reply #2 on: 14. May 2019, 16:51:13 »
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
  • Hero Member
  • *****
  • Posts: 676
    • View Profile
    • Home of EGSL
Re: How nice...
« Reply #3 on: 14. May 2019, 18:07:00 »
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...)
Best regards,
Cybermonkey

Aurel

  • Regular Member
  • Hero Member
  • *
  • Posts: 605
    • View Profile
Re: How nice...
« Reply #4 on: 14. May 2019, 21:59:11 »
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: 14. May 2019, 22:02:57 by Aurel »
my site:BLOG and FORUM
https://aurelsoft.ucoz.com/

ZXDunny

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
Re: How nice...
« Reply #5 on: 15. May 2019, 14:52:35 »
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

  • Full Member
  • ***
  • Posts: 171
  • MasmBasic rocks
    • View Profile
    • MasmBasic - faster than C
Re: How nice...
« Reply #6 on: 16. May 2019, 05:59:32 »
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

  • Regular Member
  • Hero Member
  • *
  • Posts: 605
    • View Profile
Re: How nice...
« Reply #7 on: 16. May 2019, 09:21:14 »
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
my site:BLOG and FORUM
https://aurelsoft.ucoz.com/

jj2007

  • Full Member
  • ***
  • Posts: 171
  • MasmBasic rocks
    • View Profile
    • MasmBasic - faster than C
Re: How nice...
« Reply #8 on: 16. May 2019, 20:48:35 »
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

  • Regular Member
  • Hero Member
  • *
  • Posts: 605
    • View Profile
Re: How nice...
« Reply #9 on: 26. May 2019, 19:33:05 »
my site:BLOG and FORUM
https://aurelsoft.ucoz.com/