News for hackers. Stuff that matters.
Re:Why Is SQLite Coded in C? (2017) by nickez on Wednesday March 14, 2018 @11:24AM (#16585378)
You can run Rust on atmegas. It doesn't get much more small, but it can get a lot more exotic. https://github.com/avr-rust/rust
Re:Why Is SQLite Coded in C? (2017) by baldfat on Wednesday March 14, 2018 @11:32AM (#16585451)
Re:Why Is SQLite Coded in C? (2017) by ex3ndr on Wednesday March 14, 2018 @11:43AM (#16585552)
Ok, then it leaves us a performance question, right?
Re:Why Is SQLite Coded in C? (2017) by steveklabnik on Wednesday March 14, 2018 @11:49AM (#16585603)
If Rust performance diverges significantly from C, then it's a bug. Bugs do happen! We take bug reports, please file them.
Re:Why Is SQLite Coded in C? (2017) by ex3ndr on Wednesday March 14, 2018 @11:53AM (#16585638)
but the point is to have maximum performance. This is most deployed database in the world, the overall impact is incredible. It is not about "significantly" slower.
Re:Why Is SQLite Coded in C? (2017) by steveklabnik on Wednesday March 14, 2018 @11:56AM (#16585662)
I said "diverges significantly", that comes on both plus and minus. Right now, Rust can be faster sometimes, but is also slower sometimes. It just depends.
Re:Why Is SQLite Coded in C? (2017) by Sammi on Wednesday March 14, 2018 @01:14PM (#16586394)
No it means there should _not_ be a performance question.

It does however mean that there is an issue with supported platforms. Rust has support for all the major platforms already, but C is probably the most widely supported language in existence at all.

Re:Why Is SQLite Coded in C? (2017) by jeffreyrogers on Wednesday March 14, 2018 @11:30AM (#16585435)
But then you're forced to use the rust compiler. Sqlite can be included in any project that can use a decent C compiler.
Re:Why Is SQLite Coded in C? (2017) by eropple on Wednesday March 14, 2018 @11:40AM (#16585523)
Why would you be forced to use the Rust compiler? You can generate C headers for a static Rust image.
Re:Why Is SQLite Coded in C? (2017) by jeffreyrogers on Wednesday March 14, 2018 @11:47AM (#16585579)
It brings the Rust compiler in as a dependency. I'm not saying you have to use Rust for the rest of the project, but it complicates things in a way that having C source code that you drop into your project doesn't.
Re:Why Is SQLite Coded in C? (2017) by steveklabnik on Wednesday March 14, 2018 @11:51AM (#16585626)
I think you two are talking at cross-purposes. You are correct that building the project would require Rust. Your parent is correct that, with a pre-built binary, you don't need any Rust-specific stuff installed to make this work.

Building from source is usual, of course, given the lack of a stable ABI.