Readit News logoReadit News
s1mplicissimus · 3 months ago
This package has saved me so many hours of tedious gruntwork. It's like a junior developer - you still have to manually check their work, but when it's correct, it's a great productivity improvement.

And don't forget where this will go in a couple years with improved models and more computing power, it's gonna be awesome!

[/i]

1k · 3 months ago
This exactly. It is more important to move fast. Screw the edge cases. As long as it’s correct _most_ of the time, you can always fix anything that’s broken tomorrow.
pavel_lishin · 3 months ago
It's called "eventual consistency".
whatever1 · 3 months ago
Why on earth did the software engineering interviews were checking candidates’ ability to think about edge cases? Clearly management does not care.
sho_hn · 3 months ago
Developers who aren't using it are already falling behind.
SamBam · 3 months ago
Remember, it's not that AI that will take your job, it's the developers who need an AI to tell them if a number is even that will take your job.
darepublic · 3 months ago
pro tip: play around with the temperature especially when using big numbers as input
hzambo · 3 months ago
Wow, amazing tip. This hack improved my workflow by 10x.
koakuma-chan · 3 months ago
Are there actually still Junior Developers out there? I thought no one is hiring Junior Developers.
ArthurStacks · 3 months ago
Its actually the opposite of how people think.

We hire junior devs, but not senior, and dont replace our senior devs. So our developer base is moving towards being junior weighted with less senior. The reason being a junior dev is cheaper, complains less, is more capable now through utilising generative AI, works harder to impress knowing they arent in a safe position, and we can let them go more easily with less process and less reasons needed to be given.

echelon · 3 months ago
You laugh now, but our jobs are going to be toast in 10 years.

I thought self-driving would never happen, and now it's here.

margalabargala · 3 months ago
Almost here. Elon said Full Self Driving would mean full self driving within a year! That means we are less than 12 months away from not needing to drove ourselves anymore.

Deleted Comment

iamthemonster · 3 months ago
This is pretty useless to be honest. It's good for telling whether a number is even, but in our industry we need more powerful functionality. We also need to know whether a number is odd.
charles_f · 3 months ago
RTFM, it's not only implementing isOdd but also a large set of rarely used advance operations such as isEqual, or isGreaterThan

Trully AI is astonishing

whynotmaybe · 3 months ago
Why a specific function ?

With a few lines of code, you can just create a list with all the numbers that are even and when you need to check if a number is odd, you simply have to check if it's in the list.

turnsout · 3 months ago
Yes, this is what we do as a RAG workflow. We created a list of all 32bit unsigned integers and whether they were even or odd, and we pass that into the context. The future is amazing!
sureIy · 3 months ago
Do we have enough spaces in the ALL_NUMBERS array or do we want to group them by thousands?

ALL_NUMBERS_00001

ALL_NUMBERS_00002

iamthemonster · 3 months ago
we fired all our junior devs so we can't write code any more
briansm · 3 months ago
"This is pretty useless to be honest."

I remember saying that about Bitcoin 15 years ago.

crubier · 3 months ago
You can achieve this super simply this by prompting the OpenAI API to call this tool and reverse the output.
SamBam · 3 months ago
I tried that, but I kept getting "eurt" and "eslaf" and I'm not sure what to do with those. Do I need to send it back to the AI?
YokoZar · 3 months ago
Great news! The package includes an isOdd function as well!
nbittich · 3 months ago
isn't it breaking the one package one responsibility principle?uncle bob wouldn't be happy, it doesn't seem clean
Cerium · 3 months ago
Simply add one to the number and then test it again.
avandekleut · 3 months ago
Someone should implement this using tool calls.
bosky101 · 3 months ago
Sorry for the offtopic post, but I am looking to hire someone with 10 years of experience with is-even-ai. Urgent. Your first unpaid assignment will be to help load balance a bunch of MCP servers to add and THEN check if it's even. So much to go from here! We're a single threaded GPU first identity operator company with a lot history of returning the same thing. We're now expanding to combine and add multiple things. In 6 months of SOTA fine tuning we can already add upto 3 numbers. An MCP first. With temperature 1 we even add random numbers. An industry first. And we're just getting started. Join us. We're adding to our team!
66yatman · 3 months ago
This is a joke right?
aubanel · 3 months ago
Certainly not, it's actually possible to add 3 float32 numbers with 90% precision using AI! With a recent breakthrough, the team is working on pushing that to 10, we have enough cracked engineers to hope to make it happen soon!
thiht · 3 months ago
> I am looking to hire someone with 10 years of experience with is-even-ai

is-even-ai is only 7 month old so 10 years of experience is impossible, this is clearly a joke!

tasuki · 3 months ago
If I were a hiring manager and saw your comment, I wouldn't hire you. Could it have been a joke in a more obvious way? Do you think all the other comments here are serious?
parpfish · 3 months ago
Use this to add AI to your product to appease management.

Next week, “refactor” it out and brag to manager about cost savings and performance boosts, don’t mention “removing the AI”.

lrvick · 3 months ago
NPM packages can never be removed once added to a codebase. You can only add more.
freetime2 · 3 months ago
Boss: What have you been working on for the last quarter?

Me: I leveraged Deep Intelligence to build a Next-Gen Parity Classifier with 99.9% accuracy.

rthnbgrredf · 3 months ago
Smart Boss: And what did you actually do?
mitthrowaway2 · 3 months ago
Is there a version I can run locally? I don't want OpenAI training on my integers.
avs733 · 3 months ago
you need the roomHeater fork. It uses the Climate Change 1.5C license
johnisgood · 3 months ago
Why? Do you have anything to hide?[1].

[1] https://en.wikipedia.org/wiki/Illegal_number

bosky101 · 3 months ago
Rofl
thiht · 3 months ago
I have a few qualms with this library:

1. For an AI engineer, you can already build such a system yourself quite trivially by fine-tuning a lightweight inference model, deploying it behind a FastAPI endpoint, and orchestrating requests with a custom prompt pipeline. If you want to go further, you could even ensemble multiple LLMs for higher evenness accuracy.

2. It doesn't actually replace the modulo operator. Most people I know just use `n % 2 === 0` to check if a number is even, and they still keep that knowledge handy in case the AI service is down. This does not solve the reliability issue.

3. It does not seem very "viral" or income-generating. I know this is premature at this point, but without charging users for the library, is it reasonable to expect to make money off of this?

nbittich · 3 months ago
I don't think you can do 1. without distilling & quantization
jasonjmcghee · 3 months ago
You might be able to optimize this by using embeddings. Store all the numbers and search "odd" and "even" until you find your number.
asidiali · 3 months ago
This hit way too close to home, I’m cackling.
ukuina · 3 months ago
This doesn't work if I use a reasoning model like o3, which does not allow setting max_tokens.

Without reasoning, how can I be SURE a number is even?

parpfish · 3 months ago
I think before you would deploy this to prod, you should wrap it with a few guardrails to make sure it’s not hallucinating. Pretty simple — just take the output from the llm and see if it agrees with a simple mod2 operation.

Of it agrees, return model output to the user. Otherwise do a couple of retries with different prompts.

mrheosuper · 3 months ago
mod2 is outdated and has not been updated for years, nobody uses it anymore
hartator · 3 months ago
Multiple models?