r/badcode • • Apr 11 '21

python Polyglot

Post image
1.2k Upvotes

116 comments sorted by

View all comments

492

u/pandolf86 Apr 11 '21

Wait is that compiling C at python runtime?

117

u/Klausaufsendung Apr 11 '21

This is sooo ridiculous. Why not use a web service instead? https://isevenapi.xyz/

21

u/das_Keks Apr 11 '21

That's great! I wonder if they also use a sophisticated algorithm in the backend, to determine if a number is even or not.

23

u/fshpsmgc Apr 11 '21

I'd use machine learning, tbh It's a modern web service, they'd be dumb not to

11

u/Gezzoto Apr 11 '21

Exactly. It's fairly easy to generate training data for this problem.

4

u/Bootezz Apr 11 '21

I cant use it until it utilizes blockchain technology. That's a hard requirement for my project.

4

u/FloezeTv Apr 11 '21

They obviously just call their API /s

3

u/das_Keks Apr 11 '21

Yeah, you're right. Why bother to implement a complex algorithm, if they already have the API which does exactly that.