Buffer only outputs on program end #1

Closed
opened 2026-02-19 23:42:36 +01:00 by seppdroid · 3 comments
Owner

yeah, so the example of fib.cow won't work correctly:


MoO
moO
MoO

mOo

MOO
	// print first.
	OOM

	// temp copy of first number.
	MMM
	moO
	moO
	MMM
	mOo
	mOo

	// store second number off in the first position now.
	moO
	MMM
	mOo
	MMM

	// move back to temp number.
	moO
	moO

	// use temp to add to first and store in second.
	MOO
		MOo
		mOo
		MoO
		moO
	moo

	mOo
	mOo
moo

For the benchmark i will ask for the amount and time it:


OOO            moO OOO MoO      moO OOO      moO OOO      moO oom
MOO
mOo mOo mOo mOo OOM moO moO moO moO
MOo
mOo mOo mOo mOo
moO moO OOO mOo mOo
MOO MOo moO moO MoO mOo mOo moo

moO
MOO MOo moO MoO moO MoO mOo mOo moo
moO moO
MOO MOo mOo mOo MoO moO moO moo

mOo mOo mOo OOO moO
MOO MOo mOo MoO moO moO moO MoO mOo mOo moo
moO moO
MOO MOo mOo mOo MoO moO moO moo

mOo mOo OOO moO
MOO MOo mOo MoO moO moo

moO moO
moo

yeah, so the example of fib.cow won't work correctly: ```cow MoO moO MoO mOo MOO // print first. OOM // temp copy of first number. MMM moO moO MMM mOo mOo // store second number off in the first position now. moO MMM mOo MMM // move back to temp number. moO moO // use temp to add to first and store in second. MOO MOo mOo MoO moO moo mOo mOo moo ``` For the benchmark i will ask for the amount and time it: ```cow OOO moO OOO MoO moO OOO moO OOO moO oom MOO mOo mOo mOo mOo OOM moO moO moO moO MOo mOo mOo mOo mOo moO moO OOO mOo mOo MOO MOo moO moO MoO mOo mOo moo moO MOO MOo moO MoO moO MoO mOo mOo moo moO moO MOO MOo mOo mOo MoO moO moO moo mOo mOo mOo OOO moO MOO MOo mOo MoO moO moO moO MoO mOo mOo moo moO moO MOO MOo mOo mOo MoO moO moO moo mOo mOo OOO moO MOO MOo mOo MoO moO moo moO moO moo ```
Author
Owner

Same goes for i.cow

Same goes for i.cow
Author
Owner

Ive made a patch: 6e98f4860e going to see the what impact it has on the benchmark. Now an optional flag to get the behaviour back

Ive made a patch: https://git.seppjm.com/seppdroid/cowc/commit/6e98f4860e0c4ee75bedbfff96db37d45415b29a going to see the what impact it has on the benchmark. Now an optional flag to get the behaviour back
Author
Owner
Seems good, signing off. https://git.seppjm.com/seppdroid/cowc-bench/src/branch/main/results/2026-02-21T161946Z/report.md
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: seppdroid/cowc#1