Skip to content

Instantly share code, notes, and snippets.

@scrosland
scrosland / work_queue.rs
Created June 2, 2021 09:06 — forked from NoraCodes/work_queue.rs
An example of a parallel work scheduling system using only the Rust standard library
// Here is an extremely simple version of work scheduling for multiple
// processors.
//
// The Problem:
// We have a lot of numbers that need to be math'ed. Doing this on one
// CPU core is slow. We have 4 CPU cores. We would thus like to use those
// cores to do math, because it will be a little less slow (ideally
// 4 times faster actually).
//
// The Solution:
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xml:lang="en-US"><channel><title></title><link>https://vimeo.com</link><description></description><pubDate>Mon, 14 Dec 2020 07:39:34 -0500</pubDate><generator>Vimeo</generator><atom:link rel="self" href="https://vimeo.com"/><atom:link rel="hub" href="http://vimeo.superfeedr.com"/><atom:link rel="hub" href="https://pubsubhubbub.appspot.com/"/><image><url></url><title></title><link>https://vimeo.com</link></image>
<item><title></title><pubDate>Mon, 14 Dec 2020 07:39:34 -0500</pubDate><link>https://vimeo.com/490720400</link><description></description><guid isPermaLink="false">tag:vimeo,2020-12-14:clip490720400</guid><media:content><media:player url="https://player.vimeo.com/video/490720400"/><media:credit role="author" scheme="urn:ebu"></media:credit><media:thumbnail height="540" width="960" url="https://i.vimeocdn.com/video/1015086203_960.jpg"/><media:title></media:ti
@scrosland
scrosland / keybase.md
Created July 20, 2019 14:35
keybase.md

Keybase proof

I hereby claim:

  • I am scrosland on github.
  • I am scrosland (https://keybase.io/scrosland) on keybase.
  • I have a public key ASBQ-pGLKu7v-Jj_1EmDnbeiadMrqGbuHLPIJZnnD-TL9go

To claim this, I am signing this object: