Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
46 user(s) are online (24 user(s) are browsing Forums)

Members: 1
Guests: 45

K-L, more...

Support us!

Headlines

 
  Register To Post  

BlitzMax for AmigaOS4.x
Just popping in
Just popping in


See User information
Hi after a time of off and on development due to my work schedule I am finally pleased to make an initial publication of my port of Blitzmax available on GitHUB.

The BlitzMax language is a BASIC like(use that very loosely) that supports some object oriented concepts. It integrates very well with native C/C plus plus for very easy extension and includes LUA support for easy enhanced scripting capabilities in applications.

BlitzMax for AmigaOS4.X


This my first Amgia contribution so feedback is appreciated. The level of effort was considerable as the back-end of PPC compiler had to be re-coded correctly for System V ABI vs the original Apple OSX ABI. AmigaOS applicable defines where required in Build system and Runtime but seems to be working well.

I have covered the basics of the runtime to provide graphic support for Max2d with MiniGL as well as Audio driver and networking support. I still need to work out the Joystick support.

The big limitation is support for MaxGUI as I am torn on strategy with regard to UI support. MaxGUI was never all that great and there is a huge AmigaOS API gap that needs to be filled.

If interested I have also forked the original BlitzMax repo and intend on pushing my changes into that Fork but I doubt it will be up-streamed as author has moved on but who knows. This will allow you to also use the language on Linux/Window/OSX if desired. There is a large number of downloadable modules and extensions and would be happy to provide guidance adding additional support for Amiga.


I have tested on Classic under emulation(very slow give the install some time) as well as my X5000.

I appreciate all feedback good and bad. And although i have done my best to download and install you guys are getting first exposure so my fingers are crossed.

Thanks and Regards
Doug





Go to top
Re: BlitzMax for AmigaOS4.x
Supreme Council
Supreme Council


See User information
Congrats on your first dev project.

Simon

Comments made in any post are personal opinion, and are in no-way representative of any commercial entity unless specifically stated as such.
----
http://codebench.co.uk
Go to top
Re: BlitzMax for AmigaOS4.x
Home away from home
Home away from home


See User information
@DStastny
While it's not of interest to me personally, you might garner wider interest of you can point to example source code for some BlitzMax programs.

I recall there have been some user(s) looking for a very user-friendly programming language.

Author of the PortablE programming language.
Go to top
Re: BlitzMax for AmigaOS4.x
Home away from home
Home away from home


See User information
Quote:
Congrats on your first dev project.


+1

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: BlitzMax for AmigaOS4.x
Home away from home
Home away from home


See User information
found some tutorials on YouTube linky)

_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: BlitzMax for AmigaOS4.x
Just popping in
Just popping in


See User information
@All

Thanks for encouragement.

@ChrisH

Thanks for insight. I will spend some time on the wiki as well as adding additional tested examples to the repository.

There is significant html documentation with many examples but without working IDE to glue it together I should gather more links to assist newcomers.

Here is the fun sample code of a triangle in OpenGL

Strict
' create a graphics window '
GLGraphics 640,480,' 0 for window mode 24/32 for Fullscreen depending on graphics driver '
' create pixmap 64x64 '
Local p:TPixmap CreatePixmap(64,64,PF_RGB888)
' map it red AARRGGBB '
p.ClearPixels($FFFF0000)
' main loop '
While Not AppTerminate() And Not KeyHitKEY_ESCAPE )
    
' some simple OpenGL'
    
glClear GL_COLOR_BUFFER_BIT
    glBegin GL_TRIANGLES 
    glColor3d
(1.0,0.0,0.0)
    
glVertex2i 0,
    glColor3d
(0.0,1.0,0.0)
    
glVertex2i 1,-
    glColor3d
(0.0,0.0,1.0)
    
glVertex2i -1,-
    glEnd 
    glColor3d
(1.0,1.0,0.0)
    
' helper function to text '
    
GLDrawText "Red Pixmap"1010
    
' Draw Pixmap *note this is slow* '
    
GLDrawPixmapp,10,30)
    
Flip
Wend


Doug

Go to top
Re: BlitzMax for AmigaOS4.x
Just popping in
Just popping in


See User information
@DStastny

Doug this is great!!! Was looking forward to this and glad to see it out!! as well as looking forward to your updates and input

THANK YOU GOOD SIR!!


Go to top
Re: BlitzMax for AmigaOS4.x
Just popping in
Just popping in


See User information
Thanks for doing this, great news! Indeed Mark Sibly wrote this one and he’s the author of Blitz Basic so good choice!
He wrote then the Monkey language and I know that someone did an AmigaOS 4 port, probably incomplete though. Now he’s working on Monkey 2. Blitzmax is nice since it is not OOP oriented like the latter.

Go to top
Re: BlitzMax for AmigaOS4.x
Quite a regular
Quite a regular


See User information
Very cool!

interesting.

There are some projects that could be portable now


