Python or Rust? Coding with local LLMs

Reddit r/LocalLLaMA News

Summary

A discussion post asking whether Rust or Python is better for coding with local LLMs, exploring whether Rust's compiler feedback helps compensate for weaker small models running on consumer hardware.

I've noticed that a lot of software is being cloned using Rust nowadays, and I was wondering why not use it with local LLMs for simple tasks too. Do you think it's better to use Rust or Python when coding with a local LLM? Nowadays everyone is vibe coding, but local LLMs are generally not that good, especially smaller models running on low-budget hardware. I usually code in Python, but sometimes I feel like the model doesn't catch bugs, so I was wondering if Rust and its compiler could help avoid some of these issues. I'd also be interested in hearing your experiences with different context window sizes and models running on 12 or 24 GB of VRAM, with 64 or 128 GB of system RAM. Do you think Rust's compiler feedback is worth the extra complexity for smaller local models, or is Python still the better choice?
Original Article

Similar Articles

Fast and Hard Code

Armin Ronacher

The article discusses how LLMs are reducing friction in programming language choice, leading developers to adopt performance-oriented languages like Rust and Zig for fast, small software and enabling work with complex technologies previously considered difficult.

Building a Rust Inference Engine That Matches Llama.cpp

Hacker News Top

Ferrox is a pure-Rust inference engine that loads GGUF models and runs local LLMs on CPU, Metal, or CUDA, with a CLI and an OpenAI-compatible server. It aims to match llama.cpp's performance while being written from scratch with no bindings.