sqlite3-ocaml
zero-to-production

sqlite3-ocaml | zero-to-production | |
---|---|---|
2 | 88 | |
116 | 5,953 | |
0.0% | 0.9% | |
8.0 | 6.1 | |
24 days ago | 6 months ago | |
OCaml | Rust | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sqlite3-ocaml
-
How I got involved in the Rust community
> I couldn't find a single datetime library that has a concept of instances that could be interpreted in different time zones.
Jane Street's Core has a good timezone support (the thing you need is pair Date.t * Time_ns.Ofday.t). sqlite3-ocaml [1] seems reasonably documented.
[1] https://github.com/mmottl/sqlite3-ocaml
-
I've done TUI (Terminal User Interface) app. This is what it looks like
As some can guess, the architecture was heavily inspired by Elm and Elmish parent-child patterns. Notty - is a cool library, which is a perfect choice for a simple terminal draw. But keep in mind, that you will be responsible for focus management and isolation of all event handlings. Sqlite3-OCaml - is totally imperative library, because it is just bindings on C library. But you get all the essential functionality with which you can build yourself the needed level of abstraction.
zero-to-production
-
Rust: Demystifying Middleware in Actix Web
In the spring and early summer of 2023, I worked through Zero to Production in Rust by Luca Palmieri using the Axum web framework. This a) forced me to learn that framework and b) force me to think when overcoming the differences.
-
Dependency management fatigue, or why I forever ditched React for Go+Htmx+Templ
I'd highly recommend reading some articles by Luca Palmieri[1], or even buying his book[2]. Although I didn't learn this stack by working through his book, whenever I had questions through the years, my searches usually led me to his articles which are often excerpts from the larger book.
The high level of API stability and lack of churn in the Actix ecosystem makes the book a particularly good investment for someone looking to settle on this stack in my opinion. In keeping with the topic of this submission, I doubt I'd be comfortable spending money on a similar book about building web apps with React.
[1]: https://www.lpalmieri.com/posts/2020-08-09-zero-to-productio...
[2]: https://www.zero2prod.com
- Rust for Rustaceans
-
Empowering Web Privacy with Rust: Building a Decentralized Identity Management System
Zero to Production in Rust - Book by Luca Palmieri: An in-depth book that guides readers through building a fully functional backend application in Rust, from zero to production.
-
Rust books to read
And the book "Zero To Production In Rust - An introduction to backend development", I didn’t read it yet but seems pretty good
-
How to read a YAML configuration file in my Rust service?
It’s a lot simpler if you add serde to the mix (derive Deserialize for your settings types). Have a look at the example from the Zero to Production book: https://github.com/LukeMathWalker/zero-to-production/blob/main/src/configuration.rs
-
Ask HN: What to use for a Rest API written in Rust?
You probably want to check out the Zero to Production book which is about using Rust for back-end development.
https://www.zero2prod.com/
-
I’ve fallen in love with rust so now what?
If your'e more into a tutorial with a book https://www.zero2prod.com/ is really good. You gonna build a newsletter service. With all the good stuff in backend development.
-
Hyper – A fast and correct HTTP implementation for Rust
If you want to build a backend in Rust, Axum (which uses hyper underneath) is pretty recommended these days, as it's all in the tokio ecosystem. Actix Web is good too, but it has its own ecosystem of libraries. I read the book Zero To Production in Rust [0] which was a great overview on not just Rust but scalable backend architectures as a whole.
Interestingly, Cloudflare wanted to use hyper but found that it was too correct, so they had to build their own [1].
[0] https://www.zero2prod.com
[1] https://blog.cloudflare.com/how-we-built-pingora-the-proxy-t...
-
Conversion?
In addition to the book, which has already been recommended. If you’re specifically into backend you should try Zero to Production. Luca really knows what he’s talking about, and it’s an excellent overview of backend rust and the development process in general.
What are some alternatives?
notty - Declarative terminal graphics for OCaml
realworld-axum-sqlx - A Rust implementation of the Realworld demo app spec using Axum and SQLx.
reason - Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
rust-by-example - Learn Rust with examples (Live code editor included)
postgresql-ocaml - OCaml-bindings for the PostgreSQL database
black-hat-rust - Applied offensive security with Rust - https://kerkour.com/black-hat-rust
rust-ecosystem - Rust wants & tracking for Embark 🦀
rust-blog - Educational blog posts for Rust beginners
minimalist_things - Terminal User Interface app for minimalists to list all things and describe their necessity
axum - Ergonomic and modular web framework built with Tokio, Tower, and Hyper
krustlet - Kubernetes Rust Kubelet
RustBooks - List of Rust books
