Skip to content

Can authors write guides to introduce how we can use this project in the Windows environment? #33

Open

Description

@thingsareright

Can authors make a instruction so as to guide other programmers to use tihis project in the Windows environment?

Activity

  1. syang0 commented on Jul 1, 2020

    @syang0
    Member

    Hi thingsareright,

    Unfortunately, the project only supports Linux right now, and I've updated the README.md to reflect this.

    However, I believe the only incompatibilities with Windows are NanoLog's usage of POSIX AIO/threads and the assembly rdstc instruction (which can be replaced with std::high_resolution_clock). If you like to make a port and submit it as a pull-request, I would be happy to accept it.

    Best Regards,
    Stephen Yang

  2. thingsareright commented on Jul 2, 2020

    @thingsareright
    Author
  3. Roman-Koshelev commented on Nov 15, 2020

    @Roman-Koshelev
    Contributor

    What were the reasons for using posix AIO? Asynchrony is emulated. This doesn't look optimal (just open the glibc code to make sure). In musl in General each operation will create its own thread

  4. syang0 commented on Nov 21, 2020

    @syang0
    Member

    Hi Roman-Koshelev,

    The decision was made long ago, so I may not remember all the details. However, I believe posix AIO was originally chosen because it was more convenient at the time.

    The only other option I had considered back then was the kernel's libaio, but that had requirements about memory alignment and (I think) performed a memory copy in the calling thread. For posix AIO, all I had to do was give it the pointer and byte size of a buffer, and the library would handle the rest; so I chose posix AIO.

    Best Regards,
    Stephen Yang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions