• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Developing Software

equant

Well-known member
I'm looking for some advice. I'd like to develop two internet apps for OS7. Are there any freely available development tools for 68k macs, OS6 or OS7 with a decent collection of example code? I remember using Think Pascal, but it's not something I have anymore.

So if anyone can recommend a development system that is available (even low cost would be ok). One that makes socket programming easier and not harder, and/or comes with some example code for internet apps; that would be great.

Thanks,

Nathanial Hendler

Tucson, AZ USA

http://retards.org/

 

II2II

Well-known member
You will probably want to grab MPW from Apple, as well as any documentation for the Macintosh toolbox that you can find.

If you have a little money to burn, a product like CodeWarrior Gold 9 will include the compilers, debuggers, and some getting-started books all on CD. The IDE is also easier to use than MPW, albeit less powerful IMHO. I'm guessing that a second-hand copy is rather cheap these days.

 

equant

Well-known member
I looked a little at MPW, but it seems very modern. I need to develop both for, and on a Mac SE. Would it be a misconception to think that it's not even worth trying to get MPW running on an SE? I've found that Think Pascal is freely available. I remember using that on a plus at one point. I just don't know if it has any internet/socket programming abilities.

Are there any mailing lists or forums for 68k programming? I haven't found any.

Thanks for your reply.

Nathan

 

II2II

Well-known member
The version of MPW on Apple's website requires System 7.5.5, which would chew up the RAM on an SE. Though it does run on a 68k. There are older versions that will run in System 6, but I haven't seen those versions in circulation. (Though I do have a copy for System 7.)

Technically, Think Pascal was never freely available. Somebody just discovered that the updater on Symantec's FTP site was essentially the whole deal. Unfortunately it was also pulled a while back. :(

 

Charlieman

Well-known member
The old Info-Mac archive used to have a section with lots of frameworks and programming samples. Think C should run fine on an SE, and programming examples are definitely available.

 

Quadraman

Well-known member
Just wondering, is it worth using a high level language on a 68000 based machine with 4 megs or less RAM? Wouldn't an assembler be better for speed?

 

II2II

Well-known member
It depends upon the coder. A proficient programmer who has extensive knowledge of both algorithms and the system architecture should be able to beat a compiler in terms of optimized code any day. A middle of the road programmer with a middle of the road knowledge of algorithms should just stick to compilers since a compiler (even an old one with poor optimization) should be able to outdo that programmer. And a poor programmer with no knowledge of algorithms will end up with faster interpreted code if the interpreter provides a more extensive library. Choose where you fit in.

 

Kallikak

Well-known member
If you value your time, higher level languages are most definitely worth it. (4MB RAM is a huge amount of RAM for most System 6 programming.) And to the OP, find a copy of THINK C 5 or THINK Pascal 4 to use. There is heaps of sample code on the net - for internet/TCP/Sockets type stuff look at things like Peter Lewis's sample code (Stairways Software) and the NewsWatcher source. Old USENET articles are worth checking (google groups) and also the MacTech archives. Another thing is any info-mac archives have various bits of source code you can check - especially the old comp.sys.mac.programmer archives.

Ken

 

tomlee59

Well-known member
And if you're looking for something to write, consider a system-6 text-only browser, like wannabe. Heck, even if it were a port of (mac)lynx, it would represent a revolution for system 6!

 

Quadraman

Well-known member
If you value your time, higher level languages are most definitely worth it. (4MB RAM is a huge amount of RAM for most System 6 programming.) And to the OP, find a copy of THINK C 5 or THINK Pascal 4 to use. There is heaps of sample code on the net - for internet/TCP/Sockets type stuff look at things like Peter Lewis's sample code (Stairways Software) and the NewsWatcher source. Old USENET articles are worth checking (google groups) and also the MacTech archives. Another thing is any info-mac archives have various bits of source code you can check - especially the old comp.sys.mac.programmer archives.
Ken
You're making an assumption that every compact out there has been fully upgraded. Coders have to write for the lowest common denominator. I have three Pluses and one SE and none of them has more than the standard 1 meg. So is 1 meg sufficient RAM to hold the OS, plus the high level language with any extensions that may be needed plus the code plus any data that may be required by the code??

 

II2II

Well-known member
1 MB is a fair bit of RAM to deal with, and compilers tend to be fairly efficient (particularly if your code lacks structure, as many assembly programs would).

I tend to disagree with the "if you value your time" bit though. Programmers tend to create things for other people, not just themselves. So any programmer who values their time above mine leaves me in dismay. After all, 10 seconds here, 10 seconds there, and soon enough it amounts to real man seconds of lost time. Well, maybe Job's mantra for the original Macintosh doesn't work when there are only a few hundred classic Mac users left. :p

 

