Code Monkey home page Code Monkey logo

Comments (9)

jvdp1 avatar jvdp1 commented on June 12, 2024

Thank you @PierUgit for this suggestion.
The Discourse discussion is interesting and it seems that there is interest for such an implementation.
My main fear is that such an implementation will be OS-dependent, which may result in issues with portability. However, it should not stop such a projet. I think it would be a nice addition to stdlib.

from stdlib.

PierUgit avatar PierUgit commented on June 12, 2024

It's definitely OS-dependent, and even worse maybe compiler-dependent. I assume that on Posix systems all compilers will provide the mmap features, but on Windows I don't know. The Intel compiler directly provides some routines in the kernel32 module, but I'm not sure how it goes with other compilers... I do not develop at all on Windows, so I'm a bit lost at that point.

Generally speaking, how are managed the OS dependent features in stdlib? Are there any in the existing code base? Are there available macros?

from stdlib.

jvdp1 avatar jvdp1 commented on June 12, 2024

I do not develop at all on Windows, so I'm a bit lost at that point.

Me neither...

Generally speaking, how are managed the OS dependent features in stdlib? Are there any in the existing code base? Are there available macros?

Currently only stdlib_system is compiled depending on the OS (with a CPP macro _WIN32). But it gives some issues (e.g., #738).
fpm is probably more advanced regarding OS-dependencies.

from stdlib.

PierUgit avatar PierUgit commented on June 12, 2024

I will try porting the demo code to Windows and see... I have to set up a dev environment on my multimedia mini-PC first (the one that sits below the TV, as this is the only Windows machine around :D)

from stdlib.

arjenmarkus avatar arjenmarkus commented on June 12, 2024

from stdlib.

PierUgit avatar PierUgit commented on June 12, 2024

An example code (even with some dust :)) could definitely help. And you're also welcome if you want to help.

from stdlib.

arjenmarkus avatar arjenmarkus commented on June 12, 2024

from stdlib.

PierUgit avatar PierUgit commented on June 12, 2024

I could install the MSYS2 environment on my office laptop, and start porting the code to Windows. I have a rough version of the anonymous mapping and it looks OK, so at the end everything should (hopefully) work.

Please find the zip file in the attachment (hoping that it is accepted) -- oops, that is not the case, well, I had to rename the two batch files, then it worked.

Actually there's no attachment in the GitHub interface, where I'm reading the posts. I am sending you a separate and personal email : could you send again the files in the answer?

from stdlib.

PierUgit avatar PierUgit commented on June 12, 2024

The code now runs on Windows :)

from stdlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.