logoalt Hacker News

Jev-Leftpad

93 pointsby fkatoday at 8:39 AM40 commentsview on HN

Comments

sethaurustoday at 10:21 AM

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.

MasterScrattoday at 11:50 AM

I’d be curious to see how reliable it is in practice, it sounds like a cheap and (hopefully) easy benchmark

ckastnertoday at 11:36 AM

Can't believe it's already been 10 years...

https://joelgrus.com/2016/05/23/fizz-buzz-in-tensorflow/

ollipaltoday at 11:01 AM

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.

fwlrtoday at 10:35 AM

    The tests mock Jev. 
10/10 no notes
fnandstoday at 11:41 AM

> MIT Licensed

Would have been funnier if it used the GLWTPL: https://spdx.org/licenses/GLWTPL.html

mawadevtoday at 10:34 AM

This needs an SBOM and a SonarQube Qualitygate pass to be considered production grade code

Topfitoday at 9:51 AM

Man-made horrors beyond my comprehension, neat.

show 1 reply
frangonftoday at 10:08 AM

Make sure to vendor this package if you want reliable operation.

    it('trusts Jev when it chooses the wrong amount', async () => {
    answer('space_2');
    await expect(leftPad('jev', 8)).resolves.toBe('  jev');
    });
raahelbtoday at 10:12 AM

> 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

show 1 reply
speedpingtoday at 10:36 AM

How did this guy get a single-letter GitHub username?

show 2 replies
networkedtoday at 10:53 AM

AI skeptics in shambles. For GOFAI, see: https://swish.swi-prolog.org/p/Proven%20Leftpad.swinb.

freakynittoday at 10:33 AM

Would be fun to have a test runner that uses Jev for assertions.

Btw, this model also has very tiny inherent bias: https://jev-bias-analysis.stupidlabs.lol/

show 1 reply
sparrowidletoday at 10:02 AM

On the npm doomsday thing, the scarier version is someone vendoring it and the padding silently drifting between runs.

larnontoday at 10:45 AM

I already have Jev fatigue.

selimondertoday at 11:47 AM

github.com/f is more impressive to me than jev-leftpad lol

meowfacetoday at 10:22 AM

But is it Web Scale.

rw_panic0_0today at 10:31 AM

what if 11 spaces are needed

w-lltoday at 10:14 AM

im so confused about what i should bring up at the 10am today

christkvtoday at 10:53 AM

Terrorist

fumblebeetoday at 10:00 AM

Can someone ELI5?

show 2 replies
applfanboysbgontoday at 10:02 AM

> 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.

show 1 reply
r34ct0r14today at 10:00 AM

why

tesnorindiantoday at 10:42 AM

Jev mania at its peak? HN is full of Jev like today.

yitchelletoday at 10:25 AM

wait.. is it just me or are we going overboard? I am waiting for jev assistance to exit vim, no wait.. a decision if we should exit vim or not.

serious_angeltoday at 9:54 AM

Now that's a rare GitHub Username!

Though, again, a yet another project for a yet another "AI" to make someone else more dependent on it...

Related:

    https://en.wikipedia.org/wiki/Jev_(AI_model)  
    https://typesafe.ai/
BoppreHtoday at 10:25 AM

[dead]

Marbleferry815today at 9:59 AM

[dead]