Skip to content

examples: implement dc #207

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

Merged
merged 2 commits into from
Jul 9, 2025
Merged

examples: implement dc #207

merged 2 commits into from
Jul 9, 2025

Conversation

seija-amanojaku
Copy link
Contributor

@seija-amanojaku seija-amanojaku commented Jul 7, 2025

It's a fairly long implementation for dc, with bignum support, and it should be rather portable (although some platforms may require an actual getchar implementation, heap functions and memset/memcpy

I'm marking it as a draft mainly because the scale/decimal point feature isn't implemented yet, but integer math actually works quite well

We implemented bc.
@seija-amanojaku seija-amanojaku changed the title examples: implement bc examples: implement dc Jul 7, 2025
@rexim
Copy link
Member

rexim commented Jul 8, 2025

@seija-amanojaku if something is interesting enough but not fully implemented, there is no reason to make it a draft. Just leave a TODO for not yet implemented things and say it's ready for review. Rest of the stuff can be always implemented as separate PRs (even by somebody else who has more time and motivation).

@rexim rexim marked this pull request as ready for review July 8, 2025 13:52
@rexim
Copy link
Member

rexim commented Jul 9, 2025

@seija-amanojaku it seems to be working on my machine. Alright, let's get it merged. Thank you!

@rexim rexim merged commit c920522 into tsoding:main Jul 9, 2025
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

Successfully merging this pull request may close these issues.

2 participants