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

pygcvs 0.1.3 released

Yesterday I've released pygcvs 0.1.3 which fixes a small bug with parsing star coordinaates. The bug appeared when the coordinate part of GCVS entry was a string containing only spaces (for example when the star exists under an alternative designation). There are about 150 such stars in GCVS, for example VY Cep, which is actually another name for RR Cep. Starting from pygvs 0.1.3, such empty coordinates are correctly parsed as a pair of None values.

Czytaj dalej »
Napisane 15 marca 2014

Sentry - na straży aplikacji Django

Ile razy zapomniałeś o jakimś drobiazgu, lub zrobiłeś jakiś błąd, przez który Twoja aplikacja Django wysypała się dopiero na serwerze produkcyjnym? Użytkownicy strony zobaczyli błąd 500 (bo utworzyłeś szablon 500.html, prawda?) i tyle. Pół biedy, jeśli dostałeś powiadomienie o błędzie na maila, Django wysyła na tyle dużo informacji do ADMINS-ów że lepsze to niż nic. Ale rodzi się pytanie - nie można by raportować błędów jakoś bardziej elegancko? Można - po to jest Sentry.

Czytaj dalej »
Napisane 10 grudnia 2010