Coder Social home page Coder Social logo

Doesn't really work on OSX about balls HOT 2 OPEN

jneen avatar jneen commented on August 12, 2024
Doesn't really work on OSX

from balls.

Comments (2)

jneen avatar jneen commented on August 12, 2024

Ha, yeah, thanks for catching these. The GNU-isms are a little hard to work around, although it's possible to do some feature-testing at the beginning and create wrapper functions for things that are just slightly different. My hunch is that many of the uses of sed, etc. could be replaced with clever uses of expr, but I'd have to dig a little further first.

I'll have to spend some time with the pipe buffering issues - I wonder if there's a way to force it to flush periodically, or change a file attribute to reduce the buffer size...?

from balls.

tabletcorry avatar tabletcorry commented on August 12, 2024

The pipe buffer issue is very difficult to solve. A hint as to how to do it is the stdbuf tool in GNU coreutils. It was written specifically to resolve this issue, but does not compile on OSX...

I actually talked this over with a kernel developer, and they suggested stty. I tried this out, but could not get the results I was looking for. He then suggested that I use a real programming language as this issue is libc dependent :)

Unfortunately, most people that have pipe buffering issues only come up with solutions that work on linux.

The most hackish way to solve the problem would be to always pump out huge messages, possibly by padding with a character that the browser will ignore (or just not render).

from balls.

Related Issues (9)

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.