Uploaded image for project: 'Erlang/OTP'
  1. Erlang/OTP
  2. ERL-242

filesystem notification support in R20?

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Help Wanted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      So from the talks it seems R20 will be better divided in terms of code base.

      We received unix socket support in R19, will we receive filesystem notification support in R20?

      What I mean is linux has inotify, freebsd kqueue, mac fsevents, windows iocp, solaris its own.

      What if all these api were supported under one unified erlang core module like
      filesystem:init()
      filesystem:watch/1,2
      filesystem:rm_watch/1,2
      filesystem:poll/1,2 (the FS api could poll and spawn a gen_statem/gen_server or leave it up to the end user to poll themselves)

      Relevent projects already implementing this:

      https://github.com/synrc/fs
      https://github.com/tsloughter/enotify
      https://github.com/vans163/inotify

      Support for this seems to belong as a core module because #1 it is a feature of the kernel. #2 knowing when files changed is crucial to webservers using caching so they can gzip + checksum the changed file efficiently. #3 hot reloading code when source file changed in development. #4 tons of other use cases.

        Attachments

          Activity

            People

            Assignee:
            kenneth Kenneth Lundin
            Reporter:
            vans163 vans163
            Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated: