HN user

dcan

194 karma

Canadian Electrical Engineer in Training

Comments are my own and do not represent my employer

Buisness: dbristow (at) ontrackcontrols.ca

Posts0
Comments40
View on HN
No posts found.

I will agree - async rust on an operating system isn’t all that impressive - it’s a lot easier to just have well defined tasks and manually spawn threads to do the work.

However, in embedded rust async functions are amazing! Combine it with a scheduler like rtic or embassy, and now hardware abstractions are completely taken care of. Serial port? Just two layers of abstraction and you have a DMA system that shoves bytes out UART as fast as you can create them. And your terminal thread will only occupy as much time as it needs to generate the bytes and spit them out, no spin locking or waiting for a status register to report ready.

Half-Life 2 RTX 1 year ago

I tried Portal RTX on a 9070 XT and got 20 FPS at full resolution (no frame generation). There’s no driver limitations, but I have no idea what the expected FPS is

I would argue the opposite - DisplayPort has won the computing format war, especially on laptops. Most laptops will have at least two USB-C ports with DisplayPort tunneling. Most business PCs have only DisplayPort connectivity, with the assumption that you'll buy a DisplayPort to HDMI adapter (if you have an older monitor that only supported HDMI).

True, we will never see them on the TV, but on the computer it is all DisplayPort.

"The plane had been cruising at 17,000 feet until 1:21 p.m., when it dropped approximately 250 feet in 10 seconds. It then climbed approximately 400 feet in about eight seconds."

The last sentence suggests that they were actively trying to get back to their assigned altitude of 17,000′.

I believe the author is implying that if the pilots attempted to maintain speed rather than altitude, the aerodynamic stall wouldn't have occurred - if they descended below 12000', the icing would be reversible.

I think you misunderstand the whole concept of P2P payment apps - it’s meant to be digital cash and replace physical money.

Credit cards can afford to protect you from fraud because of the high level of trust between companies and the point of sales - too many fraudulent purchases and they stop accepting the transactions. Not to mention the fees they charge to both the purchasers and sellers!

If you get scammed with a debit card, cash, or a P2P app, that’s a matter for small claims courts, and if you’re lucky, maybe the police will charge them with a crime. But the risk is on the individual, and that’s a feature, not a bug.

I wrote a USB host driver for the STM32F4 a couple months ago, and the most difficult part was the lack of good documentation - the peripheral had r/w registers mapped as read-only in the SVD, there was a bit you had to set that wasn't mentioned in the documentation, and then the whole USB bulk-only-transport pointing to a non-existent SCSI spec. I ended up finding a blog post stating that you have to basically copy what Windows does in order for USB drives to work.

Luckily I had an oscilloscope that could decode USB frames to save me a whole bunch of time to understand why things weren't working.

USB seems to depend on a whole lot of tribal knowledge, which makes it impressive that it is so ubiquitous and works out of the box for the most part.

We're regressing back to fiefdom in Canada thanks to the unaffordability of housing and people in the United States have a similar situation with employer provided medical coverage combined with at-will employment.

True, many more people are out of poverty, but few are truly prosperous anymore compared to the "American Dream" in the latter half of the 20th century.

The most bizarre thing in my experience is that they removed "Refresh" from that context menu, yet Explorer will a) not update when an application writes a new file, and b) when you rename a file, it does not get automatically sorted.

I’m using Rust in embedded systems for this reason - sure C is the ‘native’ language, but the engineers before me couldn’t tame the beast and made barely working software. The HAL provided by STMicro is functional but riddled with side-effects and is incompatible with an RTOS.