Search Results: "Simon Richter"

20 September 2006

Simon Richter: Wacky ideas #5: per-package build-dependencies

Bootstrapping a compiler is a pretty difficult thing already, however it is close to impossible within the Debian system. The reason for this is that you need to hop back and forth between different source trees, while the Debian build system assumes that each package stands on its own. So in order to do a full bootstrap, you would build the build-essential packages by hand, then rebuild all of them as packages. Now I think it should be possible to have per-binary Build-Depends, so that when some of the binaries built by a certain source package can not be built yet, they can be set aside and retried later.

Simon Richter: Wacky ideas #3: encoding the ABI outside of the package name

Debian has had a big problem in the past when ABIs changed in incompatible ways. We would have to recompile all shared libraries after changing their package names, and then recompile the applications that used them, in the entire process always making sure that a compiler that generated code for the "new" ABI was installed on the autobuilders. Therefore, I'd like to suggest a new field, ABI: that would list the ABI versions a package was compiled against. The source package's control file would list those that the package was sensitive against, and dpkg-gencontrol would then, with the help of a few plug-ins, fill in the versions. In order to know for which dependencies matching ABI versions are important, we'd have to split the Depends field. On the archive side of things, when a new binary package is uploaded that is already present with a different ABI, the package would get renamed (by adding the differing ABI fields between version number and architecture name) in order to keep the archive cacheable.

Simon Richter: Wacky ideas #2: splitting Installed-Size by partition

On a lot of systems, the Debian installation is spread over a set of partitions. This makes it pretty difficult for a package manager to determine whether unpacking a package is possible at all, since assuming the worst case would mean that all partitions have to have Installed-Size kilobytes free. However, the set of "sane" partitioning schemes is pretty small, so I think packages could list the amount of space required on the root, usr, var partitions, respectively, and the package manager would just add the numbers up if it found that some of them are on the same partition.

Simon Richter: Wacky ideas, issue #1: template package stanzas in the source package control file

At present, we can use variable substitutions in the debian/control file in all fields but one: the package name. For a lot of packages, e.g. kernel modules, it would help a lot if it were possible to use a regular expression in the package name field, so it wouldn't be necessary to rewrite large parts of the control file when adapting a module package to a new kernel version. This, however would have the drawback of making it impossible to generate a list of binary packages built by a particular source package. An attempt of solving that issue would be to use a substitution regex that would turn a list of packages/architectures/... into a list of package names. Throw in regex Build-Dependencies, and the autobuilders could handle compiling all the modules for new kernel versions by themselves, without requiring attention from module package maintainers.

Simon Richter: Wacky ideas, issue #0

Over the next days, I'm going to talk about a few ideas I had. These are in different states of realisation, if you want to pick up one, just contact me.

Simon Richter: Community and consensus building

The fine folks over at Intellectual Icebergs have a piece on building communities, and on building consensus within communities. Especially the part about "building consensus" is pretty interesting as they identify a lot of the typical behaviour patterns in discussions, and what effect they have. So download the show and listen to it!

Simon Richter: Creativity, consumerism, what will come after the iPod and who will invent it

Since I installed democracyplayer, I must admit that my production/consumption ratio has slipped a bit. To rectify this, I've been thinking about creating a bit of content myself. On Slashdot, there has been a bit of discussion on beginner's programming languages, such as BASIC, and whether their absence from "modern" systems has pushed people (children/teenagers mostly) into pure consumer roles, as the learning curve with those languages that ship with the OS is far too steep, so they do never begin to program. So, my idea would be to create a bit of a programming tutorial that teaches people the first steps with a deliberately simple language (line based, interpreted, imperative) and realises (in several steps) a small project that leaves you at a place where you know the basics so you can tweak, and with hopefully enough incentive to do so. The goal is not only to teach the programming basics (there are probably people who can do this better than us), but to awake interest in understanding and modifying.

Simon Richter: Huh? Wal-Mart Germany still advertises?

I thought they were dead, finally.

Simon Richter: Wacky ideas #4: using symbol versioning information in dpkg-shlibdeps

This one has progressed a bit already, thanks to formorer, and IMHO it would be really cool to see it in etch. Currently, the shlibs file maps library name and soname version to a dependency specification that is added to shlibs:Depends. However, some libraries have more fine-grained version information than the one in the soname, in their symbol version table, which basically allows us to create less strict dependency relationships for versioned libraries. If a program only requires symbols versioned GLIBC_2_0, we know that the minimum required version is the one that has all of these symbols, which is probably some pre-sarge version. Incidentally, the libraries where a version bump in the shlibs file is most annoying, namely libc, libstdc++ and libdb, are already versioned, and no changes are required in the application packages, so there is an instant win here (and the main reason I want to see this in etch is that we can use it afterwards)

14 September 2006

Simon Richter: I decided that I need a fun project again

Even with extensive googl^Wweb searching, I could not find an answer to the question whether the programming sort found in recent Nokia phones (the six hexagonal pads under the battery) is in fact a JTAG port. Rumour has it that it is, but that you have to set a jumper to connect TRST through to the CPU, so the port is pretty useless if you do not know which jumper it is. Other people claim the port is an I2C connection directly routed to the flash chips (which I doubt, which would still make it interesting for hacking, but a lot less so since it doesn't give me a real communications channel. If you have information on how to connect a JTAG probe to a Nokia phone, please let me know.

Simon Richter: I decided that I need a fun project again

Even with extensive googl^Wweb searching, I could not find an answer to the question whether the programming sort found in recent Nokia phones (the six hexagonal pads under the battery) is in fact a JTAG port. Rumour has it that it is, but that you have to set a jumper to connect TRST through to the CPU, so the port is pretty useless if you do not know which jumper it is. Other people claim the port is an I2C connection directly routed to the flash chips (which I doubt, which would still make it interesting for hacking, but a lot less so since it doesn't give me a real communications channel. If you have information on how to connect a JTAG probe to a Nokia phone, please let me know.

13 September 2006

Simon Richter: Forking

I hate my chaotic self, and, I guess, it hates me, too. I guess I need a third personality.

Simon Richter: Forking

I hate my chaotic self, and, I guess, it hates me, too. I guess I need a third personality.

Simon Richter: Compressor generators

In a project, I need two "blobs" compressed; the first one is the usual mix of ARM code, Thumb code and data, the second is a piece of firmware to be uploaded into an FPGA. Both of these show obvious signs of redundancy (the ARM condition code "always" appears quite often, and FPGA blobs have a lot of zeros). So I thought that it might be an interesting idea to use the extra knowledge we have to build a better compressor. The easy answer, of course, would be zlib and a static table that emphasizes on the typical distribution of ARM code, however that is still quite suboptimal, for example we know that the heightened probability for the "always" condition code is only given in the condition code field, so we have to look at words, which is not very zlib-ish. Also, the redundancy goes further. Except for very few exceptions, registers are a lot more likely to be used as source operands if they had been a destination operand since the last unconditional jump that was not a forward branch. That much intelligence comes at the price of making the decompressor pretty complex, though, which I'd like to avoid. One of the main reasons for actually thinking about this stuff is that zlib's inflate code is too big for the 16kB space I have, and compiling it in Thumb mode leads to an ICE. So complex decompression code is pretty much a non-option. Almost the same thing goes for the FPGA data. The gzipped data is still more than 50% of the uncompressed size, so I believe there is room for improvement here as well. Being able to use the same decompressor is a bonus, of course, but as long as the decompressor itself compresses well, a minor issue.

12 September 2006

Simon Richter: Spring cleaning

I gathered that it should be almost spring in Australia, so technically it would be okay to do some bloody spring cleaning. Since this is my blog, I'm not talking about my room, which is beyond all hope, but about software projects. There are a few utility classes in C++ that I have in almost all of my projects, yet never bothered to formally submit to boost, plus a few others where I haven't done anything over some years simply because I don't use them anymore. So over the course of the next days I'm planning to list a few of them on a domain I registered a while ago, ideaharvest.org, and am planning to turn this into a software project swap market at some time. The #1 listing will probably be "software swap market, rudimentary implementation, hosting set up already.".

11 September 2006

Simon Richter: Arrrrr

I think among the most sensible things you can do on September 11th is joining the local pirate party. Which I just did.

Simon Richter: Shrinking backports.org

One thing that got some momentum in Vienna was the idea of using symbol versioning information to generate less strict dependencies with the shlibs mechanism. I had done a bit of work on this a long time ago, but didn't know enough perl (well, I still don't), so I was glad to see that formorer picked up on it. The concept itself is pretty simple: for each symbol version in the library, there is an entry in the shlibs file, and we just emit all of the dependencies for the versions that are used, compacting them in the end to the strictest that we need. Since the most important libraries are versioned already, there is an instant win, plus library authors are of course encouraged more to add symbols to their own libraries.

8 September 2006

Simon Richter: In Soviet Russia, power sucks YOU

I'm on the way to the Vienna bug squashing party. Bets are being taken how long the laptop battery will last, and whether I will be getting any useful work done on the way down. Formally, both batteries have 4400 mAh and 14.5 volts. Informally, one of them announced being charged at 1650 mAh. Since it also told me it had a whopping 0mV, I'm not too confident any of these numbers are correct.

5 September 2006

Simon Richter: Wikis and structured data

I need to deploy a content management system that is to be used by a number of technically not overly savvy people, so I am thinking of basically using a wiki and locking it down. However, wikis' big strength is mostly unstructured information, like texts. However, in a few cases, I'd like to have a few database views on pages, or even a way to submit new data to a database from a form. So in essence, I need a wiki form of Access. Is there anything similar to that already, or is this entirely new territory?

Simon Richter: On popes, and why we should have more of them for additional security

The pope is coming to Munich. While I'm generally in support of such things, the increased police presence is slightly annoying to people wearing long black coats and being in a hurry.

Next.

Previous.