1,091 karma · joined December 24, 2020
Maintainer of Rust subsystem on QEMU, and vhost-user devices on rust-vmm. Making a terminal e-mail client in my free time.
https://github.com/epilys https://pitsidianak.is/ manos@pitsidianak.is @epilys:matrix.org
Miyazaki has also two books with collected essays/articles of his; I have the first one and I would not strongly recommend them though they have wonderful sketch art inside. The essays are mostly old man rants about how everything is done worse these days and they weren't even written recently.
It's an incredibly beautiful book, not so for the corporate stuff, but for the elegance in Rand's designs. There's even a section in how all sorts of stationary is supposed to look.
Please, there's no need to make this "us vs them" :) I explained what's happening without saying it's the best approach possible.
> In C or any C-based language or even Python, you can just call either a function passing the reference to the GPIO pointer, or just GPIO |= 1.
You can do this in Rust just fine by using raw pointers (references). The point is, in complex programs (not the example from the embedded rust book necessarily) it's possible to make memory safety mistakes. While in Rust it is not unless you choose so.
This is not about which approach is better, it's a matter of fact. Whether you prefer the one or the other is your personal choice.
It might look better if you split it in lines:
let mutex = MY_GPIO.borrow(cs).borrow().as_ref().unwrap(); mutex.odr.modify(|_, w| w.odr1().set_bit());
There are so many things that affect blood sugar both in the short and long run. T1D treatment is constant correcting for the past hours, not just the moment and future.
I wish it was easier to communicate this to people and journalists, because there are so many misconceptions like the one quoted here that makes T1D an even more invisible disability.
I found the Caster Verilog on your github repo. Are you planning on shipping with all the controller logic on an FPGA?
Interesting and cool approach. Is this something that is already commonplace in the display industry? I have seen VGA controllers on (bigger) Xilinxes years ago as demos but I haven't read about it on shipped display-related products.
- subcutaneous insulin doesn't act immediately, as it would if it was injected in the blood directly. it peaks in an hour and then wanes off at 3-4 hours.
- it cannot know external factors like how much carbohydrates you are eating, or if you are planning to work out, etc. Like conventional pumps you have to enter it manually.
Buying a sandwich and not having to think about carb grams and predosing at all sounds like a dream to me.
This is how unsafe {} should be used. Sometimes some things are true but the compiler can't know that. And here the unsafe {} means that it dereferences a raw pointer (the index that we know is valid). If the unsafe {} safety condition is valid, unsafe {} is, well, safe.
It's 4 channels, the front two show an animation video in an oscilloscope at X-Y mode and the rear two are the music. It's very impressive: