Thursday, September 30, 2004

nacht

Saturday, September 11, 2004

Lisp in Games

It's not a secret that Naughty Dog uses Lisp to write its games like Jak & Dexter, and you can even look at the Lisp code that was used in Abuse (it is in the data files archive).

But it is more of a secret that at least two other games owned/distributed/whatever use Lisp for their AI. Age of Empires: Age of Kings uses as suspiciously Lisep-like syntax for their AI-scripts. report from the 2002 Game Developer’s Conference Question #6 near the end: &ldquoLISP is more a favorite of academics and rarely used by game developers, though the AI in Halo makes heavy use of LISP scripts.”. And to cheat in “A Bug's Life” you can edit "lisp\options.lsp".

This is a badly written text, basically it's just some links, I found on the usenet, surrounded by a few words

debugging lisp

The Conditions System of Common Lisp is something I have not grokked yet. I had a look at some examples and tutorials, but they usually involved too much information and code, more than I thought is neccessary for “simple” things. Sometimes in OpenMCL, when an error occurs it gives you the chance to assign/change a value or define a function and continue. But the debuggers in SBCL and CMUCL never offered such restarts. Because I knew OpenMCL can do it, and that capability ist often praised in Common Lisp, I thought it is “simple”. But the Condition System tutorials were always complex, using CLOS, creating new classes with :keywords and such, not just one, two functions/macros to remember and if one needs more one checks the manual.

So I was very happy when I found Joel R. Holvecks Usenet Post Re: Debugging Lisp code (stupid newbie question). He explains exactly what I want, getting an error, fix it, and restart from a frame rather than using one of the default restarts (abort). No CLOS, just a macro and a special operator, RESTART-CASE and UNWIND-PROTECT.

Wednesday, August 25, 2004

In one day

I rarely read a book in one day, but “Surely You're Joking, Mr. Feynman” was so good that I did. So I think it is highly recommendable, it's fun to read, the scientific parts are very lightweight and you get a bit of a insight into Mr. Feynmans life.

Tuesday, August 24, 2004

Great things to come ... *puff*

Sometimes when I read a paper or a book/paper about a great scientist, or simply some cool (mostly CS) stuff, I want to go out and develop the next great thing, write an application which puts some of the ideas, I just read about, in use. I am inspired by those texts, I want to do something, but nothing ever came from it, nothing. I hope someday something great will come from this, or I do something great, remember what I have read, how it inspired me, and think “ well it took some time, but at least something did come of it”

Probably it is not working out because you need to try and fail beforehand, build one to scratch it. Or in other words: It won't come from nothing, there is some work to be done upfront!

On a sidenote: There is one thing, nothing important, mostly of use for myself, i believe using emacs improved my typing. Maybe it's because it got in the way with I usually handle the keyboard. Previously I used key like END or PAGE UP, but with emacs I am using more different keychors.

If somebody reads this blog, it would be nice if you left a comment.

Reading

Reading, UK

Some days I am thinking I am not reading enough and should get out and shop for some english book. On other days I am thinking I should organise myself better and not read so much at the same time. I am really reading a lot, but not what I used to read. I have read some of Nick Hornbys books and liked them, I read Glue and Porno by Irvine Welsh, but I have read the last book of that kind over a year ago. Coincing with my LISP obsession I started reading more “scientific” books/papers. At the moment I am reading

  • “Can Programming Be Liberated from the von Neumann Style?”, John Backus - Paper
  • “Connection Machine Lisp: Fine-Grained Parallel Symbolic Processing”, Guy L. Steele Jr., W. Daniel Hills - Paper
  • “Surely You're Joking, Mr. Feynman“, Richard P. Feynman - Book
  • “Metamagicum”, Douglas R. Hofstadter - Book (German)

And there are more books & papers in the queue. But I read a lot onscreen aswell, news, blogs, etc. I consider it quite a lot and fear I might loose track somewhere and not grok a paper, loosing time to reread it, if I do it at all.

A another problem is that those books collide with the “required” reading for university, scripts and such.

unexpected call

One of my aunts found me in ICQ today, which is totally unexpected as most of my relatives do not use their computers for anything but work.

Keyboards

My first obession with keyboards was when I bought two german IBM Model M keyboards. Before Model M, I used the cheapest Cherry keyboard available, and before the Cherry I used and AT/XT keyboard which had a switch at the back to toggle between AT and XT PCs. The XT/AT keyboard is a monster in size, but it was my second keyboard and it has *click*, a quality which is missing from modern keyboards.

