Search Results: "miriam"

8 November 2007

Miriam Ruiz: C and multithreading

Reading mig21’s weblog, in which I often find really interesting stuff, I found Ian Lance Taylor’s article “Single Threaded Memory Model“, which kind of bothers me a bit. It reports a recent discussion on the gcc and LKML mailing lists about how C compilers, gcc in this case, optimize for single threaded code, sometimes leading to counter-intuitive results which won’t work properly in multi-threaded software (leading, for example, to race conditions). The interesting part is that the C language standard, which in general describes a single threaded model, apparently says nothing about when values have to be written to memory. Thus, this kind of optimization seem to be perfectly valid. Linus Torvalds complains about gcc developers taking more care about “what the spec says” than about real problems, but the fact is that if those kind of optimizations are valid according to the specs, there’s no guarantee at all that it won’t happen with whatever C compiler you might be using. To prevent this kind of behaviour in standard C, according to Ian, the variable needs to be marked as volatile, or it needs to use an explicit memory barrier. The moral in this case is that multithreading might not be as easy as it seems and should be handled with caution.

29 October 2007

Miriam Ruiz: Journalists avoiding writing about Free Software?

Some people around Free Software tend to be too enthusiastic and very critical, both with themselves and with other people. Whenever Linux or Free Software appear in the media, people who wrote the articles are severely and merciless attacked, and the criticism is not always constructive. It might be hard to properly talk about these topics in a non-technical magazine or newspaper targeted towards the mainstream population, not only because they have to explain it in an understandable way for non-initiated people, but also because they’re usually very limited in space. Thus, many times the articles are inaccurate or incomplete, not always being a journalist’s fault, but also of the conditions in which the article has to be published, as well as the time they have to develop it. Someone, a journalist, told me this last weekend that she tries to avoid writing stuff about Linux herself due to the harsh attacks she’s subjected to from the Linux and Free Software activists as soon as she publishes anything on that topic. I kind of understand that. It might be the same than when you write a program and release it as Free Software, and then some people get too demanding and aggressive towards you for not having done a perfect program and submitting to their wishes, instead of thinking about the effort invested in what is done. I seriously think that we might be losing a lot of power and strength if we attack so much the media that support us than they fear us enough to avoid these topics. We’re on the same team, and it wouldn’t be so bad to be a little understanding and supporting of them, and rely on constructive and friendly criticism instead of treating them as if they were the enemy. They also have feelings, you know.

20 October 2007

Miriam Ruiz: Public transport is not reliable

Yesterday night, a taxi driver was killed in Madrid. The rest decided to go on strike. No taxis are available in the whole city. I had to get my plane to Lyon at half past seven, the check-in finished at 07:00. Metro starts at 6:00, and the airport is quite far from here. Thus, I got to the airport some minutes after seven. Only some minutes, 4 or 5 maybe, but enough for the check-in to be closed. Damn computers, when they decide something, it seems that all the humans can do is obbey. who is the tool and who the user then? I couldn’t get my plane. It doesn’t matter who I got to ask for help, no one seemed to be able to do anything. Computers rule. Check-in is already closed. I’m not the oly one who missed the plane anyway. I’d really love to be able to be in Lyon now. Next time, I just won’t trust public transport at all, I won’t try to get a plane that early and I will do the check-in through the Internet. Have a lot of fun all of you joining JDLL.

17 October 2007

Miriam Ruiz: OSI approves two Microsoft licenses as Open Source

The Open Source Iniciative (OSI) has approved two Microsoft license submissions: The Microsoft Public License (Ms-PL) and the Microsoft Reciprocal License (Ms-RL). The Open Source Definition was written after Debian Free Software Guidelines, also by Bruce Perens, and they have a lot in common. What is Hasefroch pretending with this movement? It’s not that I trust them too much, so I just don’t think they won’t have a hidden intention, but then again, they might not have it this time, who knows. It might be just a marketing show, having two OSI approved licenses, but not using them to release any significant code, or maybe they’re discovering that Open Source/Free and Proprietary Software are not exclusive and each of them might have its space. Or maybe… it was “Embrace, extend and extinguish“, wasn’t it? I’ve had a look at the licenses, and apart from some patent-related provisions, I don’t see anything in them that could make them non-DFSG-free, anyway. The difference between them is that the Microsoft Reciprocal License (Ms-RL) has a clause stating that you should release your modifications under the same license. Lets see what the future provides.

Miriam Ruiz: Weekend in Lyon: JDLL 2007

On 19th and 20th of October 2007 takes place “Les 9 mes Journ es Du Logiciel Libre” in Lyon, France, around the topics “Individual freedom and free software” and “Free Software for everyone”, the first of which will be analyzed from different point of views: legal, technical, historical, artistic, and others. The second will be addressed through different talks, covering many different aspects and areas of interests, including games. I’ve never been to Lyon before, I’ve been told it’s a really cute city, and I’m really looking forward to see you all, french guys, again there. :)

5 October 2007

Miriam Ruiz: Brand new tiny lappy

As I have been such a good girl recently, I deserved some prize. I’ve always been in love with tiny light lappys, so I got myself one from ebay. It’s a 10″ 800 MHz Sony Vaio that weights slightly above 1 Kg, which means that I’d be able to carry it to anywhere I want. Debian has installed smoothly on it, even though I’ve had some problems due to the lack of CD/DVD and floppy drives, and my inability to make Debian Installer start from an USB pen. Most of it seems to be working properly right now, only small configuration issues are still pending. I’m really happy :)

26 September 2007

Miriam Ruiz: Piklab in Debian

I’ve been so busy lately that I forgot to write about it: Piklab is now in Debian. I don’t know if any of you has done and development with PIC microcontrollers, but it’s not that there was a lot of free programs for doing so. Even now, it might be problematic depending on which hardware you have for programming them. In any case, Piklab is an integrated development environment for applications based on Microchip PIC and dsPIC microcontrollers similar to the MPLAB environment, which makes it easier to develop. It’s a real pity that we cannot consider the newer versions of SDCC as DFSG-free, due some non-commercial clauses, because it is a real nice companion compiler for Piklab.

23 September 2007

Miriam Ruiz: Burnout reloaded

Some time ago I blogged about burnout. Some of the factors that might cause it are an overwhelming workload and powerlessness to change something important to you. This means that you get emotionally very involved in developing something, and you feel that whatever you might do to achieve it just won’t be enough. I feel a bit powerless and also that whatever more I try to do just won’t improve the situation. Sometimes I have the feelings of being fighting against a big hard wall and that it’s not worth it, and that whatever big effort I might do just won’t be enough. Of course these feelings will probably fade a bit after sleeping and resting, but they’re sympthoms that are alerting me to slow down a bit and don’t get too emotionally involved in all the stuff I’m doing, and I should better not ignore them, if I want to prevent myself from burning out. It’ll be good to take an emotional rest from all this, but knowing myself I’d probably use the spare energy to get involved in yet more projects.

20 September 2007

Miriam Ruiz: Some artwork

I’ve had a look at DebianArt today, and it seems to have nice stuff. I’ve added a small contribution: three wallpapers and some logos. Someone might be interested in them, I guess. I’ve also added SVG versions of Debian logo and Debian-Women logo. It’s a nice feature to be able to upload the works in different formats, as my original ones are Gimp’s XCF files. The resulting PNG are not really optimal for modifications. I didn’t upload the original XCF version of two of the wallpapers, as they weight quite a lot and I don’t really know the policy of DebianArt about that. I’m still trying to find some time to finish my usplash theme. Some time I’ll be able to do it :)

17 September 2007

Miriam Ruiz: Storing data in $HOME directory

When packaging games, one of the operations I often have to do to the source code is modifying it so that it uses absolute file and directory names instead of relative ones. When coders develop for Windows, or when they develop their games to be able to play them from their home directory, they just would go that way and won’t care about it, but when the idea is installing the files in the system, the Filesystem Hierarchy Standard (FHS) must be respected, and thus things will need to be place in their proper directories. For read-only files, this is not a big deal, all that has to be done is replacing the relative file name in the file opening commands with the absolute one, doing fopen(”/usr/share/games/package/dir/file”) instead of fopen(”dir/file”). I usually prefer to do it like fopen(DATADIR “/dir/file”) and set DATADIR from the Makefile, with a -DDATADIR=\”/usr/share/games/package\” switch added to the CFLAGS, and maybe also setting it inside the code if it’s not previously defined (#ifndef and so). There are some files and directories in which doing this is not possible, because they want read-write permissions. This files include saving the configuration, hiscores, new levels created with the game editor, game saves and so. They might be moved to some directory under “/var/lib/”, and create a new group en the system so that it’s writable, and so on. I don’t like that approach a single bit. I prefer to move all tthat data to the user’s directory. This is not as straightforward as it was for read-only data, but it’s not really that difficult anyway. It would be more or less like:
#ifndef _WIN32
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include <pwd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#endif
#ifndef _WIN32
char file[PATH_MAX];
char *home;
struct passwd *passwd;
if (!getuid()   !(home = getenv("HOME"))) 
passwd = getpwuid (getuid());
home=passwd->pw_dir;
if (!home) 
fprintf(stderr, "$HOME is not defined.n");
exit(-1)
 
 
if (strlen(home) > PATH_MAX - sizeof("/.package/settings.ini")) 
fprintf(stderr, "$HOME is excessively long.n");
exit(-1)
 
snprintf(file, sizeof(file), "%s/.package", home);
mkdir(file, S_IRWXU   S_IRWXG   S_IROTH   S_IXOTH) == 0;
strncat(file, "/settings.ini", sizeof(file)-1);
#else
char file[21];
snprintf(file, sizeof(file), "./Data/settings.ini");
#endif
FILE *f = fopen(file, "w");
Sometimes you also need that the files are already created, you can check if they already exist with stat(), and then acting accordingly, either creating them from your C code, or maybe triggering a system() shell call whith whatever is needed.
struct stat stat_buf;
stat(file, &stat_buf);
if (stat(file, &stat_buf) == -1) 
int settings_fd = creat(file, O_WRONLY);
close(settings_fd);
 
NOTE: I’ve updated the code to add some suggestions. Thanks to Gon ri Le Bouder and Nico Golde.

10 September 2007

Joey Hess: video games: competition, classicism, emulation

Biella blogged about King of Kong, a movie about classic video games. I also enjoyed it, although I felt the rivalry and competition cheapened it (while also certianly giving it more of a story to tell). I wish I could enjoy competition the way Bubulle so eloquently describes. For me though, getting to the end of a game is more like raching the end of a long hike, whether you beat someone to the end or not doesn't matter, it's the personal experience of getting there that counts. Anyway.. The reason I'm really responding to Biella's post is because of the question she asks:
But what I also found amazing was how the movie conveyed the persistence of the (older) game. They live on in the lives of individuals and collectives, despite the rise of a whole, new class of games that are much more popular today. I am not sure how much longer they will live on, or if the movie was also inadvertently portraying the rise and slow decline of an era that will, in another 50 years, become part of the archive of dead history.
My guess is that the classic games will persist past the lifetime of their hardware, and that they'll keep on appealing to at least a small percentage of new gamers. Actually, I think they're more popular now than they were fifteen years ago, partly because the commercial gaming industry has moved further away from what the old games are really good at, and partly because emulation is so good that they're available to everyone. And maybe even partly because to really appreciate Kenta Cho's games or many of the other new non-commercial games that Miriam keeps finding and pushing into Debian, you need to know the classics. Even if you do suck at galaga, and even if the only version you've really played is xgalaga, which lacks ship capture. :-) I never played games in machines that ate quarters as a kid, because I didn't have many quarters, and it didn't seem to be a good value. I put one of the few quarters I've ever spent into a video game machine earlier this summer, in the corner of the Mus e M canique that's dedicated to sorta-old video machines (as opposed to ancient, lovingly restored arcade games). It was a metal slug machine. I've beat metal slug under emulation, but only at the expense of many emulated quarters. Another quarter went into vintage game of pong. I enjoyed playing them both on real hardware, but emulation was good enough for both of these and for many other games in between.

9 September 2007

Miriam Ruiz: Warsow: The problem of having non-licensed data

I sadly read that Warsow are having internal problems. It’s a pity, because it’s a great free game (even with its non-free game data), and they deserve the best. In any case, I just wanted to talk about this because of something that’s quite usual in the development of free games: having non-licensed data. According to tigerchas’ note: “The non-licensed state of warsow media is what has allowed this to happen - and the team is now working on rectifying this. This whole episode has been very unsatisfying and has highlighted the problems of not having a global media license for warsow”. I’m not worried about the future of the game at all, it’s not that the reason I’m writing this entry. As they also say in the same post: “Don’t let this announcement affect you too much, warsownians. warsow has hit minor stumbling blocks in the past and this is simply another. Maps can come and go. Rest assured that the current mapping team will be working on other great maps for you to enjoy”. What I wanted to point out with all this, especially to games developers and teams, is that even when licenses are boring stuff and many of you might think that you can safely ignore them and it won’t affect you, especially when you start the development, reality shows that these things happen. I wish all the best for the Warsow team anyway, and to go soon over this. Keep up the good work! :)

