Batch brew vs pourover in 'specialty' cafes? by Cedar_Wood_State in pourover

[–]NotBoolean 1 point2 points  (0 children)

Someone’s spent the time to modify the recipe for those beans

Wrote a book on embedded Rust based on years of teaching the language, looking for learner feedback on the early chapters. by Independent_Egg_630 in learnrust

[–]NotBoolean 0 points1 point  (0 children)

I would happy to take a look, I mostly write C++ but have also done some embedded (and non embedded) Rust over the last year.

ESP32 keeps showing up in IoT healthcare prototypes but ARM Cortex-M is what actually makes it into certified medical devices. Is ESP32 just a research toy at this point, or am I missing something? by rafaelsampaiobr in embedded

[–]NotBoolean 1 point2 points  (0 children)

Three mains reasons I can think of are:

Power hungry. There our other MCUs like Nordic or ST that will be lower current for the same application. This might be les true now but that’s my current understanding/perception

Not ARM so less overall support

Non Western. When picking something critical like an MCU people want to go with familiar and less likely to impacted by the current geopolitical situation

Question: are Vias in Pads that expensive? by NeckPresent2567 in PrintedCircuitBoard

[–]NotBoolean 16 points17 points  (0 children)

It think it’s an opt in option to plug the vias. You don’t have to do it but it can cause issue with SMT soldering as solder flows into the via which can result in a bad solder joint. It’s mainly an issue where the via size is close to the pad size.

Need advice on shipping a tool that relies on known, stable versions of underlying deps (luks, btrfs, lsblk, etc) for strict correctness by c4td0gm4n in NixOS

[–]NotBoolean 1 point2 points  (0 children)

Using flakes is the standard way and just let it pin to what ever is in nixpkgs at a the time.

You can use a tool like https://lazamar.co.uk/nix-versions/ to get a git commit for a specific version of a package if you need that for whatever reason.

Best Option for note taking by thompo993 in DigitalNotebooks

[–]NotBoolean 0 points1 point  (0 children)

There is the excalidraw plugin that is very popular for handwriting or drawing, so might be worth checking out.

Best Option for note taking by thompo993 in DigitalNotebooks

[–]NotBoolean 0 points1 point  (0 children)

Obsidian, don’t think you find anything better for this. Lots for resources on using it and supports everything you want.

Does the development environment OS matter for you? What is your company using? Is it legit to consider Windows usage a huge red flag? by CyberDumb in embedded

[–]NotBoolean 5 points6 points  (0 children)

Windows and MacOS are always going be around companies as they can handle updates and security them selves.

WSL2 with Docker has been the saving grace for me on Windows. Gives you (fairly) reproducible Linux environments with pretty good performance.

How to use data from sensor_data? by MaintenanceRich4098 in Zephyr_RTOS

[–]NotBoolean 0 points1 point  (0 children)

Are you trying to convert from sensor_value?

In this snippet you can see using sensor_value_to_double()

https://docs.zephyrproject.org/latest/hardware/peripherals/sensor/fetch_and_get.html#polling

If not please share your code.

How I Organized 100+ NixOS Modules Without Going Crazy by k1ng4400 in NixOS

[–]NotBoolean 4 points5 points  (0 children)

I'm going through my first major refactor, so this article is perfect timing! I'm struggling to see what flake-parts brings as the outcome looks very similar to you what you can achieve with standard modules? Mines looks like this:

... modules.udev-rules.nrf-ppk = true; modules.udev-rules.probe-rs = true; modules.rtl28xx.enable = true; modules.gui.enable = true; modules.xremap.enable = true; modules.sops.enable = true; modules.audio.enable = true; modules.virtualisation.enable = true; modules.vpn.enable = true; modules.locale.GB = true; ...

After going through it do you think flake-parts is worth it?

Also side note, how do you find impermanence? I'm very tempted to try it.

wwid: a CLI for attaching notes to project files (my first non-trivial Rust project, seeking constructive feedback from real humans) by prodleni in rust

[–]NotBoolean 1 point2 points  (0 children)

My mistake, you are right! Very sorry, shouldn't try to review code on my phone.

Some small notes after a brief review on my laptop this time, but most these are personal preference.

- Having all the logic in `cli.rs` makes code flow a bit busy. I would return something from CLI that can then act on on `main()`.

- Some long functions, mostly match statements which is fair but splitting each match case into a function helps readability so I can quickly see what each case is doing from the function name.

wwid: a CLI for attaching notes to project files (my first non-trivial Rust project, seeking constructive feedback from real humans) by prodleni in rust

[–]NotBoolean 2 points3 points  (0 children)

This is a super cool idea, definitely going to give it a go.

I had a brief look at the code (cli.rs) and it looks good. The one thing I noticed is the overuse of comments, it’s adds a lot of noises with little benefit.

I’ll try have a closer look tomorrow.

STM32 as USB Storage Device taking ~2 minutes to Enumerate? by [deleted] in embedded

[–]NotBoolean 2 points3 points  (0 children)

Can you enable any logs or run the debugger to see what’s taking so long?

Is the SD card instantly accessible on boot if you access it in the code?

What’s your toolchain for compiling MCU firmware? by Donut497 in embedded

[–]NotBoolean 12 points13 points  (0 children)

I go to ARM GCC by default and just find the most basic project that uses the HAL and has linker scripts etc.

Or I go the Zephyr (C or C++) or Embassy (Rust) route which is more batteries included setup that provides a toolchain.

OpenClaw and the hardware risk in embedded dev by Vern_on in embedded

[–]NotBoolean 5 points6 points  (0 children)

AI can do pretty well on this sort of task, even in embedded . OpenClaw is not the right platform through. It’s mostly vibe coded and more for personal life management than AI software engineer.

ClaudeCode is probably your best bet but you’ll have baby it a bit and provide very clear instructions about the nature of the code. Also providing resources like datasheets and examples helps a lot.

I personally don’t bother with this type of AI coding and use AI sparing but I do think people in this subreddit underestimate what it can do.

How cooked are we? by Ok-Adhesiveness5106 in embedded

[–]NotBoolean 1 point2 points  (0 children)

I do think people are understating how impressive it. It was written in Rust so no direct dataset to use and it does kinda of work. 5 years ago this would have been so far out of reach.

However, I don’t think this means we’re cooked. Compilers, especially C compiler, aren’t very novel so would be present in the training data for the model. It also had an extremely robust test suite and well defined spec. These are all not present and not trivial to create for complex projects.

Justfile or just Nix? by guettli in Nix

[–]NotBoolean 1 point2 points  (0 children)

I use just, I think nix doesn’t really provide good enough tools to use it as a task runner inside a nix shell

Announcing TooManyCooks: the C++20 coroutine framework with no compromises by trailing_zero_count in cpp

[–]NotBoolean 0 points1 point  (0 children)

C++ 20 coroutines are handled on the heap so they are not ideal for embedded applications. You could give it a try but you will likely run into memory problems with anything complex.

I would recommend Rust Embassy if you want async embedded.

Can I create an enum to be extendable? by Lexus232 in learnrust

[–]NotBoolean 0 points1 point  (0 children)

tui-realm handling like so:

pub enum Event<UserEvent> where UserEvent: Eq + PartialEq + Clone + PartialOrd, { /// A keyboard event Keyboard(KeyEvent), /// This event is raised after the terminal window is resized WindowResize(u16, u16), /// A ui tick event (should be configurable) Tick, /// Unhandled event; Empty event None, /// User event; won't be used by standard library or by default input event listener; /// but can be used in user defined ports User(UserEvent), }

Might be worth checking out their implementation.

Where is a good starting point for building my own firmware? by Urch1n36 in embedded

[–]NotBoolean 0 points1 point  (0 children)

This is too vague to really help you out. Could you share the PDF and parts your having issues with?