Stream: beginners

Topic: basic_cli buffered stdout


view this post on Zulip walther (Nov 29 2025 at 14:13):

Hi all, first post in zulip but I've been lurking and checking in on Roc over the past few years.

I noticed that there is buffered reader for File. Is there also a plan for buffered stdout? I didn't see anything in a quick search of zulip.

I'd be happy to add it to basic_cli if it's straightforward. (But, I also noticed there's some churn around the compiler and platforms. Will basic_cli platform work as-is with the new zig compiler?)

view this post on Zulip Anton (Nov 29 2025 at 14:32):

Hi @walther,

Is there also a plan for buffered stdout?

No plan yet for buffered stdout, can you describe the use case for this?

Will basic_cli platform work as-is with the new zig compiler?

No it will require a bunch of changes, I do expect it's mostly updating to the latest roc syntax. If you were to write buffered stdout for the current version there would not be much wasted effort though. The updated basic-cli platform may be done in about ~2-3 months, feel free to choose as you like.

view this post on Zulip walther (Dec 01 2025 at 11:19):

Thanks! I'll take a look at basic_cli then. My (toy) use-case is for a uniq implementation, but I'd expect any cli utility to buffer writes. (and if I do this, I'll probably do file writes also)


Last updated: Dec 21 2025 at 12:15 UTC