Neues in der Kategorie Windows

Use High-Level-Languages, Hercle!

| Keine Kommentare
Via The Old New Thing, I found this video about a "fault tolerant heap" in Windows 7. They analyzed a lot of program bugs, and found a relevant part of them being heap corruptions. As a temporary solution for the most common of these, they created a mode for running applications which uses techniques to prevent the most common of them.

On the one hand, this sounds like a very bad hack, which - from my purist point of view - should not be used at all. But on the other hand, it is a technical accomplishment. So, the criticism here does not go against the engineers from Microsoft. They probably have to face stupid programmers and stupid users every day, and just try to find ways of handling them more efficiently.

However, I consider this approach dangerous, in the sense that programmers may tend to just specify to "turn on the fault tolerant heap" (and let their setup do this) rather than programming cleanly. I can imagine this being a lot easier in many cases - and time is money. And then, in ten years, when a lot of new stupid "standard" software uses it, this will not be a feature anymore, but rather a necessity for the software to run.

I cannot really understand why this kind of bug is still an issue, anyway. There are good, fast and stable implementations of automatic memory managers out there, especially garbage collectors, which should be sufficient for most of the software (which is bloated anyway, so nobody will notice the difference). Even for macro assemblers like C++, if you want it desperately.

I mean, there are a lot of remaining bugs which cannot be prevented that way, but that kind of bug is a solved problem. And programmers can concentrate on other stuff, and will probably be more productive when not having to think about memory management.

Back to Smalltalk?

| Keine Kommentare
According to Gulli News, Windows 8 will not shut down completely, but keep a memory image which is then loaded to RAM, to improve the speed of the startup. This reminds me of a quote regarding Smalltalk:

I always show this, when asked by C/C++ programmers, as a typing in of "Hello, World!," preferably into an empty Transcript pane. And then I save the image. Loading the program subsequently brings up: "Hello, World!" Individuals will quibble over this relentlessly, saying, "It's not the same!" I can only agree that it's not the same, but that was my point about the languages and their environments in the first place.

Has a bit of Smalltalk's philosophy reached the practical world?

Windows has no possibility to access shared folders through a non-standard port, apparently. However, I have a backup disk which contains a LUKS-encrypted deduplicating ZFS. And the only possibility to access this seems to be a virtual machine. So I use VirtualBox.

The first thing I tried was the Microsoft Loopback Adapter to get a second local IP, but this is harder under Windows 7 than before as you need to know that you have to run a program named hdwwiz. The next problem was that I could not find the old network adapter settings from earlier Windows versions, which is now hidden in a sidebar. I gave an IP, I forwarded ports 137-139 and 445 from that virtual machine running Samba, and tried to access it.

This did not work, and as usual, Windows did not tell me why. I assumed that maybe the lookup went wrong, so I was looking for something like nmblookup, and found out about a command named nbstat. However, I could not manage to start it, probably because I am running a 64 bit Windows 7, and could not manage to run a 64 bit cmd.exe as well.

What a nice bunch of software. Apparently, it works with the "VirtualBox Host Only Adapter".

Vista

| Keine Kommentare

... after Linux.

LaTeX-Editors for Windows

| Keine Kommentare
Apparently there are two major IDEs for LaTeX which were recommended to use under Windows, TeXnicCenter and WinEdt. The complete Cygwin-Installation contains a Texlive-Distribution, but apparently, there is no simple way of using this installation with TeXnicCenter or WinEdt, so a separate MiKTeX is needed.

Well, my harddisk is large enough to waste a few GB for this, if it is worth it. But I did not really see, why. TeXnicCenter and WinEdt obviously have a lot of menu entries which make it simpler to learn LaTeX. But actually, I would like to have something that takes the really nasty work from me - taking care of the language, the encoding, the document header and the dependencies. For everything else both TeXnicCenter and WinEdt seem to be good editors, but I do not see any reason to get used to them.

I used the basic TeX-Mode of Emacs so far, and I will now probably use the same inside my Cygwin-Installation, well, except for a little script I wrote, since xdvi is not in Cygwin anymore, I wrote a script calling dvipdf and xpdf automatically:

#! /bin/bash

dvifile=${1%.dvi}.dvi
pdffile=${1%.dvi}.pdf

dvipdfm $dvifile

xpdf $pdffile


Update: xdvi is in /usr/X11R6/bin

It may not be great, but at least I got used to the key combinations, and it works.