Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Of course[1], but this tutorial isn't about the language, per se, you should be able to translate it pretty trivially.

These sorts of tutorials are more about the inner workings of database operation; I recall doing something like this in grad school but you're reminded quickly how more complex databases are than you think about when all you're doing is using them. And hell, I'm not even that good at using them.

[1] http://nikhilism.com/post/2016/writing-simple-database-in-ru...



Yeah, looks like translating it is a great way to learn both rust and how a db actually works internally.


I'd say that if you want to learn Rust, then this is an excellent project. I'm not convinced that if you want to learn how databases work that Rust is a better language than C: it's more complex in that the checker makes you think about lots of non-db things, and simpler in maybe a non-helpful way, in that the language provides lots of high-level facilities that it might be good to work out explicitly.


Could I trouble you to give me an example of the second one? Something rust provides that might be better to learn the hard way?


I think that dynamically sized types make life easier in places where it might be good to figure out how to manipulate the concrete data.

https://doc.rust-lang.org/reference/dynamically-sized-types....


Thanks


Considering that i'll have to learn C for this as well, i think going with Rust just looks more interesting.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: