Let's THINK about Mac C - Intro

Sdílet
Vložit
  • čas přidán 2. 06. 2024
  • Tinker Different - a forum about old computers including mac, hardware and software alike
    tinkerdifferent.com/
    Resource article on THINK C (and Symantec C++) Development with download links to pre-installed hard disk images for coding in C: tinkerdifferent.com/resources...
    Macintosh Librarian video on setting up a Mac emulator (Basilisk II): • [Labs] Emulate a Class...
    Classic Mac Gaming (gruz) video on setting up the mini-vMac emulator: • How to Play Retro Maci...
    Foray into 68000 - Game programming website for the Mac Plus in C (started in 2004): mu0n.github.io/ForayInto68k/i...
    #MARCHintosh - a month long celebration of Macintosh retrocomputing www.marchintosh.com/
    00:00 Intro
    03:19 Section 1 - Coding Environment
    05:40 Section 2 - Choice of IDE
    08:50 Section 3 - First App in Standard C
    13:07 Section 4 - Second App in Mac C
    21:25 Section 5 - Series Goals
    SONG
    Sharp Edges
    ARTIST
    half.cool
    ALBUM
    Sharp Edges
    Music
    License
    Creative Commons Attribution license (reuse allowed)
  • Hry

Komentáře • 55

  • @EricRangell
    @EricRangell Před rokem +8

    Thanks for starting this series. I used C many years ago on Dos and WIndows (and recently started using it again) but never did Mac programming, so it's great to find introductory material to help get started.

    • @1BitFeverDreams
      @1BitFeverDreams  Před rokem

      I'm glad it seems to be doing the job to reduce the entry level by a step or 2!

  • @ukozi
    @ukozi Před měsícem +1

    Love your instruction style. Ready for PT2 when you are!

    • @1BitFeverDreams
      @1BitFeverDreams  Před měsícem +1

      yeah, the next 2 videos are WIP right now. games part 2 about removing flickering/tearing and games part 3 is doing time measurements

  • @JohnAranita
    @JohnAranita Před rokem +3

    In the early '90s @ Honolulu Community College there were Macintosh SE/30s with THINK Pascal. With what I learned in ICS 111, I programmed a simple program. It was supposed to print lines, but the program could only print one line with a LaserWriter.

    • @1BitFeverDreams
      @1BitFeverDreams  Před rokem

      probably would have been possible with the humble but mighty ImageWriter II ! thanks for sharing your story

  • @GarthBeagle
    @GarthBeagle Před rokem +4

    Wow, nicely done!! And super cool you've already provided entire disk images to get started with 😀

    • @1BitFeverDreams
      @1BitFeverDreams  Před rokem

      Glad you like it; I impatiently await your demoscene Mac C coded works of art, my friend!

  • @unclerojelio6320
    @unclerojelio6320 Před rokem +2

    I still have a Lightspeed Pascal manual kicking around here somewhere.

  • @8-bitwallofdoom
    @8-bitwallofdoom Před rokem +1

    Great. Reminded me of my first program in Lightspeed Pascal which resulted in the bland Hello World in a non Mac-like window. Time to get my SE/30 out of the attic, recap it and see if it can be brought back to life. Eagerly awaiting more in this series.
    I took Brian Kernighan’s class at Princeton years back and am still in touch with him. He would be pleased that people are still coming on board.

  • @gabrielcamacho6112
    @gabrielcamacho6112 Před rokem +2

    I’m not a CZcamsr, but I do the exact same type of C programming on my Atari ST, another 68000 computer! Excellent video!

    • @1BitFeverDreams
      @1BitFeverDreams  Před rokem

      Nice going! Have you fallen into the assembly rabbit hole yet for your Atari ST?

    • @gabrielcamacho6112
      @gabrielcamacho6112 Před rokem +1

      @@1BitFeverDreams Yes, assembly language and I have a love/hate relationship! Lol Anyway, I’ll be following this series with interest!

  • @rotteneffekt4416
    @rotteneffekt4416 Před měsícem +1

    That was my start. Circa 1997 with think C 6, then code warrior, and then gave the apple developer thing (the one with the red dots in the menubar) a try. Adw I think. My book was "learn c on the Macintosh" by Dave Mark. Fun times, first you initialize all your managers (qd, windows, text, all that) and then you get to start your event loop (you fuck up here, you'll bring the entire system down, cooperative multitasking remember). For object oriented programming there was a library called power plant (of which the author said he didn't know what application to write so he wrote a framework). PCs were simpler to program for, amigas were more advanced. I started on a Mac, so my childhood memories. Oh yeah, memory management, you do it all by yourself, no help from the os. You manage to saturate the heap without releasing memory, it's a restart. The OS won't release your memory after the program quits. Welcome to start system 7.5. Have fun.

    • @1BitFeverDreams
      @1BitFeverDreams  Před měsícem

      thanks for sharing that! it's not every day that a veteran relates the experience from that time directly.

    • @rotteneffekt4416
      @rotteneffekt4416 Před měsícem

      @@1BitFeverDreams not a veteran, just something I had to deal with, because I was interested in it. Mind you, you had to pay for all the software back then, and were completely at the mercy of your parents. Anyway, it's a great way to learn how stuff works, it was way simpler back then. Noticed that this video is a year old, if nothing else, a good history project, that teaches how stuff works, but oftentimes that's where the fun is. When I was dealing with MPW makefiles and stuff, on a Mac, that stuff was a mystery (easy to use had it's drawbacks), no internet like today (though I imagine that stuff is pretty hard to find). All the best. On the plus side, you'll get to learn how stuff works. It was only a decade before, a few guys invented QuickDraw, and that was cutting edge at the time. Again have fun.

  • @EricsEdgeVideos
    @EricsEdgeVideos Před rokem +2

    WOOT!!! This is a very balanced introduction and explanation!
    I'm setting up this environment and following along.
    Thanks!

    • @1BitFeverDreams
      @1BitFeverDreams  Před rokem +1

      You have no idea how generous that comment feels like coming from the Hypercard Meister

  • @RudysRetroIntel
    @RudysRetroIntel Před rokem +1

    Awesome video! It's time to break out the Mac emulator. Thanks for sharing

  • @ypesh
    @ypesh Před 6 měsíci +1

    Really Really! good video, much appreciated thanks!

  • @desiv1170
    @desiv1170 Před rokem +1

    Great vid. I might look into this for my Mac Classic... Like you, I'm not a professional C programmer, but have poked at it from time to time (less than you I'm sure).
    And have to admit I was an Amiga guy. Still am (yeah, I know I have a Mac Classic; I like them both).
    Thirty some-odd years ago, I was writing a graphical solitaire game for my Amiga. I got it "working" but not finished and never released it back in the day. Lost all that code... Recently, I found a printout (yeah, on paper) of it and since I again have an Amiga, decided to see what I could do.
    Took a while, but got it working again! Felt great. I did put it up on Aminet, so it was 32 years or so from initial dev to release. ;-)
    I did end up doing it on the original compiler (DICE) that I had used back then, and it wasn't an IDE. ;-)
    I did try initially the "Cross compile it from your Windows machine route" but kept running into stumbling blocks...
    So went back to the old compiler... Except I did use Notepad++ to help me clean up code a bit from time to time...
    Might be fun to look at Mac C as well. I did some Mac Pascal back in college, but it's been a while.
    Thanx for the vid...

    • @1BitFeverDreams
      @1BitFeverDreams  Před rokem

      Thanks for sharing your still-68k experience, it counts! it's fun getting validation when the code compiles and run. can't wait to see what you have in store for the Mac side of things.

  • @SetOfAllSets
    @SetOfAllSets Před 2 měsíci +1

    I haven't ever owned a mac (vintage or new) and haven't used C since I learned rust, but this was entertaining anyway. Thanks!

  • @Samplers
    @Samplers Před měsícem

    Insanely helpful! Thank you!

  • @TheSulross
    @TheSulross Před rokem +1

    Lightspeed Think C, Macbugs asm monitor, and a 512K Mac was what I learned C programming on. Then on leaving university, got paid to use Apple's MPW C to program on Mac Plus.
    Lightspped C was the Turbo Pascal for the Mac at the time.

    • @1BitFeverDreams
      @1BitFeverDreams  Před rokem

      awesome, you're an OG mac programmer, I was starting to learn MS Basic 2.0 with my Mac Plus in the 2nd half of the 80's, transposing code meant for TRS-80, VIC-20, throwing out colored pixels and focusing on the rest.

  • @BillAnt
    @BillAnt Před 9 měsíci +1

    One thing is "thinking about it", quite another actually writing functional code for it. lol
    I have always done assembly programming on the Commodore C64 and Amiga, while MAC's were always a big mystery to me. heh

  • @tenminutetokyo2643
    @tenminutetokyo2643 Před 2 měsíci

    I remember buying THINK C brand new at Egghead software in 1989.

    • @1BitFeverDreams
      @1BitFeverDreams  Před 2 měsíci

      that's cool! thanks for sharing! I was 99% into games with my Mac Plus at that time, still. My dad wanted me to upgrade to THINK Pascal from MS Basic 2.0 near that time, but I couldn't wrap my head around it without proper books on the subjects available to me in French at that point in time, so I never did.

  • @RetroTechorDie
    @RetroTechorDie Před rokem +1

    Absolutely Awesome!

  • @ElShogoso
    @ElShogoso Před 7 dny +1

    What about Retro68k? That way you get to use modern toolchains and compilers instead of having to rely heavily on emulation for the coding part

    • @1BitFeverDreams
      @1BitFeverDreams  Před 4 dny

      You have successfully identified one item in my ever growing to-do list related to vintage computing!

  • @BigBadBench
    @BigBadBench Před rokem +1

    Great series concept! You almost have me believing that I could code.

    • @1BitFeverDreams
      @1BitFeverDreams  Před rokem +1

      I believe you can do it, one can show it's similar to electronics

  • @lawrencedoliveiro9104
    @lawrencedoliveiro9104 Před 9 měsíci +2

    It was always MPW for me. (C, Modula-2, Pascal)

    • @1BitFeverDreams
      @1BitFeverDreams  Před 9 měsíci

      With current day hindsight, would you have gone the MPW route now that the documentation is out in the open for the others? And what about if you started programming now for those machines if you were starting from scratch with no memory of MPW?

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 Před 9 měsíci

      @@1BitFeverDreams I knew about the THINK and other languages. I had colleagues using them, whom I would help with programming problems.
      MPW was for me the most powerful of the lot. Why settle for anything less?
      Before that, there was MDS (Apple’s “Macintosh Development System”). I don’t know if you remember that. That was a pain to use, but it’s how I got started in Mac programming.

    • @tenminutetokyo2643
      @tenminutetokyo2643 Před 2 měsíci

      MPW had scripting and automation which THINK C didn’t.

  • @BryanChance
    @BryanChance Před rokem +1

    ahhh memories...😂

  • @superbenk
    @superbenk Před rokem

    I really liked this 1st video but I haven't seen anymore show up in the series yet. Will you be doing more of these soon?

    • @1BitFeverDreams
      @1BitFeverDreams  Před rokem

      Thanks for taking the time to write that you appreciate the start of the series. I indeed have many episodes planned and I'll return to it right after I push out this unexpected video about a piece of new gear I can use with my early macs.
      Since you're keen on wanting the next think c video, I'll write down the topic of the 2nd upcoming one: minimalistic game programming (few quick methods to display a graphic, game loop, mouse and keyboard input)

    • @superbenk
      @superbenk Před rokem +1

      @@1BitFeverDreams Excellent! Both sound like great topics. I have very little (read none) C experience so I thought following your series might be a fun way to learn the basics. Something very charming about the classic B&W 68k Macs.

  • @PotatoFi
    @PotatoFi Před rokem +1

    Wow, this was great. It will be a few months until I'll have time, but I definitely want to do a Hello World on System 7!

    • @1BitFeverDreams
      @1BitFeverDreams  Před rokem +1

      we'll make a HAXXOR that ROXXORs with you in no time

  • @drywinddotnet
    @drywinddotnet Před 3 měsíci

    Dang. Just discovering this now. I obviously should have paid more attention to MARCHINTOSH '23. Well, hello world for MARCHINTOSH '24 . . .better late than never. And now for coding fun . . .

    • @1BitFeverDreams
      @1BitFeverDreams  Před 3 měsíci +1

      welcome to this corner of vintage. I've had entry #3 half baked since August '23. Plan is to use Marchintosh 24 as leverage to get it complete.

  • @cathrynm
    @cathrynm Před 14 dny

    Maybe ThinkC is better. I am a professional programmer, but, I installed MPW, and lost a bunch of time just figuring out how to get started.

    • @1BitFeverDreams
      @1BitFeverDreams  Před 14 dny +1

      I heartily recommend Think C over MPW. The latter is heavy handed and has a much higher learning curve.

  • @JohnAranita
    @JohnAranita Před rokem +1

    I really loved using ResEdit.

    • @1BitFeverDreams
      @1BitFeverDreams  Před rokem

      Resedit is so cool to use for non-programmers. It gives a sense of checking things out under the hood without getting entangled too much in the madness. I still have the ResEdit book we bought ages ago while shopping in this computer-specific library we used to visit in the downtown area of the city I grew up from

    • @rotteneffekt4416
      @rotteneffekt4416 Před měsícem

      I created thousands of icons with it in my teens.