RSSAmplifier

Blog

Carol's 10 Cents

This blog was re-released before it was ready

carol-nichols.comRSS feed ↗10 posts

Latest posts

Rust Profiling with DTrace and FlameGraph on OSX

This is an alternative to my post Rust Profiling with Instruments and FlameGraph on OSX: CPU/Time , since XCode disabled exporting of the Time/CPU data from Instruments. Many thanks to this post of BrendanGregg’s that has examples of using DTrace to get the data to feed into his FlameGraph generation scripts , and GolDDranks on Stack Overflow who figured out how to get OSX’s DTrace to find Rust…

Rust Profiling with Instruments and FlameGraph on OSX: CPU/Time

UPDATE APRIL 2017 I just tried to follow my own directions and found out that Instruments no longer lets you export CSV data that the Time Profiler collects (I’m currently using Instruments Version 8.3 (8E162)). I’m leaving the rest of the post as-is in case it’s useful to anyone still on an older version of Instruments, but any point after the export won’t work, so no pretty flame graphs anymore…

Ruby Occurrence Counting

Last night, I was coding, as one does, and I wanted something that I thought FOR SURE there was a method in Ruby’s Enumerable module for already, because Enumerable is awesome and The Best Module Ever. But alas, there is not. My problem was: Given an array like: arr = ["a", "b", "a", "c", "c"] You want a count of the occurrences of each item in the array, as a hash with the unique items in the…

Rustcamp Talk Notes: Navigating the Open Seas

I gave a talk called “Navigating the Open Seas” at Rustcamp today– loosely based on my last blog post :) Here are links to everything I mentioned in the talk in case you’d like to learn more about these parts of Rust’s history! Introduction RFC 134 that proposed removing the ' sigil from the lifetime syntax. I called out this comment of Patrick’s in particular to illustrate the value of Rust’s…

Rust Discovery, or: How I Figure Things Out

I’m by no means a prolific contributor to the Rust language (yet!), but I have submitted a few patches. One thing that I’m appreciating as I work on these is that it’s possible to figure out why something did (or did not) change since the development process of Rust is happening in the open. Using git, GitHub, the RFCs repo , and documentation, I have felt like I could figure anything out with a…

TDD Example in Rust

This is an example of how I worked through the Prime Factors Kata using Test Driven Development in Rust (specifically rustc 1.0.0-dev 928e2e239 2015-03-25). I’m assuming you’ve read The Rust Programming Language Book through the Testing chapter, so I won’t be explaining much of the Rust syntax. The kata, as I decided to interpret it, is: Write a function that takes an integer greater than 1 and…

Dev URLs without Pow

TL;DR: I had to do a bunch of research in order to set up pretty URLs to apps running on my localhost at a particular port, so I decided to write up the steps I followed in one place in case anyone else wants to do this. Scroll down past the reasons I wanted to do this for the instructions. I recently decided to use a non-admin user with OSX Yosemite on a daily basis, mostly on the recommendation…

Ruby, Rust, and Concurrency

I mostly do Ruby these days, but I’ve just recently started getting into Rust. I’m finding it super interesting! It’s definitely expanding the way I think about programming, and I’m excited about the future it’s foreshadowing. I’m a visual and experiental learner though, so when I see statements like “ Race conditions Data races are compile-time errors” ( thank you for the clarification, dbaupp :)…

On Stack Overflow

On Dec 24, 2013, Michael Richter wrote a post about why he no longer contributes to Stack Overflow . I don’t feel the same way as he does, but it made me do a lot of thinking and, eventually, a lot of writing. I left these thoughts as a comment on his post but I decided to make my own post as well. Here they are, slightly modified from their comment form to make a bit more sense standing on their…

And we're back

Sigh. My wordpress blog apparently got hacked, my host shut it down, so I’ve spent the last few days converting this blog to a Jekyll site hosted on github pages. I really can’t recommend wordpress to anyone anymore, given the massive botnets that are attacking every wordpress site out there right now. For non-technical folks or lazy technical people who don’t want to have to spend time keeping up…