English Amiga Board


Go Back   English Amiga Board > Main > Retrogaming General Discussion

 
 
Thread Tools
Old 13 August 2024, 00:50   #61
DanScott
Lemon. / Core Design
 
DanScott's Avatar
 
Join Date: Mar 2016
Location: Tier 5
Posts: 1,219
Quote:
Originally Posted by Thorham View Post
C# and Java are just general purpose languages. Most games are written in languages that aren't specifically designed for writing games.
pretty much every game for mobile is c# these days, since javascript fell out of favour
DanScott is offline  
Old 13 August 2024, 02:09   #62
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 877
I grew up with C= 64 basic and knew no other version of it. You soon floated into hardware handling and understanding 6510 architecture by necessity, but in retrospect I find it peculiar that the "native" number format was floating point and not integer, and that there was not a clear distinction in when, where and how to use those different formats.

But I did hate magazine listings with all those print codes that gave you a headache. That one was all on C= though.
NorthWay is offline  
Old 13 August 2024, 08:04   #63
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,953
Quote:
Originally Posted by DanScott View Post
pretty much every game for mobile is c# these days, since javascript fell out of favour
Probably because of Unity.
Thorham is offline  
Old 13 August 2024, 12:17   #64
aeberbach
Registered User
 
Join Date: Mar 2019
Location: Melbourne, Australia
Posts: 472
Quote:
Originally Posted by DanScott View Post
pretty much every game for mobile is c# these days, since javascript fell out of favour

Eh? Surely it's mostly kotlin/swift for mobile.
aeberbach is offline  
Old 13 August 2024, 17:41   #65
Locutus
Registered User
 
Join Date: Jul 2014
Location: Finland
Posts: 1,203
C# or rather the specific set offered by Unity is super common for mobile *games*.

For apps however you are right with native applications, for new code bases it then quickly bisects in either Kotlin on Android or Swift on iOS.
Locutus is online now  
Old Today, 01:23   #66
Bruce Abbott
Registered User
 
Bruce Abbott's Avatar
 
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,856
Quote:
Originally Posted by Dunny View Post
I would argue yes, but not with AmigaBASIC. It was terrible.

I moved up from a Spectrum - where I coded in BASIC mostly - to an A1000 in very late '87 and it naturally came with AmigaBASIC.

I powered it up and after about an hour decided to drop it for now. It was bloody awful. Slow, even compared to the Spectrum, and with a horrifically designed IDE. Didn't go back to coding on the Amiga until much later.
I ran Rugg/Feldman benchmark #5 on a stock A500 and ZX Spectrum +2 in 48k mode. The results were:-

A500: 5.2 seconds

ZX Spectrum: 22 seconds (4.3 times slower)

The classic empty for/next benchmark showed an even greater difference.
Code:
(Amiga BASIC)
FOR I% = 1 TO 10000
NEXT I%

(Sinclair BASIC)
10 FOR I = 1 TO 10000
20 NEXT I
Results:-

Amiga BASIC: 2 seconds

Sinclair BASIC: 41 seconds (20.5 times slower)

But perhaps you are talking about the editor, not the interpreter?

In Amiga BASIC you have to type key words in full, whereas Sinclair BASIC types them out when you press their hotkeys. On the Spectrum's rubber keyboard this may be faster than typing full words. Only problem is you have know which key(s) to press. The +2 provides no hints on the key caps, so it took me ages to type in that 9 line benchmark (didn't use 128K BASIC because it's known to be slower).

Amiga BASIC has automatic keyword capitalization and auto indent, as well as structured format which makes lines numbers redundant. Scrolling is at least as fast as on the Spectrum and you can instantly put the cursor anywhere with the mouse. Using labels (when needed) instead of line numbers, indenting, white-space and structured programming makes the code much easier to read and organize. This is what BASIC should be, not pages of dense spaghetti code with peculiar lines numbers and REMarks everywhere to tell you what it does!

And yet, despite Amiga BASIC's objective superiority to Sinclair BASIC, you perceived it as 'slow, even compared to the Spectrum'. There are a few things I can think of that might give that impression:-

1. A stock WB1.x A500 is quite slow at rendering windows and text. Amiga BASIC uses 'simple refresh' windows to keep the memory footprint down, so it has to refresh the listing window after any part of it has been obscured.

2. The error requester can only be acknowledged with the mouse. Beginners tend to make make many errors which require cancelling that damn requester!

3. When you scroll it doesn't flush the keyboard buffer, so if you were holding the cursor key down it keeps going until the buffer is cleared out.

