Logo Programming Language

(media.mit.edu)

130 points | by azhenley 2 days ago

40 comments

  • yogsototh 12 minutes ago
    I myself learned programming with logo, at my school when I was 8 or 10. And it was a delight, I am so grateful it existed.

    But quite surprisingly, when later during my Ph.D. part of my time was dedicated to give exercises to students. And we used logo instead of the more usual programming languages. And I think it really helped them to really internalise programming a lot better. Typically, the latest exercices introduced recursion which is immediately visible as fractals.

        HIDETURTLE
        
        PENUP
        SETXY -200 0
        RIGHT 90
        PENDOWN
        
        to dragon :degree :size
            setpensize 1
            if :size>5  [setpensize 2]
            if :size>10 [setpensize 3]
            if :size>20 [setpensize 4]
            if :size>40 [setpensize 5]
            ifelse :degree=0 [
                fd :size
            ][
                left  45 dragon (:degree-1) (size/4)
                right 90 dragon (:degree-1) (size/2)
                left  90 dragon (:degree-1) (size/4)
                right 45
            ]
        end
        
        dragon 6 3000
    
    
    if you want to give a try :)
  • kdavis 43 minutes ago
    Kicked off so many memories...

    Early 80's I learned Logo and Basic at a local store that sold Apple computers. It was called "The Logical Choice" and had a classroom tucked away behind a false wall and an English Sheep dog "Sir Isaac Newton" that would hang around the store!

    Nice, I just found a story on the store, page 5 of [1].

    [1] https://mirrors.apple2.org.za/ftp.apple.asimov.net/documenta...

  • Bankq 1 hour ago
    I'm forever grateful for having the access to Logo programming in early 90s, as a kid from a 3rd world country, for how it leads to where I am today.

    My first ever english word that I can spell out is REPEAT.

    • mauvehaus 1 hour ago
      In the early nineties in elementary school I lived in Belgium, and went to a summer camp where we programmed with Logo in a localized French version.

      I had played with Logo on Apple IIe's in the US, and thought it made sense that in a French-speaking region[0] they'd have a French version. I relearned what little I already knew, but regrettably, this did not help greatly with my French skills.

      All I remember from this is that `hazard' was the random built-in. Dunno why that's stuck, but there's probably some more important bit of information that should be in my brain if that weren't.

      [0] Yeah, yeah, I know French, Flemish, and German are the official languages. I was in a French-speaking part.

    • yurimalheiros 1 hour ago
      Me too. It was one of my first experiences with programming languages back in elementary school in Brazil.
  • kccqzy 16 minutes ago
    As a child, I really enjoyed Logo. It appeared as a sidebar on a math textbook about angles and line segments. I studied it like I studied everything else in the textbook, but I didn’t immediately realize it was a programming language, a means to control a computer. Fast forward a few years in elementary school, when the teacher actually began to teach Logo with all students in front of a computer, it was such a profound revelation for me.

    During the second Logo class, the teacher set up a competition. A prize was to be given to the student who could first plot an equilateral triangle, a square, a regular pentagon, a regular hexagon, etc, up to a regular icosagon. I won the prize because I wrote formulas to make the computer do the angle computation. I was so so proud of myself compared to my classmates who were computing angles with pen and paper. It felt like the first inkling of the power of automation.

  • ihumanable 3 hours ago
    I still remember when we learned logo in elementary school. I had to get my mom to go out and buy a 3.5" disk so I could save my programs.

    When I realized that all of logo was actually saved on that disk and I could continue playing with the turtle at home, I was amazed.

    Drawing little things, realizing that I was repeating stuff and breaking it into little functions so I could draw them again more easily. I was learning the essentials of programming and didn't even realize it.

    • astrobe_ 46 minutes ago
      Also as a child, I was amazed by the associative tables it offered; I thought "I can make intelligent programs". I think I was thinking AI but I won't trust my memory on this. But I played a lot more with the turtle.
    • Xirdus 2 hours ago
      We had it (or one of the clones) in middle school, but it was a demo version that had saving disabled. Half of each class was messing with the turtle. The other half was writing down the code with pen and paper so that we can have it graded.
    • reaperducer 1 hour ago
      I remember learning LOGO in school. There was a single 4K computer for the entire school, so we learned how to program by calling out turtle commands to the teacher who would draw the results with a marker on a sheet of plastic on an overhead projector.

      At the end of that exercise, the accumulated commands would be taken to the computer (in another part of the school) and entered into the computer, and eventually we'd get a plotter printout showing the results.

      Those early days of computing feel like we were like being on another planet.

  • lackoftactics 3 hours ago
    I didn't win logo programming competition in polish equivalent of 7th grade and I am still salty about it
    • Tade0 2 hours ago
      I learned the Language through examples because the version provided by the school didn't have documentation and in 00s Poland internet was still relatively rare.

      I... participed in the competition, but that's all.

      • lackoftactics 2 hours ago
        same problem, it wasn't exaclty the best experience with first programming language
    • knome 1 hour ago
      ha. 4th grade for me, though I'm more amused than salty about the affair. who's ever heard of 'recursion'? honestly.
      • lackoftactics 1 hour ago
        tbh, sounds like a made-up term coined by someone who could go on and on
  • briandw 1 hour ago
    Logo was created by by Seymour Papert. I highly recommend his book Mindstorms: https://en.wikipedia.org/wiki/Mindstorms_(book) It was written in 1980 but mostly could have mostly been written today. All the same issues with teachers misunderstandings and fear of math and technology and refusal to change to meet the challenges of age.
  • consumer451 1 hour ago
    Anyone here remember a 1980's Logo-programmable robot that I once used in a TAG program? It had a pen, we would lay it on top of a giant sheet of paper.

    It was like a little futuristic tank. I searched for a minute, and I cannot find the exact model. Did I imagine this?

  • thought_alarm 1 hour ago
    This on-line version of Logo is pretty great: https://www.calormen.com/jslogo/
  • corysama 3 hours ago
    Logo was my introduction to programming. Working on a 1 MHz Commodore64, my masterpiece was a fireworks show that was animated by the fact that the individual drawing commands were so slow you could watch them play out.

    So, draw a curve from the ground to the sky. Draw some explosion shape. Change pen color to the sky color. Draw the curve and the explosion again to erase them. Change pen color and start the next firework.

  • turtlegeometry 1 hour ago
    This is on top of HN right now, and there is still nobody who has mentioned the fact that the tier-1 book Turtle Geometry <https://direct.mit.edu/books/oa-monograph/4663/Turtle-Geomet...> , is in open access.

    Do yourself a favor, and read it today : it is that good. Even though it is quite depressing to see that the revolution in education that the book was predicting in its preface, simply never happened.

    • madcaptenor 46 minutes ago
      I was not expecting to see that the book would culminate in a chapter on general relativity!
  • mschaef 2 hours ago
    Back in 1983, my elementary school was a part of a Logo pilot program. We had a lab of Commodore 64's that I had free run of (my mom was a teacher there), and it's why I do what I do all these years later.

    What I find interesting it that it's not just programming, specifically. Logo is a highly interactive and dynamic language (a relative of Lisp), and that influenced the way I think about writing code. Seymour Papert did a lot for me, albeit highly indirectly.

    https://mschaef.com/c64

    • r2ob 2 hours ago
      Logo was my first contact with computer (pc 386)
  • dr_kiszonka 14 minutes ago
    So I know a Lisp dialect? Fascinating.
  • Duanemclemore 2 hours ago
    When I was seven I wrote my first program. It was in Terrapin Logo and evenly tiled the monitor of my elementary school's Apple IIe with hexagons.

    It's been all downhill since.

    • jasperry 20 minutes ago
      Very similar to my story. Sometimes I feel sad that I'll never know who was the enlightened administrator in my humble district who somehow got my elementary school an Apple computer lab with Logo in 1983, and that they'll never know what an impact it made on my life.
    • JSR_FDED 2 hours ago
      Turtles all the way down?
  • timbert 1 hour ago
    I have fond memories of using Logo on my dad's Apple ][ back in the 80's. Glad to see others feel the same!
  • nsoldiac 1 hour ago
    They taught us Logo at school in the early 90s in Lima, Peru. I'll never forget the aha moment of going from "forward 10, left 90" to "repeat 360 [forward 1 right 1]" and bam a circle! They had us bring a formatted 5in floppy disk (they were indeed floppy) to our first class; what was this sorcery?
  • HexDecOctBin 1 hour ago
    I learnt that I must be good at computers when in 4th grade, despite never having touched a PC before, I not only managed to ace my Logo class but was asked by my teacher to help out other struggling students (I am just realising that essentially made me a TA in our class). I still remember trying to understand the Pen Up and Pen Down commands from a book with no immediate access to a PC to try them on.
  • haunter 2 hours ago
    This has to be one of the most widely ported language of them all because there are countless implementations https://en.wikipedia.org/wiki/Logo_(programming_language)#Im...

    310 versions!! https://pavel.it.fmi.uni-sofia.bg/logotree/pdf/LogoTree.pdf

    • azhenley 2 hours ago
      I’d say Lisp, Logo, and Basic as the top 3.

      How come no one makes dialects of PHP?? :)

      • mbork_pl 18 minutes ago
        Actually, lisp and basic - logo is a dialect of lisp.
  • derac 1 hour ago
    One of the first interesting programs I made was LOGO in flash (actionscript) :D It's a great tool for learning basic programming since it's interactive, graphical, and simple.
  • stusmall 2 hours ago
    Logo started my love of programming. I will always be thankful for it and that little turtle. IIRC there was a limit of 128 stamps in LogoWriter and my sister and I would fight so much about it.
  • animateus 3 hours ago
    Oh my god - Logo, brings back memories of my childhood and my first "microcomputer": ZX Spectrum +. I spent countless hours trying to force the damn turtle to draw shapes I wanted it to. Unbelievable that this language is still alive.
    • fipar 2 hours ago
      Same for me but on the Spectrum's illegitimate South American cousin, the TK-90X :)

      The language is still alive but I think Scratch has mostly taken its place.

  • mococa 3 hours ago
    I learned how to program (& do CAD) with LOGO when I was 8 y'old.
  • larodi 33 minutes ago
    SVG paths are basically LOGO programs.
  • spike021 1 hour ago
    Logo in either elementary or middle school in the early 00's was my first experience writing any code. Good times.
  • juancn 1 hour ago
    Logo in Spanish in a C128 when I was in third grade started my journey in software.

    After a while I was running laps around my teachers and I knew computers were for me.

  • wooperville 3 hours ago
    The majority of GenX programmers I know learned logo in the 70s and early 80s. Such a great introductory language.
    • countrymile 1 hour ago
      I'm currently writing a history of this. What year in the 70s? I've struggled to find widespread logo use before the end of the 1970s.
    • joeypickles 2 hours ago
      Yeah, somehow I owe my entire software engineering career to that flower and garden program example. There was something about being able to add new words based on primitives, and new words based on custom words, that captured me for good.
  • tshapedrob 2 hours ago
    Berkeley Logo was one of my first programming languages. The idea of declaring functions with the keyword “to” still feels like a fun and good idea, even though of course it doesn’t matter. Just a different perspective.
  • lormayna 1 hour ago
    I remember one of my professor that created a map of all Italian regions in logo. It was probably 1992.
  • whobre 2 hours ago
  • cdaringe 1 hour ago
    I can’t read this website. The white text has insufficient contrast in the menus and the lightweight text is too thin!
  • unlux 1 hour ago
    this is so nostalgic. I remember going to my School's Computer Lab and trying to draw circles and then later some stars and stuff. so cool
  • mezzman 2 hours ago
    It's turtles all the way down
  • agumonkey 2 hours ago
    iirc logo had lambda and recursion, which means a lot of kids in the 80s were that close to become lispers
    • Jtsummers 2 hours ago
      Logo was directly inspired by Lisp and the first implementation was even written in Lisp.
  • dbg31415 1 hour ago
    Logo was the first programming language I ever learned. I was in third grade in Seattle, Washington, around 1989, and I absolutely loved it. Looking back, not hard to see that it was responsible for sparking a lifelong love of technology and programming.

    TThe only reason we got to learn it at all was because one of the daycare workers was a graduate student at the University of Washington. She somehow got permission for any of the kids who were interested to use the school's computer lab. Which, I think, took some doing on her part.

    Back then, computers were treated like sacred objects. They made a huge deal about kids using them. The whole first week of the class was basically some grumpy old guy with a white beard telling us, "These are not toys! These are expensive machines!"

    We had to wash our hands before we were allowed into the computer room. The old guy would literally "hand check" us at the door. You had to hold out your hands and show him that they were clean before you were allowed anywhere near the computers.

    Logo was a lot of fun. We had a competition to see who could draw the coolest thing. Just like foundation for a "hackathon" really. Every day, "OK, Kids, you have 30 minutes, let's see what you can do!" Was a lot of fun.

    I had to ask my mom for a floppy disk. "Mom, I need $5 for class supplies..." And then I had to explain that it was for a computer disk... and she had to call the school to make sure I was getting the right thing... even though I told her 100 times that I needed an un-formatted 5.25" disk! Ha.

    Anyway good memories here. Logo and HyperCard were gateway drugs.

  • Towaway69 2 hours ago
    Not to be confused with NetLogo ;)

    https://www.netlogo.org/

    • Night_Thastus 2 hours ago
      Are they totally unrelated?
      • Jtsummers 1 hour ago
        NetLogo is its own language, but definitely inspired by and modeled on the original Logo (thus the name). But it has some differences in syntax and semantics, and is oriented toward agent based modeling (which also introduces some new syntax and semantics).
  • cmrdporcupine 1 hour ago
    We used Logo on Apple IIs quite a bit in the 80s but I don't have fond memories because Logo is one of those things that at the time when using it one had no idea (and neither did the teachers teaching it) that there was something of much more substance behind it than just drawing lines and circles on the screen. Which was frankly kind of boring. We'd get as far as simple procedures but that's it.

    There's a whole Lispy beauty behind the language that teachers didn't know how to transmit to the kids because they themselves didn't understand it. The emphasis on turtle graphics was limiting.

  • the_homeless_go 2 hours ago
    [dead]
  • spider-mario 2 hours ago
    Could we please not make text light grey on white? It’s just barely AA compliant when bolded.

    https://snook.ca/technical/colour_contrast/colour.html#fg=96...