this post was submitted on 23 Aug 2023
26 points (100.0% liked)

Technology

19 readers
2 users here now

This magazine is dedicated to discussions on the latest developments, trends, and innovations in the world of technology. Whether you are a tech enthusiast, a developer, or simply curious about the latest gadgets and software, this is the place for you. Here you can share your knowledge, ask questions, and engage in discussions on topics such as artificial intelligence, robotics, cloud computing, cybersecurity, and more. From the impact of technology on society to the ethical considerations of new technologies, this category covers a wide range of topics related to technology. Join the conversation and let's explore the ever-evolving world of technology together!

founded 1 year ago
 

Since its inception, Microsoft Excel has changed how people organize, analyze, and visualize their data, providing a basis for decision-making for the flying billionaires heads up in the clouds who don't give a fuck for life off~~the~~line

you are viewing a single comment's thread
view the rest of the comments
[–] nottheengineer@feddit.de 3 points 1 year ago (1 children)

Python is slow enough as is, who the fuck thought adding a web request to that was a good idea‽

[–] sugar_in_your_tea@sh.itjust.works 0 points 1 year ago (1 children)

Python is fast enough, and generally quite a bit faster than complex spreadsheet formulas. I've seen formulas that can take minutes that Python could do in seconds. A web request isn't going to matter that much.

[–] Aatube@kbin.social 1 points 1 year ago (1 children)

Web requests are \very\ slow compared to CPU computations, not to mention that time has to be doubled since it's a two-way route.

[–] sugar_in_your_tea@sh.itjust.works 0 points 1 year ago (1 children)

Sure, but it happens once. So as long as Python saves you more than the half second or so round trip, it'll be preferable.

I'd prefer it to be embedded, but I can absolutely see it being useful even if it's cloud-only.

[–] Aatube@kbin.social 1 points 1 year ago (1 children)

Wouldn't it need to send to the cloud and back every time you change one of the cells the script is depending on?

[–] sugar_in_your_tea@sh.itjust.works 0 points 1 year ago (1 children)

Yup, most likely. I'm saying the total calculation w/ Excel formulas is often greater than that round trip + computation time w/ Python. Excel formulas are pretty slow.

[–] Aatube@kbin.social 1 points 1 year ago (1 children)

I haven't seen how they were slower than just python.

Think huge formulas. I've seen formulas take minutes in Excel, but seconds when implemented better in a script. If you haven't worked with massive formulas, you're not the target market here.

Another application is accessing external APIs that don't have internal support. If you're accessing an external API, you're already paying a network overhead cost, so adding another isn't going to matter much.