jenrzzz's comments

jenrzzz | 3 years ago | on: To Ruby from Python

It's always a method. Ruby doesn't expose instance variables unless you define accessor methods for them.

jenrzzz | 9 years ago | on: Show HN: Command Line Challenge

I love awk. I used to be afraid of it, but I started using it just to pluck columns, and over a couple years actually started to grok it.

Also, I learned today that cat takes a -n option to prepend line numbers to the output! My solution ended up being

    cat -n faces.txt | sort -k2 -k1n | uniq -f1 | sort -nk1,1 | cut -f2-

jenrzzz | 11 years ago | on: Making Ruby Faster

I didn't say it couldn't be questioned. I was just explaining some possible reasons why the patch was so esoteric, and pointing out that things that seem straightforward to MRI hackers often aren't to people who don't dig through Ruby internals every day.

jenrzzz | 11 years ago | on: Making Ruby Faster

It's an optimization hack. By nature, they aren't that nice to look at.

`sym_equal` only makes 2 appearances in the whole codebase (to be bound to `Symbol#==` and `Symbol#===` in string.c), so there's not a whole lot of room for confusion.

Also, this is Ruby core! Smart people do what works and makes sense to them and don't spend a lot of time worrying about how clear it is to us unwashed masses.

jenrzzz | 12 years ago | on: The Magic of strace

ftp://crisp.dyndns-server.com/pub/release/website/tools/trace-20140126-x86_64-b95.tar.gz works too if it makes you feel any better.

jenrzzz | 12 years ago | on: CAR and CDR

You can use symbolic modes in chmod too if you can't remember the octal representation. For example, you could set 0755 with "u=rwx,go=rx."
page 1