MHN

DonHopkins

karma 25,755·joined April 13, 2014·profile on HN

    \ don@donhopkins.com

    FORTH ?KNOW IF HONK ELSE FORTH LEARN THEN

    : C(-; LICK SMILE NOSE WINK ;

    \ FORTH PAPER TAPE PUNCHER:

    : PT# ( L --- L/2 )
      DUP 1 AND IF 
        ASCII @ 
      ELSE BL THEN
      HOLD
      2/
    ;

    : PT. ( N --- )
      <# PT# PT# PT# 
         ASCII . HOLD
         PT# PT# PT# PT#
      #> TYPE
    ;

    : CUT
      ." -----------" CR
    ;

    : PTAPE
      CUT
      BEGIN
        KEY ?DUP WHILE
        DUP ." |" PT. ." |"  SPACE EMIT CR
      REPEAT
      CUT
    ;
Lisp -vs- Forth -vs- PostScript:

    ; Lisp:
    (defun caar (x) (car (car x)))
    (defun caaar (x) (car (car (car x))))
    (defun caaaar (x) (car (car (car (car x)))))

    \ Forth:
    : droop drop drop ;
    : drooop drop drop drop ;
    : droooop drop drop drop drop ;

    % PostScript:
    /poop { pop pop } def
    /pooop { pop pop pop } def
    /poooop { pop pop pop pop } def

Recent activity

  1. On ITS you can type ^Z to stop ZORK or any other job, to get into HACTRN. There's even...
  2. I'm delighted it made you jump! That was the whole point, to make a fun provocative...
  3. Good point. Emulators also let you do all kinds of things the original hardware wasn't...
  4. It looks that way because compilers are complicated. If you want to do something...
  5. If only they had AI to suggest a better name when they were naming GIMP. Edit: At...
  6. Envileronment!
    DonHopkins·1 day ago·on Farewell
  7. https://news.ycombinator.com/item?id=50673082 Happy 60th Birthday to PDP-10, running...
  8. Machine Room is a browser based emulated with a Korz based JIT. To celebrate the...
  9. Happy 60th Birthday to PDP-10, running ITS and Zork (hyperties.org)
    63 points by DonHopkins·2 days ago·7 comments
  10. Emacs has been artificially intellgent for decades....
  11. I wrote a bunch of Open Look design docs and widgets and plumbing in object oriented...
  12. Why don't you just ask ChatGPT "Why not ask ChatGPT instead?" instead?
    DonHopkins·3 days ago·on NP_R ≠ PAR_R
  13. "My favorite part of the 'many eyes' argument is how few bugs were found by the two...
  14. Crime Pays But Botany Doesn't: The Ethnomycology of Ugly Landscaping...
  15. You just need to subscribe to Chestr, my FHSRaaS startup: Financial History Speed...
  16. Industrial Bakelite Klunky Resonating Rotating Springy Switch Sounds:...
  17. Chaos Tequila Engineering Pied Piper Gets Hacked, Tres Commas Tequila - Silicon Valley...
  18. At least Bristol is still the world capital of scaling stools....
  19. Nobody expected the French Inquisition!
  20. Mitch Bradley retired and didn't want to ever write a Forth implementation again...
    DonHopkins·6 days ago·on 2035 came early
  21. Unless he takes a cue from Donand Trump and Stewart Brand and decides to be shameless.
  22. I will always wonder what would have happened if I'd given that old meth head lady...
  23. It depends on whether you value writing code or running code more. And how much of a...
  24. Speaking of Mr. Claude: Alan Kay thinks about Claude Shannon's way of dealing with...
  25. Another way to run whole operating systems in the browser is to put a second JIT on...
  26. A spoonfull of syntactic sugar helps the semantics go down.
  27. That's one of the central questions in Stanislaw Lem's "His Master's Voice"!...
  28. ...which is? NASA’s working definition is: "A self-sustaining chemical system capable...
  29. You can right the ship by wronging the ocean....
  30. If the world is as "understaffed" as you claim, delegating the menial work on the low...