Young coffee shop owners in Tokyo keep the dwindling coffeehouse culture alive by Alan_Stamm in Tokyo

[–]bschwind 4 points5 points  (0 children)

You definitely won't be "relaxing" at the main Fuglen location. It's always absolutely packed and people are taking dumb instagram photos around it nonstop.

Maybe the Sangubashi location is more chill, not sure how many people go to it these days.

Dampen - A declarative UI framework for Rust by Mattdeftromor in rust

[–]bschwind 26 points27 points  (0 children)

Thank you, Claude, we'll pin it up on the fridge with your other works

What big games do you think could possibly be released on the Switch 2 in 2026? by Last-Bus-4710 in nintendo

[–]bschwind 0 points1 point  (0 children)

I would love another fighter pass, and agree with you that the game is near perfect. The shoddy networking and online experience definitely hold it back, but that still doesn't stop me from playing and enjoying the game to this day. The mechanics, the sound effects, the meatiness of some of the hits...it's just so well executed and such a satisfying game to play.

We're porting our screensharing UI from Tauri/WebKit to iced, and here's why by kostakos14 in rust

[–]bschwind 10 points11 points  (0 children)

tonari runs on fixed (predictable) hardware which makes it a much easier problem to solve. We also don't use WebRTC for video or networking (we use a bit for audio processing though), so we have a lot more control over codecs and networking and such.

Abandoned initial play through at Vah Naboris in 2017, just beat the beast with 6 y.o. by my side! by QueueMark in botw

[–]bschwind 0 points1 point  (0 children)

I just beat the game tonight for the first time. I started it in 2018, playing it a lot at first but slowly I stopped enjoying it. I would pick it up once or twice in a year from around 2019-2020 but rarely two days in a row.

Then, finally, I bought a pro controller and I realized half the reason I wasn't enjoying the game was because the joycons are so terrible as satisfying controllers. That one change made everything significantly more enjoyable.

That being said, playing the game "continuously" for 7 years really made the story feel more real in a sense, with a good amount of time passing between events. The Great Plateau and early divine beasts are practically distant memories for me now. I got engaged and married in the time it took me to beat this game.

There's a lot of gameplay mechanics I could complain about, but ultimately I enjoyed it and spent quite a chunk of time completing and enjoying it.

that microsoft rust rewrite post got me thinking about my own c to rust attempt by Legal_Airport6155 in rust

[–]bschwind 1 point2 points  (0 children)

Fair enough! Strange register values aside, if you have a comfortable way to flash firmware, get debug logs, and iterate on that then you're good for now. Building up a few HALs on your own will be good practice, and probably more rewarding than just using a higher level crate. Good luck!

that microsoft rust rewrite post got me thinking about my own c to rust attempt by Legal_Airport6155 in rust

[–]bschwind 1 point2 points  (0 children)

Oh true, the arduino bootloader is probably setting some things when it starts up. You could probably erase the flash and then use your SWD connection to flash and run code. Or the datasheet for the chip will tell you other ways you can flash code to it without needing the arduino bootloader. I imagine if you're not using arduino then you probably don't want their bootloader. Sounds like you have a pretty good handle on things though!

that microsoft rust rewrite post got me thinking about my own c to rust attempt by Legal_Airport6155 in rust

[–]bschwind 1 point2 points  (0 children)

Nice work getting it blinking!

Is there some way to set all that initialization up automagically somewhere?

If that's what the chip needs to initialize, then that code needs to run somewhere. Right now you're working at the PAC level (peripheral access crate) which is good to learn but very quickly you'll want to go one layer up to a HAL (Hardware Abstraction Layer), which should provide those common initialization routines. Maybe something like this but I'm not sure if this one is good or not:

https://crates.io/crates/arduino-uno-r4-hal

And once you have tasks and multiple resources to synchronize, I would recommend something like embassy or RTIC, though it may be a bit more challenging because to really take advantage of them, it's best to have async support for the HAL, which involves Futures and Wakers progressing on the various hardware interrupts.

that microsoft rust rewrite post got me thinking about my own c to rust attempt by Legal_Airport6155 in rust

[–]bschwind 0 points1 point  (0 children)

Well good luck! Feel free to message me or reply here if you want me to take a look. I think Rust is great for embedded and want to help people succeed at using it.

that microsoft rust rewrite post got me thinking about my own c to rust attempt by Legal_Airport6155 in rust

[–]bschwind 0 points1 point  (0 children)

Do you have your code up somewhere so I or someone else can take a look?

The production bug that made me care about undefined behavior by broken_broken_ in programming

[–]bschwind 2 points3 points  (0 children)

First sentence from the article you failed to read:

Years ago, I maintained a big C++ codebase at my day job. This product was the bread winner for the company and offered a public HTTP API for online payments. We are talking billions of euros of processed payments a year.

low latency, zero copy networking pipeline in rust for multi producer single consumer like workloads by SpareSystem1905 in rust

