this post was submitted on 28 Oct 2026
83 points (100.0% liked)

Programming

29100 readers
404 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] lime@feddit.nu 4 points 4 days ago (2 children)

i just write the critical parts in c and glue them together with python, because if it's one thing it's good at it's ffi.

[–] aivoton@sopuli.xyz 1 points 4 days ago (1 children)

Do you have a codeberg? I'd love to see how you use c and python together

[–] lime@feddit.nu 2 points 4 days ago

it's all work stuff unfortunately. it's just basic ctypes stuff though.

[–] FizzyOrange@programming.dev 0 points 4 days ago (1 children)

Why bother with the significant pain of FFI when you can just write the whole thing in Rust?

Also "the critical parts" is mostly a myth. After a small amount of optimisation, the vast majority of programs do not have nice isolated hotspots.

[–] lime@feddit.nu 1 points 4 days ago (1 children)

because i need my programs to be dynamic and scriptable?

[–] FizzyOrange@programming.dev -1 points 4 days ago (1 children)

Rust has scripting support. It's nightly only but that's not actually a big deal since running nightly is trivial.

It has some limitations currently, but... so does Python.

[–] lime@feddit.nu 1 points 4 days ago (1 children)

it's just such an odd question. you know nothing about my domain or my requirements, you just assume i can or want to use rust.

[–] FizzyOrange@programming.dev -1 points 3 days ago (1 children)

Rust is pretty great in almost all domains. The only ones where I think Python is a sensible choice are research, where a REPL is really useful (think Jupyter).

[–] lime@feddit.nu 0 points 3 days ago* (last edited 3 days ago)

the stdlib of rust is woefully lacking, proper error handling is way too verbose, the dependency chains are massive and unauditable, and all the implicitness makes it hard to reason about stuff like a.from() without proper editor support which makes code review a nightmare. i do like ccontract-driven design though. all in all i think i'll stick to zig if i need safety.