HN user

cgrubb

237 karma

Los Angeles

Posts1
Comments77
View on HN

I upgraded from 2 to 3 last year. I'm liking it.

I've embraced type hints. Although they have no run-time effect, there is a command line tool called mypy which enforces correctness. It has caught more than a few errors for me. Declaring the types of arguments and return values is a help when reading the code imo.

A light rail system over Sepulveda Pass would probably require drilling a tunnel. Early estimates are at least $6B: http://www.latimes.com/local/lanow/la-me-ln-sepulveda-pass-t.... It could get built, but I don't think the final price tag is going to put the lane expansion to shame.

Buses can already use the HOV lanes. One of the expansion lanes (the northbound one) was an HOV lane, so now there are HOV lanes in both directions. Who cares, given how few riders buses attract.

jq is a command line tool and also a language for expressing transformations on JSON with concise one-liners. It is useful for processing the output of mongoexport or an elasticsearch query.

The basic constructs are "filter expressions". Pipes (|) can be used to direct the output of one filter expression to another, and commas (,) can be used to concatenate the output of two filter expressions.

The Venezuela wikipedia page makes it sounds as if the Bolivarian Revolution is a repeat of history:

    The election of Carlos Andrés Pérez in 1973 coincided
    with the 1973 oil crisis, in which Venezuela's income
    exploded as oil prices soared; oil industries were 
    nationalized in 1976. This led to massive increases in 
    public spending, but also increases in external debts, 
    which continued into the 1980s when the collapse of oil 
    prices during the 1980s crippled the Venezuelan economy.
    As the government started to devalue the currency in 
    February 1983 to face its financial obligations,
    Venezuelans' real standards of living fell dramatically.
    A number of failed economic policies and increasing 
    corruption in government led to rising poverty and crime,
    worsening social indicators, and increased political 
    instability.
Why Python 3 Exists 11 years ago

You always "encode" something into bytes, and "decode" bytes back into something. There should be exactly two functions, because the functions have different types: "encode" is str -> bytes, "decode" is bytes -> str. Explicit is better than implicit.

I'm not sure "encoding" tells us that the output is bytes. Surely information can be encoded in other ways. Names like .to_bytes() and .from_bytes() might have saved a lot of trips to the documentation.

The paper uses results from "Grandes valeurs de la fonction somme des diviseurs et hypothèse de Riemann" by Robin, which is not available online, as far as I can tell.

I'm thinking the energy to boil the amount of water which falls naturally on California is about 500 times what the electrical grid currently delivers (300,000 Gwh). Estimating avg rain fall over the state at 15 in = 38.1 cm, so 1.62 x 10^14 liters.

    http://ponce.sdsu.edu/california_average_annual_precipitation.html
    http://energyalmanac.ca.gov/electricity/total_system_power.html
Hyperpolyglot 11 years ago

Thanks for the note. I didn't interpret it as an attempt to take credit. No offense taken.

I like Houston but I have only visited. If I were to live there, I would live inside the 610 loop, which has reasonable density. It is still a driving city, though.

The closest thing to a walking city are the underground tunnels downtown. However, as another commented, the downtown empties out at night; at least that was the case 20 years ago. Houston is very hot in the summer, so a walking city is probably not a reasonable thing to ask for.

One of the absurdities was the Transco tower, called today the Williams tower. It used to be the tallest building in Houston, and it is outside the 610 loop and 4 miles from the downtown. Everything around it is quite small and it is difficult to understand what economics motivated building it.

Update: I'm trying to think why I like the city. I guess it is the vegetation. Houston is perhaps a bit like how Mayan cities must have been.

7mph is a speed a lot of people can't run. Those are 8 1/2 minute miles. It corresponds to a speed of 26min for a 5k.

This article

  http://www.letsrun.com/forum/flat_read.php?thread=4612823
has some stats for a 5k race. The average time for men was 28min, and only 10% of the women were faster than 26min.

Slower speeds might skew towards women, who naturally live longer.

Another thought is that people who run fast do so over shorter distances, and their volume isn't sufficient to see a health bump.