Wikileaks Strong Voices Joining supporting Free Speech…

Finally seems that the worlds politicians are changing a bit and learning to live with Wikileaks:

Russia has suggested that Julian Assange should be awarded the Nobel peace prize, in an unexpected show of support from Moscow for the jailed WikiLeaks founder.”In The Guardian

Brazilian President Luiz Inacio Lula da Silva defended Julian Assange, founder of the WikiLeaks.org website that published more than 250,000 of U.S. diplomatic cables sent to or from embassies around the world.Lula, a former union leader, said Assange did less harm than the classified documents’ authors, and offered his “solidarity” with the jailed Australian national.In Bloomberg

I imagine we wont see CIA Land Sweden in this list anytime soon…

The Best Python Performance. When Speed matters…

Python is slow. There I’ve said it… I love Python but sometimes I hate it because of it’s speed. In this cases usually I code in C. But sometimes I’d just love call gcc on a python script like:

$ gcc -O3 somethingInPython.py

and get a powerful fast code…

here’s a list of things I’m considering to improve the speed of my python scripts:

  • Write better code Lot’s of times it’s just a matter of correct algorithms and correct data structures…
  • psyco It’s an old (3yrs, PyPy is the successor and is faster), JIT (just in time compiler) with lot’s of memory overhead, but reliable and very easy to add to your project. Two lines with: import psyco psyco.full() can do wonders to your codes’ speed. I like it  because it’s easy to install and run (I Like simple things).
  • unladen-swallow This is a faster implementation of Python. The project is google sponsored and a branch of CPython. Thanks to Jorge Tavares to point me to this one in twitter.
  • PyPy “Rumors have it that the secret goal of PyPy is being faster-than-C which is nonsense, isn’t it?”
  • Pyrex This is a language that allows  you want to bring C data types to Python.
  • Cython Based on Pyrex, it’s a language to write C extensions to get the most out of your Python Programs…
  • Shed Skin Want C++ instead of C? Shed Skin allows you to compile Python Code (a restricted strong typed subset) to C++
  • Learn Haskell or Erlang This is just a provocation has I’m currently enamored with Haskell (still learning, still learning) and maybe will try to look at Erlang for its concurrent capabilities (I teach Concurrent Programming after all). In Haskell, compiled code is fast, not as fast as C, but fast enough to beat many languages. The functional language just turns your head inside out with some constructions but in the end I do like it a lot. And it’s useful.

If I’m forgetting something please add it to the comments. I’ll update this with new comments as I’m finding new stuff and I’ll come back to this when I’ve opted for one solution. I’m still in the shopping phase now.

Portugal is Soccer and nothing else

If you take a look at the graph of Google Trends for a search on the word “Portugal” you’ll see that there are peaks every couple of years.

Portugal in Google Trends

Portugal in Google Trends

The peaks just pop in the middle of the year… what is this all about? Well Obviously it is the Soccer championships that Portugal participates in. Euro 2004, World Cup 2006, Euro 2008 and World Cup 2010 in South Africa. (more…)

Laptopistan – Sunday morning quick read

Reading the NYT (It’s recurrent read here, NYT and the Guardian) I’ve came across a news about Laptopistan, the land of laptops, where people go to work and where the coffee shop if mainly filled with macintoshes. The read is nice and if your some of a computer geek you’ll read it, probably wanting for an expresso.

Wikileaks down

What we are now seeing in terms of political pressure from the USA on everyone that has commercial relations to Wikileaks is totally unacceptable and is a proof that America is engaging in practices that “the land of freedom” once accused the Soviet Union of doing. Not being able to handle the leaks with character, leaks that are important only because of the way American diplomacy is flawed, and resorting to bullying is going to harm the united states in the long run more than the leaks themselves. Democracy is like a mirror. Once broken, even if you glue all pieces back together, the image it shows back isn’t correct anymore.

This rant is based on the takedowns of Amazon and EveryDNS of the hosting and DNS of wikileaks. Seizing domains by the USA, be it because of torrents as they did the other day, or because they don’t like wikileaks as it now happened, is immoral and is in fact saying that America doesn’t believe in democracy and freedom of speech anymore. Silencing your enemies by force and not by reason is the best way to be known in history as a dictatorship or as a blimp of annoyance. There are men that were born to do great things in their time. America is full of those that at these time just want to pass by life without great achievements.

[Wikileaks can still be reached at wikileaks.ch]

[ update: wikileaks.ch is down… but you can try:

http://wikileaks.de http://wikileaks.fi http://wikileaks.nl

or the ips http://213.251.145.96/ http://46.59.1.2/

]