Search Results: "Stefano Zacchiroli"

17 April 2007

Stefano Zacchiroli: phd over

Successful Mission, Captain Kirk In 1998, as an undergrad, I encountered what I remember to be my first real university challenge: write a MIPS kernel which had to run on the appropriate emulator. An acceptably decent running kernel should have made the emulator output in the end the Star Trek quote in the title. Now, a lot time after (wow, 10 years, has it been that long?), it's over. Yesterday I defended my PhD thesis. I feel a bit emptied now ...

11 April 2007

Stefano Zacchiroli: post etch frenzy

Post-Etch Frenzy: Ocamlnet 2.2.7 in Unstable Ok ok, ..., I admit it, I'm yet another victim of the post-release frenzy: right now I'm uploading to unstable the long overdue packages of Ocamlnet, 2.2.x series. Since the former upload to experimental there were 3 micro releases (now we are at 2.2.7), which also added support for the apache connector for CGIs (which unfortunately doesn't yet build cleanly with Debian's apache2 :-/ I'll have a look at it in the near future). In the meantime the post-etch madness continues: with the help of other fellow DDs from the Debian OCaml Task Force (thanks for your help Ralf!) I'm working on the packaging of the beta of OCaml 3.10.0. Expect an upload to experimental in the next few days. All this is tiresome though, enough for today, time for some good old sci-fi book ...

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!

4 April 2007

Stefano Zacchiroli: least responsive developer

Least Responsive Developer Quoting (with a bit of censorship) from the topic of the #twisted IRC channel on OFTC:
  Least Responsive Developer: XXX [aka YYY], #490  

I love that!, of course it can be seen as a way of publicly blame XXX (aka YYY), but I would hate to be there, so probably I would strive for not being there. /me ponders about adding something similar to Debian IRC channel topics ...

15 March 2007

Stefano Zacchiroli: debian in gsoc

Google Summer of Code: Debian has been accepted Verbatim quote:
Congratulations!
Your organization "Debian" has been accepted in to the Google Summer of
Code(tm) 2007, and you have been marked as a potential Administrator. To
accept this request please visit
http://code.google.com/soc/mentor_step1.html and sign up using your Google
Account.
Thanks
- The Google Open Source Office

Keep on filling the proposal page! /me going to accept the above request ...

10 March 2007

Stefano Zacchiroli: gsoc cfp

Google Summer of Code 2007: Call for Proposals Yesterday I took some time to reorganize the wiki page with Debian proposals for this year Google Summer of Code. The more relevant change is that we wont consider for free last year proposals as this year proposals. The rationale for that is to avoid proposals staying there just for inertia. So please take some time to promote last year proposals to this year proposals (just moving them up in the wiki page) if you're still interested in them. Eventually we will remove last-year non-promoted proposals. Now we also have a template for describing proposals in more details to be used for avoiding cluttering the main wiki page. You would be very kind with us if, when promoting last year proposals, you will also take the time to create and fill the corresponding templates :-). If you're interested in proposing something for the GSoC go and add your proposal to the wiki page, now it's the time! PS no, you're right, in this post there isn't much more than what I just posted to d-d-a, it's only to augment the SPAM level...

9 March 2007

Stefano Zacchiroli: living in vim

Living in Vim John, some tips for your new life with Vim (welcome!) Hope this helps,

27 February 2007

Stefano Zacchiroli: meme esr facts

Meme: Vote your favorite ESR Fact ObPlanet: you avoid loosing time reading all ESR Facts, the Planet chooses the best for you (of course if you don't trust the Planet you're back at having to read all of them, YMMV). My favorite ESR Fact is: ESR once wrote a CML2 patch that was accepted into Linux. Just kidding.

23 February 2007

Stefano Zacchiroli: xs vcs browser

XS-Vcs-Browser: the brother of Xs-Vcs-* A couple of day ago godog (thanks!) applied my patch for the PTS which add the long overdue support for the XS-Vcs-Browser field in debian/controls. Here is a summary of the Version Control System related fields now supported by the web interface of the PTS: Here is an example of the two field usage from the debian/control of the (not yet uploaded) Vim package:
Source: vim
Section: editors
Priority: optional
Maintainer: Debian VIM Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
Standards-Version: 3.7.2
...
XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-vim/trunk/packages/vim
XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/

The current sample rendering can be seen, for example, in the PTS page of the mako package. More information can be found in the current patch for the Developer's Reference documenting the support for the two fields in the web interface of the PTS. /me hurries-up writing a small post to -devel before John yells at me again for (ab)using the planet for such announcements :-)

18 February 2007

Stefano Zacchiroli: dtd2vim

Vim's Feature of the Day #2: Context-Aware Completion for XML (in 5 minutes!!!) You're editing yet another Debian sub-policy. Of course the policy is written in Docbook XML and (should I even need to mention it?) of course you're using Vim. The Docbook v4.4 specification is huuuuge and you happen to know just a tiny teeny part of it. Hence you're dreaming of XML Spy or Emacs context-aware completion. Shame on you misbeliever!, Vim can do the same!! Here is how to set-up in 9 easy steps context aware completion for Docbook v4.4 with Vim7 in Debian/unstable:
# aptitude install docbook vim-scripts perlsgml
$ mkdir -p ~/.vim/autoload/xml/ ~/.vim/after/ftplugin/xml/
$ cp -r /usr/share/sgml/docbook/dtd/xml/4.4/ /tmp/docbook-dtd/
$ cd /tmp/docbook-dtd/
$ SGML_CATALOG_FILES=/etc/sgml/catalog dtd2vim docbookx.dtd docbk44
$ mv docbookx.vim ~/.vim/autoload/xml/docbk44.vim
$ rm -rf /tmp/docbook-dtd/
$ echo "runtime ftplugin/xml.vim" >> ~/.vim/after/ftplugin/docbk.vim
$ echo "XMLns docbk44" >> ~/.vim/after/ftplugin/docbk.vim

Now just start Vim on an .xml file containing some Docbook markup and let the fun begin: Warnings: dtd2vim is a recent addition to vim-scripts, you will need >= 7.05. If you start editing a file which Vim is not yet able to recognized as a Docbook file (e.g. an empty file) don't panic, setf docbk is your friend. Enjoy! PS an even higher fun level while editing XML with Vim can be obtained using the "xml" ftplugin shipped by vim-scripts ...

11 February 2007

Stefano Zacchiroli: rhythmbox gstreamer pipeline

Looking for a Gstreamer Pipeline for Remote Audio with Rhythmbox Dear Lazyweb, i'm looking for a gstreamer custom pipeline for configuring Rhythmbox so that I can execute it remotely via X and deliver audio to the local machine. Can you help me out? In exchange to your help I offer: Now, would you be so kind in giving me back another pipeline? :-) PS oh, yes, a way to configure the remote Rhytmbox so that the local esd server is used would be fine too ...

8 February 2007

Stefano Zacchiroli: ddpo yubnub command

New YubNub command: ddpo I'm a big fan of YubNub. Some Debian specific commands are really cool, like dpts or debbug. Still I was missing a command to go to the DDPO page of a given argument , so I just contributed my first command. Guess the name ....: ddpo. E.g.: the query ddpo zack leads to http://qa.debian.org/developer.php?login=zack I'll be happy when the first user will report that he guessed the ddpo command out of the blue!

7 February 2007

Stefano Zacchiroli: vim-script news

vim-scripts maintenance Mixed research meeting in which universities get in touch with big companies are fun, especially at the end, when the planning phase is reached and different, often conflicting, interests show up: academic fellows pulling the blanket from one side (trying to postpone deadlines, planning paper submissions, ...) and industry hard-workers pulling it to the opposite site (which results when, press releases, ...) But the mutual presentations at the beginning of those meetings are sooooo boring, especially when you (as an academic) have to listen at the company presentation: buzzwords, organizational charts, quadrillions of $ invested in R&D in the last years, bla bla bla. What's better to occupy that time slots than Debian hacking? So this morning I proudly uploaded a new version of vim-scripts (7.0.5) which is itself proud to be the version with the longest changelog entry in the package history (49 lines). Among the most notable changes you can find: Enjoy vim-scripts now!

6 February 2007

Stefano Zacchiroli: do you want my debconf7 ticket

SPAM: do you want my DebConf7 plane ticket? This is (arguably) SPAM. Yes: I've already bought a plane ticket for DebConf7. But, unfortunately, yes: Gismo's proposal is terrific. So, again, yes: I would like to go to Edinburgh by motorbike traveling as few as 2200 km on my ass just to meet you, bunch of geeks, at the next DebConf7. Hence, to conclude this unsolicited blog post, here it comes the dangerous monetary proposal: are you traveling from Italy to DebConf7, Edinburgh airport? maybe from Milan Malpensa on June 14th 2006 (12:50), going back there on June 24th 2006 (14:45 from Edinburgh airport)? Then buy my plane ticket, it's cheap! Only 50 !!

2 February 2007

Stefano Zacchiroli: surprising xslt

XSLT's principle of greatest surprise Ruby and Python both claim to adhere to the principle of least surprise, that is: things should work as the human coding in them expects to. But for today the rants about that are on hold. Still, in the last few days I made up my mind on something related: XSLT adheres to the principle of greatest surprise. /me stops at 50% of my ~/Desktop/xslt-sucks.txt If only CDuce had a syntax I'm able to remember ...

28 January 2007

Stefano Zacchiroli: ocamlnet 2.2 out of new

Ocamlnet 2.2: out of NEW Some news on the packaging efforts for Ocamlnet 2.2. Both Ocamlnet 2.2 and cryptgps (a new Ocamlnet dependency) just passed through NEW-processing. Hence the latter is now available in unstable while the former is in experimental. I do not plan to upload Ocamlnet 2.2 to unstable until Etch is out, since it introduces quite a lot of changes. If you want to give it a try get it directly from experimenal.

15 January 2007

Lucas Nussbaum: ruby & native threading

Stefano Zacchiroli said:
To balance this, according to my first read of Ruby’s threading capability, it’s my impression that not only at most one thread can execute Ruby code at a time (limitation shared by OCaml, due to the non-distributed nature of mark and sweep garbage collectors), but also a thread blocked on a syscall will block all other threads to run. Dumb Ruby threads (but I still hope I’m wrong …)
This is not totally true:

14 January 2007

Stefano Zacchiroli: tickets for debconf7

DebConf7: tickets bought! I did it: yesterday I bought the plane tickets for DebConf7. I'll arrive there (from Milano Malpensa, MPX) on June 14th for leaving on June 24th. This year I decided not to attend the DebCamp since the beginning, partly due to the likelihood of university duties in June (and 3 more days can mean a lot), and partly because I'm convinced that the first days of DebCamp are not that productive/fun. Last year that was the case .... and no, not only for the network issues. Other Italians attending the conference and willing to share the plane trip can have a look at my post on debian-devel-italian@l.d.o for more info. See you in EDI. P.S. do we already have a Wiki page for stating who/is-arriving/when? Or are the information submitted in Pentabarf going to be disclosed anytime before the conference?

12 January 2007

Stefano Zacchiroli: functional ruby s threads

Ruby's thread more "functional" than OCaml's I'm relaxing some of mine initial bad impressions on Ruby. This is mainly due to the fact that the Ruby book I ordered on Amazon finally arrived (after a lost shipment, the first of my whole customer story with Amazon, happily they refunded me completely). In the book I managed to find a rigorous (though not formal as I would have liked) description of Ruby's semantics and even some snippets of the grammar of the language (Rant: how the heck is possible that a modern language like Ruby lacks a complete description of its grammar????). Anyhow, now I'm feeling more comfortable with the language and I'm starting to put in the right setting some of what I believed to be its rough edges. Today, playing with Ruby's threads, I discovered a function in Ruby's Thread API that I can't help noticing is "more functional" than corresponding features in the Thread API of my beloved OCaml. Using Thread#value indeed the value returned by the last statement executed in a given thread can be retrieved (note that in Ruby every statement returns a value: yet another functional pearl). It's like a Thread#join on steroids. In OCaml the only way (that comes into my mind) to do the same is establishing a (typed) channel among the thread creator and the created thread, sending a return value from the thread, and having the creator block on the matching receive. Or (please don't) ... you can use a global variable ... Neat Ruby threads. To balance this, according to my first read of Ruby's threading capability, it's my impression that not only at most one thread can execute Ruby code at a time (limitation shared by OCaml, due to the non-distributed nature of mark and sweep garbage collectors), but also a thread blocked on a syscall will block all other threads to run. Dumb Ruby threads (but I still hope I'm wrong ...)

8 January 2007

Stefano Zacchiroli: vim lbdbq plugin

Querying Lbdb from Vim In spite of my attempts for replacing Mutt with Evolution I gave up for several reasons, mainly in my experience Evolution isn't stable enough with huge mailboxes: it crashes often and is painfully slow. Now I'm back at using Mutt, but at least I've learned to use the Evolution address book which is nice, integrated with other Gnome apps (gaim for example), and strictly more powerful than the Mutt address book. I'm using lbdb to query the Evolution address book from Mutt via the external address queries mechanism. But that sucks in various ways:
  1. names should be expanded one by one hitting CTRL-T, changing the headers in Mutt one by one (first To:, then Cc:, then ...)
  2. I like to edit headers while composing the mail in Vim, but names written there in the various recipient lines (To:, Cc:, ...) are not handled properly. For example if I fill the To: line with To: name surname when exiting Vim mutt will collapse it in a header To: namesurname which can no longer be passed successfully to lbdb
My solution is lbdbq.vim a plugin for Vim which enables expansion of contact names directly withing Vim (normal/insert/visual modes). It supports multiple matches asking interactively the user to choose among them and can be used to replace all contacts in one or more recipient lines at once. It's new, so it's probably bugged. If you sit like me at the intersection Mutt/Vim/Evo-address-book please test it and give me some feedback. As a side note, this is the first time I program in vimscript after the release of Vim 7.0. I have to admit that is really becoming more pleasant than what it used to be. Lists and Dictionaries really (try to) bridge the gap between pre-7.0 vimscript and programming Vim with external languages (python/perl/...). Update #1: lbdbq.vim 0.2 released with an important bug fix for RFC822 fields continuation line and other minor improvements. Update #2: Vimscript #388 provides similar features to lbdbq.vim and is older. Still lbdbq.vim is more feature-complete, have a look at the Discussion page fore more info.

Next.

Previous.