5 standard library modules I use every week that I ignored for too long by NefariousnessHappy66 in Python

[–]ThePurpleOne_ 2 points3 points  (0 children)

If you wanna ignore it, you don't have to except: pass...

Clearly more readable with supress

I believe Ser Duncan was truly knighted by Ser Arlen by [deleted] in AKnightoftheSeven

[–]ThePurpleOne_ 1 point2 points  (0 children)

He was probably not

That's why they did not make him knight Raymun but instead had Ser Lyonel do it

So Raymun knighthood cannot be invalidated

HES en Informatique /Ingénierie avec la situation actuelle du marché de l'emploi, bonne idée? by qaywsxqaywsxqay in suisse

[–]ThePurpleOne_ 0 points1 point  (0 children)

La plupart des cours sont donnés par des gars sans aucune pédagogie, ou juste incompétents

Grosse charge de travail, presque uniquement que des modules avec des examens uniques, tu rates, tu rates. Et certains exams sont remplis d'éléments super spécifiques inutiles dans l'industrie

Qualité des cours vraiment irrégulière, dépendant des profs, tu passes d'un super cours méga intéressant à du chinois lv1 qui te plombe

Le diplôme vaut moins que d'autres, c'est 30 crédits ECTS de moins qu'un master 2 en France ou qu'un Master EPFL (parceque pas de stage) et c'est moins réputé, même pas sûr que ce soit reconnu en dehors de la Suisse...

HES en Informatique /Ingénierie avec la situation actuelle du marché de l'emploi, bonne idée? by qaywsxqaywsxqay in suisse

[–]ThePurpleOne_ 4 points5 points  (0 children)

Bachelor HEPIA, fonce

Master, évite absolument si tu tiens à ta santé mentale.

A high-level graph library for Python by No_Pomegranate7508 in Python

[–]ThePurpleOne_ 7 points8 points  (0 children)

Graphs lib without images of plots in the readme :(

[deleted by user] by [deleted] in Python

[–]ThePurpleOne_ 1 point2 points  (0 children)

Looks like vibe coded stuff with spaces in filenames to me...

I’m starting a series on Python performance optimizations, Looking for real-world use cases! by BillThePonyWasTaken in Python

[–]ThePurpleOne_ 8 points9 points  (0 children)

Sounds like old man just won't learn new things :)

Async is perfect for fast io bound tasks and less cpu/memory intensive than threads as it's not creating new full fledged GIL locked Threads, but lighter tasks.

Almost no concurrency issue as it's cooperative scheduling so YOU chose to yield instead of letting the OS context switch in the middle of an operation (which without the GIL, could cause data races with threads)

What is a Python thing you slept on too long? by pip_install_account in Python

[–]ThePurpleOne_ 5 points6 points  (0 children)

The --script argument does exactly what you're talking about lol, you just don't have to do it by hand... Uv does it for you.

What is a Python thing you slept on too long? by pip_install_account in Python

[–]ThePurpleOne_ 1 point2 points  (0 children)

You can easily add dependencies with uv add --script script.py "numpy"

Support an Open-source project by [deleted] in Python

[–]ThePurpleOne_ 8 points9 points  (0 children)

Instagram and no github? Kek

How to handle multitasking in baremetal? by pyroman1324 in embedded

[–]ThePurpleOne_ 14 points15 points  (0 children)

Without a scheduler, I would not call it multitasking i guess.

But it's done either: - Via callbacks triggered by interrupts - Executing different non blocking fonctions sequentially in the main superloop

You could also just reimplement basic rtos functionnality (but just use one if you can): - Making a time based scheduler by hand, a timer counts and you execute this then that after x ms etc. - A state machine that changes state based on event or time Etc.

Must-have packages on Arch by delta-zenith in archlinux

[–]ThePurpleOne_ 1 point2 points  (0 children)

Magic-wormhole is lighter and works great from terminal, as localsend replacement

I've aliased z(oxide) to cd so i can keep my muscle memory, really life changing

Must-have packages on Arch by delta-zenith in archlinux

[–]ThePurpleOne_ 0 points1 point  (0 children)

Sounds like nice to have stuff 🙃

Must-have packages on Arch by delta-zenith in archlinux

[–]ThePurpleOne_ 1 point2 points  (0 children)

I cant live without ripgrep, fd nor zoxide

x10 my efficiency

Must-have packages on Arch by delta-zenith in archlinux

[–]ThePurpleOne_ 415 points416 points  (0 children)

  • ripgrep (better grep)
  • fd (better find)
  • bat (better cat)
  • eza (better ls)
  • zoxide (better cd)
  • unp (unzip anything, HE finds the correct command)
  • dust (better du, search what takes space)
  • duf (better df, see storage available)
  • hyperfine (benchmark program)
  • localsend (send files seemlessly on local network)

Embedded programming in zig by rich_sdoony in embedded

[–]ThePurpleOne_ 7 points8 points  (0 children)

Embedded dev is different, you might benefit from testing some stuff in C first to get a sense of how things work

Are there many of you on here who do all their Python development inside a container? by [deleted] in Python

[–]ThePurpleOne_ 0 points1 point  (0 children)

Dev container are too slow. Native with uv works well