The keyboard I would like to have does not exist, nor would it be supported by current software. It would be like the old keyboards at university (eg. Stanford, MIT) computers. Those keyboards had an extended character set, eg. they supported entering λ, ∧ and ∨ directly, not latex style \lambda \wedge, \vee

Such a keyboard would probably look like the Knight keyboard or the Space Cadet keyboard. Though it might produce cokebottles and one may need quadruple bucky to enter some characters. Mr. Crunchly might complain.

Using Emacs you will inevitably stumble upon the Meta Key Problem, most keyboards do not have a meta key, (i think SUN keyboards have one, but it is not labelled as such). So the Alt key is used instead. However Meta is just one out of three, due to MIT & Lisp Machine heritage Emacs can also handle Super and Hyper, but unless you have a very very exotic keyboard you won't have them. If you have a keyboard with windows keys you could make more use of them than most users do, not mimick windows behavior but use them as Meta, Super and Hyper instead (which still gives you the option to use them as “windows” keys). If you do not have these extra keys, you are bound to rebind other keys. So, do you really use CapsLock? Do you need two Alt/Ctrl keys?

Supposing the answer is no to both questions, you can fiddle around with xmodmap & xkeycaps. The most common thing seems to be swapping Ctrl and CapsLock, so that Ctrl is next to “a”.
If you use an non-american keyboard there is even more you can do to ease programming, like making parens and other often used brackets more accessible.

The other reason why I'm writing this is to point to John McCarthys paper EFFECTIVE INTERACTIVE USE OF LARGE CHARACTER SETS

Sunday, August 15, 2004

Nachwehen

Gestern: Welt Astra Tag mit entsprechend viel Astra. Heute: Kopfschmerzen, Übelkeit, ..., der Tag ist im Eimer. Wahr wohl doch zuviel, aber schön ein paar alte Schulfreunde wiedergetroffen zu haben.

Thursday, August 05, 2004

How many hours does it take to go to Japan by car?

Fool's World Map

This is a project visualizing the world map which many fools in the world imagine. If you can see this map comfortably, you are definitely a fool.

ZEN-STYLE | Fool's World Map

Saturday, July 31, 2004

Gödel, Escher, Bach or Metamagical Themas

Gödel, Escher, Bach (GEB) is what I wanted to read, Metamagical Themas (MT) is what I'm reading. The problem is I just found this out after having read half of MT, I was already wondering where Mr. Tortoise was. I just hope GEB is doesn't have as many pages as MT and is easier to read and not less interesting after having read MT.

Firefox nuisances

Firefox can be a nice browser, but there are two things that annoy me. It seems like it can't handle many images, bigger than 500kb, at once. As today my system was unusable because it kept swapping like wild and so that at some point the kernel (or whatever manages memory eaters) decided to kill it.
The other thing is the download window, which was fine before 0.9, but now it is like a annoying popup window. Every time a downloaded it pops into the foreground, which is especially annoying when I start several downloads. Previously it just opened when it was not there yet, but stayed in the background afterwards. I “fixed” this problem by deactivating “Show Download Manager window when a download begins” under “Preferences” -> “Downloads”

There is however once feature they did improve, the DOM Inspector. I usually use it to prepare websites for printing, that is I start up the DOM Inspector by Control-Shift-i, and delete everything I don't want. It is very handy to get rid of ads, format tables to use the whole page and thus waste less paper. And if you can't find something in the tree, you can use its finde node feature which is just point and click. Quite neat.

Wednesday, July 28, 2004

Smalltalk aka forgotten language

Somehow this article: “Forgotten language enables nonstop gadgets”, reminds me of Master of Orion, especially the news story when you find ancient yet superior technology.

Saturday, July 17, 2004

spam

Silence is argument carried out by other means. - Ernesto Che Guevara (1928-1967) Show me a sane man and I will cure him for you. - Carl Gustav Jung (1875-1961) Be nice to people on your way up because you meet them on your way down. - Jimmy Durante

at least it's more interesting than obfuscating word, and writing useless crap.

Sunday, July 11, 2004

Uni Ärger

Ich studiere Informatik an der Universität Hamburg und weil man Informatik nicht um der Informatik willen studieren kann, sondern immer ein „Anwendungsgebiet“ braucht, muß man sich eine Ergänzungsfach (!= Nebenfach) aussuchen. Bei der Wahl des Nebenfachs sind einem eigentlich keine Grenzen gesetzt, man kann alles wählen was es so an den Hamburger Hochschulen angeboten wird. Für einige Fächer gibt es sogenannte „Ergänzungsfach-Rahmenpläne“, die machen das beantragen des Ergänzungsfaches ziemlich einfach, ein formloses Schreiben ala „Ich möchte X gemäß Rahmenstudienplan studieren“ genügt.

