Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
78 user(s) are online (58 user(s) are browsing Forums)

Members: 0
Guests: 78

more...
Support us!
Recent OS4 Files
OS4Depot.net





BlitzMax for AmigaOS4.x
Just popping in
Joined:
2017/1/3 6:03
From Atlanta GA
Posts: 44
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





   Report Go to top

Re: BlitzMax for AmigaOS4.x
Supreme Council
Joined:
2006/11/19 18:16
From London, England
Posts: 1294
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
   Report Go to top

Re: BlitzMax for AmigaOS4.x
Home away from home
Joined:
2007/5/19 13:23
From England
Posts: 3553
@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.
I love using Amiga OS4.1
It is pitch black. You are likely to be eaten by a grue...
   Report Go to top

Re: BlitzMax for AmigaOS4.x
Home away from home
Joined:
2009/7/7 3:34
From Toronto, Canada
Posts: 2327
Quote:
Congrats on your first dev project.


+1

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

   Report Go to top

Re: BlitzMax for AmigaOS4.x
Home away from home
Joined:
2009/7/7 3:34
From Toronto, Canada
Posts: 2327
found some tutorials on YouTube linky)

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

   Report Go to top

Re: BlitzMax for AmigaOS4.x
Just popping in
Joined:
2017/1/3 6:03
From Atlanta GA
Posts: 44
@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

   Report Go to top

Re: BlitzMax for AmigaOS4.x
Just popping in
Joined:
2015/4/4 18:29
From Oswego NY USA
Posts: 35
@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!!


   Report Go to top

Re: BlitzMax for AmigaOS4.x
Just popping in
Joined:
2012/10/17 19:42
Posts: 88
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.

   Report Go to top

Re: BlitzMax for AmigaOS4.x
Quite a regular
Joined:
2006/11/22 17:57
From Italy, Rome
Posts: 591
Very cool!

interesting.

There are some projects that could be portable now


_________________
Retired
   Report Go to top

Re: BlitzMax for AmigaOS4.x
Just popping in
Joined:
2012/2/1 17:50
Posts: 55
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

   Report Go to top

Re: BlitzMax for AmigaOS4.x
Quite a regular
Joined:
2009/3/10 10:51
From Germany
Posts: 628
@DStastny

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

_________________
X1000|II/G4|440ep|2000/060|2000/040|1000
   Report Go to top

Re: BlitzMax for AmigaOS4.x
Quite a regular
Joined:
2008/9/20 22:21
From Gothenburg, Sweden (via Finland)
Posts: 515
@DStastny

Cool!! I will give it a try

_________________
AmigaOS 4.1 FE Update 1 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
   Report Go to top

Re: BlitzMax for AmigaOS4.x
Quite a regular
Joined:
2008/9/20 22:21
From Gothenburg, Sweden (via Finland)
Posts: 515
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 1 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
   Report Go to top

Re: BlitzMax for AmigaOS4.x
Just popping in
Joined:
2017/1/3 6:03
From Atlanta GA
Posts: 44
@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

   Report Go to top

Re: BlitzMax for AmigaOS4.x
Home away from home
Joined:
2006/11/20 16:26
From Norway
Posts: 2740
@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.
   Report Go to top

Re: BlitzMax for AmigaOS4.x
Just popping in
Joined:
2017/1/3 6:03
From Atlanta GA
Posts: 44
@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

   Report Go to top

Re: BlitzMax for AmigaOS4.x
Quite a regular
Joined:
2008/10/29 10:20
From Uppsala, Sweden
Posts: 726
Thanks! I added the news on swedish amigasite Safir!

   Report Go to top

Re: BlitzMax for AmigaOS4.x
Just popping in
Joined:
2006/12/7 15:39
From Denmark
Posts: 90
That is very cool!

_________________
Alien Air Attack

SAM440@733 mhz as main amiga.
   Report Go to top

Re: BlitzMax for AmigaOS4.x
Home away from home
Joined:
2006/12/2 3:55
From Italy, Perugia
Posts: 3146
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/

   Report Go to top

Re: BlitzMax for AmigaOS4.x
Just popping in
Joined:
2017/1/3 6:03
From Atlanta GA
Posts: 44
@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

   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project