calculatorWithoutInt banner

calculatorWithoutInt

6 devlogs
8h 45m 54s

I’m making a simple python math library with one, self imposed restriction: I can’t use integers.

This project uses AI

AI is used only for learning, actual code is fully mine

Demo Repository

Loading README...

janekmusin

I’ve done 2 things: Added a README to pypi (much easier than you could expect) and improved the docs by adding the example section+clarifying some things.

I think that’s it for this project.

Attachment
0
janekmusin

I’ve added the AGENTS.md and made a few minor fixes.

Even if you don’t use AI in your project (like I do with this project), you should add AGENTS.md to it. There’s no guarantee potential contributors won’t use AI and even if you don’t like it, it’s better to get meh AI PR than bad AI PR, at least in my opinion.

My AGENTS.md is very minimal, but just that is enough to dramatically improve quality of vibe coded PRs (tested with Gemini CLI).

Attachment
0
janekmusin

Shipped this project!

Hours: 7.47
Cookies: 🍪 68
Multiplier: 9.15 cookies/hr

I’m really happy how that turned up.

I might want to revisit this project to implement better division and other arithmetical operations (Logarithms for example), but that doesn’t seems fun nor easy enough.

I’m absolutely sure I commit lots of horrible mistakes, but “If It’s Stupid and It Works, It’s Not Stupid”

janekmusin

The package is on pypi and ready. Creating it was much funnier than I thought it would be, it was a great experience.

Attachment
0
janekmusin

Multiplication is massively improved. Complexity went from O(n1n2) where n1 and n2 are components, to O(L1L2*(L1+L2)^2) where L1 and L2 are the lengths of input strings.

In the process, I also improved addition from O(max(L1, L2)L) to O(L1L2) where L1 and L2 are the lengths of input strings.

On the first picture there is new function, on the second is the old one. New was running for little less than one second, old was running for 5 seconds.

Attachment
Attachment
0
janekmusin

Basic arithmetic is working! However, the multiplication is quite slow, so that’s a thing to be fixed.

I also need to implement more operations, +-*/ is not enough for me.

Besides that, I also want it packaged in pypi, so that’s another thing to worry about.

Attachment
0