Für alle anderen Fächer ohne Rahmenstudienplan muß man sich selbst einen Plan zusammenstellen, d.h. Vorlesungen/Seminar/Praktika mit mindestens 12 Semesterwochenstunden (SWS) zusammensuchen, überlegen wo man einen Leistungsnachweis erbringen will/kann. Sich mit den Dozenten absprechen wegen der Vordiplomsprüfung. Dann bringt man das ganze auf ein Papier, besorgt sich eine Unterschrift & Siegel von seinem Prüfer, und gibt den Antrag im Prüfungsamt ab. Bis vor kurzem gab es noch keinen Vordruck für den Antrag und auch sonst recht wenig Informationen was man denn so beachten muß, ein eigener Ergänzungsfachplan ist wohl nicht so beliebt, die meisten studieren eh Experimentalphysik oder Psychologie.

Da mir die Fächer für die es einen Rahmenstudienplan gibt nicht wirklich gefallen und ich lieber etwas in Richtung Sprachen machen wollte, habe ich mir Finnougristik, bzw. Finnisch ausgesucht, entsprechend Kurse belegt und, recht spät, einen 1. Antrag gestellt. 8 SWS mit Prüfung „Finnisch I + II“, 2 SWS „Einführung in das Studium der Finnougristik/Uralistik“, 2 SWS mit Leistungsnachweis „Einführung in die Linguistik für Studierende der Finnougristik I“. Nach einiger Zeit kam dann eine Antwort: Eine Kopie des Antrags mit einer Bemerkung am Rand:

Sprachkurse können nicht anerkannt werden, da Sprachkenntnisse die Vorraussetzung für eine Studium (hier der Finnougristik) sind. Antrag abgelehnt.
<Unterschrift, Datum, Stempel >

Ja so einfach kann man meinen Antrag aber nicht ablehnen, jedenfalls nicht mit der Begründung, schließlich kann man Finnisch nicht in der Schule lernen, weshalb ich mir kaum vorstellen kann das es wirklich Vorraussetzung für das Studium ist. Wie dem auch sei, im „Studienplan für das Fach Finnougrstik/Uralistik“ steht es auch so ähnlich drin:

I. Allgemeine Bestimmungen
...
4. Sprachanforderungen
4.1 Die Sprachen, die den Gegenstand des Faches „Finnougrstik/Uralistik“ bilden, sind in der Regel keine Schulsprachen. Deshalb werden für die finnisch-ugrischen (uralischen) Sprachen keine Sprachanforderungen bei Beginn des Studiums gestellt. ...

Nach einem Gespräch mit der Studienberatung, habe ich dann einen schönen Schrieb bekommen und diesen mit einem neuen, inhaltlich gleichen, Antrag bei dem Prüfungsamt abgegeben. Die Sachbearbeiterin die den Antrag entgegengenommen hat, hatte auch Verständnis für meine Situation, naja und so hatte ich gehofft das Thema würde sich bald erledigen und erst wieder im Hauptstudium auftauchen.

Leider ist dem nicht so und das ist auch der Grund warum ich diesen Text schreibe. Der 2. Antrag wurde auch abgelehnt, auch wieder nur auf als Bemerkung, diesmal auf dem Schreiben von der Studienberatung:

Grundsätzlich können Sprachkurse nicht anerkannt werden als Prüfungsleistungen
<Unterschrift, Datum, Stempel >

Da fühle mich doch veräppelt, konnte man das nicht schon auf die erste Ablehnung schreiben? Jetzt ist das Semester fast zuende und ich habe immernoch kein Ergänzungsfach.

Ich weiß ja nicht warum Sprachkurse nicht als Prüfungsleistung anerkannt werden, aber so sind alle Fächer die sich mit ausländischen Sprachen, die man nicht schon vor dem Studium erlernen konnte, beschäftigen anscheinend nur mit großem Mehraufwand zu studieren. Denn die Finnisch Sprachkurse brauchen allein 16 SWS, davon kann man (hoffentlich) 12 SWS in den Plan einbringen (6 SWS Grund- + 6 SWS Hauptstudium). Da man die Kurse aber nicht aufteilen kann sind es 8 SWS je Plan, und man muß noch 6 SWS einbringen über die man geprüft werden kann, macht also 14 SWS. Normal sind 12 SWS, es gibt nur einen Rahmenstudienplan der auch 14 SWS hat: Theoretische Physik, und da wird auch extra auf den erhöhten Aufwand hingewiesen. Um die Sprachkurse werde und will ich wohl kaum herumkommen, schließlich erscheint es mir seltsam sich mit einer Sprache & Kultur auseinanderzusetzen, wenn man die Sprache nicht beherrscht.

Letztendlich hoffe ich mehr SWS machen zu können, denn ich will schon etwas tiefer in die Finnougristik eintauchen, schließlich bin ich zum Studieren an der Uni, nicht nur um einen Hochschulabschluß zu machen.

Saturday, July 10, 2004

Public Transport

I added myself to the Hamburg Blogplan. Blogplan lists the blogs by public transport station they are closest to, in my case it is Holstenstraße. Of all the blogs listed, I only know Satta.Name

Building 20

MITs Building 20

City of Sound has a nice article about Building 20 and the new Stata building which replaced it. There is also an older article about Building 20, with some nice quotes.

Reading both articles, I am reminded of lisp. (Which is also the way i found them, searching on daypop for lisp.) You could extend it in any way you like, as you weren't restricted by the initial placement of the floor/walls. And it spurred creativity. Which leads me to think that to be creative, don't adapt to the enviroment, but adapt the enviroment to your needs. Do what you want to do. Try to explore the space around you. I know that thinking out of the box is hard, and i do not know how you can get out of the box. But once done, it is absolutely thrilling for me.

You can program the way you always did, and think Eclipse is the way to go. Or take a look at Lisp Machines (unlikely) or Squeak, and notice that you can not only write programs with a language but also modify the system in which the programs “live”. That is a powerful concept which almost no language has.

These systems empower the user, he can change the enviroment and tailor it to his needs. This should result in a productivity boost, because the system can be changed in such a way that it assists you, not the user in general. It can also result in a deeper understand of the system, because the code is at your fingertips. If there is something which doesn't work as expected, or you don't understand it, you can look at the source code and, if necessary, change it. The language specification/documentation isn't a impenetrable barrier. There is no second-guessing, because you can look under the hood and see how it is acutally implemented.

Returning to Building 20, in my opinion one important propery of it was its uglyness. If you changed something, you did not ruin its visual asthetics. I wonder how that part design affects the use of the new buildings.

I *am* the blogosphere

I know it is old, but apparently I am the blogosphere.

what kind of social software are you?

Thursday, July 08, 2004

Java, not the next level

S-Bahn Haltestelle Hasselbrook

Maybe one of the reasons why I don't like it, is that in 2000 in school I was thinking OOP is the thing. I didn't know any better, I thought C and C++ were the languages, and anything else was irrelevant. Java is newer but overhyped, and, that's of course very important for someone who had never even written a single C program, slow. But Java didn't challenge, it didn't show me other ways to think about programming, structuring. OO did that, but I didn't get to know OO via Java. And as Java didn't change much, it still doesn't.

But at university I am forced to learn it, I'm forced to do something dull. I am more than a Java programmer, Java isn't and will never be the next level for me.

If you want to listen to something interesting, watch Croquet: A Collaboration Architecture, a presentation given by Alan Kay. He starts off with Croquet, which imho doesn't seem to be that innovative. The Q&A session afterwards is the real gem. To quote Dave Roberts:

Okay, but after that, Kay starts to take questions at the lecture. This was the best part, in my opinion. The questions are very interesting, as are Kay's responses. Simply, Kay has some pretty harsh criticism of computer science education these days. He says that nobody is doing computer science anymore and basically equates today's computer science curriculum with vocational work, simply training legions of Java programmers and not studying any hard problems or advancing the state of the art. He says that he actually looked at writing Croquet in Java originally, but found it sadly lacking on a number of fronts and so they went back to Smalltalk (Squeak). He has high praise for Lisp and McCarthy, saying that it was one of the most impactful ideas ever in computer science. At one point, he blasts Stanford's Bill Gates-funded computer science building, saying it's an oxymoron.

Wednesday, July 07, 2004

defmacro insert-pair

Would a function with a optional parameter be better?

(defmacro insert-pair (name char1 char2)
  "Creates function name which is Like insert-parenthesis, but inserts char char2
   instead of parenthesis "
  `(defun ,name (arg)
     (interactive "P")
     (if arg (setq arg (prefix-numeric-value arg))
       (setq arg 0))
     (cond ((> arg 0) (skip-chars-forward " \t"))
           ((< arg 0) (forward-sexp arg) (setq arg (- arg))))
     (insert ,char1)
     (save-excursion
       (or (eq arg 0) (forward-word arg))
       (insert ,char2))))

(insert-pair insert-brackets "[" "]")
(global-set-key "\M-[" 'insert-brackets)