shadow31OP•

From their kickstarter page: "There are two components to Imageflow: imageflow-server and libimageflow. libimageflow is built with Rust and C, and imageflow-server will use Rust exclusively. "

3
tyoverbybincode · astar · rust•

Weird that github doesn't think that they use rust.

5
azerupimdbook•

I haven't seen any Rust file and their README contains this unchecked point:

Begin porting the most complex bits to Rust.

They have a branch called "rust", but... the couple of rust files present contain mostly C code. Strange...

3
nathanaeldjones•

Rust 1.9 (released 7 days ago) fixed our biggest blocker. We intend to port the entirety of imageflow-server to Rust. We're also just wrapping up the libimageflow API design for use from host languages, and, well, it's easier to design/test C ABIs from C, initially. The part I'm least confident we can complete in 12 months is a rust port of the jpeg codec (although nwin already started work! https://github.com/nwin/rust-jpeg). So it may end up a hybrid C/Rust binary in version 1.

2
nathanaeldjones•

Given that it will likely be a hybrid codebase, I'm not comfortable guaranteeing a certain percentage of Rust usage within libimageflow until we have more code ported. We're porting imageflow-server from Ruby, and that seems more straightforward (less likely to hit compiler optimization bugs like we do every day with gcc).

1
azerupimdbook•

Thanks for the precisions !

It's definitely an ambitious and interesting project. I would love to see blog posts once in a while about the use of Rust and image processing in Rust.

I wish you all good luck! :)

1
Gyscos•

From their Readme:

The pragmatic language choice for the core routines is C14. Rust is extremely attractive, and would make the solution far more secure (there are already safe Rust codecs!). However, given that we often resort to assembly or manual unrolling in C, it may be unrealistic to assume we wouldn't also periodically run into perf issues with the results of the Rust compiler. Long-term, Rust would be the ideal choice, as we get a C ABI, no runtime, yet great safety and concurrency possibilities. However, the development timeline with Rust would be nearly impossible to predict.

1
azerupimdbook•

Ah thanks :) I didn't read the whole thing, so I missed that part.

It's weird though that their kickstarter states that it is implemented in Rust and C. Unless their Readme is outdated and they recently took the decision to add Rust anyway.

I guess everyone expected to see some Rust code.. :)

1
__Cyber_Dildonics__•

Why is this on Kickstarter? Are they taking money while anyone who contributes will be doing it for free?

1
shadow31OP•

Disclaimer: I'm not involved with the project in anyway, I just saw a link on Twitter and thought it was interesting.

I assume they are using the Kickstarter money to fund a developer or two to work on it full\part time.

1
nathanaeldjones•

We have 5 specialists who work on different aspects of the project. Can take ten years to build the required domain knowledge, so we work with existing experts when possible. I'm personally working on it full-time, as my only employment.

0
nwydorust · rust-doom•

There doesn't seem to be any rust code at all right now. I guess the idea is to use the KS money to port this to rust? I appreciate the intention, but I'm disappointed that there seems to be nothing rust-related at the moment.

2
nathanaeldjones•

We've been testing core algorithms ever 45 days or so against the rust releases (diff. repo). 1.9 fixed our biggest blocker, so you'll see a lot more Rust soon (assuming our Kickstarter doesn't flop, which looks increasingly likely).

2
nwydorust · rust-doom•

Fair enough---hope your KS goes well! You'd probably get a significant amount of free goodwill from this community if you did have that code up somewhere.

1
nathanaeldjones•

It may be a few weeks before you see any Rust. Imageflow-server will be the first 100% Rust project here. Imageflow-tool is arriving first so people can play around with the API and set up benchmarks.

1
[deleted]•

[deleted]

1
kibwenMOD•

Removing this, as it's difficult to see why this link is relevant to Rust.

It would be one thing if there existed some proof-of-concept Rust implementation, or if the authors were well-known and trusted in the community, but for now I don't want to set the precedent of having the subreddit be a platform for Kickstarter advertisements.

1
shadow31OP•

Fair enough. I should have investigated it more closely before posting. Sorry for the noise

1
nathanaeldjones•

I wish we could have waited a few weeks to post this until we had concrete stuff to show. Our initial repository for imageflow was rust, but we replaced it while we waited on panic/unwind support. We have to gracefully handle all malloc failures, since we deal with gigantic buffers.

1