you could rent a small apartment in a good area (providencia) for $300 a month; a ride on the metro or bus is $1 - $1.50; bread is around $2.50 a kilo... minimum wage here is about $500 a month (the quora page is a bit out of date - the dollar has lost some value...). i imagine you'd need to pay around $2,500 a month for a decent programmer - less for someone with less experience.
so bring a laptop with you!
BTW, for andrewcooke or anyone else there: how's transportation there? Can you get by with public transportation? Are cars cheap? Do they drive well or like maniacs?
not sure what you mean by "nice". i know of one european software engineer that lives in the middle of nowhere (well...) and loves it. but outside santiago you just don't get the "stuff" you probably expect (nice restaurant / top-end computer hardware / large selection of brand-name clothes / pre-prepared frozen food / decent coffee ...). but if you want a simple life, sure. doubt you'll find many good software engineers to hire, though.
as for transport - i think it's excellent. in santiago there is both a modern metro and a bus system. the entire country is connected by buses (some of excellent quality - something like airplane business class) and air. i lived here for many years without a car (i still don't have one, but my partner now does, and uses it about once a week).
oh, and driving - well, they consider themselves the "british of latin america" and really that's not a bad description. compared to uk driving, it's a bit more hectic, but compared to elsewhere in latin america, it's pretty sane. also, no corruption here (well, not that you should meet). don't try bribing a police officer. you can extend this to culture generally - "they" (disculpenme) are friendlier than the british, but less friendly (perhaps "more reserved" is a better term) than any other s. american culture i have met.
Seems like a cool program, just trying to understand how far that $40k would go (or even the $5k that you can pay yourself).