Kallikak

Well-known member
If you value your time, higher level languages are most definitely worth it. (4MB RAM is a huge amount of RAM for most System 6 programming.) And to the OP, find a copy of THINK C 5 or THINK Pascal 4 to use. There is heaps of sample code on the net - for internet/TCP/Sockets type stuff look at things like Peter Lewis's sample code (Stairways Software) and the NewsWatcher source. Old USENET articles are worth checking (google groups) and also the MacTech archives. Another thing is any info-mac archives have various bits of source code you can check - especially the old comp.sys.mac.programmer archives.
Ken
You're making an assumption that every compact out there has been fully upgraded. Coders have to write for the lowest common denominator. I have three Pluses and one SE and none of them has more than the standard 1 meg. So is 1 meg sufficient RAM to hold the OS, plus the high level language with any extensions that may be needed plus the code plus any data that may be required by the code??
No assumptions - just knowledge and experience. I've written heaps of code for system 6 - in C, Pascal and assembly, and none of this code was ever seriously constrained by RAM. Now speed on the other hand...

I tend to disagree with the "if you value your time" bit though.
Doesn't take away the simple fact that it takes far longer to write something in assembly than C or Pascal, so you pretty much only use assembly where and when you have good reason.

 

JDW

Well-known member
Could I ask why System 7? Goodness knows we could use some more, fun assembly-written apps for System 6! Even on a fast 68k Mac, System 6 makes it all the faster, and hence, more fun! And in many cases, the code you write for a System 6 app can also work without problem under System 7 (and faster too).

 

Kallikak

Well-known member
I did some searching a while ago and found that the maclynx code had been released, but it does not seem to be available anywhere now, and the only archive.org links I could find for it were broken. :( Now maclynx only works for System 7 and higher, but porting it down to System 6 would certainly be easier than starting from scratch.

Ken

*Kallikak* waves to JDW from Tokyo

 

II2II

Well-known member
Doesn't take away the simple fact that it takes far longer to write something in assembly than C or Pascal, so you pretty much only use assembly where and when you have good reason.
It will take longer because the code that you write is less dense, but I don't see why it has to take that much longer. After all, anything that you can do in a high level language can be mapped into assembler. In a lot of cases the mapping can be fairly direct. You even have things like function calls, can create object oriented code, and so forth, without too much effort.

Most people like to dis assembler because it is hard and because it is time consuming. Well, it is neither. It is just a very unfamiliar language that takes time to learn, and you have to put yourself in a different mindset (you have to think much more discretely).

 

bigD

Well-known member
Developing for C or Pascal using any of the THINK environments would be easy on an SE with 4 megs of RAM. No need to worry about doing assembly unless it's something that interests you, and if you do end up programming something that requires the extra speed, the inline assembler in THINK works fine. Lots of examples and tutorials out there on the web too.

MPW is very powerful, but I haven't been able to find any earlier versions that don't require 7.5.x, which as someone has mentioned is a hefty OS for an SE.

 

JDW

Well-known member
No need to worry about doing assembly unless it's something that interests you...
In my opinion, the benefits of properly written assembly code on an old Mac is worth making yourself interested! Seriously, it is THAT much faster! And on a slow Mac, speed is of critical importance. Plus, you can lower the RAM requirements too. Why do you think System 6 is so much faster than 7? No, it's not simply "the bloat of 7" that is the cause. System 6 is mostly assembly code, well written and compacted!

Let the assembly code roll off those programming fingers!

 

Kallikak

Well-known member
In Mac development, a large part of the code is related to handling the interface elements, and there is not much bloat or speed penalty for coding that up in a high level language. If you really need speed, the THINK C inline assembler is a very good choice - since you can refer directly to your variables etc, and it makes managing the stack much easier etc. Most of my coding was related to mathematical problems, so speed was certainly an issue, but a good knowledge of the compiler being used and the features of the language (C or Fortran mostly for my examples) meant tight loops could be very efficiently compiled and optimised. That being said, coding it in assembly would probably have roughly doubled the speed, but it was generally floating point code, and I always found floating point assembly hard to work with - largely because of the representation of the values and the associated difficulty debugging.

On the other hand, on my Apple 1 clone I never do anything in BASIC, but write everything in 6502 assembly. But I'm biased, since I wrote the assembler. [:D] ]'>

 

equant

Well-known member
I want to quickly thank everyone for their input. I'm now doing further research based on leads from this thread.

I'll have more questions shortly I'm sure.

Nathan

 
Top