24 days of Rust - calling Rust from other languages

Important note: this article is outdated! Go to http://zsiciarz.github.io/24daysofrust/ for a recent version of all of 24 days of Rust articles. The blogpost here is kept as it is for historical reasons.

In this penultimate episode of the 24 days of Rust article series we will focus on using Rust code from other languages. Since Rust libraries can expose a C API and calling conventions, using them isn't very different from using regular C libraries. A lot of programming languages have some kind of an FFI mechanism, allowing them to use libraries written in other language(s). Let's see a few examples!

Czytaj dalej »
Napisane 23 grudnia 2014

Beginning Rust - solving Euler problem #1

Rust is a relatively new programming language (first alpha released in 2012) which recently caught my attention. Although I'm mostly a Python hacker and Web developer, I still do lower level coding from time to time, including some open source work in C++. Besides, I enjoy the elegance of Haskell; the functional approach to solving problems is quite enlightening. Where does Rust fit into that? The language is still a work-in-progress territory (as of this post the current version is 0.10), but there are already many interesting features. Memory safety, strong typing (with type inference), pattern matching and a slick concurrency model are just a few of those. Let's jump in!

Czytaj dalej »
Napisane 27 kwietnia 2014

Reaktywacja

Ponad półtora roku minęło od poprzedniego wpisu. W międzyczasie zdążyło wyjść Django 1.4, artykuł o Sentry się mocno zdezaktualizował, a ja przeprowadziłem się do Warszawy. Zaniedbałem bloga, ale mam nadzieję że z tym wpisem wrócę do częstszego pisania.

Czytaj dalej »
Napisane 11 lipca 2012