News for hackers. Stuff that matters.
Re:What's up in the Python community? – April 2023 by qbasic_forever on Friday April 28, 2023 @05:41PM (#35747432)
I was browsing the most popular pip packages recently and was also downright shocked how much AI stuff is up at the top. I will be very curious if much of these things are still popular or relevant in a year.
Re:What's up in the Python community? – April 2023 by Spivak on Friday April 28, 2023 @05:52PM (#35747547)
By volume of different projects probably not, but by usage probably. Once winners get decided and paths get treaded the ecosystem will probably be smaller but I bet the user count will be bigger.

Look, even if you're the most biggest skeptic of all the AI stuff you can still do useful things with it that you couldn't before like present full-English interfaces and get embeddings for arbitrary text which is a leap compared to word2vec for search. I can dm my discord bot a picture of an appointment confirmation text and it with OCR + LLm it just schedules the event in my calendar. Also by gluing a v8 isolate to the LLm I can give it much more complicated date calculations. My favorite was "If f(n) is the nth Fibonacci number schedule an appointment in f(5) days."

Re:What's up in the Python community? – April 2023 by nwiswell on Friday April 28, 2023 @05:59PM (#35747608)
> you can still do useful things with it that you couldn't before like

> ...

> If f(n) is the nth Fibonacci number schedule an appointment in f(5) days

hmmm

Re:What's up in the Python community? – April 2023 by IanCal on Friday April 28, 2023 @06:08PM (#35747710)
That's absolutely not what they said. Let's keep hn better than that.
Re:What's up in the Python community? – April 2023 by nwiswell on Friday April 28, 2023 @06:11PM (#35747747)
It's obviously tongue-in-cheek, but it's also not not what they said.
Re:What's up in the Python community? – April 2023 by IanCal on Friday April 28, 2023 @06:32PM (#35747939)
It is not what they said. That was an example of complicated work with dates, which easily hits the level of "more complicated than you need". Before that, and before the cut in the quote was an obvious use case easily explained. I don't know why you want to go down this route but I won't engage further.
Re:What's up in the Python community? – April 2023 by axutio on Friday April 28, 2023 @06:26PM (#35747897)
Is this a setup you've already built? Could you outline what you've glued together for this bot?
Re:What's up in the Python community? – April 2023 by Spivak on Friday April 28, 2023 @07:36PM (#35748495)
Oh sure! So the OCR is a statically linked build of tesseract based on [1] and pytesseract [2] which is a super thin wrapper but easier than writing it yourself. The I stole/modified the prompt from [3] to get the bot to write Python programs that do date calculations. Then I used [4] to take the output in case the Llm didn't use the format I asked. I run the Python code it generates in a rootless container that uses the Lambda RIE [5] because I was too lazy to make my own thing.

[1] https://github.com/wingedrhino/static-tesseract

[2] https://pypi.org/project/pytesseract/

[3] https://python.langchain.com/en/latest/modules/agents/tools/...

[4] https://pypi.org/project/dateparser/

[5] https://docs.aws.amazon.com/lambda/latest/dg/images-test.htm...

Re:What's up in the Python community? – April 2023 by axutio on Saturday April 29, 2023 @07:12PM (#35758206)
This is amazing, thank you for sharing!
Re:What's up in the Python community? – April 2023 by mathisfun123 on Friday April 28, 2023 @06:04PM (#35747664)
So weird - you really think AI/ML is a flash in the pan when it comes to Python? You realize pytorch, tensorflow, pandas, numpy, scikit-learn are all approaching 10 years on pypi?
Re:What's up in the Python community? – April 2023 by qbasic_forever on Friday April 28, 2023 @06:32PM (#35747938)
Yeah all the stuff I was seeing seemed to be variations and light wrappers around openai APIs and such. We don't need a million versions of those things, one or two clear 'winners' should emerge. You can see them here, expand it to 50 per page and start browsing down after the usual suspects: https://awesomepython.org/
Re:What's up in the Python community? – April 2023 by mathisfun123 on Friday April 28, 2023 @06:54PM (#35748160)
I'm sorry but I think you don't know what you're looking at - of the NN things in the top 50 there I see 4 such wrappers. The remainder are the NN frameworks and various perf motivated implementations.

Also I don't know how this list is built but it seems to be literally measuring current popular things - so by definition no matter when i visit this list whatever is it at the top will probably wane in population shortly after I've visited.

Re:What's up in the Python community? – April 2023 by Kwpolska on Saturday April 29, 2023 @07:46AM (#35752029)
In a language that has a million incompatible and partial solutions to packaging?
Re:What's up in the Python community? – April 2023 by theaiquestion on Friday April 28, 2023 @07:15PM (#35748343)
I think this is more comparable to the bajillion JS frameworks that popped up between like 2015 and 2020.

Same kinda deal with the big frameworks either surviving (likely with large rewrites for improvements) or succeeded by a replacement. But it feels like that's died down a bit.

> pytorch, tensorflow, pandas, numpy, scikit-learn

I think it's likely these will either survive or be replaced by a successor - but we wont be seeing 100 new ai packages a day.

Re:What's up in the Python community? – April 2023 by forrestthewoods on Friday April 28, 2023 @06:14PM (#35747776)
Python has exploded in popularity over the past ~7 years because of AI. Python’s ever increasingly relevance is directly tied to AI.
Re:What's up in the Python community? – April 2023 by tomrod on Friday April 28, 2023 @06:17PM (#35747808)
And Flask, and FastAPI, and pandas, and pola.rs, and numba, and as glue code, and....

"AI" is pretty narrow, but the python ecosystem is massive, which a strong incumbency in the data processing space. Weird, since it isn't a typed language, but it sure is simple to write something quick.

Re:What's up in the Python community? – April 2023 by twic on Friday April 28, 2023 @06:21PM (#35747837)
> "AI" is pretty narrow, but the python ecosystem is massive, which a strong incumbency in the data processing space. Weird, since it isn't a typed language

Nor is Excel, and that didn't stop it.

Re:What's up in the Python community? – April 2023 by Tommstein on Friday April 28, 2023 @06:48PM (#35748103)
> "AI" is pretty narrow, but the python ecosystem is massive, which a strong incumbency in the data processing space. Weird, since it isn't a typed language . . . .

Having used it for over 15 years, I assure you Python is a strongly typed language.

Re:What's up in the Python community? – April 2023 by tomrod on Friday April 28, 2023 @06:50PM (#35748119)
Fair, I was wrong. It's a dynamically typed language. I meant to say it is not a statically typed language.
Re:What's up in the Python community? – April 2023 by forrestthewoods on Saturday April 29, 2023 @04:48PM (#35757024)
Sure. Python isn’t going away. But Python has tripled in popularity over the past 7 years and a very very large portion of that growth is due to AI, imho. [1]

So, will a given AI Python package be popular in a year or three? Maybe, maybe not. Will the top Python packages be AI related in 3 to 5 years? Absolutely, imho. I’d definitely take that bet.

[1] https://insights.stackoverflow.com/trends/?tags=java%2Cc%2Cc...