r/rust•
anlumo

We're looking for a Rust graphics programmer! (AT or remote)

(This post was submitted with explicit permission by the mods!)

Hi folks,

we're a tiny SaaS company from Austria/Europe who recently completed a very successful Kickstarter campaign. In fact, it was so successful that we can now afford to hire somebody to help us do the work!

tl;dr: You can find the details on our jobs page, send your CV to [email protected]!

Long version:

Since I'm the lead (and up to now, only) programmer on the project, I decided that we shall write the core in Rust. The challenges are that we have to supply a web client and a native desktop client that basically do the same thing, with the native desktop client running fully offline. I want to share as much code as possible, so I plan to compile the core of the product to WebAssembly for the web and just native binary for the desktop application. The user interface (buttons etc) will be written in HTML/CSS/JavaScript, which is run by the web browser and Chromium Embedded Framework (CEF) respectively. However, the UI part will be done by another person (that we're also looking for at the moment).

The core's task is to render 2D images in semi-real time based on a huge spatial data structure using either gfx-hal, Rendy or something similar, so it's basically Vulkan. This needs a lot of compositing using fragment shaders (hue shifts, gaussian blurs, etc). The tasks also involve a lot of vector-based drawing, like bezier curves and polygons using lyon.

Note that I don't expect applicants to be experts in Rust. Learning that on the job is ok. Some experience with graphics programming (in any language) is required, though.

Our plans currently are for 1.5 to 2 years of fulltime development, with the possibility of continuation afterwards (if we get enough funding through the regular sales, as we don't have any VC). We can either do employment if you're living in Austria or freelancer contracts if you're anywhere else. Physical presence is not required (except for maybe a week in the beginning, depending on the circumstances) and work hours are very flexible.

So, if that sounds like it's up your alley, please apply! You can find the details on our jobs page, send your CV to [email protected].

Posted Sep 14, 2019, 5:28 PM UTC · edited

17867
kollapsderwellen•

while i'm not going to apply for your job, it might interest you to know that there is somebody doing a project in rust and gfx-hal in graz as well....;)

19
anlumoOP•

Oh, good to know! Is there some web page about that?

3
kollapsderwellen•

no. it's an internal tool for now, with imgui based gui's not suitable for wider audience, which is one of the reasons why i'm very interested in your gui story...

3
anlumoOP•

My first steps on the UI side are visible here, with a non-sys crate currently sitting on my machine waiting to become presentable.

CEF can render to an offscreen buffer, which you can copy into a texture to show to the user (with some performance penalties), or use a separate overlay window for separate rendering.

I still have to look into how this is going to work out, especially since I have to implement that window overlay stuff for Windows, Mac and Linux, which all work very differently.

4
kollapsderwellen•

i bookmarked it. if you publish your non-sys crate, i'll give it a shot....

1
kollapsderwellen•

are there updates on this ? i've seen a new repository.

1
anlumoOP•

By the way, I plan to hold a talk about that on the next Rust Vienna meetup.

3
radix•

oh wow, I saw this Kickstarter linked on the D&D reddits and thought it was very cool. Great to see y'all are using Rust to implement it. While I have worked on RPG-related battlemap software (kinda!) before, I am not a graphics programmer, otherwise I'd apply!

19
anlumoOP•

If you want to write the server in Actix and also the web UI in Rust using something like yew, that'd work great as well!

The web UI part is only geared towards JavaScript folks because that's where we expect more people to apply. It'd be much easier if everything was written in Rust.

10
vadixidav•

I would definitely be careful about using Rust frontend frameworks just because of how immature they are atm. Templating server-side seems pretty mature though. It might be more efficient though to have it all written in Rust, but my initial look into it recently told me that you will have to custom write almost anything that isn't incredibly standard, plus there is still some instability. I definitely agree there is a benefit to using one language, but I would be careful with the frontend.

2
anlumoOP•

Well, server-side templating is simply a no-go for a web application.

I certainly don't expect this to be a smooth ride, but I hope to be able to bridge the gap as someone who has done work on both sides of the divide (Rust and web).

1
jl2352•

As a web developer I'd strongly recommend going with a modern web stack using React or Vue. It'll save you a lot of time.

You get a very mature stack to build on top of. You get a full client side web app. You get server side rendering (for performance). You get hot reloading. You get modern CSS features through PostCSS. You get solved approaches to state management in the big and the small. You get tonnes of articles explaining how to use this stuff. It's all a solved problem.

There are plenty of template projects you can use to get started. Alternatively you can use Parcel and it's really trivial to setup yourself.

A major issue with using Rust for the web is going to be with hot reloading. I've worked on projects where hot reloading gets as long as 5 seconds, and just that becomes painful.

You can still use Rust for the backend.

2
overplug•

"Austria/Europe" – I see what you did there :-)

12
anlumoOP•

I always make that explicit to avoid quickreaders confusing it with a similarly spelled country some might know.

20
Follpvosten•

Man, now I'm sad...a Rust job opportunity in austria, and then it's in a field I know nothing about...I'd say I'm fairly well-versed in Rust and I live in austria, but graphics and gamedev are the two fields I have the LEAST experience in, I just never got to those.

I guess I'll continue waiting for the mythical Rust [fullstack/backend/whatever] job that will pull me out of the .NET hell I'm stuck in...

11
anlumoOP•

Could you do the server/web UI position in Rust? We just didn't write them that way, because I didn't expect anybody to be able to fill such a role.

7
Follpvosten•

So for the short version of my CV: I have almost 7 years of practice in a .NET production env (web-focused, mostly ASP.NET, lately ASP.NET Core, some TS and SASS on the frontend), so I have my share of experience working with web services/web pages (+ IT-Informatik Lehre, LAP mit Auszeichnung, falls das was heißt)

For the Rust part, I don't see why it wouldn't be possible; while I have a strong tendency towards Tide as a web framework, I could just as well see myself working with Actix, Warp or similar (as Tide is not really production ready).

I don't have any Rust web projects I could show, as I've mostly done chatbots by now, I've been wanting to start a small, Wiki-like API with a web page consuming it for some time now, but I never got to it...my current job is a huge demotivator and eats a lot of my time, sadly. The free time I have left goes into those chatbots because they're an easy way to have fun with my friends.

TL;DR: I have experience in the webdev field and consider myself to be experienced enough in Rust to do it.

6
anlumoOP•

Please write to [email protected] with your full CV to avoid publishing your past life on the Internet!

As for Rust experience, having commercial projects isn't really necessary, but it'd be nice to see some source code you've written.

I don't have any experience with these web crates, so I don't have any particular preference. So far, I've only worked with hyper and looked a bit into yew.

This is also a blank slate start, so there's a lot of freedom in the choice of tools.

14
Follpvosten•

I've looked at the entry on your job page, and while I'm missing experience in some fields, there's no really big blockers I'd see. Even Rusts support for CouchDB isn't looking too bad, I could likely fork the sofa crate and asyncify it, maybe adding some niceties like avocado does...and call it potato or something.

I'll try to put together my CV and some sensible technology choices I'd make for the project soon!

2
pleurplus•

I've written real time rust (actix) servers for thousands of simultaneous users in production professionally, but I do not live in Austria.

Any interest in remote devs?

2
anlumoOP•

Yes, remote is fine! The only restriction is that we can only do contracting then, not employment, so you need to handle whatever legalities are necessary for that in your country.

2
WaiYanMyintMo•

.net 5 will bring you back

6
Follpvosten•

Honestly, it's not .NET, the problem is just C# as a language (which I'm forced to use). I just don't like it with all of its nulls and bad workarounds for nulls (? abuse intensifies)

2
[deleted]•

[deleted]

1
kvarkusgfx · specs · compress•

For this time frame (1.5-2 years), not extreme performance constraints, and given the desktop+web requirement, it seems to me that WebGPU would be a great match for your needs. Specifically, wgpu-rs crate.

Comparing to gfx+rendy, this would give you:

  • much simpler API
  • baked in safety and portability
  • straight Web as the target in about a year
  • better swapchain model
  • a bit more CPU perf overhead

Note that wgpu-rs is a wrapper of the C API wgpu-native, which uses gfx-hal with rendy descriptor+memory helpers.

10
anlumoOP•

Yes, I have considered that. The issue is that this adds yet another layer of abstractions that might cause problems when features are missing.

Also, wgpu-rs doesn't support WASM yet. While we're planning to release the full version in about two years, we have to ship alpha and beta versions to people who preordered pretty early on. For that, it has to work in the web browser somehow.

That said, this is still on the table, I just have to do more research on it.

2
kvarkusgfx · specs · compress•

Fwiw, Google has recently gotten the first WASM app for WebGPU, so it is just a matter of time/effort for us to catch up.

My personal priority for the nearest future would be to get WebGPU support in Firefox, but wgpu-rs for native platforms is in a pretty good shape today.

5
anlumoOP•

What is the timeframe for wasm32-unknown-unknown support? Will that be ready until Feb 2020?

Because that's the earliest we're going to ship an alpha version, and until then I can work native-only.

1
kvarkusgfx · specs · compress•

That would be quite an aggressive target. If you aren't planning to champion this path, it's safer to not rely on it being ready by early 2020.

2
CodenameLambda•

I really wish I had enough knowledge about graphics programming to at least apply in good faith, but either way, I wish you a lot of luck with finding someone good for the job :]

5
anlumoOP•

Thank you!

Note though that the web position would also be fine with something like yew in Rust instead of the JavaScript stuff.

1
CodenameLambda•

In that case I'll definitely take a closer look and will likely end up in your inbox :]

1
Omniviral•

I like that you are considering using rendy. The more users we get, the better crate will be :)

4
anlumoOP•

Yeah, it's pretty much exactly what we need for the project. The only reason I'm hesitant is that there's basically no documentation for it. Documentation for gfx-hal is also thin, but at least does exist.

3
Omniviral•

We activly working on the book.

And amethyst's discord is where you can always find someone who knows that stuff.

3
anlumoOP•

The problem is the very first line to write, since the reference is just a bunch of structs with names that don't exactly scream “start here!”. I've seen that there are some examples at least, but I haven't gotten around to actually read through them.

2
Omniviral•

You should try. They definitely answer for where to start (actually here https://docs.rs/rendy-factory/0.4.0/rendy_factory/fn.init.html).

Plus check out this as more complex example. https://github.com/termhn/rendy-pbr

3
kollapsderwellen•

i'm using rendy's allocators. there are more users out there as one might expect ;)

3
Omniviral•

Since you have revealed yourself, I have to ask. Why only allocators? They were designed specifically to be usable alone, but still.

2
kollapsderwellen•

well, first of all, i'm not using it for a game. i just needed memory allocators, and rendy provided it. but i might look at it again, there might be some other useful things to use ;)

1
Omniviral•

Rendy is not just for games. And even not just for rendering, name resemblance is totally accidental :D

Without knowing your use case I still can suggest descriptor allocator (rendy-descryptor), resource manager (rendy-resource) and command buffer/pool/queue wrappers (rendy-command).

2
mosh_java•

Just curious, what would be the average salary for position like this?

3
anlumoOP•

Around €3500-€3800 per month for employees, depending on the level of experience. This is actually regulated in Austria and includes double pay twice a year.

1
mitsuhikoredis-rs•

This is actually regulated in Austria and includes double pay twice a year.

To clarify: that's the legal minimum salary for an engineering position.

2
mosh_java•

45,000 € per year? Before or after taxes?

1
anlumoOP•

After the employer's taxes, before the employee's taxes.

For contractors it’s easier, we can pay a bit below double that, because there are no taxes on our side.

2
raphlinusxi · synthesize · druid•

I'm curious. Right now, piet is unfinished, lacking both needed features (blur and blend effects) and a proper cross-platform GPU accelerated back-end. But if it were to be built out to its vision (as expressed to some degree in the piet-metal experiments but not fully written down), how far would it be from meeting the requirements? Would it make sense to collaborate?

2
anlumoOP•

Our project has very special requirements for vector drawing, most of which don't translate to any other application I've ever seen or heard about. For example, we need line strokes to have a different thickness on the left and right side of the center line. I found no evidence of anybody ever implementing something like this.

Also, lyon is pretty much exactly what the project needs, since I have to do a lot of custom rendering on the fill areas, with custom fragment shaders and render targets. My old code mostly uses nanovg, which is a nice library, but I ran into problems where I didn't have enough control over the output (I couldn't set the color mask, for example). So, I prefer to have just the triangles and do the rest myself (which isn't that hard) for maximum flexibility.

1
tsedovicrust · tcod-rs · Dose Response•

Oooh, interesting! Could you estimate how much of the output would be open source (all of it, none of it, something in between)?

1
anlumoOP•

I want to open source the CEF crate I'm building for this (making a safe API for using the Chromium Embedded Framework) and a few surrounding tools like the offset-polygon crate I already released, but not the product itself.

Also, all additions/bugfixes to existing crates will be contributed back to those projects. For example, we most likely will need a few additions to glow with corresponding updates to gfx-hal.

7
tsedovicrust · tcod-rs · Dose Response•

Great info, thank you!

1
[deleted]•

[removed]

1
termhn•

This is extremely right up my alley and I would definitely apply, but I'll still be going to school full time for the next two years :( Good luck with the project though!

1
RecallSingularity•

Well, at least jobs like this (graphical, in Rust) will be even more common in two years :D

1
termhn•

Hopefully! :)

1
RecallSingularity•

Well just remember, both now during your studies and later - you need absolutely no permission to just start coding. You'll be surprised how much you can accomplish just in evenings with cheap / free tools.

1
termhn•

Oh I know ;D I've been a relatively major contributor to both rendy and amethyst's graphics stack as well as worked some on gfx-hal and it's documentation in my free time :) That's why I said it was right up my alley :)

2
anlumoOP•

Thank you! We will still be around in two years though (since we're already financed for that time span through the Kickstarter), maybe we'll be looking for more people then.

1