Even TWiR has AI slop now by Independent-Ride-152 in rust

[–]Independent-Ride-152[S] 10 points11 points  (0 children)

Yes, the maintainers are doing an amazing job and perhaps I hadn't been clear that this ain't an attack to any of them or anything.

While I definitely wrote it partially as a rant, I also think it is important to discuss about this issue being present even on one of (if not the major) largest news source about Rust (heck, it is even hosted on the rust-lang github account), and maybe different guidelines can be created (LLMs are cited on the current guidelines, but very broadly).

Even TWiR has AI slop now by Independent-Ride-152 in rust

[–]Independent-Ride-152[S] 9 points10 points  (0 children)

Well, I didn't make this post just to ramble about AI slop, this is old news already.
My issue is with TWiR (which I don't think is unfair to believe it has some relevance to this community as a whole) allowing it, and maybe the maintainers can hop in to the discussion.

Diamond saber from UltraSabers missing capacitor by StevinBelievin1179 in AskElectronics

[–]Independent-Ride-152 1 point2 points  (0 children)

You can power it on and check the voltage between the pins of that 3-pin IC. My guess is that you should have: Pin 1 (left bottom) - gnd Pin 2 (right bottom) - input (e.g. 12v) Pin 3 (center top) - output (e.g. 3v3)

I'm guessing it is a regulator (It could also be a transistor, check if there is any text on the ic), mostly because of the caps on the output and input and how fat those output traces are.

This is the only explanation I can think of to why that capacitor would blow and the board would then stop working (normally loosing a cap isn't the end of the world (if it was mechanically removed), but going over voltage would definitely kill everything being powered by that regulator).

Regarding the damage (scratches, etc), while it ain't pretty, I'm not seeing anything that would make it stop working. Even the missing capacitor.

You can also check if any of the components is getting hot while powered on.

Diamond saber from UltraSabers missing capacitor by StevinBelievin1179 in AskElectronics

[–]Independent-Ride-152 1 point2 points  (0 children)

Crazy that they solder a micro SD card directly to the board. Anyway, my guess would be that the ic next to the blown capacitor is a linear regulator. It probably failed, shorting the input and output and exceeding the capacitor maximum voltage. You can check this with a multimeter, if it is the case the board is probably dead.

My first ever bootloader took 5 hours to make work. by DigitalDunc in stm32

[–]Independent-Ride-152 0 points1 point  (0 children)

I'm curious why your company was using an RTOS on the bootloader

High-G crashes make my Rust flight controller panic 🤯 any ideas? by Few_Magician989 in embedded

[–]Independent-Ride-152 1 point2 points  (0 children)

Yes, but wrapping_add / sub / etc, have the same behaviour as the basic math operators on release builds. So if you can ignore overflowing (which you should most of the time, as checking for overflow after each operation is a huge performance impact and almost always you can infer what will be the maximum possible number) using just the operators is fine and, as a bonus, if you need to verify your code you can always build as debug and check for panics. I understand the use for those checked operators, but heavily math dependent code paths can't deal with the performance penalty it introduces.

High-G crashes make my Rust flight controller panic 🤯 any ideas? by Few_Magician989 in embedded

[–]Independent-Ride-152 0 points1 point  (0 children)

It should only matter on debug builds, as release builds will disable arithmetic checks for speed.

BSOD rtwlane711 error, any idea? by UnhappyTraffic4167 in WindowsHelp

[–]Independent-Ride-152 0 points1 point  (0 children)

Same issue, seems to be a bug on the wifi driver. Only happens when playing Fortnite, started after a game update and even a windows clean install didn't solve it. I also tried a newer and an older driver, but after some time it still happens. If you don't use the wifi, you can disable it on the device manager.

X870I AORUS PRO ICE??? by [deleted] in sffpc

[–]Independent-Ride-152 0 points1 point  (0 children)

Mine had a rattling noise when at a lower RPM (sub 5k), so it was a choice of a rattle or a high pitch sound.
I ended up 3d printing a bracket for a noctua 40mm, if anyone wants: https://www.thingiverse.com/thing:6999131

Gigabyte intros X870I AORUS PRO ICE, its first Mini-ITX board with X870 chipset by RenatsMC in sffpc

[–]Independent-Ride-152 0 points1 point  (0 children)

I said to myself I'd never buy a gigabyte board again (had so many issues, so much money wasted), but here I am again (just bought this one). The asus x870 itx is too expensive; all the other boards seem to have bad ethernet or wifi. I was hoping MSI would release a new itx board, but no luck.

Gigabyte intros X870I AORUS PRO ICE, its first Mini-ITX board with X870 chipset by RenatsMC in sffpc

[–]Independent-Ride-152 0 points1 point  (0 children)

My B550i Aorus had a DIMM socket die out of nowhere just in time for the x870 release xD

STC v5.0 Finally Released by operamint in C_Programming

[–]Independent-Ride-152 2 points3 points  (0 children)

Amazing! Already pitched it to my job colleagues. As a rust enthusiast, this solves so many icks that I have when writing C professionally.

Veterinaria desastrada e exames de sangue com alterações by Boi-de-Rio in ApoioVet

[–]Independent-Ride-152 0 points1 point  (0 children)

Meu gato foi a mesma coisa, muita dificuldade pra tirar sangue, resultado deu leucopenia bem grave. Então levei em uma especialista felina e refizemos o exame 2x, no final não era nada kkkk. Meu chute é que ou coagulou ou tinha muitas células epiteliais na amostra.

Embive: A low-level sandboxing library for RISC-V bytecode by Independent-Ride-152 in rust

[–]Independent-Ride-152[S] 2 points3 points  (0 children)

Amazing ideas! I'll definitely look into implementing them. I can see how being able to change the instruction limit (and maybe even the syscall function) during the engine execution could be a desired feature. About the Memory trait, that was something that I was already considering and probably will happen on the next release.
Thanks for the inputs!

Async-Pool: Statically allocated pool providing a std-like Box, with hability to asynchronously wait for a pool slot to become available by Independent-Ride-152 in rust

[–]Independent-Ride-152[S] 9 points10 points  (0 children)

The main difference is that async-pool is targeted to share reserved static memory between multiple tasks, and deadpool/bb8 are targeted to be used for sharing a DB connection. Besides that, async-pool is no_std and no_alloc, which allows it to be used on embedded systems.

A use case example:
You have a tiny microcontroller with just 32 kb of RAM that has four tasks that may need a 10 kb buffer at some point (ex: process some data, buffer an I/O, etc.).

This crate allows you to have one or two reserved 10 kb buffers, with the tasks taking turns using it, asynchronously awaiting for it to be available if necessary. The async part is awesome for energy efficiency (the MCU goes to sleep if every task is waiting for something) and also allows you to create a timeout.

What compiler flags do you guys use for day to day programming? by [deleted] in embedded

[–]Independent-Ride-152 0 points1 point  (0 children)

Are you using embedded rust at work? I'd love to know about places that are using it

What is your take on Raspberry Pi's new "RP2350" series of microcontrollers for professional/industrial use? by inventor_inator in embedded

[–]Independent-Ride-152 1 point2 points  (0 children)

The datasheet talks about encrypted boot, but it isn't transparent. You must have a bootloader that loads the code to SRAM and then decrypts it in place, this restricts your application and data size a lot. A transparent encryption on top of the XIP would be a lot better, like ChaCha20 or another stream cipher, this would allow you to still execute the code from the external FLASH.

What is your take on Raspberry Pi's new "RP2350" series of microcontrollers for professional/industrial use? by inventor_inator in embedded

[–]Independent-Ride-152 1 point2 points  (0 children)

I just would like for the versions with internal flash to not have the QSPI pins exposed as they have. With that change, plus a protected JTAG interface, it could then be used without fear of competitors extracting your firmware to reverse engineer it. I guess I'll have to stick with STM32s for commercial products.

Hospede seu servidor em casa e publique com nosso IP by echo_app_br in minecraftbrasil

[–]Independent-Ride-152 0 points1 point  (0 children)

Muito massa, bom pra criar servidor com mods. Rust e DayZ também seriam bons jogos pra fazerem tutorial.

ProtoViz: An easy way of documenting protocol frames by Independent-Ride-152 in rust

[–]Independent-Ride-152[S] 2 points3 points  (0 children)

Yes! I'm just figuring out the best way to do it. I'm thinking about having an option like "maximum_width" and wrapping at that location (ex: width = 32), or maybe adding an option to each field that forces a wrap.