6 September 2007

Miriam Ruiz: More abstract shooters (or shmups)

Following the path created by Kenta Cho, many other game developers, most of them Japanese, are doing really interesting and cute games. This time is HIZ the one selected. Even though his games don’t have the high speed feeling from Kenta’s, they definitely are interesting to play and really lovely visually: As usual, I’ve developed packages for those games for Debian SID, but in this case they’ll probably take some time to get into Debian because it’s not totally clear that the music is DFSG-free, even though they’re gratis/free (as in beer) and they’re redistributable. Lets see how we solve that, if there’s no other way, we might need to replace those songs, we’ll see. They are coded in D language too, BTW.

4 September 2007

Miriam Ruiz: Kenta Cho games, as promised

Peter De Wachter and I have been packaging most of Kenta Cho’s games in the latest weeks. As it might take a while for them to reach Debian repositories, mostly because they’ll have to wait for libbulletml to go through NEW queue, and afterwards they’ll have to go through the NEW queue themselves, I thought it might make sense to have them available online. Some of them will need libbulletml, you might as well download it too if you’re interested. So far, the following games are available: I hope to finish Val & Rick soon too. We probably won’t package Suzuri and Masashikun Hi!, as they’d probably be quite difficult to port to Linux. Noiz2sa is already packaged in Debian (well, so is rRootage, but I will upload the newer version soon, I just don’t want to harass my sponsors too much, so please be patient). The games can be temporarily downloaded here, and libbulletml here. libbulletml has been coded in C++ by shinichiro.h, while BulletML design is Kenta Cho’s. You also have packages available for 360 degree barrages (bulletss) and White barrage (sdmkun) by shinichiro.h. The former is a small demo for libbulletml, while the latter lets you see and experiment the power of the language.

1 September 2007

Miriam Ruiz: Stormbaan Coureur

The name Stormbaan Coureur means “Assault Course Driver” in Dutch. It was previously called Sturmbahnfahrer as a joke, playing with the words in german, but some people considered that name offensive, and the author, Bram Stolk, kindly decided to change it. Put a car into a course full of obstacles, and give the whole world a physically realist behaviour, and you have the basic design of this game. the game also has support for quad buffer stereo and passive stereo setups. The game has only one track for practice and another one for competition right now, but once more tracks are developed, I’m pretty sure many people will stick to it. The package for the game has entered Debian repositories today, so it’ll soon be in the mirrors, available for everyone. You can see the game in action in this MPEG movie. Impressive, isn’t it? :)

30 August 2007

Miriam Ruiz: Finally Gnash 0.8.1

The 4th and hopefully last alpha version (I expect the next one to be a beta) of Gnash, the GNU’s free Flash player has been released yesterday. There are many important changes, but the most relevant thing you’ll notice is that it’s by far more stable than the previous one. Gnash supports right now the majority of Flash opcodes up to SWF version 7, and a wide sampling of ActionScript 2 classes for SWF version 8.5. The program is still under heavy development and Flash version 9 and ActionScript 3 support are also being worked on. Debian SID has right now one of the latest release candidates for this version, and 0.8.1 will probably be in the repositories soon. As it is expected that in one or two versions it will be able to select between the different possible backends, we’ve decided to have just one package with pre-selected options in the repositories. AGG is probably the most conservative version that will work for everyone, and even though OpenGL might be better for certain graphic cards, we’ve decided to play safe. In any case, I’ve also made some unofficial packages for those who want to try different configurations of Gnash, like, as I said, using an OpenGL backend.

