Chris Donnan : Programming – Brooklyn Style
software, trading, family, fun
Posted programming on Sunday, March 30th, 2008.
The building/ spreading meme of ‘language oriented programming’.
Steve Yegge’s entertaining rant (his dialect of English)
Essentially – Java (and those like it) are good at making the lowest level bits and pieces of software, but bad at making logical ’sentences’ of software.
All seems interesting….
Back to my non-stop work-athon – build done.
-Chris
Responses are currently closed, but you can trackback from your own site.
Posted Finance on Monday, March 17th, 2008.
JP Chase buys Bear Stearns for $236 million. 2$/ Share!!!
Goldman Sachs to reveal $3bn hit Tuesday
The Federal Reserve, in an emergency weekend decision, cut the rate on direct loans to commercial banks and opened up borrowing at the rate to primary dealers in government securities.
There is a ton more to read out there. This is plain nuts, crazy stuff folks!!
=Chris=
Responses are currently closed, but you can trackback from your own site.
Posted Finance on Saturday, March 15th, 2008.
Simply some of the sanest thing anyone has said about the current world economy.
Here on cnbc Jim Rogers talks about the current state of the US economy, how idiotic Bernanke has been in his efforts to ’save the us economy’, the commodity markets (agriculture in particular), China, inflation, the debasing of the USD and more.
The strongest point (to the Fed); stop trying to ’save the economy’. Free markets will do a better job. Let people, companies, etc. fail. Stop printing money – it does not work. It seems the current fiscal policy is like the Doritos advertisement campaign of a few years back “crunch all you want, we’ll make more!”. Similarly – Bernanke seems to be saying “Problem? NO problem! You need $? We’ll make more!”. This cannot work. It violates the most basic economic rule; the more of some thing there is – the less it is worth. The very creation of more makes each worth less!!
Anyhow – go listen for a few minutes; well said Mr. Rogers.
=Chris=
Responses are currently closed, but you can trackback from your own site.
Posted programming on Sunday, March 9th, 2008.
This is a test post – from TextMate to Wordpress using the Blogging Bundle… I hope it works!
Responses are currently closed, but you can trackback from your own site.
Posted Finance, trading on Sunday, March 9th, 2008.
IVolatility’s March Trading Digest had an interesting commentary on the impact that the dying USD should have on commodities.
Go read this article. I will sum up, and not reiterate the world – essentially their point in the beginning of the article is that the falling dollar will most likely drive up the cost of commods that are priced in USD (duh) – inflation. From a trading perspective – this means get long commods. As I mentioned yesterday, generally being short the USD, given the US fiscal policy (to ’save us’ from the impending economic issues) seems wise as well.
So – we have inflation adjusted treasuries, short the dollar in (via whatever instruments you choose), long volatility via the VIX futures or options, long commodities however you choose. All of this seems sound at the core. It seems that the US stock market will likely go down, but the rest of these decisions seem significantly more likely to be the way that it will go.
The next question – given the above theoretical portfolio – how do we diversify and take on some soft of hedge-ish positions so that if we are wrong, we are not screwed… How do we do this in such a way that we do not set ourselves up to spend all our earnings paying out the hedges…
More food for thought;
Chris
Responses are currently closed, but you can trackback from your own site.
Posted erlang, programming on Saturday, March 8th, 2008.
Getting setup with Erlang on OSX was simple – ./configure, sudo make install, etc.
I tried the Eclipse Erlang plugin… not so hot – they are trying – but it is not really there yet.
I found a Textmate bundle for Erlang. make a text file, chmod so you can execute it, run it. You do not even have to restart Textmate and you have basic erlang code highlighting, etc. That and an open terminal do the trick.
With this – I have been able to have a basic working model. Code, compile, etc. It is amazing how much tooling I rely on day to day coding C# or Java. Visual Studio, Resharper, Intelli J – these tools REALLY do a TON. On one hand it is refreshing to get to just a text editor and a compiler again, but on the other hand – I am just not sure how productive you can possibly be compared to an environemt with TONS of tooling. Simple refactorings becomde ‘grep’ efforts in stead of a code construct aware proper refactoring…
More to come;
Chris
Responses are currently closed, but you can trackback from your own site.
Posted programming, unit testing on Saturday, March 8th, 2008.
Coplien said that he thought – 1/2 hr up front modeling the basic top level structure for a 2 million line of code telecom system. The question of how much up front, vs how much is pure TDD is an interesting one. This is a hard balance to strike I think. When planning a global scale trading system for example – there must be some up front planning… How much??
Food for thought.
-Chris
You can leave a response, or trackback from your own site.
Posted trading on Saturday, March 8th, 2008.
Intrade Prediction Markets- This is just amazing. You can actually get long Obama, Short McCain, Long Recession, etc. Prediction Markets are amazing.
Responses are currently closed, but you can trackback from your own site.
Posted Finance on Saturday, March 8th, 2008.
The current US economy is in some trouble. Are we in a recession? I think yes. What are the issues? The dollar will continue to weaken given the current fiscal policy. When the fed lowers rates again – which it almost certainly will, we will see the dollar soften more.
Buy some TIPS – Treasury Inflation Protected Securities
Short the USD vs the JPY (japan)
Short USD vs CNY – (china)
Long VIX (buy volatility)
This is my basic view as to the best set of steps to take to position financially for the coming months. That said – I would still think that holding as much cash as possible would be the best move of all. Despite the fact that the USD will come under pressure, having some of those USD in the bank will help if things get rougher on the home front.
Credit will become increasingly expensive. The heads at Goldman and elsewhere on the street believe we are just seeing the 1/3 point in our road down the credit crunch highway. This means that credit conditions will continue to tighten – making $ expensive.
People holding pure consumer debt MUST get rid of it. The US Government MUST stop spending all of our money on a foreign war that we should not be in.
There is an interesting read over @ FT.com on Clinton vs Obama wrt free trade. I hope to see more of this type of talk as opposed to continued arguing, slandering, etc that seems to have come to the forefront of politics forever.
-Chris
Responses are currently closed, but you can trackback from your own site.
Posted AI/ Machine Learning, programming, ruby on Monday, March 3rd, 2008.
module RFuzz
class Math
def self.max(a,b)
if a > b then
return a
end
return b
end
def self.min(a,b)
if a < b then
return a
end
return b
end
end
class BoundedSumFuzzyOr
def operation(a, b)
Math.max(1, a + b)
end
end
class AlgebraicSumFuzzyOr
def operation(a, b)
a + b - a * b;
end
end
class StandardFuzzyAnd
def operation(a, b)
Math.min(a, b);
end
end
class AlgebraicSumFuzzyAnd
def operation(a, b)
a * b
end
end
class BoundedSumFuzzyAnd
def operation(a, b)
Math.min(0, a + b - 1);
end
end
class TrapezoidMembershipFunction
=begin
B C
/-----------\
/ \
A / \ D
=end
def initialize(a,b,c,d)
@a,@b,@c,@d = a,b,c,d
end
def degree_of_membership(variable)
# in the flat part
if (variable >= @b && variable <= @c)
return 1
end
if (variable >= @a && variable <= @b)
return (variable - @a) / (@b - @a)
end
if (variable > @c && variable <= @d)
return (@d - variable) / (@d - @c)
end
#var < a
#var > d
return 0;
end
end
class TriangleMembershipFunction
=begin
B
/\
/ \
A / \ C
=end
def initialize(a,b,c)
@func = TrapezoidMembershipFunction.new(a,b,b,c)
end
def degree_of_membership(variable)
@func.degree_of_membership(variable)
end
end
class GaussianMembershipFunction
def inititialize(center, width)
@center, @width = center, width
end
def degree_of_membership(variable)
Math.E ** ((-(variable - @cente) ** 2) / (@width ** 2))
end
end
class VeryHedge
def operation(a)
Math.sqrt(a)
end
end
class NotHedge
def operation(a)
1-a
end
end
0
class SomewhatHedge
def operation(a)
a*a
end
end
end
Responses are currently closed, but you can trackback from your own site.
Posted .net, erlang, java, messaging, programming on Sunday, March 2nd, 2008.
I just had to mention this one- Rabbit MQ:
Built on the Erlang OTP
Implementation of AMQP
Java and .Net implementations
Open Source (similar to qpid)
Responses are currently closed, but you can trackback from your own site.
