Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project Stalled #1

Open
BartMassey opened this issue Jul 8, 2020 · 6 comments
Open

Project Stalled #1

BartMassey opened this issue Jul 8, 2020 · 6 comments

Comments

@BartMassey
Copy link
Owner

Boy has this project gotten stalled. Need to go back to it. Apologies.

@NobodyXu
Copy link

NobodyXu commented Dec 9, 2023

Maybe it's a good idea to improve the libstd implementation?

I.e. instead of using BufWriter on top of LineWriter, write a new struct dedicated for stdout which skips line scanning it is large enough.

@BartMassey
Copy link
Owner Author

Maybe! But I think a real issue is that the program should get to choose what buffering algorithm is used. This has worked out real well for UNIX, and I see no reason why it is not the idea here. No heuristic is needed except as a default: let the program override it.

Mostly, I need to find a student to work on this with me 😀

@NobodyXu
Copy link

NobodyXu commented Dec 9, 2023

Maybe something like rawStdin(), rawStdout() and rawStderr() which has no buffering and simply writes to underlying c FILE* directly?

@NobodyXu
Copy link

NobodyXu commented Dec 9, 2023

Aha just realized that there are issues related to that in rust and you havealready commented there rust-lang/rust#58326

@NobodyXu
Copy link

NobodyXu commented Dec 9, 2023

And there's an ongoing proposal under discussion rust-lang/libs-team#148

@NobodyXu
Copy link

NobodyXu commented Dec 9, 2023

Also a PR to change stdout to use block buffering if stdout is not interactive rust-lang/rust#60673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants