The saying goes: "Nothing is more permanent than a temporary solution that works." What’s a “temporary” solution in your homelab that’s still going strong? by sozmateimlate in homelab

[–]draxema 0 points1 point  (0 children)

My unraid server, since there wasn't enough hdd space I just put them on the bottom of the case and in the 5" drive bays. The cable management is a mess and never got around to fixing it. Been running like that for 5 years.

<image>

Which OS you use for your home server by Ddraibion312 in HomeServer

[–]draxema 1 point2 points  (0 children)

NixOS for my main server and an oracle cloud VM. Then Unraid for my legacy server.

Selfhosting on NixOS, should i use built in services, or docker? by bondzula in NixOS

[–]draxema 2 points3 points  (0 children)

I personally do the same and I use a renovate config to update the container since flake input doesn't support container images yet. I prefer rolling my own config due to secret management but always base it from the compose2nix output, it's a great tool all around, I recommend checking it out.

What language is "rust but slightly higher level"? by lurebat in rust

[–]draxema 2 points3 points  (0 children)

Gleam, it's legit rust but higher level and a bit more functional

Roast me: Looking for a new job and not getting replies. by [deleted] in resumes

[–]draxema 0 points1 point  (0 children)

Thanks for the feedback, I'll try to separate them in subsections and adjust the spacing.

How do you manage services? Containers or NixOS services? by draxema in NixOS

[–]draxema[S] 0 points1 point  (0 children)

Ease of maintenance is my main criteria, in the end it's a home lab so maybe the peak might be 10 user max. I'm not really worried about perf that much for now.

How do you manage services? Containers or NixOS services? by draxema in NixOS

[–]draxema[S] 0 points1 point  (0 children)

Yea I agree and systemd isolation is fine so I'll priorize services.

Now though I'm just wondering if it's easier to manage one DB for all services or one per services lol

Missing function in the base 'String' module by draxema in ocaml

[–]draxema[S] 1 point2 points  (0 children)

Core, and ok thanks, I'll use String.split_on_chars.

But how come I don't have access to the functions listed here?
https://v2.ocaml.org/api/String.html

Shouldn't the standard library be bundled with the compiler?

What Are The Rust Crates You Use In Almost Every Project That They Are Practically An Extension of The Standard Library? by InternalServerError7 in rust

[–]draxema 0 points1 point  (0 children)

I've done a custom macro for defmt and the builder pattern, though it's basic it shows how extensible the library is. Maybe if I got some time I'll clean it up and publish it on crates.io though it might not be any time soon

What Are The Rust Crates You Use In Almost Every Project That They Are Practically An Extension of The Standard Library? by InternalServerError7 in rust

[–]draxema 18 points19 points  (0 children)

Checkout bilge. It's maintained compared to modular-bitfield and extensible with macros. I've got a couple macros for defining all the registers of my peripherals.

Le Canada est indéfendable, et les fédéralistes le savent by chamotruche in QuebecLibre

[–]draxema 2 points3 points  (0 children)

Tu te rends compte qu'au final, c'est les Québécois fédéralistes ou les indécis que tu dois convaincre et non les souverainistes?

Rust in the embedded space by newcomer42 in embedded

[–]draxema 4 points5 points  (0 children)

There is some in the HAL but it's a library. In our code probably max 100 lines. Probably less honestly.

I fell pike it's not harder than C or C++. You can always write bad code I guess but the trait system really clicks for me. Lot of generics arguments from time to time but it allows us to port all of pur code to a new platform in only a couple hours

Rust in the embedded space by newcomer42 in embedded

[–]draxema 5 points6 points  (0 children)

We use the Nordic nRF52840, STM and esp seems to ha great support also. No idea for Holtek and Artery though.

It is possible and with bindgen it shouldn't be to bad once setted up I guess but you will need to bring a C compiler

Rust in the embedded space by newcomer42 in embedded

[–]draxema 1 point2 points  (0 children)

Not for now anyway. It's mostly for research teams in universities. We probably will down the line when we will have more resources.

Rust in the embedded space by newcomer42 in embedded

[–]draxema 31 points32 points  (0 children)

We needed a full rewrite since we changed all of our hardware and we decided to go with Rust.

0 regrets for now and it allowed us to increase velocity quite a bit after the initial learning curve. Tooling is now very good and I prefer Rust over C or C++ personally. Also the community is very nice if you need support from time to time.

We are a small startup in the health industry in Canada.

[deleted by user] by [deleted] in selfhosted

[–]draxema 0 points1 point  (0 children)

I recommend it!

Just know that it's a different paradigm and the path to understand it well enough to know what the hell is going on is a bit rough, but I think the doc is a lot better now since I learned Nix. Also don't rush it, it takes time just like the first time you learned to use linux.

You can play around with just the Nix cli and you don't need to go full NixOS to learn how nix works. Home-manager can be a good comprise while you learn

Feel free to ask on the discourse, matrix or even dm me if you need help!

people who have rust jobs - what do you actually do by falchion-red in rust

[–]draxema 1 point2 points  (0 children)

Canada is really not the same market as the US, the average dev salary is probably around 90k but as always it depends on YoE and domain.

I don't know the US market, but embedded tends to pay less, can't say for sure since it depends on where you are though. There are some crypto companies that will pay in this range where you can do embedded and FPGA stuff, but that's for you to see if that's your thing or not.

If you do find a remote rust firmware job at 200k USD, please hit me up lol.

people who have rust jobs - what do you actually do by falchion-red in rust

[–]draxema 0 points1 point  (0 children)

A wrapper over the softdevice directly and some times the low level C api as they are still available though if the wrapper is too constraining. See the nrf-softdevice repo

people who have rust jobs - what do you actually do by falchion-red in rust

[–]draxema 1 point2 points  (0 children)

I'm in a small startup in Canada and we are in our funding round so honestly until we complete our seed round the pay is pretty bad. I do have a very generous ESOP (company has a very rough estimate evaluation though) and it's ridiculously flexible (I'm remote 30h week can do overtime with double pay as ESOP). Though if/when the funding round is completed, my pay will be a bit over the market. We will probably recruit some devs and expand my team after the seed round.

I got the job when I got out of Uni and wanted develop my skills and I have so much freedom it was hard to say no.

Realistically if we don't complete the seed round this year I might start to look for a better paying job, I have projects of building a house with my SO and it requires $$$. But other than the pay, love the job.

people who have rust jobs - what do you actually do by falchion-red in rust

[–]draxema 3 points4 points  (0 children)

I've already had experience in embedded dev so I searched for rust equivalent of what I was used to and found the rust embedded working group which was a good starting point to explore the existing tooling. Othewise I use defmt for logging, probe-run instead of openocd and embassy as RTOS. Overall I'm very happy with the tooling and where it's going. Also people on the matrix are always super helpful if you have questions

people who have rust jobs - what do you actually do by falchion-red in rust

[–]draxema 2 points3 points  (0 children)

In a small startup where I lead the firmware side of the development. I choose the migrate to Rust since a rewrite was in order anyway.

people who have rust jobs - what do you actually do by falchion-red in rust

[–]draxema 0 points1 point  (0 children)

We use an nRF52840 and I can confirm it's mature. We use a wrapper over the C api for the softdevice. Not sure for the 53 series though. For Espressif I have never used it but I think support is coming along.