4. No file requester (not surprising for an application released in 1986 - the OS didn't have one and the custom file requesters supplied with some other programs were often quite dire).

These are minor annoyances, but could be frustrating to a new user who was fluent in BASIC on some other machine and had gotten used to its peculiarities. It didn't worry me though. Line-numbered BASICs were always a pain, and the machines they ran on were so slow!

The real problem with Amiga BASIC is that it isn't 32 bit pure and so can't run at full speed on 32 bit CPUs, which is a shame. The answer to that is Hisoft BASIC, which is almost 100% compatible and produces complied code that runs much faster.
Bruce Abbott is offline  
Old Today, 11:02   #67
Dunny
Registered User
 
Dunny's Avatar
 
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 2,175
Indeed, the editor was most of the pain - alongside actually trying to actually do anything with it. I picked up AMOS and Blitz a couple of years later and they flew by comparison.

As for the token keys on a speccy... I still know them all even now

My own implementation of Sinclair BASIC doesn't use them however, though I did the right thing and kept the line numbers.
Dunny is offline  
Old Today, 12:04   #68
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,883
Basic was never my thing but I remember Blitz being OK
Karlos is online now  
Old Today, 12:43   #69
CCCP alert
Registered User
 
Join Date: May 2023
Location: essex
Posts: 631
Commodore V2 BASIC is really just an introduction to machine code, you have to know all the registers and how to use them to do anything beyond silent PETSCII graphic adventures me and my friend wrote

On top of that you need to learn binary maths to draw your sprites too!
CCCP alert is offline  
Old Today, 13:31   #70
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,953
Quote:
Originally Posted by Dunny View Post
I picked up AMOS and Blitz a couple of years later and they flew by comparison.
Never used Blitz, but AMOS is sooooo much better than Amiga Basic. You can actually make something nice with it if you're skilled.
Thorham is offline  
Old Today, 14:00   #71
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,883
Quote:
Originally Posted by Thorham View Post
Never used Blitz, but AMOS is sooooo much better than Amiga Basic. You can actually make something nice with it if you're skilled.
I just couldn't get into AMOS, it felt too weird and alien. I assume this is less so with AMOS Pro since it seems to support intuition properly.

I liked Blitz though. Features I liked were that it compiles down to binaries, plays nicely with the OS, supports structures (or records as it calls them) and some nice builtin types like fixed point numbers and stuff.

Horses for courses though. Whatever you find fun and are most productive with.
Karlos is online now  
Old Today, 14:08   #72
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,883
Did anyone use HiSoft Basic?

I remember it being advertised as the more premium one
Karlos is online now  
Old Today, 14:31   #73
Dunny
Registered User
 
Dunny's Avatar
 
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 2,175
Quote:
Originally Posted by Thorham View Post
Never used Blitz, but AMOS is sooooo much better than Amiga Basic. You can actually make something nice with it if you're skilled.
I made so much stuff in AMOSPro - when I started working as a programmer/musician for an Amiga outfit in '93 they gave me a copy of AMOSPro to use and dammit I made so much good stuff that I have no idea where it is now.

And personal stuff too - dungeon master style 3D view on a Hack-like dungeon crawler, lightsynth, various demos and suchlike.

Blitz was even better, so much faster.
Dunny is offline  
Old Today, 15:00   #74
modrobert
old bearded fool
 
modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 57
Posts: 809
Quote:
Originally Posted by Karlos View Post
Did anyone use HiSoft Basic?

I remember it being advertised as the more premium one
Never tried, but looks pretty impressive:
http://cd.textfiles.com/amigama/amig...rres/hsb2.html

Besides being compiled Basic (as opposed to interpreter) with IDE and debugger (it's MonAM), especially like these features...
Quote:
* Link in Devpac 3 Assembly and SAS/C functions!
* Amiga.Lib functions fully supported, Full AGA support.
* Programs are compatible with all version of the OS from 1.3 to 3.1. Some new facilities are restricted under WB 1.3
modrobert is offline  
Old Today, 15:47   #75
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,415
I never used it myself, but it never really stood out as having anything significant that Blitz didn't have. Linking to external ASM/C functions does sound handy I guess, it's never something I missed with Blitz, which can use inline ASM and can access standard OS libraries. I must give it a whirl at some point though when I have the time - it's always been at the back of my mind, as was said, as the premium BASIC product of the time.
Daedalus is offline  
Old Today, 19:21   #76
nogginthenog
Amigan
 
Join Date: Feb 2012
Location: London
Posts: 1,324
I quite liked AmigaBasic at the time. It gave you access to most of the OS. Windows, Screens, BOBs, sprites etc

Quote:
Originally Posted by Bruce Abbott View Post
4. No file requester (not surprising for an application released in 1986 - the OS didn't have one and the custom file requesters supplied with some other programs were often quite dire).
AmigaBasic had a FD convertor so you could call ASL library requesters (and I did).
nogginthenog is offline  
Old Today, 21:23   #77
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,415
Yep, though asl.library was only a thing from Kickstart 2 on. Blitz worked around this by providing its own custom fallback requester if you called the ASL requester on a 1.x machine.
Daedalus is offline  
Old Today, 22:09   #78
Karlos
Alien Bleed
 
Karlos's Avatar
 
Join Date: Aug 2022
Location: UK
Posts: 4,883
Ruminating on the original question the OP posed, are we talking about aspiring programmers in general or people aspiring to write programs specifically for the Amiga?

Other than BASIC, what other languages that are suitable for people just getting to grips with the concepts are there for thr Amiga? I remember there was Pascal, too.

I personally think that BASIC dialects do
so much by keywords that it can leave you unprepared for moving on to more sophisticated programming paradigms. This doesn't matter if you just want to write simple things but it depends on how far your aspirations go.
Karlos is online now  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to find variant of this song Flow Res. Kenny Amiga scene 1 11 August 2023 21:58
A1200 case, desktop variant? Malakie Amiga scene 6 11 December 2021 18:12
Preferred Falcon variant eXeler0 Retrogaming General Discussion 19 20 November 2020 00:40
How to specify the game variant used in Arcade Mode? ketschak support.FS-UAE 2 07 March 2014 14:31

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 22:11.

Top

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