Preachy post about how I'm not preachy on the subject of open access.
06 May 2017
26 December 2014
Why I use MOOCs
I saw a Google Plus post saying ‘I hope to hear less about MOOCs in 2015’. Well, I hope to hear more. Here's why.
28 October 2014
Why Do We Fail?
What is there to do if a problem refuses to be knocked down? There's a generic problem solving strategy for that.
13 October 2014
18 August 2014
17 August 2014
ROSE 1995
What I remember from the first computer-related conference I attended.
07 August 2014
18 July 2014
04 July 2014
03 October 2013
Nature and Computation
Physicists look for the simple rules of our world; computer scientists look for the possible worlds that come out of simple rules.
29 June 2012
04 January 2012
Seven Books that Everyone Should Read
If you want a solid background in the theoretical parts of computing, then you should read the following books. The best time to do so is in high-school and as an undergraduate. But never is too late.
16 September 2011
Education, Sport, Entertainment
Let's move on from etymology to a more interesting issue: What do these events have in common? Both are contests whose participants demonstrate skill levels that seem super-human. For a normal person, just watching the performances can be inspiring and motivating. I believe that this last similarity is key, because it is what makes the events good.
Let me explain.
If two people say that 'X is good,' they may, nevertheless,disagree. For example, if two people say that Natalie Portman is good, they may mean different things. One may mean she is a good actress but not a particularly good scientist; another may mean she is a good scientist but not a particularly good actress. It is therefore important to say what I mean by good. Briefly, something that benefits humankind.
So, what exactly is good about the Games? It can't be the extra pollution caused by hordes of people flying to London. It can't be the overcrowded tubes, which will make my life miserable. Could it be the entertainment it provides to so many people? It could, if only it were less expensive. I'm sure there are cheaper forms of entertainment, such as watching silly videos on YouTube.
So what is it?
Every performance, such as a movie, a dance, or a football game, makes people feel good while watching. More importantly, some performances have a lasting effect. Some movies haunt you for a long time and make you think about certain aspects of life. Beckham and Hagi inspired a whole generation to play football (in UK and Romania, respectively). That is one healthier generation than it could have been. Yes, the effects of one particular performance on one particular individual are small, but the effects add up.
In my mind, by far the most important contributions to society of the Olympic Games are the following.
- promoting exercise and hence a healthier life-style
- promoting fair-play
Identifying elites? A means to an end. The skills that awe us are not even the skills most useful to society. Schumacher is a good driver, but do we really think it would be good for society if all drivers would have his skills? The bus driver who takes children to school for 40 years without any accident is less awe inspiring, but his skills definitely benefit the lives of the many children he transports. Yes, there is some correlation between the two skills.
And so it is with intellectual contests.
07 December 2010
Old and New
This is an unusual post—imprecise, written late in the night, with no apparent purpose, and no apparent question. As I said, it is unusual. Not for the web, but for this blog.
All else being equal, and sometimes even when all things are not equal, some prefer old over new and others prefer new over old. Suppose you may choose between reusing a piece of code and writing it yourself. Suppose further that you have no objective reason to believe one option is better than the other. It is not clear that reusing old code will ensure you will have fewer bugs to fix in the future, since, obviously, you are an awesome programmer. (After all, you are reading this blog and recommending it to others. Nah. Forget that. I'm drunk. Really.) Back to the subject: You are awesome. I'd like to meet you. No. That was not the subject. Oh, right! So it's not clear that the old code you may reuse has very few bugs. There is also no obvious reason why you should be able to write more efficient code. That may be the case if your problem is a specialization of a general problem solved by the existing code. But that is not the case. Your problem is just as general as the existing library was designed to handle. But, wait! The library is there. Surely it must be quicker to just use it? No, it is not clear. Apparently you must coerce your build system through some hoops in order to accommodate the existing code. And you do need to write a "little" glue code. Just how little is "little" is hard to say. In short, as I said, you really have no idea of what would be better: to reuse or to write from scratch?
Yet, in spite of all I wrote above, I bet you know what is the right thing to do. You feel like telling me, like it is obvious. However, I am willing to bet that all your arguments have a counterfactual or philosophical flavor. Depending on who you are, you may feel like telling me that reusing code is the right thing to do, because it surely cannot be right for humans to keep reinventing wheels. We need to focus on the new stuff, right? "No. No. No." yells the other reader. It is much better to write the code yourself. In the long run, your purpose is to become a better programmer, and not writing the code yourself means giving up a great learning experience.
The point is that most people either prefer the old, or prefer the new—very few are indifferent. I happen to be in the former camp, but this is beside the point. I wonder if psychologists know what I am talking about.
19 March 2010
Adding is in Nature’s definition
Below is one of the funniest and at the same time saddest course descriptions I ever saw.
As an undergrad, I took a course of Tudor Niculiu. I believe the course was supposed to be on OOP, but the lectures gave us some sort of introduction to philosophy. Luckily, there was no exam—we just had to write a small C++ program. Then we had to print the program (poor trees!) and go to an oral examination where the lecturer wanted to see, apparently, if we have any idea about how the program works.
A colleague once told me that "Niculiu used to be normal, but then he had an accident that affected his brain." If that's true, then it is quite sad. In any case, I have trouble understanding how someone who describes his course as follows is allowed to teach in what is supposed to be one of the best colleges in Romania.
Algorithms and Data Structures:
Adding is in Nature’s definition. However, the inverse operation, subtraction, needs negative numbers. We close mathematically the Nature to an integer that opens the physics for recognizing the limits of the Reason - electrons, in the meanwhile, attracting marvelous engineering solutions for different technologies. Electronics is among the most advanced engineering sciences; therefore, it has to be practiced by the most conscient human beings. Recurrent addition is multiplication, a most important parameter for the Nature. Mathematics closes the integers to the multiplication inverse, defining the rational numbers. These are not more than the naturals, but we can do many useful things with the Reason, from strategy to computer. So "what else do we need?" say too many, forgetting that the limits of the, so-called, pure Reason are caused by the fact that it bounds itself to close the Adaptability to discrete/ sequential operations. Thanks God, neither mathematicians, nor physicists accept all-happiness. They discover in three ways - order, algebra, analysis - which assisted all of them to think together, the power of continuum and that of the patience. In this context, “mathematicians and physicists” means the theorem, natural laws, or even new approach discoverers, and more, the engineers that understand the essential of mathematics and of physics.
To his credit, in the first part there's a glimmer of the (nice!) axiomatic way of defining numbers.
15 October 2009
Time, learning, teaching, markup
A rant about blog-writing technology.
This term I am not teaching so that I can focus my energies on writing a thesis. Instead, I found other creative ways of wasting time. I have recently succumbed to peer-pressure and started using Facebook and Twitter. I am also writing blog posts.
I realized recently that my knowledge about reducible flowgraphs is shallow. Normally I’d go and read about them from a textbook or some old articles and perhaps even do a few exercises. This time I decided to apply an advice I heard often: “The best way to learn a subject is to teach it.” Since I don’t teach, the next best thing is to write a blog post about it. (That’s not entirely true: Even if I would teach a blog post would be a better option, because I’m usually either demonstrating and have little say on the content, or I’m in charge of a course on a subject like Unix programming — good luck with fitting graph theory in there.)
The obvious question is: Why is this post not about reducible flowgraphs and instead it rants about an inexistent post about reducible flowgraph? OK, perhaps phrased like that it isn’t quite ‘obvious’. Maybe this works better: Get to the point!
Well, I’m technology frustrated. The mechanics of writing and publishing should take an insignificant amount of time compared to the time it takes to produce the content. Alas, that’s not the case when you want to convey information using:
- text
- drawings
- code (in a programming language)
- (math) formulas
Let’s see what’s available. (La)TeX is very good for text and formulas. You just go and write your text. A new paragraph is achieved by 2 enter keys, marking up a block of text with italics takes 5 extra characters, inserting a link takes 9 extra characters. For formulas, it is superb: I can typeset ab with 5 keys, including the 2 delimiters. (If you think I’m crazy to count keys, wait until I tell you how many you need in the xML family of languages.) For drawings (La)TeX is again very good if you use the TiKZ package. Describing pictures in that language is so cool that I often fantasize about using it to introduce kids to programming. For code, the LaTeX(-only) package listings does a decent job: You have to bracket the piece of code with the right environment (34 keys), but sometimes you need to configure it to get nice results.
However, there is a big problem with LaTeX: browsers don’t know how to render it. Browsers know how to render xML: HTML, XML with style-sheets, MathML, SVG, and so on. Unfortunately, writing in these languages is a nightmare because they were designed to be easily consumed and produced by programs, not by people. Of course, you may use an editor that hides the details, but there are two problems with that approach. First, I know of no good editor that handles all those four types of content. Second, switching between keyboard and mouse takes time and disrupts focus so wysiwyg editors are out of the question for me. The corollary to that is that what I want is a language that lets me type easily the content. After that is available, fancy editors can bring minor improvements.
But let me be more explicit about why using xML is horrible. For text it is fairly OK. A new paragraph is achieved by a minimum of 3 keys (or 7 keys if you want proper bracketing of tags) but you usually type the 2 extra enters anyway to have the paragraphs nicely layed out while editing. Marking up a block of text with italics takes 7 extra characters. Inserting a link takes 14 characters (5 more than for LaTeX, which is ironic considering that when people think HTML they think links). But it gets worse. The xML way to typeset ab is to use MathML and it takes… 89 characters! (Plus, locally the file must have the extension xml so I’m not sure it will work on Blogger.) Call me crazy, but I’m not willing to trade 5 characters for 89 characters no matter how better structured and more explicit the latter is. For drawings there’s something called SVG, which is similarly verbose, although perhaps not quite as bad when compared to TiKZ (or metapost). For typesetting code the xML solution is actually quite good: You just put the code in the proper environment (31 keys) and then you let a script do its job. I never saw it fail (although the implementation is quite hackish).
There is of course the option of writing LaTeX and converting that to xML. There are a few tools around to do just that. The best, in my opinion, is HeVeA. It handles text perfectly. For TiKZ drawings you can add an environment (again, around 30 keys) and it will make PNGs out of those. Cool. For formulas it uses plain HTML (no MathML) so the result works on older browsers but looks uglier than it could on newer ones. (MathML support is experimental, and it doesn’t work on my files.) You also have the option of transforming selected formulas to images (just like you do with TiKZ pictures). This makes sense if the formulas are complicated, in which case the HTML-only rendering is likely to suck. For code, HeVeA has some built-in special handling of the listings package, which produces results that I find quite ugly. HeVeA is almost ideal, except it is hard to customize, even though it’s supposed to be easy. For example, I want to translate the lstlisting LaTeX environment into a pre block with a certain class and let the script I mentioned do the syntax highlight. Why? It looks better and it is backed by Google, meaning that it’s likely to be more up-to-date than the internals of HeVeA. (HeVea has one great developer, but he is still one.) This customization seems to require changing the OCaml code of HeVeA and that is not easy. I also want to change some uses of df and dd tags and some purple (yuck!) things it generates but, again, I need to spend some time to figure out how to do it: It’s not easy. Of course, one solution for code is to turn it into images: That would look OK (though no colors) but it precludes readers to do copy and paste.
Another LaTeX to HTML converter is latex2wp. It handles text OK. It handles formulas by exploiting Wordpress support, which makes it unusable on Blogger or other sites (unless you are willing to piss off Wordpress for using their resources to drive traffic to a competitor). This brings up another point about HeVeA: If you are a Wordpress user it makes sense to exploit their support for LaTeX. But, good luck with convincing HeVeA to translate $a_b$ into $latex a_b$. Finally, if I remember correctly, latex2wp has no support for drawings or code.
HeVeA is a successor written by Luc Maranget of a convertor written by the Xavier Leroy. (And, if you don’t know who the latter is, then you are not a computer scientist.) Xavier remarked that an ideal solution for writing technical documentation would be to design a new language that is easily convertible to both LaTeX (to produce printable PDFs) and xML (for easy viewing in browsers), but practically most people writing technical stuff would prefer to use LaTeX and will be reluctant to learn a new language. That was before Wikipedia: Its markup language is convertible to both HTML and PDF (through LaTeX?). Alas, I think their tools are not publicly available. (If they are and are easy to use on Linux I want to know!) Supposing that the tools are available, there is a bigger problem: While text, code, and math are supported, drawings have to be written in the verbose SVG.
That was the motivation. Now comes the challenge.
Design a concise language for describing documents with text, drawings, code, and formulas. Make it feel familiar by having syntax similar to existing languages. Implement translations to LaTeX and xML. Make sure the implementation is very easy to customize. (Keep in mind the failings of HeVeA in this area.) The usage of the tool should be as easy as tool -tex docname.
Now, why didn’t I think of using that as a project when I was teaching?
PS: In case you wonder, I wrote this in LaTeX and used HeVeA.
27 September 2009
Celebrity gossip and physics mix well
A short review of Gina.
I have recently finished reading Gina says a (free) book by Gil Kalai. My opinion: not light bedtime reading! Indeed, I started reading at 11pm and finished around 3am... because I couldn't stop. But I was joking: It is fairly light reading. It is also quite depressing and should be hidden from high-school students trying to choose a career path. (Yes, I'm joking again: I don't really think hiding data is a good way of attracting kids to science.) On the other hand, I think it has great potential in popularizing some nice mathematical results.
If you like gossip about celebrities you will certainly love this book!
30 May 2009
BDD sucks, BDD rocks
Whining mode.
BDD (Behavioral Driven Development) is the most idiotic thing I've ever heard of. It is a buzzword that stands for something I completely don't understand. So, how can I say in such strong terms that it is idiotic if I don't even know what it is about? Simple: It breaks Google. Whenever I search for information about BDDs (Binary Decision Diagrams) I find complete garbage. OK, it's not that bad: Scholar gives sensible results.
07 April 2009
Startups and the Crisis
Short reviews of a few websites.
For the past few months I've been told there's an economic crisis. I've also been told about a few startups. I would have thought that in hard times people are less inclined to risk. Can anyone explain me why the opposite seems to hold? While you think about that, I'll list the sites:
TaskWriter is a site for keeping track of what you need to do. Once you go to the website you see a "please wait while I'm loading" sign and while waiting you can read that you should use this site because it's the fastest. Now, that may sound ironic, and it is. Still, once the login box appears it gets much quicker. Registering is hassle-free. Once you get in you see that the main functionality of the website is to keep track of TODO lists where items are one line long. The obvious concern is: "Do I want my TODO list on some random website?" I guess the answer depends on whether you have something to hide.
EasyTrack is a site for Romanian companies that have many cars and want to track them. Why Romanian? Probably because maps are rented and it's expensive to rent good maps for everywhere. Why track the cars? To optimize costs. I hear that giving your employees cars as a perk may be costlier than it sounds. It's probably easier to abuse than a free lunch, anyway.
Balaurul (The dragon) is a search engine for jobs… in Romania. Now I finally see some correlation with the economic crisis: More people must be looking for jobs. I wonder if similar search engines are already successful in other countries. The business model is a little too Google for my taste: simple web design, attract ads. Usually cool stuff is different.
Disclaimer: TaskWriter and EasyTrack are the startups of two of my friends from college. I also met two of the three people that started Balaurul.
Others: My brother-in-law is starting a software development company, after being CTO for a long time in a company that provides software solutions for restaurants and hotels. Finally, three of my students will work for themselves for a while.
I hope many of these will be successful. I really do. All the people involved are high quality. Which makes me wonder what would happen if they would all work together. This must be a key ingredient in making a successful business: Getting many good people to work together. I wonder how you do that.
28 March 2009
Blogs by Researchers
Which researchers are more inclined to blog?
Methodology:
- pick a conference/workshop
- go thru the program committee (PC) and search for the word "blog" on each homepage
- eliminate blogs that don't contain any Computer Science post in the last 5 posts
I do not include the blogs I know about that can't be found using the methodology above. Why? (1) If the same rules are applied to different communities then the results say something about the difference between communities. (2) I want to simulate what an outsider would be able to find with little effort.
Results:
ECOOP: Analysis, design methods and design patterns; Concurrent, real-time or parallel systems; Databases, persistence and transactions; Distributed and mobile systems; Frameworks, product lines and software architectures; Language design and implementation; Testing and metrics; Programming environments and tools; Theoretical foundations, type systems, formal methods; Versioning, compatibility, software evolution; Aspects, Components, Modularity, Reflection; Collaboration, Workflow. PC with 29 people. Blogs:
TACAS: Specification and verification techniques for finite and infinite-state systems; Software and hardware verification; Theorem-proving and model-checking; System construction and transformation techniques; Static and run-time analysis; Abstraction techniques for modeling and validation; Compositional and refinement-based methodologies; Testing and test-case generation; Analytical techniques for secure, real-time, hybrid, critical, biological or dependable systems; Integration of formal methods and static analysis in high-level hardware design or software environments; Tool environments and tool architectures; SAT solvers; Applications and case studies . PC with 29 people. No blog.
FTfJP: specification techniques and interface specification languages; specification of software components and library packages; automated checking and verification of program properties; verification logics; language semantics; program analysis; type systems; security. PC with 15 people. No blog.
STOC: algorithms and data structures; computational complexity; cryptography; privacy; computational geometry; algorithmic graph theory and combinatorics; randomness in computing; parallel and distributed computation; machine learning; applications of logic; algorithmic algebra and coding theory; computational biology; computational game theory; quantum computing and other alternative models of computation; theoretical aspects of areas such as databases, information retrieval, and networks. PC with 24 people. Blogs:
If you apply this to some other conferences I'd be interested in the results. Blogs are a good way for researchers to spread the important ideas in their specialized areas. The rate of researchers with blogs is very low.
[Edit] You may say blogs.py page, where page is the URL of a conference page that contains the program committee, to get a list of probable blogs. This cuts down the manual work a lot (but also misses some blogs, if the authors do not include "blog" in the link text).