Groups | Search | Server Info | Login | Register


Groups > comp.sys.apple2.programmer > #6288

Compiler Brain Dump - Your Chance to Tell Me How Wrong I am - Haha

Path csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Bill Chatfield <bill_chatfield@yahoo.com>
Newsgroups comp.sys.apple2.programmer
Subject Compiler Brain Dump - Your Chance to Tell Me How Wrong I am - Haha
Date Tue, 26 Dec 2023 11:49:51 -0500
Organization A noiseless patient Spider
Lines 44
Message-ID <20231226114951.65d00993@smilodon-gracilis> (permalink)
MIME-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
Injection-Info dont-email.me; posting-host="44b92dd12775da5ca6cfba13b7a6d703"; logging-data="3726914"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cAcp7nn4cgpym1RdMIrHCdUunfSWBL4Y="
Cancel-Lock sha1:hH1BwVwBPNbLr/vFpUhitKj8gAg=
X-Newsreader Claws Mail 4.2.0 (GTK 3.24.38; x86_64-redhat-linux-gnu)
Xref csiph.com comp.sys.apple2.programmer:6288

Show key headers only | View raw


I found ZBASIC. I've been looking at different structured BASICs and
compilers. ZBASIC seems pretty awesome. It can even do DHGR. Does
anyone have any experience or comments about it? It builds BIN
programs. 

I've eliminated other BASIC compilers because they don't have
"structured" statements like WHILE/WEND, REPEAT/UNTIL,
IF/ELSE/ENDIF, optional line numbers & Functions with parameters.
If you don't have those, you're still just writing a bunch of GOTOs that
are very hard to read. I love ApppleSoft BASIC, but for large programs,
it gets pretty hard to manage.

My main problem with Kyan Pascal is that the programs have to
run in it's special environment. You can also build a .SYSTEM file but
it also needs the runtime library to work. It's not really building a
stand-alone executable (BIN) file. That annoys me. And it takes a
LONG.... time to load that runtime library, for every program you want
to run. This kind of eliminates it for small programs. And it exits
BASIC.SYSTEM when it's done.

I know cc65 is the ultimate, but you're not actually using the Apple II
when you develop the program. It's more efficient that way. But, the
goal of retro is to use the retro computer. I do use cc65 and I love
it, but it would be nice to also have an Apple II hosted development
system.

I know Aztec C exists. But I haven't tried it. I love C but I find that
other people have a harder time reading the code because it is cryptic.
If you've done AppleSoft BASIC, something like ZBASIC is going to be
easier for you to read than C code. Pascal is easier to read than C,
unless you have a lot of experience with C or Java/C++/C#/etc. For
example, a young person learning to program who learns AppleSoft BASIC
could transition to ZBASIC and build compiled BIN programs every
easily. Kyan Pascal would be better, but it has the runtime library
that takes forever to load.

I can write Assembly "Language" but it is so slow to write simple
things. And most people can't even read it. 

I want other people to be able to read and understand my code. I feel
like it is a means of communicating how to accomplish tasks and how the
machine works.

Back to comp.sys.apple2.programmer | Previous | NextNext in thread | Find similar


Thread

Compiler Brain Dump - Your Chance to Tell Me How Wrong I am - Haha Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-26 11:49 -0500
  Re: Compiler Brain Dump - Your Chance to Tell Me How Wrong I am - Haha Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2023-12-27 05:35 -0600
    Re: Compiler Brain Dump - Your Chance to Tell Me How Wrong I am - Haha Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-27 11:24 -0500
  Re: Compiler Brain Dump - Your Chance to Tell Me How Wrong I am - Haha I am Rob <gids.rs@sasktel.net> - 2023-12-30 11:15 -0800
    Re: Compiler Brain Dump - Your Chance to Tell Me How Wrong I am - Haha Bill Chatfield <bill_chatfield@yahoo.com> - 2023-12-31 11:37 -0500
      Re: Compiler Brain Dump - Your Chance to Tell Me How Wrong I am - Haha I am Rob <gids.rs@sasktel.net> - 2023-12-31 13:17 -0800
        Re: Compiler Brain Dump - Your Chance to Tell Me How Wrong I am - Haha fadden <fadden@fadden.com> - 2024-01-01 07:42 -0800
          Re: Compiler Brain Dump - Your Chance to Tell Me How Wrong I am - Haha I am Rob <gids.rs@sasktel.net> - 2024-01-01 13:07 -0800

csiph-web