Plan 9 Theory and Practice; Intro to Programming 7.0

Поділитися
Вставка
  • Опубліковано 11 січ 2025

КОМЕНТАРІ • 23

  • @xspager
    @xspager Місяць тому +4

    A nicer way to see a man page is to call man with the capital P flag like "man -P acme" to render the manpage in postscript and pass it to page(1) to display it. Left button is the page selection menu and the middle click is the program menu where the options to like zoom in and quit are found.

    • @adventuresin9
      @adventuresin9  Місяць тому +2

      I've done something similar. I often have a script in $home/bin/rc/pman that runs 'man -t $1 $2 | page -w' Then running 'pman acme' makes a new window with a nice looking acme section 1 page. Or 'pman 4 acme' will do acme section 4.

    • @xspager
      @xspager Місяць тому

      @@adventuresin9 neat!

  • @xspager
    @xspager Місяць тому +1

    Acme will be very familiar to people who have used Oberon

  • @henrygonzales9666
    @henrygonzales9666 8 днів тому

    How are processes and memory managed in plan 9?

    • @adventuresin9
      @adventuresin9  7 днів тому

      The general stuff for that can be found in /sys/src/9/port. For architecture specific stuff having to do with memory management units, look in the other directories in /sys/src/9

  • @alurma
    @alurma Місяць тому +5

    Btw, is there a matrix chat? Or signal, discord? Or only irc and mail?

    • @adventuresin9
      @adventuresin9  Місяць тому

      There is a mailing list for 9front, see lists.9front.org/ for irc, there is #cat-v on irc.oftc.net

    • @adventuresin9
      @adventuresin9  Місяць тому

      UA-cam gives me trouble posting links in the comments. Instruction for the 9Front mailing list can be found on the 9front dot org web site. For IRC, most 9front devs hang out in #cat-v on oftc dot net. There is a 9fans discord, but I don't control handing out invites for that.

  • @alurma
    @alurma Місяць тому +1

    Can you detect when a file gets changed?
    It there a system call for that?

    • @adventuresin9
      @adventuresin9  Місяць тому +2

      stat can be used to check atime or mtime, see 'man 2 stat' and 'man 5 stat'

    • @alurma
      @alurma Місяць тому +1

      @@adventuresin9 well, sure, but that's polling. I was thinking about something similar to epoll or kqueue.

    • @alurma
      @alurma Місяць тому

      Perhaps notes can be used for this, at least in theory

    • @adventuresin9
      @adventuresin9  Місяць тому +1

      I can't think of anything like that off the top of my head. It would be trivial to make a file system that sent a note when a file was accessed.

    • @adventuresin9
      @adventuresin9  Місяць тому +3

      I was going to do a synthetic filesystem for one of the programming examples in this series. I'll try out making a file that sends a note or makes a log when it is accessed or written to.

  • @ferio143
    @ferio143 Місяць тому

    10:30~
    I guess you meant right click (not left click)?

    • @adventuresin9
      @adventuresin9  Місяць тому +1

      Yah, part way through I started messing up my left with my right :P

  • @maxinehayes90
    @maxinehayes90 Місяць тому

    I found the rough draft for that paper! Where did you get the final? I've been collecting sources as I find them for the book.

    • @maxinehayes90
      @maxinehayes90 Місяць тому +1

      My apologies I didn't watch far enough yet for you to mention the links in the description

    • @adventuresin9
      @adventuresin9  Місяць тому

      You mean Ballesteros' paper?

    • @maxinehayes90
      @maxinehayes90 Місяць тому

      @@adventuresin9 yes! I found it on the Internet Archive