💼 Rust is transforming the job market! Companies are increasingly demanding Rust developers to build reliable, high-performance systems. Time to level up your skills! 📈
#Rustlang
Rust's stdlib doesn't ship an async runtime allowing for the community to experiment and find better solutions.
Same thing for Regex and same for HTTP.
Compare this to golang, where a big stdlib stops innovation.
Be evergreen instead
Learning about async Rust? You don't need a massive dependency chain to get going.
Here are three tiny async executors if you are interested in learning about async Rust without pulling down all of Tokio/async-std:
- futures::executor (enable the "executor" feature)
🦀 While Python dominates the ML ecosystem, Rust is catching up fast! 🔥 Rust libraries often boast higher quality with safety & performance benefits. Keep an eye on Rust as it shapes the future of ML! 🌐
#Rustlang
#MachineLearning
#Python
🔥 Rust is on the rise for ML, challenging Python's ecosystem! 🐍 Rust's library quality, safety features, and performance gains are turning heads. The ML landscape is evolving, and Rust is one to watch! 🚀
#Rustlang
#MachineLearning
#Python
Rust's let-else, introduced in 1.65.0, simplifies pattern matching by handling failed let bindings with an else block. This feature reduces code complexity and eases the burden on the borrow checker, making Rust code clearer.
One of the big learnings of the 2010s is to not underestimate how big a language must be to be sustainable.
A few of my fave languages that it’s all over for:
- Clojure 💀
- Kotlin (doomed to be niche)
- Elixir
- Elm
The 'aha' moment when you finally grasp
#Rust
's lifetimes is priceless! It's not just about learning a language, it's about understanding a whole new way of thinking about programming
Great news,
#Rust
developers! 🚀 With the sparse protocol now being the default for reading the index from , we're talking substantially improved performance! 🎉
📘 Exploring
#Rust
on ESP32? Check out the Rust ESP Book! It's a comprehensive guide filled with insights and tips for using Rust with ESP microcontrollers. A great resource for both beginners and seasoned developers. Start your journey at
🚀 Rust is revolutionizing the software industry! With its unique blend of safety, performance, and developer productivity, it's quickly becoming the language of choice for cutting-edge projects. Don't miss out on the Rust wave!
Standard debate. As someone who uses both on weekly basis.
The code in these two examples are very different and with different guarantees. And different patterns
A builder in Go is often pointless because fields can be null.
A builder in Rust is often pointless as well
My crusade against some RUST zealots continues. Here are examples of build patterns with
#golang
and
#rustlang
Not only do you need to know less about language with Go to understand what is going on here, but look at this rust "simple" error handling. Oh, my Spaghetti Monster
🌟 Rust-powered ML tools like Polars are transforming data preprocessing and feature engineering! ⚙️ Experience faster, more efficient data manipulation, all thanks to Rust's performance benefits. Level up your ML workflow! 🦀
🔗
#Rustlang
#python
Rust's package management is a dream compared to C++! 📦 Cargo, Rust's package manager, simplifies dependency management and build configurations, making ML projects smoother and more enjoyable. Experience hassle-free development with Rust! 😎
#Rustlang
#cplusplus
🌉 Rust is bridging the gap between high-level languages and low-level systems programming, making it easier than ever to build powerful, resource-efficient software. The industry will never be the same! 🔥
#Rustlang
#systemsprogramming
🎉 Good news for
#Rustlang
and
#MacOS
devs! 🎉
"tauri.bundle.macOS.frameworks now supports dylib" this makes it possible to ship ONNX on macOS. This is a significant step forward for the Rust ecosystem on Mac. 🍏
🔍 Library Spotlight: ort 🔍
An unofficial ONNX Runtime 1.14 wrapper for Rust 💨 Accelerate ML inference on both CPU & GPU 🚀 This is what we use in prod
🔗
#Rustlang
#MachineLearning
#ONNX
Somebody asked me today: what do you mean by video creation automation. The answer is straightforward: the ability to create any video in 30 seconds.
Just watch this video. This is fframes.
It's about time! SUDO and SU are being rewritten in Rust 🦀 Check out the progress at . Rust isn't hypotheticals, folks—past vulnerabilities have shown the need for safer alternatives. Rust to the rescue! 💪
#Rustlang
📦 Manage your
#Rust
project versions effortlessly with git-version! Embed git information at compile-time, with automatic -modified suffix for changes. No libgit needed, just your git binary in PATH. A neat tool for keeping track of project versions! 💻
🏗️ Rust is making a huge impact on infrastructure! From embedded systems to cloud services, Rust's unique strengths are driving a new wave of robust and maintainable software. 🌩️
#Rustlang
#infrastructure
#softwaredevelopment
At
@Shuttle_dev
we prepared a Christmas gift for you! 🎁
🎄 Shuttle Christmas Code Hunt 🎄
🦀 16 days of exciting challenges in Rust, whether you are a beginner or an advanced developer, there’s something in store for everyone!
❄️ Apply now:
#rustlang
⚙️ Rust's powerful macros can help you reduce boilerplate code in your ML projects while maintaining high performance. Say goodbye to repetitive tasks! Here is how we do it. 🧵
#rustlang
🤯 Struggling with
#Rustlang
? You're not alone! Rust is known for its steep learning curve, but don't let that stop you. Embrace the challenge, ask for help in the community, and remember: every expert was once a beginner. Keep pushing forward, and you'll reap the rewards!
🤔 Rust: Tonic (gRPC) vs Axum (HTTP)?
🌐 Tonic (gRPC):
✅ High performance
✅ Strongly-typed API
✅ Supports streaming
❌ More complex setup
🔗 Axum:
✅ Easy to get started
✅ Familiar RESTful APIs
✅ Browser-support
❌ Less efficient
❌ No native streaming
What do you use?
🎉 What an incredible day for llm-chain! 🚀
✅ New website live at
✅ v0.9.0 released w/ Agent support & improved compile times
✅ Fantastic llm::casual event with our amazing community
#Rustlang
#MachineLearning
1/5
🤔 Rust: Rewrite or bindgen for native code?
🔗 Bindgen:
✅ Faster dev, reuse code
✅ Original performance
❌ Unsafe code risks
❌ Less memory control
🔨 Rewrite:
✅ Full control & safety
✅ Rust optimizations
❌ More dev time
❌ New bugs risk
Choose based on project needs! 🚀
📦 Need efficient priority queue operations in
#Rust
? Look no further than keyed_priority_queue! This crate allows for modifying element priorities and early removals with ease. Unique keys and hashable priorities make it a versatile choice. Perfect for advanced data structures!
🛠️ With Rust, concurrency is no longer a nightmare. Its fearless concurrency model reduces the risk of data races, simplifying the design of concurrent systems and improving reliability. 💪
#Rustlang
#SoftwareArchitecture
One of the highlights of the first day of
#eurorust23
was
@d0nutptr
's presentation on enforcing AuthZ (and AuthN) checks using the compiler + type system.
Rust's type system can't quite support the complete thing yet but structuring your code like the screenshot below is
Need to generate JSON Schemas from your Rust code? Check out schemars! It's easy to use with #[derive(JsonSchema)] and schema_for! macros. Plus, it's fully compatible with Serde for seamless JSON serialization/deserialization.
@alexbunardzic
I think what’s new here is:
1. Hiding behind the risk of AI extinction
2. That the message is even more tailored to the the audience.
3. That gatekeepers will decide who can publish an LLM
Porting Python projects to Rust has never been easier! 🚀 With tools like PyO3, you can take advantage of Rust's performance and safety features, while still leveraging the rich Python ecosystem. Why not give it a shot?
#Rustlang
#Python
#PyO3
🐍 Rust & Python go hand in hand for ML projects! 🦀 Interoperability between the two languages unlocks new possibilities, combining Rust's performance & safety with Python's rich ecosystem. Best of both worlds! 🌐
#Rustlang
#Python
#MachineLearning
#Interoperability
Check out the axum-login crate! It's a powerful tool for user identification, authentication, and authorization in
#Axum
. With features like custom user and backend support, group permissions, and rock-solid session management, it's a must-try for web devs.
1/5 🚀 Breaking into the
#Rustlang
space? Here's some career advice for you! 🌟 First and foremost, start with the official Rust documentation, "The Rust Programming Language" book. 📖 It's comprehensive and beginner-friendly. 🧵
🗄️ Rust + SQL databases = A powerful combo! 💥 With a range of libraries like diesel and sqlx, Rust makes it easy to interact with databases while maintaining safety and performance.
#Rustlang
#SQL
#Databases
💡 Library Spotlight: Rstats 💡
A Rust library for stats, linear algebra, ML & more! 🧮 Features include Cholesky Matrix Decomposition, Clifford Algebra, Geometric Median, Householder QR Decomposition, and Multithreading 🎛️
🔗
#Rustlang
#ml
#Statistics
📊 Parsing SQL in
#Rust
? sqlparser-rs is your go-to crate! It offers an ANSI SQL 2011 lexer and parser, turning SQL into an Abstract Syntax Tree (AST) with ease. Ideal for projects needing robust SQL analysis and manipulation. 📦
Dive into egui, the amazing GUI creation tool for Rust! It's fast and portable. With egui, you can directly interact with UI elements like buttons, no need for references or callbacks. Imagine seamlessly integrating it into web apps or game engines, w/e textures can be drawn.
🚀 Embrace failure as a learning opportunity! As you delve into
#Rustlang
, you'll face challenges and setbacks. Don't be discouraged; learn from your mistakes and keep pushing forward. Resilience is a valuable trait in any developer.
Elevate your Rust code with the power of Python using PyO3! 🐍🦀 Seamlessly integrate Python libraries into your Rust projects and create native Python extension modules. Unlock a world of possibilities by bridging the gap between two powerful ecosystems.
#PyO3
🦀 Exploring a career in
#Rustlang
? Stay curious and never stop learning! With a rapidly evolving ecosystem, there's always something new to discover. Embrace the learning process and become a versatile developer.
#CareerAdvice
It’s an absolute disgrace that people are using things like Jira.
Obviously to compete with this sluggishness you need to make something great.
Linear is really getting there
The last part of
@linear
that wasn’t already fully real-time - our document editor - is now real-time and collaborative.
This evolution in our system architecture has some interesting implementation details worth sharing with fellow engineers and tech enthusiasts:
🏗️ Rust encourages modular design with its crate system, making it simple to integrate and manage external libraries, keeping your codebase clean and organized. 📦
#Rustlang
#SoftwareArchitecture
🌟 Library Spotlight: tch-rs 🌟 Rust bindings for the C++ API of PyTorch 🚀 Unleash the power of PyTorch with Rust's safety and performance! 🔗
#Rustlang
#MachineLearning
#PyTorch
🌐 Rust's impact on the WebAssembly ecosystem is undeniable. As a perfect match for WASM's performance and safety requirements, Rust is leading the charge in this next-gen web technology! 🕸️
#Rustlang
#WebAssembly
I discovered release-please thanks to an article written by
@fasterthanlime
. Release-please didn't click for me, so I decided to write release-plz.
Amos liking it closes the circle. 😁
📚 Library Spotlight: serde-pickle 🥒 Parse & generate Python pickle streams seamlessly in Rust! Built on Serde, this high-performance crate makes serialization a breeze. Perfect for integrating Rust with Python-based projects! 🚀 Check it out:
🔦 Library Spotlight: tonic 🔦Meet tonic, a high-performance, open-source gRPC implementation built for
#Rustlang
! 🦀 It's a core building block for robust Rust production systems. 💪Fun fact: It's even better than the official gRPC toolkit in Go! 🚀
The 'either' crate in
#Rust
offers a versatile sum type with Left and Right variants, perfect for flexible error handling and more. With features like no_std support, optional serde serialization/deserialization, and handy macros.
📚 Library Spotlight: plotpy 📊 Unleash the power of Matplotlib in your Rust projects! This high-level plotting library brings convenience to Rust developers while maintaining the superb quality of Python's Matplotlib. Visualize data with ease! 🚀
Rust shines in Edge Computing! With its low footprint, Rust is the perfect choice for running Computer Vision models on devices with limited resources. Enable smarter cameras and IoT devices today with Rust!
#RustLang
My Rust templating engine is ready to try out (I think!)
It's been an hour or two (almost) daily for the last 4 weeks, and now in a working state
Still extremely barebones, but I'm excited to have a project that I can enjoy working on now
Processing multiple video streams in real-time? Rust's first-class concurrency support has got you covered. Efficient and safe parallel processing can transform your Computer Vision project!
#RustLang
#ComputerVision
🌟 Discovering the power of
#Rust
's ownership and borrowing system feels like unlocking a superpower. Once you get it, there's no going back!
#RustLang
🌉 Rust's impact on software architecture goes beyond just performance! Its safety guarantees and strong type system make it easier to build robust, maintainable systems. 🚀
#Rustlang
#SoftwareArchitecture
Excited to hear about
@qdrant_engine
raising 7.5mm$. This is gonna enable some amazing things in the LLM agent space.
Solid piece of software and already supported in llm-chain
Interesting thread.
The question to ask I think is would Rust be as successful if it didn’t cover every niche the way it currently does.
On the other hand sacrificing certain use sees could lead to improvements for the remaining use cases.
my personal opinion is that Rust’s async/await is very close to the best possible design for a language with Rust’s goals and design constraints, but don’t take it from me:
I really like this. Wisdom is knowing when improving code actually is useful and when it’s not. Not yelling clean code at the top of your lungs all the time
Your attitude towards refactoring is defined by your seniority level:
🐣 Junior: Doesn’t see many refactoring opportunities
🧑💼 Middle: Notices code improvements and performs them
👴 Senior: Sees all refactoring opportunities but deliberately doesn’t refactor code because this
🌟 Don't underestimate Rust in the ML world! 🌍 While Python has a more comprehensive ecosystem, Rust's libraries are making strides in quality, safety, and speed. The future is bright for Rust in ML! 🦀
#Rustlang
#MachineLearning
#Python
Ever wanted to leverage Google Cloud Platform's powerful suite of services from your
#Rust
code? 🌩️ There's a crate for that! Check out the unofficial gcloud-sdk for Rust, offering gRPC/REST API client implementation based on Tonic and Reqwest.
🔦 Library Spotlight: anyhow 🔦For the truly lazy (but smart) Rustaceans, anyhow provides the anyhow::Error type, an easy and idiomatic way to handle errors in your
#Rustlang
apps. 🦀It's perfect for those who want to avoid the hassle of custom error types
Why should you choose
#Rustlang
for your
#MLOps
? 🤖
1️⃣ Memory Management: Rust's ownership system reduces memory leaks & data races.
2️⃣ Interoperability: Seamless integration with other languages like Python.
3️⃣ Ecosystem: Growing libraries & tools designed specifically for ML
Rust excels in concurrency, a game-changer for ML projects! ⚡ Rust's fearless concurrency and built-in parallelism features make it easier to write safe and efficient concurrent code, compared to Python's GIL limitations. Level up with Rust! 🎮
#Rustlang
#Python
#MachineLearning
🤓 Pro Tip: Use ndarray in Rust for efficient n-dimensional arrays in your ML projects! 🦀 Enjoy the performance and safety of Rust for all your data manipulation needs.
#rustlang
#machinelearning
#ndarray
🚀 Exciting news! We've just released v0.8.0 of llm-chain, featuring major improvements to the Prompt system! -- it's all managed by the main llm-chain crate, simplifying integration & reducing potential errors.Upgrade now & enjoy an even better user experience! 💻🌟
Looking to optimize your
#RustLang
code?
Don't forget the golden rule: 'Don't guess it, profile it!' 🔎
🚀 Tools like 'perf', 'flamegraph' or 'cargo-profiler' can help you find the bottlenecks. Remember, an efficient codebase is a happy codebase.
Kubernetes and Rust are a match made in heaven for ML orchestration! ☁️ Leverage Rust's performance and safety to create robust, containerized ML solutions that scale seamlessly with Kubernetes. 🌐
#Rustlang
#MachineLearning
#MLOps
#Kubernetes
Anyone still using Scala for new ML development should seriously consider Rust instead! 🤔 Rust offers the same language benefits without Scala's enterprise baggage. It's time to ditch the old-school Scala vibes & embrace Rust's cutting-edge performance!
Streamline your
#Rust
projects with the zerocopy crate! It offers effortless, zero-cost memory manipulation, enabling types to be converted to/from byte sequences with minimal overhead. Ideal for network parsing and handling unaligned data structures.
Streamline your ML workflows with Rust-powered pipelines! 🚄 Build efficient, safe, and maintainable ML pipelines with Rust's capabilities, automating your MLOps processes from end-to-end. Stay on track! 🛤️
#Rustlang
#MachineLearning
#MLOps
@thedenisnikulin
@qdrant_engine
is one good example.
@shuttle_dev
another. The point is that these companies make the strategic decision to go with Rust which is really changing their talent strategy
@selbekk
Worked in a Kotlin backend shop myself (seems popular in the Nordics), so maybe my expectations were higher.
Niche => mostly used for mobile.
Java closed big part of the gap and Java devs seem very insular so they generally don't see Java's problems
google / comprehensive-rust: This is the Rust course used by the Android team at Google. It provides you the material to quickly teach Rust to everyone. ★17454
🧪 Rust's strong type system and various SQL libraries make it easier than ever to create and manage database schemas, run migrations, and execute complex queries, all while enjoying the benefits of a safe and fast language!