@cr1901@mastodon.social avatar

cr1901

@cr1901@mastodon.social

Another important fact about me is that I collect ISA cards. I still don't believe in magic- just concepts I don't understand yet.

http://pronoun.is/he/him

This profile is from a federated server and may be incomplete. Browse more on the original instance.

foone, to random
@foone@digipres.club avatar

I discovered a fun way to break chrome today!

<a href="http://foobar.egg/blah">somelink</a>

Set up foobar.egg so that it has both HTTP and HTTPS set up, but they lead to different places or HTTPS returns a 404/403.

cr1901,
@cr1901@mastodon.social avatar
whitequark, to random
@whitequark@mastodon.social avatar

i got openfpgaloader to work on webusb :D :D

cr1901,
@cr1901@mastodon.social avatar

@whitequark Wonder why it gets mapped to DOMException...

cr1901, to random
@cr1901@mastodon.social avatar

Anybody know a better way to print the size that all files (and directory entries, BUT NOT DIRECTORY CONTENTS) take up in a directory besides, e.g.:

ls -lh path/to/dir | head -n 1

(The above does what I want, just feels like there should be a better way...)

whitequark, to random
@whitequark@mastodon.social avatar

therapist: "do you celebrate christmas or new year?"
me: "i do not! however, if you want to wish me happy holidays, you can invent a holiday right now that isn't one of those two and wish me a good that instead"

cr1901,
@cr1901@mastodon.social avatar

@philpem @whitequark In b4 NDT makes the same damn "joke" again this year :D.

cr1901,
@cr1901@mastodon.social avatar

@philpem @whitequark https://twitter.com/neiltyson/status/548140622826459136

So I could've sworn he's done this "joke" multiple times over the past decade, but this is the main hit I get. Maybe he deleted the rest...

It's not really a "joke" I think. But at least it pisses off the right people :P.

vl_tone, to Nintendo
@vl_tone@mastodon.social avatar

There nothing quite like actual NES hardware glitches!

Gameplay video of Super Mario Bros. with visual glitches.

cr1901,
@cr1901@mastodon.social avatar

@vl_tone One of my long-standing blog posts is to explain "why the Game Genie code IKAAAE destroys NES games" :D!

cr1901,
@cr1901@mastodon.social avatar

@vl_tone Incredibly, the original source of where I found it is still there:

https://gamefaqs.gamespot.com/nes/525243-super-mario-bros/faqs/3098

>IKAAAE-Just try this sucker out! I can't describe it!

In the mid 00s, I got a NES after having lost the one I grew up with in the mid 90s (think it belonged to Mom before I was born, in the 80s- she liked Tetris/Game Boy more).

I printed out some Game Genie codes and went to town. IKAAAE is very prone to crashing :'D...

My favorite SMB codes are level "randomizers".

azonenberg, to random
@azonenberg@ioc.exchange avatar

I've ended up on some interesting mailing lists...

cr1901,
@cr1901@mastodon.social avatar

@azonenberg I mean, traffic cones are cool :P!

Look up why they're cones, as opposed to some other shape! :D

polpo, to random
@polpo@bitbang.social avatar

Today we made Star Wars blaster noises by throwing rocks out onto the ice at the lake

Looking out onto a lake on a clear day. I throw a rock up and when it lands it makes a sci-fi sound effect kind of noise

cr1901,
@cr1901@mastodon.social avatar

@polpo My favorite way is tapping a wrench on a Guy Wire :D!

petrillic, to random
@petrillic@hachyderm.io avatar

Every time I see someone do this, I die a little inside.

A schematic with the ground pointed up?

cr1901,
@cr1901@mastodon.social avatar

@petrillic @gsuberland I just realized GND pointing up is defensible if the schematic isn't using conventional current :P.

cr1901, to random
@cr1901@mastodon.social avatar

Tried a Hot Pocket in the air fryer... how the hell did I live without this?

thephd, to random
@thephd@pony.social avatar

"Why are you working on C?"

I wrote this in an e-mail to people, but I figured I'd copy part of the response here since people keep asking.

We have people writing critical software. They are not migrating to new software anytime soon (modulo regulation-based incentives). But they have serious problems. Everything from vulnerabilities that are used by nation-state actors to quell dissidents, to not being able to change a typedef like intmax_t because the functions tied to it are baked into specific named symbols in an invisible way (ABI), to constantly seeing people's names getting butchered by Airlines, Databases, and Governments because they're using software that relies on the C locale and mangles names.

These are C problems. Not C++ problems. Not Java problems. Not Rust problems.

C problems.

My job is to solve C problems. That's the motivation. That's the coherent plan. When we stop having long-term, 20-to-40+ year problems, with 30+-year implemented existing practice that we never standardize despite it solving a wide variety of problems, that's when I'll stop writing C proposals.

cr1901,
@cr1901@mastodon.social avatar

@peturdainn @thephd @davidfetter @alwayscurious

>performance became unusable

You talking about semihosting debugging? Yes, without serialization (defmt), semihosting is definitely unusable for anything besides toy applications.

If you mean "-O0", my general vibe from not necessarily just embedded Rust, but from talking to other Rust devs, is that "-O0 is worthless for most languages besides C, and we haven't come up w/ a happy medium yet".

I use opt-level="s" for msp430 Rust always.

foone, (edited ) to random
@foone@digipres.club avatar

Solar Winds (DOS, 1993) annoyingly doesn't use C-strings in the text embedded into the executable. It seems to use the PC BIOS convention of ending strings by a $.

Sadly Ghidra doesn't seem to natively support this

cr1901,
@cr1901@mastodon.social avatar

@foone Huh, I thought '$' was specifically a DOS convention (and PC-BIOS requires you to know the length ahead of time).

cr1901, to random
@cr1901@mastodon.social avatar

This is a bit time sensitive, but... feel free to RT.

I'm looking for a bit of paid work (low to mid hundreds of USD) before year's end.

Most comfortable with embedded Rust and FPGA design using Amaranth HDL.

Small things I can think of include porting your board to Amaranth, getting you started with embedded Rust, or getting you started with verification tools with yosys-smtbmc and symbiyosys. I am willing to write C as well.

whitequark, to random
@whitequark@mastodon.social avatar

i should've called https://yowasp.org "fully automated luxury space webassembly build system"

cr1901,
@cr1901@mastodon.social avatar

@whitequark

Fully Encompassing Luxury multi-Dimensional Space-Age Programs for ASIC Routing, or FELDSPAR

(Might need work)

vl_tone, to random
@vl_tone@mastodon.social avatar

This is my entry for "Weirdest Super Mario 64 video you might see today". https://youtu.be/s_nSeMh1x2o?si=0Q65dXDrH6Nj0Vic

cr1901,
@cr1901@mastodon.social avatar

@vl_tone Mario is having a severe case of headass syndrome today :o...

cr1901, to random
@cr1901@mastodon.social avatar

I had this on my Amazon list. It's a 35mm DIN rail terminal. I have no idea how/where this got on my list.

Now I'm going down a rabbit hole of "uses of DIN rails".

https://www.amazon.com/dp/B00R1WU05U

cr1901, to random
@cr1901@mastodon.social avatar

https://blog.netbsd.org/tnf/entry/wayland_on_netbsd_trials_and

With the risk of X becoming irrelevant now very real, what's the current status of using Wayland on NetBSD?

From what I can gather, the ppl working on Wayland are apathetic towards the BSDs at best.

cc: @netbsd

ktemkin, to random
@ktemkin@chaos.social avatar

vendor: this won’t work unless you drive it differentially in the range of [-400mV, 400mV]

me, a maniac with single-ended GPIO and a bunch of resistors: you don’t say

cr1901,
@cr1901@mastodon.social avatar

@ktemkin How do you combine those to make differential GPIO?

cr1901,
@cr1901@mastodon.social avatar

@ktemkin I understood everything except two things (both of which I'm bad with nowadays lol):

  1. Redacted, b/c I had a parse fail on "ensure that you have enough headroom", and thus my question is meaningless. Fixed now :D. (Common mode limit is "don't get too close to the positive power rail of the device w/ diff inputs")

  2. Why isn't the high impedance connecting to the 50R/100R seen as a reflection by your GPIO (isn't that also an impedance mismatch)?

cr1901,
@cr1901@mastodon.social avatar

@ktemkin Oh, re: point 2. You want to choose the divider so your divider plus the high impedance between the divider and input pins matches the 50R/100R?

cr1901,
@cr1901@mastodon.social avatar

@ktemkin I guess my follow up question is "why does most of the energy go into your voltage divider resistors" and not "back into the output GPIO pin, which presumably has a low output (well, "input", directions hard :P) impedance as well".

cr1901,
@cr1901@mastodon.social avatar

@ktemkin Oh, see, for some reason I thought the voltage divider was on the GPIO output side of the transmission line, not the differential input side.

That makes more sense.

cr1901, to random
@cr1901@mastodon.social avatar

I did it. Phase 2/4 of my little project complete. Not ready to announce yet, but it feels nice to get it working.

cr1901,
@cr1901@mastodon.social avatar

@mcc @crzwdjk PicoRV32, another size-optimized CPU, predates the Machine Mode spec and uses custom instructions to implement interrupts.

I considered this route of implementing PicoRV32's custom privileged spec, but ultimately decided against it. There's more support for Machine Mode in existing software nowadays, and a basic Machine Mode implementation is not that bad.

M Mode just won't fit easily into 1280 LUTs b/c of needing to impl the Zicsr extension as well :D.

cr1901,
@cr1901@mastodon.social avatar

@mcc @crzwdjk I appreciate the compliment <3. It's making me feel this was worthwhile.

Part of me thinks I'm nuts for spending so much time on this. But... it was also a learning experience to get familiar with RISC-V beyond I spec, and the tools used to verify implementations. This will prob be valuable experience going forward. So even if I am nuts, it definitely wasn't a waste :D!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • khanakhh
  • kavyap
  • thenastyranch
  • everett
  • tacticalgear
  • rosin
  • Durango
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • InstantRegret
  • Youngstown
  • slotface
  • anitta
  • ethstaker
  • ngwrru68w68
  • cisconetworking
  • modclub
  • normalnudes
  • osvaldo12
  • cubers
  • GTA5RPClips
  • Leos
  • tester
  • megavids
  • provamag3
  • lostlight
  • All magazines