Hope is not a strategy
The Evolving Ultrasaurus
by sarah
1y ago
“Yeah I think I got to the limit of my bargaining … getting to end of May, and when I didn’t seem to get past my last best day which was 2 weeks ago” It was May 25th, the day I remember grieving for my lost life, text chatting with my flu buddy about the five stages of grief: denial, anger, bargaining, depression and acceptance. “I think the thing is that I have to learn to live with this — I can’t just keep expecting, waiting to suddenly get better.” I stopped making plans beyond “rest, walk a little, rest, eat a little, rest…” in achingly slow motion, on a good day I could send an email and ..read more
Visit website
Duck typing in rust: trait vs type
The Evolving Ultrasaurus
by sarah
1y ago
A Trait in the Rust programming language enables what today’s coders commonly call “duck-typing” (walks like a duck and quacks like a duck). In Rust, type refers to concrete types — the type of a value; whereas, a Trait refers to an abstract or generic type. Here the English word type lacks the specificity we need to describe these concepts, so we need adjectives to differentiate. TLDR: traits vs types The type keyword lets us define a type alias, like: type Population = i32; This is useful if I’m often passing around specific variables for a Population, and I have function that takes multip ..read more
Visit website
Writing c library in rust
The Evolving Ultrasaurus
by sarah
1y ago
I want to write a library in Rust that can be called from C and just as easily called from Rust code. The tooling makes it pretty easy, but I had to look in a few places to figure how it is supposed to work and get tests running in both languages. C library To focus on the process of building and testing, the library will have a single function that adds two numbers. I wrote it in pure C first: lib.c int add(int a, int b) { return a + b; } lib.h int add(int a, int b); main.c #include <stdio.h> #include "lib.h" int main() { int sum = add(1,2); printf("1 + 2 = %d\n", sum ..read more
Visit website
Rust on heroku with hyper http
The Evolving Ultrasaurus
by sarah
1y ago
Running an app on heroku requires at least one entry point responding to http. An easy way to do this is to use hyper to create a simple web service. Setup cargo new hello_rust --bin cd hello_rust git init git add . git commit -m "cargo new hello_rust --bin" add to Cargo.toml: [dependencies] hyper = "0.13" Web service code The core code to set up a little web service has a few key parts: the service (async fn hello) an async function that takes a hyper::Request and returns a hyper::Response in the Result Request is generic over the Body, so it seems nifty to be able to provide our own Ru ..read more
Visit website
Patterns of actions are a making
The Evolving Ultrasaurus
by sarah
1y ago
“There are things that you don’t even realize that you can do.” In a recent podcast, B. Mure tells about graphic facilitation: I didn’t really know it was a skill to have: to listen to people and very immediately draw something related to what they were talking about and present their ideas in a visual way. Sometimes this is also called making “sketch notes.” He goes on to talk about a general phenomenon where you discover that you can do a thing that you never thought was a thing: There are so many things that, if you are not given the opportunity, if somebody doesn’t see that within you ..read more
Visit website
Memory safety: necessary, not sufficient
The Evolving Ultrasaurus
by sarah
1y ago
As I think about developing new Internet-connected software, I worry about the safety of the people who use it. By 2021, most Web browsers won’t allow native code extensions, which will eliminate a lot of potential issues, while a hug swath of creative animations and interactives will disappear from the Web. I spent some time this summer, thinking about what I could learn from the security vulnerabilities in the Flash Player that has been much maligned in recent years. Flash CVEs (2001-2009) I looked at the Common Vulnerabilities and Exposure List (CVE List hosted by Mitre with all reports 200 ..read more
Visit website
Brief history of rtmp + future thoughts
The Evolving Ultrasaurus
by sarah
1y ago
RTMP: web video innovation or Web 1.0 hack… how did we get to now? (Demuxed 2019) It was fun to go back in time and recall why Flash was great in 2000, when IE 5.5 had just been released and you couldn’t rely on CSS actually working. In prepping for this talk, I worked really hard to try to express what Web development was like then and why people loved Flash: “200K of cross-platform goodness.” Flash made the Web work for high fidelity interactive graphics 20 years ago, which I think helped drive Web standards to support more than text, images and links. “We wanted to support all the people o ..read more
Visit website
Rust 2020: fulfill the promise
The Evolving Ultrasaurus
by sarah
1y ago
As a newcomer to Rust, my suggestion for 2020 theme is to fulfill the promise of “empowering everyone to build reliable and efficient software” by finishing what’s started (rather than adding new features), continuing the focus on good docs and good tools, and expanding to develop a coherent ecosystem. Rust empowers you to reach farther, to program with confidence in a wider variety of domains than you did before. — Rust Language Book forward Overview themes 2020 roadmap: finish what’s started, fulfill the promise 2021 edition: scalability – Can newcomers to Rust create a real-world, complex ..read more
Visit website
Nut loaf with red pepper sauce
The Evolving Ultrasaurus
by sarah
1y ago
Slightly modified vegan nut loaf to avoid tomatoes. Nut loaf recipe can be also be used to make burger patties, pan fried or baked, or can be stuffed into puff pastry for a puff pastry loaf or small hand pies. Requires food processor to grind up various ingredients. Ingredients Nut loaf 1 1/4 cups (180 g) nuts (raw or roasted cashews, raw walnuts, raw pecans) 1/4 cup (33.5 g) sunflower seeds (or more cashews) 2 tsp oil (or 1/4 cup broth) 1 cup (160 g) chopped onion 4 cloves of garlic chopped 1 cup (96 g) chopped mushrooms (shitake or hen of the wood) 1 cup (140 g) cubed butternut squash 1 tsp ..read more
Visit website

Follow The Evolving Ultrasaurus on FeedSpot

Continue with Google
Continue with Apple
OR