Adam Crain πŸ¦€

88 Followers
76 Following
56 Posts

Building the next generation of communication software for power systems and renewables at Step Function I/O. Rustify all the things.

Enjoying all the mtb, snowboarding, and outdoor things the PNW has to offer.

Bend, OR

Step Function I/Ohttps://stepfunc.io
LinkedInhttps://www.linkedin.com/in/energycoder/
Githubhttps://github.com/jadamcrain
Me today when a build failed because the maven central PGP key was expired. 
@emgre how are things?
I moved to Oregon from NC 5 years ago. I don't know when it started exactly, but I find myself saying "howdy" to people. It's funny how natural this feels now lol.

Tisk. Tisk. You can't tell me that Thomas didn't once think "If this ever comes out, it's going to erode public trust in me and the court in general".

https://www.propublica.org/article/clarence-thomas-scotus-undisclosed-luxury-travel-gifts-crow

Clarence Thomas and the Billionaire

Island-hopping on a superyacht. Private jet rides around the world. The undisclosed gifts to Thomas have no known precedent in the modern history of the Supreme Court. β€œIt’s incomprehensible to me that someone would do this,” says one former judge.

ProPublica

Building out my mini lab with some industrial computers. Waiting for another pair of vertical rails to mount the DIN rail.

Will use this for demos, debugging, and performance testing.

@emgre

@emgre how was the openfmb stuff at dtech?

I am amazed by how many design problems in Rust are solved by "use an enum".

Problems that required inheritance in other languages are succinctly solved by A or B or C.

If you don't need run-time polymorphism, enums are almost always the right choice.

They even get you efficient "polymorphism" for async with the overhead of a branch.

If you know all the variants at compile-time, use an enum!

I'm sick today, enjoy a meme
The assumption that "memory safety" and "performance" is a dichotomy doesn't pan out. Having more restrictions on the representable state allows compilers to be more confident on the optimizations they can apply. And being "fast and wrong" in almost every domain is worse than "slow and right".
Nooooo