Better HN
topnewbestaskshowjobs
Log inSign up

MarkCC

79 karma · joined Mar 1, 2010 (16y ago) · 7 submissions

Submissions

1.

How Computers Work, Part 2: Transistors(goodmath.org ↗)

1 points · by MarkCC · 3y ago · discuss

comment 6y ago · link · parent

I worked at IBM research from 1997 until 2007, after finishing my PhD in compilers and programming languages.

About two weeks after I started working there, she showed up in my office, and introduced herself. She'd heard about a new PL person joining, and she'd gone and gotten my dissertation and read it, so that she could come talk to me about it. Not that my dissertation was anything special: that's just the way that Fran was.

She was an amazing person. Brilliant, and kind, and generous. The world needs more people like her.

3.

Category Theory Lesson 2: Basics of Categorical Abstraction(goodmath.org ↗)

22 points · by MarkCC · 7y ago · 1 comment

4.

Time in distributed systems: Lamport Timestamps(goodmath.org ↗)

2 points · by MarkCC · 10y ago · discuss

5.

The Program is the Proof: propositions in type theory(goodmath.org ↗)

2 points · by MarkCC · 11y ago · discuss

6.

Paxos, a really beautiful protocol for distributed consensus(goodmath.org ↗)

3 points · by MarkCC · 11y ago · discuss

comment 12y ago · link · parent

(Original blogpost author here.)

They're pretty much orthogonal.

PEG is a particular parsing technique. Combinators are a technique for implementing parsers.

You can write a parser combinator library which uses PEG or packrat algorithms underneath.

In this blog post, the library that I'm using is basically building LL parse generators, not PEG. But you could easily implement a PEG-based combinator system.

I didn't do that, because I didn't want to get bogged down with explaining too much about parsing algorithms. The LL/recursive descent approach is pretty easy to understand when you see the grammar code. For PEG, I would have needed to spend more time explaining the algorithms, and the post was already too long!