Uses JEV to do something that's one line of code. Also, "leftpad" was a useless package from years ago that many important packages used instead of writing the code themselves. Its outage at some point broke a lot of packages.
Jev is a new type of model that just makes decisions based on given options. It's small and really really fast.
Leftpad is a npm package that chooses if it should or shouldn't pad the left side of a string. It was famous for bringing down everyone's npm installs a few years ago.
This combination is a double joke. Put something stupid in something stupid.
> 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.
> 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
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.
important to note that the "confidence" score is... maybe not what people think it is - kind of useless, and just a convenience step from the probabilities.
from the docs: "confidence is a statistic computed from the probability distribution the answer already gives you." [0] I actually encourage people to visit the docs because it has a specific page on this with a little applet to really make this clear.
What else do people think it is? If Typesafe had found a way to measure arbitrary AI results against objective reality (past, future and present) they'd either be making a killing on the stock market or working for the NRO, not publishing that as a confidence value on their API
Well I think there's an expectation that it's similar to the probability score, something that's outputted by the model itself, and so there's some level of "intelligence" (e.g. being able to recognize if the subject matter is relevant to the data it's been trained on, or as an accumulation of errors e.g. it couldn't figure out the question).
Yeah I keep getting this weird sense that Jev is kinda poorly reinventing ML. I guess the graphs don't lie and theoretically I can replace luna with it, but I don't really use luna anyway.
What is the use case for a classifier that works 90% of the time...? I feel like if I'm classifying something, I probably care enough that 90% ain't gonna cut it...
I guess the answer is just agential stuff that effectively gets double checked by the LLM in the driver seat, anyway? That tracks, though it means that jev is mostly just for the people making harnesses. Which is all of us but still!
I think the argument would be that the classifiers of classic ML can be very useful and that Jav is a geenral purpose classifier you can just use that doesn't need to be trained per-task.
I mean when you get your bloodwork done to check for an illness, the test you get will give the right result 90% of the time - and depending on the result, you doc might order more tests, which could be more expensive but no mrpe reliable than the first - but they are going to be statistically independent, and after 2 more, he can be 99.9% sure.
Which begs the question, can Jev retest until it gets the right result? Can it tell how corellated two of its results are? 90% correct makes for a wonderful iterator, but a poor oracle.
i maintained a system where for .. reasons (like other systems) from early days have users with id: null "null" "" and some i do not even know how to write here
It's funny, i actually worked with this guy (same small startup, not closely), and recognized him from that unique username on this post. It's been so long i wouldn't have had any idea if not for the oddness of the single letter username.
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.
People who were in high school in 2016 and therefore not being aware of leftpad are currently in their 6th year of their career if they went directly to college and then a job.
Tech doesn't teach it's own history in a useful way, so we keep repeating it too.
I should have know that beforehand, I have terraform ready for quickly moving off of mechanical turk into agentic AI left padding, this load-bearing workload has to be clowd powered
Topfi | 12 hours ago
jojobas | 11 hours ago
adventured | 9 hours ago
You pad the text.
Oh, my god.
serious_angel | 12 hours ago
Though, again, a yet another project for a yet another "AI" to make someone else more dependent on it...
Related:
goosejuice | 5 hours ago
fumblebee | 12 hours ago
sklivvz1971 | 11 hours ago
grokkedit | 11 hours ago
jagged-chisel | 11 hours ago
Sohcahtoa82 | 4 hours ago
And yet we learned nothing from it and all the same problems keep popping up, only this time in the form of supply chain attacks.
intothemild | 11 hours ago
Leftpad is a npm package that chooses if it should or shouldn't pad the left side of a string. It was famous for bringing down everyone's npm installs a few years ago.
This combination is a double joke. Put something stupid in something stupid.
andrekandre | 6 hours ago
r34ct0r14 | 12 hours ago
fnands | 10 hours ago
r34ct0r14 | 7 hours ago
applfanboysbgon | 12 hours ago
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.
sparrowidle | 12 hours ago
frangonf | 11 hours ago
raahelb | 11 hours ago
I'll raise a PR which uses Jev to check if the target length is beyond this range
Tepix | 11 hours ago
Topfi | 10 hours ago
anon48293 | 7 hours ago
w-ll | 11 hours ago
dormento | 8 hours ago
sethaurus | 11 hours ago
preommr | 10 hours ago
important to note that the "confidence" score is... maybe not what people think it is - kind of useless, and just a convenience step from the probabilities.
from the docs: "confidence is a statistic computed from the probability distribution the answer already gives you." [0] I actually encourage people to visit the docs because it has a specific page on this with a little applet to really make this clear.
[0] https://docs.typesafe.ai/confidence
wongarsu | 6 hours ago
preommr | 3 hours ago
danieltanfh95 | 8 hours ago
bbor | 8 hours ago
What is the use case for a classifier that works 90% of the time...? I feel like if I'm classifying something, I probably care enough that 90% ain't gonna cut it...
I guess the answer is just agential stuff that effectively gets double checked by the LLM in the driver seat, anyway? That tracks, though it means that jev is mostly just for the people making harnesses. Which is all of us but still!
serbuvlad | 7 hours ago
torginus | 7 hours ago
Which begs the question, can Jev retest until it gets the right result? Can it tell how corellated two of its results are? 90% correct makes for a wonderful iterator, but a poor oracle.
meowface | 11 hours ago
dofm | 8 hours ago
yitchelle | 11 hours ago
rw_panic0_0 | 11 hours ago
brabel | 10 hours ago
queenkjuul | 7 hours ago
freakynit | 11 hours ago
Btw, this model also has very tiny inherent bias: https://jev-bias-analysis.stupidlabs.lol/
speedping | 11 hours ago
freakynit | 11 hours ago
mawadev | 11 hours ago
fwlr | 11 hours ago
slowmovintarget | 5 hours ago
marcus_cemes | 3 hours ago
speedping | 11 hours ago
azatom | 11 hours ago
so probably early bird
thrance | 11 hours ago
unshavedyak | 7 hours ago
anon48293 | 7 hours ago
tesnorindian | 11 hours ago
andrekandre | 6 hours ago
larnon | 11 hours ago
christkv | 11 hours ago
ollipal | 11 hours ago
ckastner | 10 hours ago
https://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/
BenoitP | 8 hours ago
"""
interviewer: OK, that's probably enough.me: That's enough setup, you're exactly right. [<--- !!] [...]
"""
Damn, Claude was there all along
ckastner | 7 hours ago
kevinrineer | 4 hours ago
So that's where in the training set current models get that phrase! /j
fnands | 10 hours ago
Would have been funnier if it used the GLWTPL: https://spdx.org/licenses/GLWTPL.html
selimonder | 10 hours ago
MasterScrat | 10 hours ago
jdw64 | 10 hours ago
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.
monxer | 10 hours ago
thisisauserid | 9 hours ago
hanspagel | 9 hours ago
It works great, but maybe your implementation could save me some money. I’ll test it and report back.
gandreani | 8 hours ago
silviot | 7 hours ago
random_cat_8745 | 9 hours ago
deaton | 8 hours ago
shawabawa3 | 8 hours ago
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
weego | 7 hours ago
hermannj314 | 8 hours ago
throwa356262 | 8 hours ago
https://en.wikipedia.org/wiki/Npm_left-pad_incident
weego | 7 hours ago
mrguyorama | 6 hours ago
Tech doesn't teach it's own history in a useful way, so we keep repeating it too.
rzzzt | 5 hours ago
TZubiri | 7 hours ago
I feel for the people whose 'AI strategy' is keeping up with every vibecoded vibecoding junk that releases
muragekibicho | 7 hours ago
tantalor | 7 hours ago
davidkunz | 7 hours ago
kmoser | 6 hours ago
mawadev | 6 hours ago
brunoborges | 5 hours ago
artursapek | 5 hours ago