Making Reasonable Use of Computer Resources: Part 2

Article 2

Async overloading

Issue #81

8/31/2021

A Byte of Coding Issue #81
-⎽__⎽-⎻⎺⎺⎻-⎽__⎽--⎻⎺⎺⎻-
So I recently found out that ARM China went rogue. Pretty fucking wild. I can't say I'm super surprised to be honest. China does things a little bit different. Ruthlessness in business isn't really frowned upon, according to my personal experiences and plenty of additional anecdotes from friends. It's kind of funny, because on the other hand, humility at any compliment is a social norm. What do I mean by that? Well I can't recall a single time when I complimented someone and they didn't insistently refute it or deprecate themselves.
Well anyway, got a little sidetracked there. Here's that issue.

Making Reasonable Use of Computer Resources: Part 2

Published: 28 August 2021
Tags: optimization, bash, rust


As you sit at your desk, scratching your head thinking about how you could shave a few seconds off of the function you just wrote, you hear a faint whisper in the wind, "premature optimization is the root of all evil". Well if your function takes days to run, it's definitely not premature. In this short article, the author describes the steps taken to optimize a JSON parsing script that originally took "more than a day to run", down to about 15 minutes using some clever shortcuts.

Read Full Article

Article 2

Published: 29 August 2021
Tags: clojure, haskell, scala


Learning to treat code as data was one of the reasons one my earlier mentors suggested I learn Clojure, and after I started, I had several realizations about how I could modularize the code I wrote to make it more flexibile and pleasant to maintain. In this example-filled article, Gary Verhaegen explores how data driven API design is implemente in Clojure, Haskell, and Scala using a CLI parsing program.

Read Full Article

Async overloading

Published: 24 August 2021
Tags: rust, swift


Another article along the lines of APIs, this time Yoshua Wuyts explores how async operations are handled in different languages, as inspiration for coming up with a standard for Rust. Yoshua uses the recent Swift async overaloading amendment as a template for a similar implementation in Rust, and concluding with a number of caveats.

Read Full Article
Twitter
Website
Thanks for your Support! 

Thanks to supporters like Євген Грицай, Scott Munro, zturak, pek, Emil Hannesbo, and Joe Hill this newsletter is provided to you for (ad) free. If you'd like to also show your support and help out, you can donate on the Patreon page. It's not necessary, but it lets me know that I'm doing a good job and that you're finding value in the content.
Donate Here

Stats (updated daily)

Sent: 1512

Opens: 1022

Clicks: 415

Link Clicks Clicks % Unique Clicks Unique Clicks %
ARM China went rogue 157 37.83% 130 37.57
Making Reasonable Use of Computer Resources: Part 2 126 30.36% 102 29.48
Article 2 83 20.00% 68 19.65
Async overloading 49 11.81% 46 13.29

Previous

Back to Issues

Next