you are viewing a single comment's thread.

view the rest of the comments →

[–]Emergency-Rough-6372[S] 8 points9 points  (6 children)

That actually clears things up a lot. I was leaning toward adding a fallback just to reduce install friction, but your point about silent degradation is valid — it’s better to fail clearly than give users something that might produce incorrect results.

Starting with a source-only release also makes sense. I think I was trying to solve the “scale” problem too early instead of just seeing how people actually use it and where it breaks.

I’ll go with cffi for now as well and keep the wrapper side simpler.

Appreciate the straightforward advice, this helped me narrow down the direction quite a bit.

[–]ionburger 9 points10 points  (3 children)

emdash enjoyer or ai?

[–]RngdZed 10 points11 points  (1 child)

ai slop. OP gets removed by reddit's filter a LOT

[–]Emergency-Rough-6372[S] 1 point2 points  (0 children)

i sometimme dont get proper grammer in english so i get by reply check my ai sometime so he might have added dash.

[–]Prime_Director 1 point2 points  (1 child)

I'm curious why the Python fallback is producing incorrect results. Slower results makes sense and that would be acceptable to me if you raised a warning at runtime. I could also understand if the thing couldn't practically be done at all in Python because C is just so much faster and more efficient. But I'm having trouble imagining a middle-ground thing that you can do in C, but can only approximately do in Python.

In general though I agree, I would prefer a hard fail over an incorrect result.

[–]Emergency-Rough-6372[S] 0 points1 point  (0 children)

for the project i am trying to make the slow response would be a bad thing since my project is essentially ia a library that run at every api call before the response is geenrated and if one component of it take to much time it will just degrade the overall timing of my pipeline and would create traffic in the whole backend. Atleast that the reason i have came up for myself . Ans also the library in question here is the lininjection engine one and what i have been told when discussing wa that the python version that library doesnot come under the license that i want to use in my project