Spyke

Posts

rust·Rustbyvan2z

Coroutines / Generators - Resume with a value after a Yield?

Please let me know if this is possible...

I would like to be able to have a coroutine / generator yield to resume with a value.

This is a simplified version of what I am looking for:

https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=8be2f397f600236b66970fce5c0ecab6

In this example, yield would end up requesting from the parent, that it wants to read the next byte, and the parent would resume the coroutine with the next byte. (In this case, it's hardcoded to 54, but it can be any value.)

Yet it seems like Rust doesn't have the ability to resume a yield with a value.

Is there any way I can get this to work?

View original on lemmy.world
emulation·Emulationbyvan2z

Online Channel F Emulator (From 1976)

Hey everyone,

I love building emulators, especially of older systems. The Fairchild Channel F was the first console to include a removable ROM. The function of reading from memory was handled by the PSU (Program Storage Unit) rather than the CPU, which made it unique among chipsets.

My emulator runs entirely online. No downloading required. It should work on all modern browsers, both on desktop and mobile. On desktop you can use the numpad keyboard, and mouse. Note that only the right joystick works. Not the left.

My emulator does not contain ROMs in it, but it will open any ROM you pass in as a link. Below is a demonstration of all of the videocarts:

View original on lemmy.world
trust·The Trust Networkbyvan2z

Annoyance with modern cars..

So, I would like my next car to be an electric car. However, I don't like some "modern conveniences" which most new cars seem to have.

Like automatic climate control... I don't want to set a temperature. I want to be able to just turn on the AC or heater. Yet every electric car I look at keeps including these things..

I wish there were modular cars...

View original on lemmy.world
trust·The Trust Networkbyvan2z

Second minor credit card fraud in a month...

Last month, someone tried to use our credit card to pay for crunchroll online. Only about $1.50.. Seemed like someone was testing if the card could be used.. So we had to cancel the card and get a new card number. 1 month later, now the same thing happened. Crunchyroll for about $1.50 The things we used the credit card for over the past month were normal.. No clue how the fraudsters got the credit card number this quickly.

View original on lemmy.world
trust·The Trust Networkbyvan2z

Dealt with a door to door Verizon salesman..

A Verizon sales guy just came to our house trying to sell his service. After listening to his shpeel, I started complaining to him about how Verizon forces you to combine the WiFi and modem together into one device. I don't like this because I want to have full control over what WiFi I have, with my own router.

At first he seemed confused. "We don't use WiFi. It's fiber!"

Next he started to sell it as a good thing "why worry about multiple devices when you could have just one?"

Finally he told me "ah you just want to waste my time", shook my hand, and left.

View original on lemmy.world

You reached the end