Stark9837, to programming
@Stark9837@techhub.social avatar

Many people argue that some #programming language is too slow for a task, this is often true, but what they don't realise, my language of choice isn't my bottleneck.

For example, writing a #Mastodon bot like @Python. Currently, the webscraping and processing of posts to Python Discuss takes a few seconds, but a simple bot like @3dprinting has no such processing.

So running the bot with #Rust would give me mo added benefit. Ok, cool, it now processes a new follower and sends a welcoming message within 0.1s instead of 0.11s. Cool, but you forget, we are using the same API, and this response time is negligible.

Stark9837,
@Stark9837@techhub.social avatar

@mo8it

In the space race industry, they have a thing where if it is not feasible in the next 20 years, wait 5 and you'll be able to do it in 10 years, winnig 5 years in the end.

A company has limited resources, especially a startup type thing. Doesn't help that you bankrupt yourself for a POC. Build an MVP and then innovate from there.

But don't put it off too long. Otherwise, as you said, you get stuck.

#Programming is like a relationship. It needs constant work, and you need to be happy. If you start slacking, you'll wreck the relationship beyond repair.

@Python #Python

Stark9837,
@Stark9837@techhub.social avatar

@mo8it

Because we often say, "Why pay a C++ developer for something a Python developer can do in a week?"

Don't get me wrong, I do embedded, so I know my C++ and Assembly. I am a degenerate assembly lover and would use that before an Arduino because I can.

But doing so takes so much longer.

What you say is 100% true, and it is an easy thing to fall into. I think it should be determined by the lifetime of the code and the usage.

If it is a once-off use for database migration, just do it in Python. Yes, #Rust can do it faster, but should I spend so much more time to code this once-off problem?

The other thing is, again, where is your bottleneck? If my servers can only handle 10k users, Python can handle 100k users, but only 5k users will use it, go Python.

But you should always evaluate your solution and look at the ROI of upgrading now or in the future.

@Python #Python

computingnature, to random

Make your next discovery using , a visualization method for large-scale neural data. Paper now out: https://www.biorxiv.org/content/10.1101/2023.07.25.550571v1 (click on the gif)

gif of neural activity re-sorted by Rastermap algorithm

computingnature,

Learn more on our github: https://github.com/MouseLand/rastermap. #Rastermap is fast thanks to #python #numpy, #scipy, #numba, and #scikit-learn. The GUI is powered by #pyqt and #pyqtgraph, and supports npz, npy, mat and #nwb ophys files.

Stark9837, (edited ) to Youtube
@Stark9837@techhub.social avatar

"Why We Left The Cloud"

Recently watched this video by #ThePrimeTime on #Youtube, and his hot-take 🔥 was that they were using #Ruby, and half of their pain was caused by this.

I have no experience with Ruby at all and most probably won't even recognize it if I were to read it.

If Ruby is such a bottleneck and inefficient, why did #Mastodon :mastodon: use Ruby for its implementation?

I know Ruby is often praised for servers and backends, especially APIs, but we have many solutions for this in #Python :python: , which I wouldn't recommend, but #Go :golang: and #Rust.

Does anyone have opinions or sources for this statement?

Video: https://youtube.com/watch?v=6h4oiPwtwDk&feature=share

Original article:https://world.hey.com/dhh/why-we-re-leaving-the-cloud-654b47e0

#programming #tech #infosec

Stark9837,
@Stark9837@techhub.social avatar

@mo8it @badrs

I like #Rust and #Go :golang: for backends. For simple personal prohects, #Python :python: and #Flask are great. The development process is fast, I can push it out under hours. But I wouldn't use it for mission critical systems!

vwbusguy, to jupyter
@vwbusguy@mastodon.online avatar

I think this might be the smallest PR I've ever reviewed. #Jupyter #JupyterHub #scipy #datascience #containers

vwbusguy,
@vwbusguy@mastodon.online avatar

@marcoshuerta The joys of #python, am I right? 😂

rachelngibbs, to random

I'm really proud of myself for returning after work after an extensive absence due to what was most likely autistic burnout, but now after being made redundant I'm job hunting and every time I mention that I want to work 30 hours a week it immediately shuts down the conversation.

rachelngibbs,

So if you happen to know of any jobs in tech for someone with a background in device drivers working mainly in #C and some experience with working in , remote in the UK but preferably with an office in the north that does allow working less than full time please let me know.

karen, to random
@karen@floss.social avatar

How I wish I could go to #NorthBayPython this weekend! If you're in the Bay area - this is happening this weekend, let me live vicariously through you! https://2023.northbaypython.org/

kushal,
@kushal@toots.dgplug.org avatar

@karen Maybe you can come to https://www.pycon.se/ in #Stockholm :) #Python

johnbeers, to random

I started working on the next iteration of #image2sound which was inspired by the idea that sculptors simply reveal what is hidden within the stone. What if the image itself determines the key, the tempo, etc. rather than the user passing arguments to the utility?

johnbeers,

Version 0.5 of #image2sound is out! This is a #Python utility I wrote that converts images to sound. This version adds a "reveal" mode, which allows the utility to derive the key, tempo, and track length from the image data itself instead of depending on user specified arguments.

https://codeberg.org/jaerrib/image2sound

nomiddlename, to retrocomputing

Interesting article on emulating a 6502 processor in python. https://dailystuff.nl/projects/writing-a-6502-emulator-in-python.html #retrocomputing #python

jedie,
@jedie@chaos.social avatar
villares, to random Portuguese
@villares@ciberlandia.pt avatar
villares,
@villares@ciberlandia.pt avatar
hugovk, to programming
@hugovk@mastodon.social avatar

And Sam Gross has submitted PEP 703 (Making the Global Interpreter Lock Optional in CPython) to the steering council for consideration for Python 3.13!

https://github.com/python/steering-council/issues/188

https://peps.python.org/pep-0703/

hugovk,
@hugovk@mastodon.social avatar

Big Python news! 🐍📰

"Thank you, everyone, for responding to the poll on the no-GIL proposal. It’s clear that the overall sentiment is positive, both for the general idea and for PEP 703 specifically. The Steering Council is also largely positive on both. We intend to accept PEP 703, although we’re still working on the acceptance details."

For the general plan, see:

https://discuss.python.org/t/a-steering-council-notice-about-pep-703-making-the-global-interpreter-lock-optional-in-cpython/30474?u=hugovk

mblayman, to python
@mblayman@mastodon.social avatar

You already know about 🐍 Snakes on a Plane, but how about Planes on a Serverless? At @pythonfrederick, @pierson_pat showed off the openly available plane data from 1090MHz and how he maps those flights on the web with a #Python lambda. https://www.youtube.com/watch?v=dMFWMTIyEgU

mariatta, to python
@mariatta@fosstodon.org avatar

Just finished giving the closing keynote for Women Who Code Python Dev Summit: Block Data Py🎙️💁‍♀️
Such a wonderful and supportive community. Thank you so much for having me, and letting me talk about bots, APIs, and about my Raspberry Pi aquarium/potato-cam.

Video will be out soon, in the meantime you can check out my slides here:

https://docs.google.com/presentation/d/14zr7XP6UpS2FjT7pGL1mOf24P8edOP4v8SexBoeEvqc/edit?usp=drivesdk

#PublicSpeaking #Python #WWCode #WWCodeDevSummits #API #Keynote

underdarkGIS, to python
@underdarkGIS@fosstodon.org avatar
nrennie, to python
@nrennie@fosstodon.org avatar

I had a fantastic time talking about data visualisation and the importance of sharing your code early at PyData Lancaster last night!

(ft. some examples of #TidyTuesday data visualisations of course!)

#RStats #Python #PyData

📷 Rory Southworth

Posit, to python
@Posit@fosstodon.org avatar

ICYMI: @Posit and Databricks are partnering to provide #RStats and #Python developers with an easier way to connect workspaces, access data, run code, and interact with other resources. 🎉

What does this entail?

• Enhanced access to your Databricks Workspace from Posit Workbench
• Support for #Spark Connect in R via sparklyr
• Posit Workbench in Databricks Marketplace

Learn more on the Databricks blog: https://www.databricks.com/blog/databricks-and-posit-announce-new-integrations

markwalker, to python
@markwalker@fosstodon.org avatar

Excellent post on ruff here from @djangonews

If you're not using ruff yet, get it setup in a project. Soon you'll have it everywhere.

https://406.ch/writing/how-ruff-changed-my-python-programming-habits/

#python

synoisia, to python

Building the through-hole version of the Tulip Creative Computer.

I would be a lot cooler if I had a 33-ohm resistor.

#python #tulip #computer

itnewsbot, to python

Python's Steering Council Plans to Make Its 'Global Interpreter Lock' Optional - Python's Global Interpreter Lock "allows only one thread to hold the control of th... - https://developers.slashdot.org/story/23/07/29/037250/pythons-steering-council-plans-to-make-its-global-interpreter-lock-optional?utm_source=rss1.0mainlinkanon&utm_medium=feed #python

Posit, to python
@Posit@fosstodon.org avatar

Jupyter + Quarto = easy scientific and technical publishing!

At #JupyterCon, J.J. Allaire shared how the two work together to easily create and share the output format (HTML, PDF, Microsoft Word, reveal.js) and the styling you need for any situation.

There are so many features that make scientific and technical publishing an actual joy. Check out his talk to hear more! #Python #Quarto

https://www.youtube.com/watch?v=XPl-OxJRHsQ

pythonbytes, to python
@pythonbytes@fosstodon.org avatar

Kicking off another @pythonbytes live stream in a few minutes!

Join us and be part of the show with hosts @mkennedy and @brianokken (plus occasional guests).

https://pythonbytes.fm/stream/live

oliverandrich, to python
@oliverandrich@fosstodon.org avatar

Watching the World Cup and rebuilding my local #python dev environment. It will be a relaxing and fun Sunday morning.

mblayman, to python
@mblayman@mastodon.social avatar

🐍 On this Building SaaS with #Python and #Django, we continued the work to make school breaks work for individual students. There was a lot of design and test philosophy discussion along the way. https://www.youtube.com/watch?v=yL8qn3-nLO8

Stark9837, to python
@Stark9837@techhub.social avatar

Yesterday, with the launch of @Python, I decided to have the #PythonDiscuss cross-posting as follower-only posts.

This was intended to not flood the #Python hashtag and because we tested in production🥳

The problem with this however is, now followers can't boost a cross-post, and their comments will also be private. So, I will be making it as unlisted posts.

This way, it won't show up in public timelines, but people can view, interact, and reply to it without following the bot.

rmdes, to python
@rmdes@mstdn.social avatar

I think I have dived into more practical #Python code (of my own making) in two weeks than in 10 years running python code here and there without ever really grasping what it was really doing... But this is how I learn.. I use it before I cook it.. Sometimes for years until what was "Chinese" to me becomes not just readable but also understandable and guess what.. It feels damn great!

Oh I'm not going to publish it just yet but it works and it does boring things humans shouldn't have to do!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • provamag3
  • tacticalgear
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • lostlight
  • All magazines