I have to be honest. While this is obviously a smart and useful idea, it misses one of the core features of Jev: its confidence scores. Partial confidence could easily be mapped to fractional spaces, using unicode characters like U+2009: THIN SPACE. As it stands, this package is not harnessing the full power of Jev.
Instead of using Choice with criteria "space_0", "space_1"..., it could be even more elegant to use criteria names like "", " "... which could be directly inserted into response.
> This means the package can add between 0 and 10 spaces. If more than 10 spaces are needed, Jev has no correct option. Which feels appropriate for this project.
I'll raise a PR which uses Jev to check if the target length is beyond this range
> Please don't use this in production. Or anything important.
5 to 10 years from now, after this has worked itself deep into the npm dependency chain, we'll be lamenting how Jev-Leftpad is causing outages in critical services.
Jev-Leftpad
(github.com)229 points by fka 21 September 2026 | 87 comments
Comments
https://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/
It works great, but maybe your implementation could save me some money. I’ll test it and report back.
I'll raise a PR which uses Jev to check if the target length is beyond this range
https://en.wikipedia.org/wiki/Npm_left-pad_incident
Would have been funnier if it used the GLWTPL: https://spdx.org/licenses/GLWTPL.html
jev should only have the choice of space_0 or space_1, then recurse on n-1
this extends the implementation to infinite padding and is cleaner code
Btw, this model also has very tiny inherent bias: https://jev-bias-analysis.stupidlabs.lol/
5 to 10 years from now, after this has worked itself deep into the npm dependency chain, we'll be lamenting how Jev-Leftpad is causing outages in critical services.
I feel for the people whose 'AI strategy' is keeping up with every vibecoded vibecoding junk that releases
I use it mainly to check whether this code fits the rules I defined, just a yes or no. But I'm not sure if that's the right way to use it.
Though, again, a yet another project for a yet another "AI" to make someone else more dependent on it...
Related: