Comments (2)
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.
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)
- Bashisms HOT 6
- Missing conf.sh template
- Some questions about framework HOT 4
- please post some example HOT 6
- The footprint HOT 1
- Why are all hyperlinks blue?
- License? HOT 2
- Nice framework, needs a task runner HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from balls.