Skip to content
This repository has been archived by the owner on Jul 11, 2021. It is now read-only.

Why do you choose Rust? #24

Closed
codebuks opened this issue Jan 29, 2018 · 1 comment
Closed

Why do you choose Rust? #24

codebuks opened this issue Jan 29, 2018 · 1 comment

Comments

@codebuks
Copy link

codebuks commented Jan 29, 2018

In my opinion,the C language is the best choice to write a Reis Module,many other Redis modules are written by C language ,why do you choose Rust?
It's just my question, maybe you are good at Rust, it' wonderful too.

@codebuks codebuks changed the title Why you choose Rust? Why do you choose Rust? Jan 29, 2018
@siscia
Copy link
Collaborator

siscia commented Jan 29, 2018

Hi Ben,

It is an interesting question.

The module was indeed started in C, and I was using several tools to ensure correctness of the code, lack of memory leaks and so on.

This was working just enough, however when I introduced multithread I started to witness several bugs that crashed the whole application making it unusable, I tried really hard to debug it but without success.

Finally I gave up and I rewrote it in Rust.

Valgrind wasn't needed anymore, the code is automatically formatted and I don't experience anymore multithread bugs.

A life saver.

Granted, I am not an expert in C, but Rust allowed me to write this module with confidence!

@siscia siscia closed this as completed Jan 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants