Search Results: "daniel"

20 May 2007

Daniel Burrows: System 76

I've got a new desktop system, after going two years without a desktop at all. My last desktop, which served me well for about five years, was one that I built myself from parts. This time, though, I was feeling a little lazy, and I decided to order a computer from System 76, one of the few companies that will assemble and ship a computer to you with Linux (in this case, Ubuntu) preinstalled.

DSC00497.JPG

The cats were curious about something new appearing in our apartment. They were even more excited when they found out it was full of cat toys! Sadly for them, though, I confiscated all the styrofoam peanuts and stuck them in a cat-proof trash can.

DSC00499.JPG

The usual box of random CDs still exists when you have preloaded Linux. I was surprised to discover that it did not include an Ubuntu CD or five, which seems to me like a no-brainer.

DSC00501.JPG

Of course, this post wouldn't be complete without a picture of the actual box. It looks just like it did on the system76 web site; no surprise there.

DSC00504.JPG DSC00505.JPG

I used the included Ubuntu install for a little while, and it looked like everything was configured reasonably well. The one piece of weirdness was that Ubuntu uses a program called network-manager to configure the network; while it has some nice features (like doing network discovery for wireless, letting programs easily get notifications when network devices go down or come up, etc), these are offset, at least for me, by the fact that it likes to randomly break the computer's network access. This isn't exclusively an Ubuntu problem, of course; etch also installs and configures network-manager by default, and I had the same problems on etch until I purged it. I assume that network-manager works for someone, so probably something to do with the network environment here breaks it.

The system is currently running Debian etch, with Xen domains booting testing and unstable that I use for development. Even without the NVidia graphics drivers and with one of the Xen domains running a computationally intensive job, it's quite snappy; a lot snappier than any other desktop system I've owned recently. And while it's doing this, it's one of the quietest computers I own.

So, in summary, I'm quite happy with this system and I'd suggest System 76 as an option for anyone who wants a Windows-free computer.

Christian Perrier: And now for geneweb...

After the samba hype, it was time for me to take care of my pet package, namely geneweb, the "genealogy software with a Web interface" by Daniel de Rauglaudre. This is the only package which I'm maintainer or co-maintainer of which had no upstream version update between sarge (4.10-8) and etch (4.10-26). Back in February, Daniel finally agreed the only offering CVS snapshots as releases was not the best service he could do to his users (several of which are running proprietary operating systems and not very keen at compiling Ocaml code). And he released 5.00...a bit too late for etch. I quickly built a package for experimental, talked about it in the upstream mailing list...and quickly forgot about it (my genealogy work has been buried under Debian work for 3 years now). Finally, today I woke up and built/uploaded for unstable. I also moved from CVS to SVN on Alioth. Given that the CVS was, a while ago, my first steps with CVS, I just abandoned it and didn't even convert the history. The added value would be very low since I maintain this package alone since I took it over back in 2001.

15 May 2007

Benjamin Mako Hill: Ubuntu Community Council

Very quietly, the Ubuntu community reached a major milestone today when we held a Community Council meeting, like it does fortnightly. The only thing different was that the council included five new members -- Mike Basinger, Corey Burger, Matthew East, Jerome S. Gotangco and Daniel Holbach. These members are, with the exception of Holbach, not employed by Canonical and were each confirmed by a vote of the full Ubuntu membership. Before the recent elections, I was the only member who was not a Canonical employee -- and I used to be one. From a technical perspective, the founding Ubuntu team was able to benefit from everything that Debian had built -- a running start if there ever was one. From a community perspective though, we had to start from scratch and had to deal with the very difficult situation that paid labor and closely entangled corporate interests. Working with the rest of the team, I drafted a set of community norms (the Code of Conduct) and governance structures designed to keep both the community and Canonical under control. They seemed like good ideas but, because we didn't have a community yet, only reflected the sensibilities of Mark Shuttleworth, myself, and the rest of the early Ubuntu team. The highest Ubuntu governance board, the Community Council was initially filled with people that were in the room in Oxford when we came up with the idea: myself, Mark, James Troup, and Colin Watson. We decided that the council members should, and would, be approved by a vote of the membership. With no members though, we faced a bit of a bootstrapping problem. Three years later, Ubuntu has a vibrant community with hundreds of enfranchised members who have an up-or-down say on the members of the council itself. When we looked for new potential council members to propose to the community, we tried to pick the most active, most level-headed, and most representative group we could find. It was pleasing to see that only one member of the new CC board works for Canonical; Canonical employees are now outnumbered. It has been interesting to see announcements by Fedora, FreeSpire, OpenSuSE over the last few years proposing systems of more inclusive community governance structures that, perhaps not entirely coincidentally, look a bit like what Ubuntu has built in its attempts to empower users in that sometimes awkward community/company environment. Whatever the reasons, I think it means there's more pressure on us at Ubuntu to keep raising the bar. I see today as a great example of how we've done just that.

14 May 2007

Kartik Mistry: Fontypython: Now fonts are easy to manage!

* With fontypython (Which is unstable now), you can play with any fonts without actually installing it to system (who needs fc-cache now?). Here is simple method to use it. Thanks Daniel for upload and Donn C. Ingle for writing this simple but useful program. FontyPython_Screenshot1 FontyPython_Screenshot2 FontyPython_Screenshot3 FontyPython_Screenshot5 FontyPython_Screenshot6 FontyPython_Screenshot7

11 May 2007

Evan Prodromou: 20 Flor al CCXV

Another beautiful day here in Paradise. Montreal is fantastic in the late Spring/early Summer -- it's a great time to be here in the city. Yesterday, Amita June and I went to Parc Jean Drapeau, the beautiful park on an island in the St. Lawrence, the former site of Expo 67. We played at the (really cool) new playground, ran around in the grass, and looked at the river rushing by. Today I rolled out a new table-of-contents layout on Wikitravel; you can see an example on our page about France. It's the culmination of about 11 months of debate and compromise amongst Wikitravellers, me, Maj, Internet Brands, and pretty much everyone else under the sun. It took a looong time, but we eventually got something that most people could live with and (shock!) some people actually liked. It wasn't easy, and my earlier unilateral decisions about it were so upsetting to people that it produced our current Wikitravel:Technical infrastructure policy. It's been great to finally reach some closure on this particular issue, since it was such a source of learning for me. tags:

RoCoCo -- one week and counting We've got about one week before RoCoCoCamp starts. It's going to be pretty exciting; we've had a lot of responses and the list of participants is growing strong. But there are still a lot of infrastructure things to be done -- I'm going to be really impressed if we get them all done before next Friday. I'm getting more and more amazed that the folks in Portland (Oregon) manage to put on RecentChangesCamp there. It's pretty hard to do a three-day unconference. tags:

Kanren So, I've just finished re-reading The Reasoned Schemer, the sequel to The Little Schemer and The Seasoned Schemer by Daniel P. Friedman and Matthias Felleisen. Reasoned is a really nice introduction into what seems to be a classic compulsion for Scheme freaks: re-implementing the logic language Prolog more-or-less in Scheme. The little language that unfolds in Reasoned is elegant, simple, and best of all, extremely Scheme-y. There's a really long digression into binary mathematics and deriving bitwise operations for arithmetical functions, which all seems to be the long way around the block since it's unlikely that users of their system would use anything but the math system built into the host language, Scheme. The implementation in TRS is laid out at the back of the book. It's a learning version of a bigger project, called Kanren. I've been fiddling with the system, which has re-inspired my dream of creating a declarative language framework for Web applications. I'd like to see what Web programming in Kanren would be like... I'll see how it goes. tags:

Domains Another way I spent my time today was that we've finally gotten around to transferring the wikitravel.org/.net/.com domains to IB. IB's owned the site for a while, but we've never really had a reason to switch the domains over, so it's gone undone for a long time. And I'm kind of glad. It sucks transferring domains between registrars. wikitravel.org was on Joker. which used to be my registrar of choice, but which has been superseded by Godaddy. Transferring a single domain took 6 Web forms (on two different sites), 3 security codes, and 4 email confirmations. Thankfully, this also gave me a chance to transfer over my speculative domains phonojournalist.com (for telephone photos) and phrygiancap.org, for general freedom issues. I like the phrygian cap, what can I say? All right, so I have a lot of domains that I'm unlikely to ever exploit. If that's so wrong, I don't want to be right. tags:

8 May 2007

Daniel Stone: freedesktop.org downtime

It's just not our week, I guess. For the past couple of days, gabe.freedesktop.org (www.fd.o, ns1.fd.o, lists.fd.o) has been playing up: it will just mysteriously die with no explanation. It appears to still be alive, but we can't access it at all. Bringing it back up yields nothing suspicious before it dies, so we're suspecting some bad hardware. This wouldn't be too major a problem, bar the loss of the above-named services and dri.fd.o, openclipart.org, and a few other services, if it weren't for other things conspiring against us.

All revision control services (git/CVS/SVN committing and checkout, web access to same), Bugzilla, xorg.fd.o, people.fd.o and planet.fd.o, are on separate machines which are unaffected by this failure. But, unfortunately, we got less than 24 hours notice that our secondary DNS server at MIT was being moved, and would be offline for a while. Two DNS servers gone. Our third DNS server, hosted in the UK, is still servicing requests just fine, but apparently our registrar never noticed the update. So the third DNS server according to the glue records is home.keithp.com, which is also off the air right now for some reason.

So, ns0.bluelinux.co.uk is still serving names, and you can still access some services if you use that, but we're not sure how long until normal DNS is back up, let alone how long it will take us to get gabe fully fixed.

Sorry for the outage, please bear with us. If you think it's frustrating not being able to check www.fd.o, try checking the remote console and watching /proc/meminfo hopelessly spew into the serial console as you are unable to log in ...

25 April 2007

Chris Lamb: Hi, Planet Debian.

In the upcoming holidays I’ll be working with Daniel Baumann on a graphical user interface to Debian Live thanks to the Google Summer of Code (I posted my full proposal to debian-live-devel if you want to read more). Thanks to Daniel for agreeing to be my mentor. This is my first post to Planet Debian, by the way. A few people might have met me at certain events, but if you haven’t I’m a kinda average hacker-type with a short attention span, long hair, broken sleeping patterns and above-average caffeine requirements. I’m currently a student at the University of Warwick and first started using Debian with “Slink”. If I’m missing anything, or you just want to say hi, please post a comment.

Daniel Burrows: Kitties

Kate and I have been thinking for a while now about maybe adopting cats once we were settled into our new apartment. Two weekends ago, we went to a local cat shelter and adopted a pair of kittens. Photos below; the brown one is a female named Diana, and the orangish one is a male named Mars.





Not only are they INCREDIBLY CUTE, but they're very sweet-tempered and affectionate, at least when they can spare the time from chasing cat toys and play-fighting with each other. There's really nothing like having a pair of purring cats curled up on your lap together.

Kittens make everything better. :-)

(PS: more kitty pictures are available here)

24 April 2007

Nacho Barrientos Arias: DudesConf

Dear Lazyweb, I’m sorry, I know I’m late but here it is my promised report about DudesConf. It was simply cool, even though it was my first Debian-related real [0] event everything was in a good, familiar and friendly shape. I’m really happy to had met all the Debian developers who attended, GPUL people and others, pleased to meet you guys! Talks, BOFs, meals, accommodation, everything was impressive, so my gratitude goes to everyone who helped made DudesConf possible :). If you feel curious, you should be able to watch some pictures in the gallery or read the live (I know, it’s not really live at the moment, my fault) event coverage. Of course, Ricardo, thank you for take me to A coru a, it was a pleasure for me to share some kilometers (some? all of them!) with you ;) [0] Real comes from real life, Daniel pointed me out days ago to the actual difference between real an virtual life.

21 April 2007

Daniel Burrows: Wikified aptitude TODO list.

I've been able to crib more time lately for Debian, so I'm hoping that I can stop just keeping my head above water (barely) and start on the pile of new work that I'd like to do. For a while I've been accumulating a mental list of stuff that sucks in aptitude, but mental lists have the drawbacks that no-one else knows about them and that they never seem to be available when I want them.

I've now got a nice page in the Debian wiki holding aptitude's current TODO list. The entries range from changes that are trivial but will improve the user experience, to deep and difficult changes that no-one will notice. Since I don't expect a team of magic pixies to do the coding for me, I figure I might have the majority of the design and coding done in a year or so.

19 April 2007

Daniel Baumann: Debian Live and Google Summer of Code 2007

Debian is this year again part of Google's Summer of Code. Last week, the final decisions about the proposed projects were made and Google granted 9 slots in total for Debian. I am very glad to say that Chris 'lamby' Lambs proposal for Debian Live is amongst those. Here is the abstract from his proposal:
	Live-helper is a utility to build CD, DVD, netboot and USB-stick live
	images of Debian, a GNU/Linux operating system. It boasts support for
	multiple architectures, auto-building images, amongst many other
	features.
	Live-helper is extremely flexible, allowing interested parties to create
	their own system completely specific to their needs, including support
	for custom package lists, kernel parameters, encryption, additional
	commands to configure the live system etc.
	My proposal is to construct a graphical user interface that can be used
	in conjunction with live-helper to build Debian Live systems, allowing
	editing of existing configurations and including a 'wizard'-style
	walkthrough for the first-time user.
	Providing less experienced users with the opportunity to easily create
	live distributions will generate more exposure for live-helper,
	providing more valuable feedback for its developers and ultimately
	helping Debian's image as an extremely flexible and free operating
	system.
	The GUI will be written in Python using the pygtk GTK+ bindings.
The next step on the timeline begins at May 28th, where the students start coding on their projects. I am happily looking forward to it.

Michal Čihař: Gammu test version 1.10.3

I just released new version of Gammu, you can download it from download server. There is quite a lot of changes: As I can now build full featured Gammu binary for Windows, the download size increased a lot. If you thing it is too big, I can start to produce two sets of binaries.

17 April 2007

Jan Wagner: Got Hardware Donation

Last weekend I got a hardware donation from muempf. It’s a new 1U server with the following specs:
Supermicro P8SCi Systemboard
Intel P4 3.00GHz
2x 512 MB DDR2 533MHz unbuffered ECC Systemmemory
2x 160 GB SATA disk (ST3160812AS)
2x GE Networkcard (BCM95721)
Console Redirection
I ordered additional 2x 1024 MB DDR2 533MHz modules and replaced an old server with this new system.
The system was installed on a Software Raid(1). The system migration was smooth, except problems getting the NICs up and running. They was recognized as eth2 and eth3 (10 MBit and no link). After hours searching around, I was guessing the problem is anywhere related to udev. Daniel told me to wipe ‘/etc/udev/rules.d/z25_persistent-net.rules’ nearly at the same time I saw, this was the only file with different size in ‘/etc/udev/’ compared to a working (etch) system on this hardware. Removing the file did the trick. As the system is running now very well, sincere thanks are given to muempf! ,

15 April 2007

Mario Iseli: End of holidays, some experiences

So, this is my last evening (and when I remember correctly the first one I’m at home) of my holidays. All began last Friday called “Karfreitag”, a national holiday. To be correct, the first party was already on Thursday and they continued daily till Monday evening. The best event in this time was Sunday afternoon, some minutes after I waked up Debian GNU/Linux 4.0 aka Etch was released, what a feeling. It was especially interesting because it’s the first stable release with some of my packages and it was a great experience to see how releasing and planning works. I often think back to the two bug squashing parties in Zurich, one in September and one in October iirc. Back to my holidays: First it was planned that I go with my sister to Zurich from Monday evening till Thursday evening, but then I got a appalling call from madduck who told me that he is in the hospital in Zurich with several broken bones. We planned to sleep in madducks flat and so we couldn’t get the key and went Tuesday morning. Walking through Zurich, getting some informational material from the University Zurich for my Sister (she maybe wants to study there) and the visiting madduck. After the visit we went again to the center of the city and walked without a real destination. In the evening we finally went to Oerlikon and went to “our” flat. After installing our sleep places (goddamn, I want to have a waterbed) we went to Migros to buy some food and drinks for the evening and the next day. The next day we really got up quite early and visited Zurich with a city guide, a lot of sightseeing and hanging in some bars. In the afternoon Daniel Baumann also was in Zurich and we went to have a drink together and also Tobias Ast came and staid with us till the next evening. We really had fun together and the main thing we did on Thursday was relaxing on the lake of Zurich and in the evening we went home. Then it was finally friday, I looked forward to this day for about one week, why? The release party in Zurich!! It was my first release party on the Irchel area in Zurich, we grilled, had some beer together and talked about god and the world. It also was the first time i met Adrian von Bidder and Mathias St rmer in person, especially with Adrian i had a longer interesting discussion about network devices from Cisco and their special prices. :-) Saturday was already the next party day. When I was 13 we had a supply teacher for our sick teacher for 2 months, I was her horror pupil. Fine - some weeks ago I met her again in a Pub in the evening and we staid together the whole evening and became good friends in a way, so I was also invited (as the only of her pupils) to her flat share party. I met several “new” people and some of them (mostly IT students) recognized my Debian t-shirt and I had some interesting discussions about free software and had to explain the philosophy of Debian to some of them. So yes, now it’s sunday, I’m more tired than before my holidays but I’m really happy, my holidays were great because of some adventures. Regards to all to my friends… Tomorrow I will continue working and have several tasks open, especially upgrading some Debian servers from Sarge to Etch (Spamfilters, LDAP, Proxy servers…) and I hope I won’t have many troubles. In addition I have also some tasks open for Debian which I’d like to complete this week.

Daniel Burrows: How *not* to impress your customers.

So, today I tried to sign up for a service online (unidentified for reasons that will become obvious briefly). This is a service that, had I successfully signed up, would be withdrawing monthly subscription fees from my bank account and handling some data that's fairly important to me. But when I hit the button to start the registration process, I got back...


[TCX][MyODBC]You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ''7GDiSp=E8-Mgvgo\', Now() )' at line 9

SQL = "INSERT INTO [REDACTED] ([REDACTED], FieldName, FieldValue, update_dt ) VALUES ( 10724, 'PASSWORD', '7GDiSp=E8-Mgvgo\', Now() )"


The password I tried to enter, for the record, was 7GDiSp=E8-Mgvgo\#dEwb8m7Ec_e~z0myAAj. This is at best inexcusable sloppiness and at worst a security hole, and I don't want a company that does either anywhere near my money and data. (sadly, there probably are already many such companies near my money and data, but I try to avoid the ones I know about)

13 April 2007

Daniel Burrows: coq's -ness-nesses

In response to Stefano's reply to my post about Coq:

toy-ness

Usually such pieces of software are more seen as academic toys, seeing it promoted as a geeky software is a joy to me.


I really hate to detract from your happiness -- but I definitely had the word "math" implicitly stuck before "geek toy". :) Most coders that I've met are, at best, indifferent to mathematics, outright hostile at worst, so I doubt that coq will get far outside of small niches where the benefits are irresistable (security software, maybe? -- and of course pure math). I read up on this stuff despite it being utterly useless for anything I'm likely to be paid to do (unless I return to academia) because I'm a hopeless weenie loser who likes math. :P

programming-language-ness

Coq is not really a programming language (even if the CoqArt book says so, to attract the developer community), it is mainly a proof assistant; i.e. a software in which you give definitions, state theorems and prove them.


Well, this all depends on how you define programming language, which is one of those never-ending definitional questions. But using my general conception of what a programming language is, I actually have noticed two programming languages inside Coq.


  1. The more interesting one (IMO) is the proof language they call "Gallina" and the "Vernacular", in which you construct proofs by reducing your goal to a tautology. The goal here seems to be to compute a well-typed term in Coq's core calculus, and you generally construct programs interactively: Coq shows you the current program state (expressed as one or more goals and a set of local hypotheses) and you manipulate it by (e.g.) applying lemmas to yield new known facts.

    I think this language is fairly weak viewed as a programming language. It's completely unreadable and the proofs generated don't correspond to the reasoning process one normally follows when working out a proof. I am less annoyed by it now that I've learned how to do forward reasoning :), but it seems like backwards reasoning is really pushed, and that just seems .. well .. backwards to me. There's also a strong tendency to use implicitly generated names for things and to just "know" what the state of the system after issuing a command will be; as far as I can tell, the only way to understand a Coq proof is to step through it in coqide.

    While it's nice to be able to "trust the kernel", it would also be nice to be able to "read a proof" directly. Among other things, their inscrutability makes me think that Coq proofs would be annoying to maintain over time. This is not necessary for stuff that's part of Principia Mathematica, but seems likely if you're developing a new theory -- in particular, I would shudder (theatrically) at the mere thought of including embedded Coq proofs in my programs.

    Some additional brief comments on this were written by Nick Benton and put on the Web under the title of Machine Obstructed Proof.

  2. The other sense is that Coq directly embeds a strongly normalizing variant of System F (I think? -- at least the simply typed LC with some type parametricity) with primitive recursion over inductive structures. This isn't Turing-complete (of course!), but I would certainly call it a real programming language.

    As you note, though, this is less interesting unless you want to prove facts about your programs.


OCaml-ness

Regarding the synergy of Coq with OCaml: yes, you can prove in Coq the correctness of OCaml program, but actually not more than you can do with programs written in other programming languages


I was specifically thinking about Concoqtion; I have no idea how other projects compare, and I apologize if I incorrectly summarized it!

11 April 2007

Daniel Burrows: Wikipedia is case-sensitive, who'da thunk?

This is part of my ongoing series of posts wherein I am the last person on the planet to discover various things. (this is not a planned series, it's just how life is. :) )

If I ask Wikipedia about Virtual Server, I get an article about a Microsoft Hproduct. If I ask it about Virtual server, I get a page on server virtualization. Presumably if you know enough Wiki-lore, this makes sense.

Unsurprisingly, neither article gives me a clue about how I might go about renting a virtual server to avoid the hassle of maintaining hardware or which providers (if any) are reasonably trustworthy.

Kai Hendry: Webconverger 2.4

Korean Webconverger split 2.4 I’ve just released Webconverger (Web kiosk) USB&ISO versions built with stable Debian etch. Webconverger has received some good feedback and press. I would like to thank Daniel Bauman for his rather excellent Debian Live work on which Webconverger is based. I was hoping that Webconverger could support every locale, now it looks like I need to produce a separate ISO/IMG (or at least apt-get hooks) for every locale. One reason is that Iceweasel/Firefox extensions don’t scale very well. Try install every locale and dictionary extension. I dare you. :) Sidenote: I wonder why no one has packaged the dictionaries for Iceweasel. In other news, I’ve been playing around with scim (keyboard switcher) and Korean locales. It seems to work though the title bar didn’t render hangul characters right in dwm. After some investigation I discovered there isn’t such a thing as a single “generic” Unicode font. This came as a shock to me. :) Typical ttf only have 65536 glyphs, so no one font will do. Jeff Zhang also informed me about free Unicode fonts. Though I think especially in CJK environments proprietary fonts are unfortunately more common. Or I don’t know why microsoft-gulim isn’t in msttcorefonts. Anyway the Korean version of Webconverger turned out OK, though I doubt any Koreans will be using it. It’s all sadly ActiveX out there. My package wordpress 2.0.10 didn’t quite make it to etch in time as I was waiting for CVEs! 2.0.10 will be coming soon though… It always amazes me how much work can get done in breaks like Easter. It’s great that etch is out. And whoa, the weather is great.

10 April 2007

Stefano Zacchiroli: coq as a geek toy

Coq: Happy to See it as a Geek Toy Daniel, I'm really happy you defined Coq a geek toy. Usually such pieces of software are more seen as academic toys, seeing it promoted as a geeky software is a joy to me. I'm a developer of Matita, a concurrent system of Coq (yet less mature a of today). I'm happy to give some more info about Coq (and hence about Matita, which is based on the same logical foundation of Coq). Coq is not really a programming language (even if the CoqArt book says so, to attract the developer community), it is mainly a proof assistant; i.e. a software in which you give definitions, state theorems and prove them. The added value of the system wrt plain pen and paper is that it grants that you won't be able to produce incorrect proofs (of course you are still free to prove useless theorems :-) ). It is more expressive than predicate calculus, technically it is based on the Calculus of (Co)Inductive Constructions, but the most important differences are that you can give inductive definitions of predicates (or define recursive data structures) and the system will let you play with them freely automatically constructing recursors on these data types. You can even define infinite data structures (using co-induction) mimicking lazy types available in languages as Haskell. Regarding the synergy of Coq with OCaml: yes, you can prove in Coq the correctness of OCaml program, but actually not more than you can do with programs written in other programming languages (see for example Why, Krakatoa, and Caduceus for some practical tools to prove properties about Java and C programs). Yet the synergy with OCaml is even more than that: once you proved properties like the existence of, say, a prime number greater than a given prime number, you can ask Coq to generate for you (using a feature called extraction) an OCaml program which consumes as input a prime number and returns the next one. More generally you can extract programs from (suitable) proofs. Some info on the Debian side: thanks to smimou Coq has been in Debian for a long time now and Why/Krakatoa/Caduceus are coming soon. Happy hacking!

9 April 2007

Daniel Burrows: Latest Shiny Geek Toy: coq

So, one of the reasons I've been a bit uncommunicative the last few weeks is that I've been getting my head around Coq, maybe one of the most fascinating pieces of software I've played with in a long time.

What is Coq? I don't know if I understand it well enough yet to give a complete description (the Coq tome only arrived in the mail on Friday and I have yet to make it past the introduction, what with taxes and so on). Here's my best shot:

Coq is a programming language where you write proofs as functions taking proofs of their preconditions and producing proofs of their results. That is, a proof that "If X is an integer, then X-1 X" becomes a function that accepts a proof of "X is an integer" and produces a proof of "X-1 X".

You can manipulate logical expressions more or less the way you expect. For instance, if you have in your hands a set S of natural numbers and a proof that "forall nonempty sets T of naturals, T has a least element", then you can bang these together to produce the least element of S (or rather, a proof that it exists).

I don't think this describes the theoretical underpinnings of Coq, but it does describe my experience of actually using it to prove stuff.

To get the hang of Coq, I'm working my way through basic automata theory -- regexps are done, but I couldn't work out how to express some finiteness constraints on FSMs without generating a lot of extra typing; hopefully the Coq book will have some hints. Once that's done, I'm actually tempted to try something more ambitious. [snip long digression] We'll see ... watch this space :).

It was a real rush, though, to code up these theorems and watch the computer verify them. What really fascinated me was how close to being a practical tool this is. Coq isn't at all a toy -- without quite getting all the theory yet, my intuition is that it can probably cover anything you can express in the predicate calculus (with sufficient amounts of typing, anyway), and while there are a few shortcomings, it's almost (IMO) at the point where anyone who knows some formal logic and has a little patience can prove interesting stuff. Even more suggestive of possibilities, there's a project (which I sadly haven't had time to look at) that integrates Coq with OCaml, so you can have proofs about your OCaml code verified at compile-time!

I could go on and on ... anyway, this is a really cool tool and I'd encourage any mathematically-minded person to give it a spin. The only sad thing is that I doubt I'll ever have the opportunity to explore this stuff in my day job unless/until I go back to school :-(.

Shortcomings of Coq specifically and the whole concept of correctness proofs on programs generally have been moved to a future blog post that may never appear depending on how ambitious I'm feeling this week. Rest assured that I'm aware of (some of) them, I just hit my self-imposed length limit.

[0] the reason being that I could only prove correct the formal underpinnings of the resolver; in practice, a lot of the bugs are in the interface to apt, or in apt itself, and I can hardly prove that code correct.

Next.

Previous.