29 August 2007

Miriam Ruiz: Internationalized hex-a-hop

The first serious i18n effort for the Games Team is now bearing fruit. The newer version of the game hex-a-hop is now entering Debian. All the merit goes to Jens Seidel, who has developed the patches for making it work with SDLPango and to support all the spectrum of Unicode characters, instead of the limited ASCII set included in the game, as well as to all the people of Debian i18n who have done the translations (Helge Kreutzmann, Damyan Ivanov, Enrique Mat as S nchez, Bas Wijnen, Piotr Engelking, Yuri Kozlov and Clytie Siddall). The game has already been translated to Bulgarian, German, Spanish, Dutch, Polish, Russian and Vietnamese. Thanks Jens, both for taking care of the changes in the code needed to achieve this, and also for coordinating all the t10n and i18n process, as I don’t really have much experience in those areas.

26 August 2007

Miriam Ruiz: D compiler in Debian

gdc has finally entered Debian repositories (thanks Arthur Loiret, Matthias Klose, thanks GCC folks!). It’s time to start putting the rest of Kenta Cho’s games into Debian. Two of them, A7Xpg and Gunroar, are already in the NEW queue, some others are on the way. Kenta Cho is most famous for his shmups or shoot ‘em ups, mostly featuring abstract reinterpretations of retro classics with each game having a specific unique feature and using randomly generated levels. rRootage and Noiz2sa are already in the archive, since they were coded in C++. Thanks to Javier Candeira, who introduced me to Kenta Cho’s world.

24 August 2007

Miriam Ruiz: GoPlay!

Thumbnail of GoPlay! v0.1DebTags is a really nice system for clasifying programs, it allows you to select which packages you want by being able to select between many different kind of labels, that are used to categorize them. Anyway, there is sitll a long way to go if we want to make it easier for users to locate the programs they want, and that goes for games too. In DebConf7, in Edinburgh (Scotland), Enrico suggested me that we could do a GUI for searching the games available in Debian, using his DebTags as the backend. Starting there, using his libept library for accessing the data, FLTK (Fast Light Toolkit) as the toolkit engine, and C++ as the programming language, we’ve been slowly developing it. The version 0.1 of the program is ready, and hopefully will be in Debian soon. We’ve decided to create a standalone package with the thumbnails, that could also be shared with other programs, and the package for goplay itself. Both are now waiting in the NEW queue, and hopefully soon they will be in Debian. Of course, more snapshots of the games shall be taken, and there’s a lot of room for improvements, but at least it’s a starting point. For using it, you’ll need to install debtags and ept-cache in your system, and set them up properly, and possibly also the results from popcon, if you want to have that data in the GUI too: apt-get install debtags ept-cache
debtags update
mkdir /var/lib/popcon/
cd /var/lib/popcon
wget http://popcon.debian.org/all-popcon-results.txt.gz
ept-cache reindex

23 August 2007

Miriam Ruiz: New Game: Battle Tanks

Battle Tanks is a GPL’ed multiplayer game with original cartoon-like graphics, cool music and inspired in the old arcade games. You can choose one of three vehicles (tank, Shilka, and rocket launcher) to try to eliminate your enemy using the whole arsenal of weapons you have available (four types of ammo, six types of rockets, landing troops, mines and so on). The game supports keyboard as well as a gamepad. There are ten multiplayer maps (seven for deathmatch and three for cooperative mode) in different locations (city, village, forest, desert,…) and a game world that reacts on player. Roads have traffic, buildings can be destroyed, weather effects are simulated, etc. I’m not usually into packaging war games, but I think this is cute enought to make an exception, and in any case I don’t think playing it will hurt anyone, apart from some prides, if they find out they’re not as smart and quick as the enemy. I hope that the game enters Debian repositories soon, but meanwhile you can find some packages for the game already built for SID for i386, powerpc and amd64 architectures (the source for the packages is here).

Next.

Previous.