Retired
Go to top
Re: BlitzMax for AmigaOS4.x
Just popping in
Just popping in


See User information
WOW I was dreaming a basic language for OS4 since ever.

This was a spark in the sunshine.

congratulation I will test it on my sam asap

Go to top
Re: BlitzMax for AmigaOS4.x
Quite a regular
Quite a regular


See User information
@DStastny

Looks interesting! I'll try to give it a try this weekend...

X1000|II/G4|440ep|2000/060|2000/040|1000
Go to top
Re: BlitzMax for AmigaOS4.x
Quite a regular
Quite a regular


See User information
@DStastny

Cool!! I will give it a try

AmigaOS 4.1 FE Update 2 on Sam440ep-flex, 800Mhz, 1GB RAM, Radeon 9250 Resized Image
A1200/040, 2+4MB, external 3.5''HDD / A1200 (spare) / A500+ (sold) / C128 (sold)
http://m4rko.com/AMIGA
Go to top
Re: BlitzMax for AmigaOS4.x
Quite a regular
Quite a regular


See User information
So, I've downloaded it..

Started compiling with the install, it was compiling fine some time, until my computer locked before completing the whole compilation.. Not sure what or if it was gcc or Odyssey that caused it, but I will try to compile it again later as it took some time...

Anyway, I went ahead and compiled the hello source, it worked fine!

I also tried the Triangle source, yes it worked too!! Cool!!!

So far looks impressive already, I'm looking forward to updates and getting some time to get my hands dirty in trying out and coding in BlitzMax


AmigaOS 4.1 FE Update 2 on Sam440ep-flex, 800Mhz, 1GB RAM, Radeon 9250 Resized Image
A1200/040, 2+4MB, external 3.5''HDD / A1200 (spare) / A500+ (sold) / C128 (sold)
http://m4rko.com/AMIGA
Go to top
Re: BlitzMax for AmigaOS4.x
Just popping in
Just popping in


See User information
@Marko
Thanks for the feedback. I too suffer occasional lockups with the GCC part of toolchain but its uusally after running. Odyssey. I gave up and use netsurf if I need to surf on Amiga.

Try Tempest in the samples directory its pretty faithful recreation.

Regards
Doug

Go to top
Re: BlitzMax for AmigaOS4.x
Home away from home
Home away from home


See User information
@DStastny

GCC need a lot of stack, not tiny bit more a lot of stack...
AmigaOS does not increases stack automatically.

Its also true for many programs, more so on ported Linux programs, because they code without thinking about this.

Crashes is some you expect coding on system with limited memory protection, sometimes you find the bug some time the bug kills AmigaOS4, it can be pretty random, sometime the only way find a bug is printf or serial cable. It always good make testable code that can be isolated.

I sure lot people like to write code, get errors, and not write code, get crash, that is way I think Basic is welcome is some that parity user friendly to beginners, or casual programmers.


Edited by LiveForIt on 2018/2/20 19:48:47
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: BlitzMax for AmigaOS4.x
Just popping in
Just popping in


See User information
@LiveForIt

Thanks for insight. I will look to increase the default stack size when my code launches the GCC tool chain to compile the Blitzmax generated assembly. Currently it just uses the C run-time system command, but I will look at creating a more controllable sub process via DOS API.


Regards
Doug

Go to top
Re: BlitzMax for AmigaOS4.x
Quite a regular
Quite a regular


See User information
Thanks! I added the news on swedish amigasite Safir!

AmigaOne X5000
Radeon HD 7700
Go to top
Re: BlitzMax for AmigaOS4.x
Just popping in
Just popping in


See User information
That is very cool!

Alien Air Attack

SAM440@733 mhz as main amiga.
Go to top
Re: BlitzMax for AmigaOS4.x
Home away from home
Home away from home


See User information
That's pretty cool

Just a question, having BlitzMax in the future is there any chance to facilitate other related projects like Monkey-X ?

Still there a pre-alpha port of Monkey-X to Amiga (called AmigaMonkey) but unfortunely it still in pre alpha stage and it never progressed since then

Maybe the two projects could be "merged" in some way ?

Here the alpha code: https://github.com/bruZard/amigamonkey
And here the official page of the project: http://www.amigamonkey.de/

Go to top
Re: BlitzMax for AmigaOS4.x
Just popping in
Just popping in


See User information
@samo79

Mark abandoned Monkey-X and moved on to Monkey2.
*Fixed Link*
Monkey 2


Monkey2 is pretty neat and a much more complex language that generates C++ that feeds into compiler chain vs BlitzMax which generates PPC assembly. So should be significantly easier to port.

That being said I am not all that interested in as I took this up because of the challange of the PPC assembly aspect of the compiler and getting it working on Amiga ABI. Not to say I wont think about it but lot more to accomplish on BlitzMax yet mainly the GUI support.

I have another richer language(Blitz like) I authored that I would like to port but I have but yet to get LLVM to compile correctly on AmigaOS.

Thanks for interest,

Regards
Doug

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project