
Writing about C++, Programming, FOST.3™, Mahlee™, the web, Thailand and anything else that catches my attention—with some photos thrown in
This release contains mostly a lot of work on the HTTP client (user agent) and the HTTP servers. For the Mac we now also support 32/64 bit fat binaries, and the iOS (iPhone/iPad etc.) support is much better.
If you want to get started the best place to look is the fost-hello example project.
| Linux & Mac |
|---|
svn co http://svn.felspar.com/public/fost-hello/tags/4.10.06.39877 fost-hello cd fost-hello Boost/build hello/compile dist/bin/hello-world-d On the Mac you will need to set DYLD_LIBRARY_PATH before running hello-world-d export DYLD_LIBRARY_PATH=dist/lib dist/bin/hello-world-d |
| Windows |
svn co http://svn.felspar.com/public/fost-hello/tags/4.10.06.39877 fost-hello cd fost-hello Boost\build hello\compile dist\bin\hello-world-gd |
The next release is due out on September 21st.
Everything is available through our Subversion repository. Below are the locations for the tagged releases for Fost 4.10.03.39008 components.
This is really just a dump of what I've been learning about what's been going over here in Thailand. There are long term themes (going back to the elections that first brought Thaksin in and even to long before that) and short term themes (the current crack down and breaking up of the red protests in central Bangkok and the resulting chaos).
As always with Thailand there are wheels inside wheels here.
The simple way of looking at this is that the red shirts are protesting to get Thaksin back into power after he was ousted in the coup in 2006. The red shirts are largely rural poor who say that they've had their lives improved immeasurably under Thaksin and want him back.
The yellow shirts on the other hand point to Thaksin's corruption, censorship and obvious use of foreign policy to further his own business ends.
The exact point scoring between the two sides quickly descends into madness and eventually trivia. Of course nobody really knows what either side wants to say as every thing is censored and the only people who get to talk to anyone are the army through their media assets.
Behind that is the current government which came in “democratically” after the party that won the election was banned by the courts (it's illegal to comment on that decision so I won't). This government is supposedly supported by the army who have really been calling the shots since the coup (actually, all the time except for maybe under Thaksin).
Now, the reds are not army supporters (and that's from even before the army started shooting at them over the last few days) — or at least, they're not so in the same was as the yellows — so who controls the government in September is critical. This is because that the current army head (and some would say the actual power in Thailand) retires then and the government gets to choose who is next. Clearly the yellows would like one of their people in there. Notice Abhisit (the Prime Minister) offered elections in November — enough time for the new head of army to get his feet properly under the desk before the reds win the next election.
Behind this of course is a fight for the succession, but Thai laws certainly don't allow discussion about any of that.
Some bonus points:
There is so much more, but I don't really have the patience right now to try to go through it all.
Everything's a mad house here in Thailand.
The reds are now without leaders so are out of control, which goes really well with the army who was already out of control — expect a sharp increase in deaths on both sides. It looks like the army has been killing even more today, and it looks like the reds are now also killing. They have set fire to many buildings.
The government has at least been busy doing important things: Facebook has been banned and un-banned in the last hour. Twitter has been banned, unbanned then promptly broke (fail whale).
Oh yeah, there's a curfew on as well and there's very little moving out on the streets even out where we are. In central Bangkok “not even the roaches are crossing the streets”, but buildings are burning
On the plus side we're safe well outside the area. We have one refugee from central Bangkok staying with us, but everybody we know is safe and well.
Will wait to see what tomorrow brings…
Square roots are fairly slow to calculate (well, compared to other things our computers can do anyway). Here is an even slower way of doing it.
Say we want to find the square root of some number r, for example, let's take 13.
This is a kind of binary search to find the required value.
'''Write the smallest possible program that implements this algorithm''
We think this is the best and most stable release of the new Fost 4 libraries so far. There are a huge number of changes since the last release. So many in fact that it highlights a major problem with the way that we put together release notes, and with the next release we'll be using ChangeLog entries to make it easier to see what is in each
As well as restructuring the file layouts to make the projects easier to use we've also stared to add in some experimental support for iPhone and will soon be looking at Android support (through the use of the NDK).
If you want to get started the best place to look is the fost-hello example project.
| Linux & Mac |
|---|
svn co http://svn.felspar.com/public/fost-hello/tags/4.10.03.39008 fost-hello cd fost-hello Boost/build hello/compile dist/bin/hello-world-d On the Mac you will need to set DYLD_LIBRARY_PATH before running hello-world-d export DYLD_LIBRARY_PATH=dist/lib dist/bin/hello-world-d |
| Windows |
svn co http://svn.felspar.com/public/fost-hello/tags/4.10.03.39008 fost-hello cd fost-hello Boost\build hello\compile dist\bin\hello-world-gd |
The next release is due out on June 21st.
The file layouts for all of the projects has been changed to move the project code into a lower level folder. This makes room for dependant projects to be part of the same check out via Subversion's svn:externals support.
This means that a project with pretty much everything that is needed to build it can be done by simply checking it out.
fost-aws has been split off from fost-internet. The should make it easier for people who don't care about Amazon Web Services support to use the libraries.
The MFC build options for Windows have been improved. Build variants are now used which means on Windows as well as debug and release variants debug-mfc and release-mfc variants are supported. The build targets still have the same names as the non-MFC versions so they should not be mixed. The fost-windows project examples can only be built using MFC builds.
We've also added in better support for the free Express compilers from Microsoft. Everything should work properly with Microsoft Express 2008 compiler.
On the Mac we have improved all sorts of things. We now have new testing procedures which means that we're much happier with the Mac support that in any previous release. Mac stability is probably slightly better now than even Windows.
Everything is available through our Subversion repository. Below are the locations for the tagged releases for Fost 4.10.03.39008 components.