Giter Site home page Giter Site logo

Comments (6)

Fishrock123 avatar Fishrock123 commented on August 10, 2024

The aforementioned code linked to by electron originates in this commit: nodejs/node@e653080#diff-9a205ef7ee967ee32efee02e58b3482dR242

The technical problem is this: https://github.com/isaacs/node-graceful-fs/blob/master/fs.js#L8-L10

Using process.binding() (especially in this way) effectively voids the warranty. Perhaps there is some other way to wrap / patch fs?

If not, I think I've motioned before that I wouldn't mind this functionality being in core. See also, this twitter thread: https://twitter.com/isntitvacant/status/608708444539895809

from node-graceful-fs.

vkurchatkin avatar vkurchatkin commented on August 10, 2024

node-graceful-fs relies on implementation details heavily. Either we should include it in core or rewrite it using public API only.

from node-graceful-fs.

bpasero avatar bpasero commented on August 10, 2024

+1 for making this part of io.js and/or the future node. The fact that this lib has to go deep into internals shows that it belongs into core. I would not even make it optional or through a flag. If I hit EMFILE, just retry for up to N times.

from node-graceful-fs.

Fishrock123 avatar Fishrock123 commented on August 10, 2024

See also: nodejs/node#1941

from node-graceful-fs.

Fishrock123 avatar Fishrock123 commented on August 10, 2024

+1 for making this part of io.js and/or the future node. The fact that this lib has to go deep into internals shows that it belongs into core.

Yes, I think you make a good point here. Stuff that can't be otherwise properly supported is what ought to be the primary candidates for core APIs.

from node-graceful-fs.

isaacs avatar isaacs commented on August 10, 2024

Fixed on v4

from node-graceful-fs.

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.