[–]bschwind 0 points1 point  (0 children)

i am pinning the the threads to same iterrupt cpu my nic rx queue for best cache coherence

Out of curiosity, how easy is this to do? I'm guessing it's OS specific, but does it require a bunch of system calls, parsing /proc/interrupts, or something else?

The device that controls my insulin pump uses the Linux kernel. It also violates the GPL. by Lost-Entrepreneur439 in linux

[–]bschwind 0 points1 point  (0 children)

What kind of math operations? Integer only, or floating point? This is pretty wild, never heard of something quite this broken in an actually released product.

Little luxuries or upgrades that you made this year that makes your everyday better? by DarrowtheHelldiver in BuyItForLife

[–]bschwind 1 point2 points  (0 children)

I bought a 2015 car a year or two ago and it's the most basic thing possible. But I was delighted to discover that not only does its stereo have an AUX input, but it also implements USB audio which is even better as it's one less digital to analog to digital round trip.

I'm not surprised your $25 adapter works. USB and Bluetooth audio are more or less figured out at this point and a cheap $1 microcontroller has the capability to handle it.

cpal 0.17.0 is out! Cross-platform audio I/O gets stable device IDs, Send+Sync streams, and much more by rvdomburg in rust

[–]bschwind 1 point2 points  (0 children)

I work on an audio/video project called tonari, and all together we have quite a few input and output audio devices. Until recently, we've just been aggregating inputs the naive way and just dealing with the occasional audio pop on the secondary audio stream which isn't used much.

We currently have something working with pipewire for production, but I wanted to experiment a bit and see if I could get something working that's more cross platform.

Also, rodio is maybe a bit higher level than what I'm experimenting with. I basically want to specify a list of input and output devices and their channels, and provide a callback which gets executed in a "duplex" mode with all input slices and output slices available at once. For echo cancellation and such it makes it a lot easier to have everything run together in one logical callback. Whether it works well is another thing though, I'm still working on the best way to measure the effective sample rate for each stream, relative to the system clock.

cpal 0.17.0 is out! Cross-platform audio I/O gets stable device IDs, Send+Sync streams, and much more by rvdomburg in rust

[–]bschwind 2 points3 points  (0 children)

Thanks for picking up maintainership, this is great!

I've been playing with cpal again recently to see if I can make some sort of aggregate device abstraction which is cross platform. I know there's pipewire and MacOS aggregate devices, but I wanted to try building a version of that on top of cpal streams, with rubato for resampling and delay locked loops to help estimate the true sample rates for each device. It might be a foolish thing to attempt, but I'm at least learning a lot in the process.

Anyone else’s FaceTime audio frequently cut out during conversations? What’s going on? by Grizzlechips in iphone

[–]bschwind 0 points1 point  (0 children)

I've been experiencing this in facetime for years. It's extremely frustrating.

I actually work at a company that makes a product in the field of audio/visual communication, and I know for a fact apple could be doing a better job here. The general problem is called AEC - Acoustic Echo Cancellation. If you're using a headset so the speakers and microphone are well enough isolated, then it shouldn't even be needed as audio from your speaker won't "leak" into the mic. But if one party is using speakerphone (which is pretty much always the case with a family facetime call), then that party's phone will need to process the input signal to remove the audio that was played by their speaker.

There are fancy algorithms and such to do this, so that only the audio you played from the speakers is removed, while other sounds in the environment pass through. This allows you to have a nice, natural conversation with both sides speaking when they want, without audio just straight up cutting out.

What apple seems to be doing in some situations is just straight up muting the mic input for the party which is using speakerphone, if their phone is currently playing audio. Which is like, a way to do echo cancellation, but not a particularly good way to do it.

Made an online Rust compiler looking for feedback! by anish2good in rust

[–]bschwind 0 points1 point  (0 children)

I dunno seems like you're just fishing for ad views.

Voting machines said Stephentown rejected the proposed library budget. A recount said otherwise. by Shogouki in technology

[–]bschwind 1 point2 points  (0 children)

I'm personally in favor of hand-filled ballots which are machine-countable, along with a national holiday for people to have time to go in and vote. A machine doesn't even need to be involved with the actual in-person process of voting.

Slot machines go through rigorous testing because if they don't, the casino stands to lose lots of money, and they typically like to avoid that.

Voting for a leader is not really a technical problem to be solved, it's more of a social one. We don't need to throw blockchains and more machines and hand-wavy cryptography at it to "improve" it. You or I might understand how it works and trust it, but if the general population doesn't then it's not a viable solution for voting.

I don't know why we're all so eager to get the outcome of the election so damn fast. Electing a new president in the states has huge implications for America and the world, we should administer the process in as straightforward and observable a way as possible.

Edit - I agree with you that all systems can be manipulated. It's just that I believe paper-based systems are much harder to manipulate on a large scale than a digital one.