Sunday, June 24, 2012
Investigating facts relevant to public policy
Only slightly more realistically: As the newspaper business dies, we are left without a mechanism for funding private investigative activities. I have this idea to create a market for investigations. People will propose or support investigations with offers of approximate financial commitment. Journalists, scientists, data analysts, others, will try to put together teams to put more concrete proposals that the informal proposers and others can fund. Willingness to fund would be very much based on the reputations of the investigators. So I envisage that young people would get together to do free or cheap investigations to establish their reputation, as open source programmers do. To set up such an investigation market, it would be valuable to have some high profile people getting it started: including a scientist, a journalist and a data analyst.
Sunday, May 13, 2012
The Wombat hasn't landed
The Wombat Programming Language
I know my design would be better if I understood more of: Scalaz; Typeclassopedia; HoTT; and lots of other stuff. But maybe the people who do would like to comment (at least to the extent of recommending what to learn and where).
The "Wombat Summary and Rationale" document is at https://docs.google.com/document/d/1MXH4y75gViHDTldrAhXVMVUOXZJhwh3EwjXgn6k5Ncs/edit, with comments enabled. Or you can comment here. Or in my Google+ post. Or post an issue at http://wombatlang.googlecode.com.
Thursday, March 22, 2012
STV Magic
[For those that don't know: In STV people number the candidates. The candidate with the lowest total of votes is eliminated in each round and all of the people who voted for the eliminated candidate have their votes transferred to their next choice. Repeat. Finally there are 2 candidates and the one with more votes wins and it is a nice feature that he has, at that point, got more than 50% of the votes. There are subtleties, but one thing is sure: it's better than first past the post. I was shocked, disappointed and annoyed (not to mention disgusted) when the British people rejected STV in a recent referendum.]
Well here's an idea. First we run our STV election to get the first winner (we just go till someone has >50% of the votes). Then we eliminate all the candidates of the same sex as that winner, and we recount the election until all the votes have been distributed to the last two candidates (except that we never eliminate our initial winner in any round [if that could happen?]). So we end up with two candidates and all the votes allocated to one or the other. Then we send them both off to parliament: except that when they vote in parliament they vote that total number of votes they got: it is no longer just one person one vote in the House of parliament.
This has a couple of nice effects. Naturally we get an equal number of the sexes in parliament. Another thing is that it makes gerrymanders useless.
Assume there are two big parties. Each will have two candidates, one of each sex. At the end of counting you get one candidate from each party elected after the minor parties and independents are eliminated. But the total number of votes each party gets will represent their total votes across the whole country, irrespective of where the boundaries are drawn. Indeed one of the advantages is that it reduces the need for the electoral commissioner to draw artificial boundaries to equalize the electorates.
Update 2014-07-26: I know what I mean, but it needs an example. Suppose there are two main parties in Byzantium: Red and Green. In an election in a seat with 19,999 voters we distribute preferences. The Red lady wins with 10,000 votes. At this point we eliminate all other ladies in the election and we start again with the Red lady and all the guys. We just keep distributing in the normal STV way. Any votes for the eliminated ladies go automatically to their next preference up. We don't stop when one has 10,000 votes, we keep going till all the votes are allocated to the final 2 candidates. Typically we'll get something like: The Red lady has 11,000 votes and the Green guy has 8,999 votes. Then they go off to Byzantium parliament and when they vote there the Red lady votes her 11,000 votes, and the Green guy votes his 8,999 votes.
Update to the update: The key to this is determining the second winner. After that the votes get allocated to each according to their relative position on everyone's vote. People who know STV will not be surprised that the winner's excess should be counted in determining the second winner. Maybe after a quota of 1/3 rather than 1/2. Mostly it won't make any difference in who comes second, but if you don't do it after 1/3, then strategic voting becomes an issue. Don't ask.
Monday, March 12, 2012
Mysterious arguments about AGW
There are two interacting climate change hypotheses. The well known one (AGW) is that human induced increases in atmospheric CO2 are increasingly making it warmer. The other is that when the sun is weak it allows more cosmic rays to get to lower levels of the atmosphere, increasing cloud cover and making it cooler. There is good reason to think we are moving into this weak sun period.
The two sides of the AGW debate have a clear interest in the 2nd question. For people that want something done about CO2, it is important to let people know that if we enter a period where natural climate variability runs against AGW then we must not relax, because soon they'll be pushing in the same direction and by then it will be too late to reduce CO2. On the other side of the AGW debate, those who don't want anything done about CO2 should keep quiet about natural climate change so that they can claim that the temperature falling (or not rising) disproves AGW.
But what we see is the reverse. AGW proponents like to deny that there is any such thing as natural climate change. Meanwhile those on the other side seem equally keen to argue that there is natural climate change.
Go figure.
Saturday, September 17, 2011
The paradox of the economic impact of rising production costs
In the case where the price rises with no production change, there is just a transfer of money and consumption from buyers to sellers with no net economic change. But then I said that when there is a change of production cost then the extra cost of production disappears out of the economy. That is clearly wrong. Money flows to the producers, but instead of flowing on to consumer purchases it flows on to production expenses, like oil rigs and oil workers. But in so far as it flows to more oil workers it is no different to when it flowed to the owners of the oil resevoir. Similarly when it flows to the workers and owners making oil rigs.
Either way the money flows through the oil production process. So what difference does it make to the economy whether it flows through to owner consumption, or it flows through to production costs?
Obviously I think it does make a big difference, though not in the simplistic terms of the previous post. My intuition is that it flows through with more resistance when it flows through to production costs instead of owner consumption.
So my challenge to economic theorists is to find a way of talking about the economics of resource, and particularly energy, production and use, that correctly explains the impact of rising production costs on the economy. If it is only comprehensible to mathematicians that will be better than nothing, but bonus marks will be awarded if it is comprehensible to politicians and voters (and me).
Friday, August 19, 2011
How Peak Oil destroys the world economy
Having expected Peak Oil to seriously impact the world economy, I was not surprised when high oil prices were followed closely by economic problems in 2008. Surely now the world would wake up. But no, the economic problems were attributed to malfunctions in the the financial system. And we Peak Oil believers struggled to put a coherent case.
It is tempting to focus on the high price, but consider what happened when the price went rapidly from $130/barrel to $140/barrel in 2008. Obviously this made consumers, and importing nations, poorer. But it made producers richer by an exactly equal amount, and what can they do with that windfall but spend it, or recycle it by lending it to others to spend? So the net effect on the total world economy is zero, and that is what economists perceive.
Even though the price is now around $100/barrel, as it was in 2008, still most oil comes from old fields that used to profitably produce at $20/barrel, and still could. However all of these big cheap oilfields are past their peak. They produce less every year. Oil production continues to struggle along on a plateau of constant production. But this is made up of increasingly less of the cheap oil, and increasingly more of the expensive oil from newer fields.
Now imagine what happens when we lose a barrel of oil that cost $10 to produce, and replace it with a barrel that costs $60 to produce. That is $50 worth of productive effort that was available for consumption or building new infrastructure. Now that $50 of productive effort is used and lost.
The world consumes about 30 billion barrels per year. The depletion rate on existing oil wells is about 5%. As a rough guess, perhaps 1.5 billion barrels/year (5% of 30 billion) is being replaced by much more expensive barrels each year. In that case, multiplying by $50, it amounts to $75 billion/year lost to the world economy. Perhaps Kjell Aleklett and his team can come up with the right number. Whatever it is it is certainly big enough to cause major disruption to our growth-oriented economy.
So far the economy has managed to grow by: switching to energy alternatives; using petrol more efficiently; and turning to less energy intensive ways of working and playing. This is going to get harder as we come off the plateau and start the actual descent.
Wednesday, April 20, 2011
Demographics
Of course this will be irrelevant in many possible future circumstances where production is limited by energy not labour shortages. In that case population at any age is irrelevant to pollution.
Monday, April 18, 2011
global warming impacts viticulture: irrelevant
Viticulture! I can't believe the way people who want the world to stop burning fossil fuel think it is some sort of minor matter, so that it is worth mentioning all sorts of trivia like the impact on tourism here or increased disease there. If we stopped burning fossil and nuclear fuel tomorrow (as the lunatic fringe wants) then the carrying capacity of the world would be much less than a billion people. At least they'd all be living close to nature: too close for comfort.
IF we find something cheaper than coal for energy (our only chance to stop burning coal) then just the cost of changing infrastructure will be huge and mostly hit the poor. How much are people prepared to pay to save the world? A major Australian mining union has said "not one job". America has no interest in growing food instead of transport fuel despite the visible impact of rising food prices on world stability. Just the minor rise in energy costs, from initial (ill-advised) renewable subsidies and requirements, has annoyed the Australian electorate enough that the latest polls suggest the government will be wiped out in the next election, if they make it that far.
The world needs cheap energy. It can only come from Nuclear. Nuclear design is a nightmare since elements keep changing and having different chemical and physical characteristics. And clearly we need to prove safety, since "just trust us" isn't going to work. The way to prove safety is to make lots of identical small reactors so that we can test them in extreme conditions [on a remote island]. And this needs to be done in a very open way. "OK, here's our simulation of what will happen when we do this. Now let's actually do it, and everyone can watch live on the Internet".
sorry about the rant.
[response to Azimuth project discussion entry]
Monday, March 21, 2011
Make maths useful: response to Baez blog post
If plants keep their leaf pores smaller, that means that particular plant types can grow in drier conditions. At the edge (if rainfall stays the same) that means more tree covered areas which is a negative feedback on CO2. In other places I presume it means that you eventually get different trees (basically because trees which are adapted to relatively dry conditions lose out to trees that don't have those adaptations where those adaptations aren't necessary). So its tricky. And isn't this typical of so much relevant stuff. You see a summary of a result and you wonder: "did they allow for this or that?". It would be interesting to develop an oracle (like Watson?) which could absorb a lot of information and answer questions like that.
Saturday, February 26, 2011
Democracy and the war on drugs
But many countries are going backwards because of the corrupting influence of drug money: most noticeably Afghanistan and Mexico. It is essential to take the profit out of selling drugs, and there is a natural way to do that. Drug pushers start by providing drugs cheaply, then make their profit from those subsequently addicted. Making it illegal for addicts to get there drugs is highly counterproductive. Here’s the alternative:
- Continue to ban the supply and sharing of drugs, with severe penalties particularly to the supplier, but also to anyone receiving or possessing;
- Allow addicts to register;
- Registered addicts can receive supply, for their own use only, from a government channel;
- Supply is guaranteed, not requiring immediate payment, so addicts are not forced into crime;
- For more dangerous drugs, users might be required to consume under supervision.
- End the war on drugs;
- Remove the malign influence of drug barons on politics in many places;
- Getting into contact with addicts in this way will enable cures in many more cases.
Friday, January 14, 2011
thinking about interconnected information
Anyway this set me wondering whether one might try to copy the brains internal structures a bit. The idea is to have nodes that are connected in multiple ways and amenable to computer processing. The text is unambiguous (as far as possible) because the ontology and parsing is specified. Nodes can link to other nodes in various ways, including:
- (parameterized) Bayesian network specifying the probability of a node given another (when meaningful);
- software module interaction for nodes with associated software;
- just links;
- ...
Monday, December 27, 2010
Australian Cricket mismanaged
Ricky Ponting showed why he is such a bad and unsuccessful captain at the start of the England innings. He held a huddle to gee everyone up. Richie Benaud was immediately critical. It was essential that the bowlers stayed calm and put the ball in the right spot. Instead they tried too hard and immediately sprayed the ball around. We can well imagine that this has been a feature of Ponting's captaincy. It is also bad for the batsmen. We need them to bat a long time, and you can't do that if you are trying too hard. We need batsmen who can still focus while staying calm.
Some of the coaching staff do know what they're doing, as we saw when they took Mitchell Johnson out for one test and sorted him out for Perth. Still we need to restore calmness in the coaching department. Let's start by making Mark Taylor head coach.
The tendency of players to play on and on has destroyed the natural rhythm of the team making it too hard to bring in young players. This also involves players playing with injuries. That might work in a 1 day game, but you can't bowl long spells or bat for a long time with a crook back. Shane Warne showed what a break from the game can achieve. I'd like to see Ponting take a big break. He might bat on for many years after that.
I fancy Cameron White for Australian captain, why else would Warwick Armstrong be reincarnated? However there are a few things against it, including the fact that he is probably not good enough to make the team. I think Shane Watson could be good, though he is another one who is not as calm as he seems.
Sunday, December 19, 2010
Mathematics is "Thinking clearly about problems"
The subject matter of Mathematics is "Thinking clearly about problems" (not counting most problems related to understanding and relating to human behaviour and culture). Teachers can't teach maths well without having this focus. It isn't (mostly, and for most people) a cultural activity like music. Math tends to invent a terse language to help express itself, but teaching the language without clearly relating it to problem solving is what makes math seem weird and pointless to many students.If we could base mathematics education on this definition then we would see many immediate benefits:
- Teachers and students would know why they were learning mathematics;
- A problem based approach would help everyone see the difference between the important and the merely conventional aspects of the language and methods of mathematics;
- It would be clear why mathematics should be compulsory, and why efficacy should be a key requirement for higher education courses (outside the Humanities);
- It would integrate mathematics with computer education to the benefit of both.
Update:
In John Baez's blog I appended this to a comment I made:My New Year’s resolution is to have another go to sell the idea that “The subject matter of Mathematics is how to think clearly about problems (mostly excluding human interaction issues like culture)”. Teachers and students are hopelessly confused by an education system that treats mathematics as a collection of facts (about Platonic entities) which is sometimes useful in the real world. My definition will give Mathematics its rightful place in the core of a modern education. I’m not going to make any progress until I can find a real Mathematician to endorse the idea.And I got an endorsement from John Baez himself. Initially his comment was (as wordpress emailed it to me): "I hereby endorse your idea. Please make progress.". But now the reply reads:
I hereby endorse your idea.
When I go back to UC Riverside in the fall of 2012 and start teaching math again, I’m going to teach it in a new way, informed by everything we’ve been discussing on this blog. I think the kids will enjoy it. I never taught math as a collection of ‘facts’, and that’s probably why the students liked my classes, but now I’m more keen on real-world examples that illustrate the big problems facing our civilization, rather than examples of the sort that pure mathematicians (like my former self) most enjoy.
Sometime before that, I plan to write a paper with the mild-mannered title “How Mathematicians Can Save the Planet”. I’ll put drafts here, and I’d appreciate your comments.I'll continue this subject area in a new post soon.
Sunday, December 12, 2010
critique of "Ecotechnic Dictatorship"
Anatoly Karlin's writing displays a nostalgia for dictatorship that infects a large minority of folk from/in the former Communist countries. As such he is more looking to justify his position than make an honest case. This is particularly clear in his treatment of nuclear power. He first says, correctly, that it is the only hope for continuing our current high level of energy use. Surely this should induce him to thoroughly investigate and understand that issue. But no. Instead he quickly dismisses it with quick comments about Uranium running out which don't reflect any honest attempt to understand that issue. [Uranium is a very common mineral, as we see from the amount that has got into the ocean. Thorium is more common and has more energy (though not soluble so not in the ocean).]
Peak Oil doesn't mean "running out of oil". It does mean rationing by price and the huge costs of changing infrastructure to an electricity based one. Difficult times are guaranteed and the push to dictatorship will be on from well meaning folk as well as the sociopaths who will win any successes in that direction. The price of liberty is eternal vigilance. Democratic institutions need to be improved not dismantled. People who genuinely want to save the world need to get involved with politics not acquiesce or support the destruction of politics.
Monday, December 6, 2010
on the dangers of giving humans lots of energy
Before the Industrial Revolution we felt powerless in the face of nature. Actually some of our worst human environmental disasters had already happened: the destruction of the megafauna outside Africa; deforestation of Britain and many other places. With fossil fuels the potential for destruction became so great that we invented the National Park. With nuclear power we need to aim even higher: the restoration of most of the Earth to its natural condition (plus intervention to compensate for the lack of megafauna). Let's let the rivers flood as they are meant to, and the oceans and rivers be free of industrial fishing. Let's use our biological skills to get rid of introduced species in many places.
Of course it is a bit premature to worry about a world with too much energy.
Sunday, December 5, 2010
Sign Language
Human brains are designed to know multiple languages and some bits of the brain don't develop properly if not (which we know because people with one language have more trouble learning a new language than people who learn more than one when very young). And there is a second language that everyone should learn early: sign language. Reasons: (a) Talk in noisy environments; (b) Easier to have a private conversation because light waves are easier to block than sound waves; (c) Babies can learn sign language earlier (and parents are very frustrated till they can communicate with their kids). Sign language was our ancestors first language: we needed a language first to justify all the voice box changes needed for language.
Friday, November 12, 2010
Liebig and the carbon price
Economics is dynamic. All my ways of trying to understand it are static, like EROEI. So I often wonder whether I really understand. We get this in the EROEI discussion. So what happens to the money the company pays to the janitor (or the CEO). They spend it, and there is energy embodied in the stuff they receive. And the people receiving the money spend it and ...
This seems to have something to do with Liebig's Law. The thing that is in short supply is what counts. For 200+ years that thing has been skilled labour. Now, maybe temporarily, it is oil. So that suggests that for our infinite regression on the janitor's salary, each step has some embodied oil. And the sum of all those bits of embodied oil limits how much value you can get out of the dollar. Well this conveniently forgets that there is some time delay between receiving and spending money: the velocity of money.
So let's take a case relevant to saving the world: our carbon tax (whether it is done with a market or not). Proponents of this mostly say that it should be revenue neutral. All the money raised is returned to the public in some wonderfully fair way. Let's assume we have a closed system: Not much point if we just move the carbon emissions to another country. So the public buy energy (directly or indirectly) and part of the price is carbon tax. Then they get that back and they buy more stuff with embodied energy. Then they get that tax back. Well its doubtful if you can buy anything that doesn't have embodied energy, but only a proportion is carbon intensive. So how does this cycle play out? Are the infinities relevant or can we normalize or zenoize them?
Thursday, November 11, 2010
importance of Liebig's law of the minimum
Liebig's Law applies in its original form to plants. Let's just consider the 3 standard ingredients: NPK. A particular type of plant will need a particular ratio. The growth of a particular plant in a particular location will be constrained by whichever is in shortest supply (taking the preferred ration into account). There will then be unused amounts of the other 2. Now we can imagine that the plants of that type in that area will be evolving towards making more balanced use of the resources available there. However long before much progress is made in that direction the area is likely to be overrun by a different species that is already better adapted to the NPK ratio there.
We need to understand the corresponding situation in economics. Global production requires resources. The key resource is the one in short supply. Naturally there is an excess availability of the ones that aren't in short supply, and their price is driven down. There is only so much that society can spend on resources as a whole, so not surprisingly the total cost of resources stays steady. The key is the one in short supply. Currently, and for the next decade, that is oil.
There is pressure on us to evolve: to use oil more efficiently and to use other things where possible. However our current technology mix is the wrong "plant" for the new environment. The correct answer is to switch to an electric instead of an oil economy.
Getting back to Krugman's post. The key commodity for global production is the one in short supply, where the substitutability is almost used up. That's oil. Total/average commodity costs are not the important thing.
P.S. On previous occasions I've misspelt this Lieberg.
Saturday, October 16, 2010
Comment on water allocations (in The Australian)
Monday, October 4, 2010
Need for a 4th arm of government
[response to Andre Joyal at nCategory Cafe]
Sunday, October 3, 2010
Comment on Krugman post comparing economic theories
Saturday, October 2, 2010
Discussion added to EROEI entry at Azimuth wiki
- Energy for workers. The janitor’s refrigerator uses energy. Actually all the money paid to all the workers will be spent in ways that cause energy to be consumed. If this is included in EROEI calculation then we can see what happens when there is declining EROEI. The EI can be reduced by reducing wages (in real terms). This can only happen if all wages in the community drop, otherwise the energy business can’t hire. So this is the last resort way of reducing the EI and improving the EROEI.
- Oil is an energy carrier. In the proposal for a Hydrogen Economy the Hydrogen is just an energy carrier. Similarly oil and its distillates are energy carriers, particularly useful for the transport industry. Recently oil’s price has decoupled from other energy sources (electricity and natural gas). The extra price represents the value of oil as an energy carrier. So it is difficult to use EROEI calculations directly on oil. Ultimately we will still be producing a lot of oil when the EROEI is less than 1, using up non-oil energy in the process.
- Energy’s reign. It is possible to view the production of goods and services as requiring energy and (skill-weighted) workers. When we spend money, then the services we get use up energy and worker time. The recipients of the money spend it and use up more energy and worker time. Ultimately the money’s circulation uses up some of both. The two have to come into balance. The industrial revolution meant that energy was plentiful and skilled workers were scarce. So energy prices were driven to the floor and wages rose creating the middle class. If energy is in short supply then energy prices will get off the floor and wages will be driven down to restore balance. All of which amounts to an argument that cost/price is the best measure of total energy in or out at any point in time. EROEI calculations that exclude pay and dividends are the way to look at the crucial limit case.
Wednesday, September 29, 2010
Comment on Stephanomics on Oil
IF the world were stimulated enough to get back to full employment, then how much oil would the world need? This is not an impossible question since the close connection between total production and oil production has been visible for decades. Now suppose that the world simply can't pump that much oil at the moment. What are the economic implications of that?
To answer that you have to look at where the world is heading. The price of oil has decoupled from the general price of energy. That means that the price includes a component for the energy, and a component for the extra value of oil as a convenient energy carrier (particularly in our world with so much oil-dependent infrastructure, like trucks, cars, petrol supply chains). This means that (a) Where possible (stationary situations) everyone is moving to other energy sources; and (b) We can increasingly use energy to get oil and still make a profit (this opens up options like tar sands, heavy oil, and in the long run we can even make oil out of thin air, perhaps using algae [I'm not suggesting that algae will ever make cheap oil]).
Other energy will never be as convenient as oil that flows out of the ground under its own pressure. Lack of convenience won't matter if it's cheap enough. The Green view that the cost of energy is unimportant is completely wrong. So the required recipe is clear:
(A) Stimulus must be used to build cheap electricity, not to try to restart "business as usual".
(B) We need to actually suck up any resulting excess liquidity in private hands to prevent us smashing again into the current limit of oil production: e.g. Energy Crisis Bonds in the style of War Bonds.
Tuesday, September 28, 2010
comments on Azimuth wiki startup
When everyone – tout le monde, as Tom Wolfe used to put it, meaning a relative handful of people, but everyone who supposedly matters – is saying something, it takes a real effort to step outside and say, wait a minute, how do we know that? It’s especially hard if you spend most of your time hanging out with other Very Serious People; I know that I myself have a hard time saying that people I know personally are talking nonsense, even when they are. The VSP effect is one reason smart bloggers, both on economics and on politics, have generally been a better guide to what’s really happening in America than famous reporters: their distance, their lack of up close and personal insights, is actually an advantage.Then lower down:
This is what you need to know: important people have no special monopoly on wisdom; and in times like these, when the usual rules of economics don’t apply, they’re often deeply foolish, because the power of conventional wisdom prevents them from talking sense about a deeply unconventional situation.Hmm. On the other hand we need genuine subject-matter expertise, which Krugman provides on Economics. On the other hand it is very easy for experts to be too narrowly focussed. I keep asking questions on his blog along the lines of "If world-wide demand were raised by world-wide government action to the level necessary to get unemployment down, then how much oil production would the economy need, and can we produce that much oil at the moment?". My point is that (a) we need government stimulus directed to produce cheap energy to be an (imperfect) substitute for oil; and (b) we need to also soak up private demand (energy crisis bonds?) to prevent smashing (again) into the limit of oil production and crashing the economy. But am I right? As Krugman and others point out, things are very similar to Japan 15 years ago when there was no energy or other shortage. We are missing any way to think clearly about these things. Just different groups of people using lots of adjectives and doing lots of arm-waving (yes there are lots of numbers being thrown around, but their implications are far from clear).
Which brings us back to the question of who has a special monopoly on wisdom. I claim that the subject matter of mathematics is how to think clearly about problems. Yes mathematicians spend time thinking about unimportant problems that they just happen to be able to describe succinctly. And also trying to understand mathematics itself better. But the real problems that drive mathematics are in the real world. Inference is a universal aspect of clear thinking, and this has to involve Bayesian analysis and using maximum entropy to understand what we know before we look at the evidence and how the evidence modifies what we know [and I'm not saying these are easy tools to use]. But this doesn't get us very far in understanding real world economic and environmental problems. I'd be rash to comment but I feel that the place to look has to be flows in configuration space, and the principle of Maximum Entropy Production will be the key to understanding that.
Monday, September 27, 2010
Transport Fuel is an Energy Carrier
A similar situation is energy for mobile devices (PDAs, laptops, mobile phones). Here we see that energy carriers can justify being expensive if they can be light and compact. These are exactly the requirements for energy carriers for transport.
At the moment the world depends on oil which combines the qualities of energy source and energy carrier. Once we get beyond that we can perceive a world where there is a lot of cheap energy from Nuclear Power (assuming that something turns up from all the thought that is going into manufacturing nuclear power plants that are of shippable size). For transport we will then convert that to an energy carrier. Given the massive investment a fair amount of that will be done by producing diesel, and that will mostly be done by converting inconvenient natural sources like Alberta tar sands and numerous sources of very heavy oil. Eventually, hopefully soonish, it will be possible to make fuel from thin air using algae and this will be competitive if the carbon price is high enough. However while all that is going on we’ll also be seeing a transition to other energy carriers for transport.
Friday, August 27, 2010
Conversation on Terry Tao's Buzz
By the way, as I pointed out to John Baez, one of the problems we have in addressing all these questions is that there are no good models of the economy. A good model would have to understand the flows of some funny things like people and sentiment. It would have to deal with money in a sophisticated way since it is peculiar stuff (because governments can and do print it, and maybe unprint it).
@Robert: Jevon's paradox is a great observation, much of the policies enacted by the government tend to have limited scope and thus only fix problems that arise in a partial equilibrium framework whereas Jevon's paradox extends the analysis to other markets in which the government participates through it's expenditures of its tax income and thus considers a more general equilibrium framework. However, whether or not the government will use the income to purchase or manufacture goods that expend as much, if not more, energy than the energy use that was taxed is unclear to me. In a perfect information setting where the government is perfectly informed as to the utilities of all generations and considers the welfare implications of the externalizes on all generations (perhaps discounting future generations to some extent), Jevon's paradox does not occur; but, the real world is a different story...9:00 am
Does Terry mind us having a private conversation under his buzz? Apologies if so.10:10 am
Thursday, August 26, 2010
Rethinking Peak Oil
The most immediate characteristic is as a source of energy. However once the price of oil gets above a certain level then we stop using oil just for energy. The first step in this process was when people stopped using oil for electric power generation, which happened 40 years ago. The next step, which is happening rapidly in North America, is that people stop using heating oil to heat their houses in winter. We are not running out of energy. Indeed it seems certain that we will get Nuclear Power working and producing cheap electricity well before there is any shortage of coal or natural gas. Claims that we might run out of Uranium are silly: it is precisely because there is so much cheap Uranium that we can't get more modern reactors up and running that would use much more of the nuclear fuel and leave much less residue.
The 2nd characteristic of oil is as an energy carrier. Liquid hydrocarbons are the ideal fuel for transport. And we have an enormous infrastructure using that. But the oil price has already disengaged from the price of energy. Natural gas is cheaper, electricity is cheaper if it doesn't come from silly renewable sources.
So Peak Oil folk talk about oil's declining EROEI: Energy Return on Energy Invested. We can see that EROEI is declining markedly. But this is now irrelevant. Oil is no longer being used mainly as an energy source. It is being used mainly as an energy transporter. The Peak Oil folk are quick to rubbish "The Hydrogen Economy". Hydrogen is not an energy source at all, and it is easy to see that it is a very silly energy transporter. Time to wake up and rethink oil as energy transport, and stop worrying about its EROEI.
Once we stop worrying about its EROEI, we can see that it doesn't matter if Canadian tar sands or very heavy oil requires a lot of energy to extract. We could even make oil out of thin air, using algae for example. The EROEI no longer matters.
This is not to say that we aren't going to have a nasty decade or two. At the end the successful countries will be the ones that make Nuclear Power work. Certainly India and China agree on that point.
Tuesday, August 10, 2010
Response to Google/Verizon fair Internet proposal
Monday, August 2, 2010
Technology Summary for cheap electricity
Saturday, July 24, 2010
Solving a 30 Year Puzzle
One thing Algol 68 gets wrong is that it conflates variables and pointers. For clarity I’ll use more modern notation, only consider variables, and restrict arrays to 1 dimension: Var<X> for the type of X variables and Vect<X> for the type of 0-based 1-dimensional arrays of X. I’ll also show explicitly where parameterless functions are called.
What I have always liked about Algol 68 (that all other languages get wrong) is that identifiers stand for some sort of constant. The core declaration syntax is just “type identifier = value”.
- Int three = 3;
- Var<Int> i = loc<Int>();
- Vect<Int> one2three = (1,2,3);
Constant arrays are undoubtedly useful, but mostly people will want traditional arrays that can be updated in place. This is where Algol 68 makes a delicate decision. The obvious decision is that an updateable array is a Vect<Var<X>>. However that seemed to imply passing around lists of addresses of variables. This seemed undesirable. So instead (actually: as well) they made special rules for Var<Vect<X>>. So if we have:
- Var<Vect<Int>> vvi = loc<Vect<Int>>(3) := (1,2,3);
This is really sad. Without this then we can easily regard an array as a procedure, with subscripting and slicing being normal procedure calls. Then a lot of stuff could be moved out of the core language into the standard library. It is always good if stuff can be done in the standard library, because it raises the chance that authors of other libraries will be able to achieve a good result.
Indeed it would be nice to get Var out of the core language. Var itself interacts horribly with type inclusion/coercion, being neither covariant nor contravariant in the underlying type. So if every X is a Y, and every Y is a Z, and a procedure takes Var<Y> parameter then you can’t consistently pass either a Var<X> or a Var<Z> to the procedure. Also standard variable semantics are unsuitable for the modern world where concurrency is exploited at all scales. It seems that we need multiple Var-like types with different concurrency guarantees.
Getting back to the problem. First we need to understand a couple of things.
Representing values at run time
How many bits do you need to represent the number 3 in a computer? If you didn't get 0 then try this one. How many bits does it take to represent a number that might be 17 or 18? Now it is more obvious that the answer is 1 bit: 0 for 17 and 1 for 18 (or vice versa). Of course it might result in a shorter and/or faster program if the number is represented by 17 for 17 and 18 for 18, but that might not be the case.Maybe you think that this only applies when the values are known at compile time. But JIT compilers are becoming the norm, so that distinction is disappearing. In an Algol 68 style language where every identifier stands for a constant, it may not be necessary to actually materialize the value at run time at all. Indeed that is the norm for Var values, since they are normally just a fixed offset from the frame pointer, and machines typically support that conveniently in the hardware.
Assembly Language had it right
Most of my early programming was in various assembly languages. Assembly language is just a convenience veneer on the machines underlying instruction set. In assembler identifiers are created in two ways:- A define statement gives an identifier a fixed meaning as a bit string.
- A label statement gives an identifier a fixed meaning as a memory address of some code or of some reserved memory.
This was right. The first languages (Fortran, Algol) used identifiers for changing values. Algol 68 tried to get back on track, but slightly got it wrong. After that it was downhill all the way in the mainstream. On the side we had functional programming, but that doesn’t solve the problem of handling Var types correctly, it just tries to eliminate them.
The right answer
Putting it together we see that we can implement a normal updateable array in the natural way as a Vect<Var<X>>. It can normally be a sequence of consecutive Var<X> boxes. The compiler can remember this and doesn’t need to materialize the addresses of the Var<X> boxes. We still want to write:- Vect<Var<Int>> vvi = loc<Vect<Var<Int>>>(3) := (1,2,3);
But what happens when we want to pass a Vect<Var<X>> as a parameter to a procedure? Mostly we want to send that as a start memory address and a length, and perhaps a stride. But we don’t want to abandon the option to send a fully general list of Var<X>, i.e. of pointers to Xs in memory. Both these representations are valid and don’t change the semantics of Vect<Var<X>>.
We need to embrace this. Each type can have multiple representations defined in terms of other more low level types. At the bottom things have to be defined in terms of the capabilities of the raw machine, or some abstract machine. So for a given procedure there are a finite number of implementations covering the possible input representations, and indeed the possible output representations. There is no reason for this to get out of control in the era of JIT compilation. It is hard to believe that duplicated implementations of procedures can work out worse than the technique commonly used for traits/interfaces of passing a pointer to the object and a pointer to a list of implemented methods.
Well anyway it will be interesting to investigate. My concept of a nice programming language seems within reach for the first time. The name will be COPL, for Closure Oriented Programming Language.