English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language

 
 
Thread Tools
Old 28 August 2021, 06:52   #1
drHirudo
Amiga user
 
drHirudo's Avatar
 
Join Date: Nov 2008
Location: Sofia / Bulgaria
Posts: 455
Amiga QuickBasic Compiler

Günter Bartsch is making an Amiga QuickBasic Compiler

https://github.com/gooofy/aqb

Improvements over AmigaBASIC include:

Advanced type system (including UDTs and Pointers)
Support for non-static functions and subs (enables recursion)
Module support (similar to UNITs in TurboPascal, with full type safety and dependencies)
Modern syntax inspired by FreeBASIC and VisualBASIC
True native 68k compiler
Integrated IDE besides compiler command line interface with
syntax highlighting
auto-indent
folding support

There is an Early Preview 0.7.0 alpha1, which works well on AmigaOS 3 system, but the more sophisticated compiled programs crash on my AmigaOS 4. So far the IDE is pretty BASIC, but works.

In the examples there is a Tetris clone and Mandelbrot drawing program.

I know there is Cursor compiler - http://aminet.net/package/dev/basic/Cursor
for compiling AmigaBASIC programs, but AmigaBASIC is very outdated and not very tailored to the Amiga, unlike this new compiler, which is in early stages, but already showing many improvements over the AmigaBASIC interpreter.
drHirudo is offline  
Old 28 August 2021, 20:07   #2
hitchhikr
Registered User
 
Join Date: Jun 2008
Location: somewhere else
Posts: 511
Interesting.

There's also ACE (https://github.com/vidarh/ACE) but it's unfinished/bugged and the code generated isn't exactly stellar.
hitchhikr is offline  
Old 28 August 2021, 20:17   #3
drHirudo
Amiga user
 
drHirudo's Avatar
 
Join Date: Nov 2008
Location: Sofia / Bulgaria
Posts: 455
Here is the compiler running on my AmigaOne X1000
[ Show youtube player ]

The simpler examples ran fine, but the more complex ones crashed and I needed to use the compiler under RunInUAE (AmigaOS 3.1).
drHirudo is offline  
Old 28 August 2021, 20:18   #4
stevelord
Registered User
 
stevelord's Avatar
 
Join Date: Apr 2019
Location: UK
Posts: 540
Tried compiling gorilla.bas and had no joy, lots of complaints about using variables in DIM statements and didn't like some of the function definitions.
stevelord is offline  
Old 31 August 2021, 22:31   #5
cale_tucker
Registered User
 
Join Date: Jan 2019
Location: Pierce / USA
Posts: 19
Cool to see AQB running on an AmigaOne X1000 and thanks for producing that YouTube video
cale_tucker is offline  
Old 31 August 2021, 22:34   #6
cale_tucker
Registered User
 
Join Date: Jan 2019
Location: Pierce / USA
Posts: 19
Quote:
Originally Posted by stevelord View Post
Tried compiling gorilla.bas and had no joy, lots of complaints about using variables in DIM statements and didn't like some of the function definitions.
AQB is not meant to be a QuickBasic for DOS clone so most likely it will never be able to run non-trivial QuickBasic programs unmodified on an Amiga. However, it will hopefully become more and more compatible so QB for DOS programs should be able to run with few modifications.

The trouble with gorillas.bas BTW is not so much porting it to AQB but licensing issues: AFAIK the original Microsoft version (although readily available on the net) has never been officially open sourced so it is difficult to distribute a modified version with AQB.
cale_tucker is offline  
Old 01 September 2021, 05:59   #7
Minuous
Coder/webmaster/gamer
 
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,630
I don't think he is asking for that game (whether modified or not) to be included with the language, just that the language itself is compatible with it. Which seems reasonable, as there's not much point in releasing a "QuickBASIC compiler" that doesn't actually compile QuickBASIC programs.
Minuous is offline  
Old 02 September 2021, 17:20   #8
cale_tucker
Registered User
 
Join Date: Jan 2019
Location: Pierce / USA
Posts: 19
I guess you are right, calling it a "QuickBASIC compiler" can be misleading. Even though technically one could argue AQB could be considered a part of the family of QuickBASIC languages (consisting of QuickBASIC for DOS, QuickBASIC for Macintosh and even AmigaBASIC could be considered part of that family) people could reasonably come to the conclusion that running old DOS programs on the Amiga is a goal of this project.

I have updated AQB's README file now trying to make project scope and goals a bit more clear. Much of the additional information there originates from the (surprisingly lively) discussion on amiga-news.de .
cale_tucker is offline  
Old 04 September 2021, 16:23   #9
cale_tucker
Registered User
 
Join Date: Jan 2019
Location: Pierce / USA
Posts: 19
An updated Alpha 2 preview release is available now, fixing some of the worst alpha1 bugs (at least the examples included should work now): https://github.com/gooofy/aqb/releases/tag/0.7.0alpha2
cale_tucker is offline  
Old 18 December 2021, 11:01   #10
cale_tucker
Registered User
 
Join Date: Jan 2019
Location: Pierce / USA
Posts: 19
New major 0.8.0 release of AQB is available for download now

A new major 0.8.0 release of my AQB Amiga Basic Compiler+IDE is available for download now:



https://github.com/gooofy/aqb/releases/tag/0.8.0

The big new feature is source level debugging, but the release also comes with the usual set of new commands and bugfixes. The debugger (just like the rest of the system ? ) has a lot of room for improvements, but all the basic components are there: breakpoints, stacktraces and variable inspection. Runtime exception handling has also been improved so all in all the new release should provide for a much safer development environment now - again, a lot of room for improvements there but this is hopefully a step in the right direction.

Comments and feedback welcome!
cale_tucker is offline  
Old 18 December 2021, 16:28   #11
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,801
Awesome, great work!
kamelito is offline  
Old 18 December 2021, 16:41   #12
tolkien
AmigaMan
 
tolkien's Avatar
 
Join Date: Oct 2012
Location: Castro Urdiales/Spain
Posts: 760
And seems more stable under morphos. Good work.
tolkien is offline  
Old 18 December 2021, 21:12   #13
cale_tucker
Registered User
 
Join Date: Jan 2019
Location: Pierce / USA
Posts: 19
Quote:
Originally Posted by tolkien View Post
And seems more stable under morphos. Good work.
cool - actually I wasn't aware it runs on MorphOS at all
cale_tucker is offline  
Old 18 December 2021, 21:30   #14
Pyromania
Moderator
 
Pyromania's Avatar
 
Join Date: Jan 2002
Location: Chicago, IL
Posts: 3,375
Bring back Microsoft Amiga Basic!

Pyromania is offline  
Old 18 December 2021, 22:02   #15
amiwolf
Registered User
 
Join Date: Aug 2015
Location: Emerald City
Posts: 95
aqb 0.8.0 compiler crashes (error #80000003) on starting using a 68000.
amiwolf is offline  
Old 19 December 2021, 00:38   #16
cale_tucker
Registered User
 
Join Date: Jan 2019
Location: Pierce / USA
Posts: 19
Quote:
Originally Posted by amiwolf View Post
aqb 0.8.0 compiler crashes (error #80000003) on starting using a 68000.
interesting! - can you elaborate on that? when exactly does it crash

- on ide launch?
- when you compile?
- when you try to run the compiled program?

how much RAM do you have?
cale_tucker is offline  
Old 19 December 2021, 05:35   #17
amiwolf
Registered User
 
Join Date: Aug 2015
Location: Emerald City
Posts: 95
Quote:
Originally Posted by cale_tucker View Post
interesting! - can you elaborate on that? when exactly does it crash
On IDE launch.

Quote:
Originally Posted by cale_tucker View Post
how much RAM do you have?
2MB Fast + 2MB Chip OS3.2

SnoopDos is saying the Software Failure is occuring on the 2nd write to aqb/prefs.ini during launch.
amiwolf is offline  
Old 19 December 2021, 06:35   #18
Pyromania
Moderator
 
Pyromania's Avatar
 
Join Date: Jan 2002
Location: Chicago, IL
Posts: 3,375
@cale_tucker

Looks like a nice release, thanx so much for the info. Are you the developer?
Pyromania is offline  
Old 19 December 2021, 10:08   #19
cale_tucker
Registered User
 
Join Date: Jan 2019
Location: Pierce / USA
Posts: 19
Quote:
Originally Posted by amiwolf View Post
On IDE launch.


2MB Fast + 2MB Chip OS3.2

SnoopDos is saying the Software Failure is occuring on the 2nd write to aqb/prefs.ini during launch.
config sounds fine to me though the issue might be 3.2 related, I am testing on 3.1 only (don't have any later kickstarts).

The 68000 most likely isn't the issue - at least for me AQB runs (and compiles and debugs) just fine on a 68000.
cale_tucker is offline  
Old 19 December 2021, 10:08   #20
cale_tucker
Registered User
 
Join Date: Jan 2019
Location: Pierce / USA
Posts: 19
Quote:
Originally Posted by Pyromania View Post
@cale_tucker

Looks like a nice release, thanx so much for the info. Are you the developer?
yes, I am the developer behind AQB
cale_tucker is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling with Amiga BASIC Compiler PDrill support.Apps 1 04 January 2021 20:17
Postal - Port to the Amiga - is there a decent C++ compiler ? lantus360 Coders. C/C++ 12 14 August 2020 13:47
Native code BCPL compiler for Amiga? steve_mynott Coders. Language 48 16 December 2018 19:41
amiga c/c++ compiler Fissuras request.Apps 41 18 June 2012 20:50
Best C Compiler for Amiga is? Pyromania Amiga scene 5 14 May 2002 17:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 14:20.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09635 seconds with 13 queries