Archive for Ноябрь, 2005
Quake 2 written in java
Guys from Bytonic have created a java port of open-sourced quake2 engine. It is using standard Java3D API and two different implementations of Java3D based on OpenGL. So apart from OpenGL the engine is all pure java. Although they have a benchmark page, I was interested to test it myself. So I downloaded jake2 (this is how the port is called) and original q2 demo version. I used q2demo1.dm2 to measure fps. I left all the settings at their default values except the resolution which I set to 1024×768, full screen. jake2 showed 212 fps, original C version resulted in 191 fps. The only thing that was unfair is that jake2 was based on quake2 3.21 sources and original demo I used was version 3.14.
I had a glance at the java sources too. Naturally, they don’t look like proper java sources but more like not very object oriented C sources. At the end of the day, this is a port from conceptually different language, not an original application.
The conclusion is whoever challenges the performance of modern JVMs is welcome to give jake2 a try and eat dirt
Автомобиль на газе
Posted by Alexey in Автомобили on Ноябрь 28, 2005
На днях болтал со старым кипрским знакомым, который уехал жить в Австралию. Речь зашла об автомобилях и он рассказал о своём. Оказывается, в Австралии популярны огромные машины, потому что:
- не тесно, не трясет
- ветром не мотает
- грузовики тебя видят
- при столкновении с кенгуру больше шансов остаться в живых
У этого знакомого FORD Falcon GLi, 4х литровый седан-чемодан. Переделанный на автогаз для экономии. Когда он это сказал, у меня возникли ассоциации с бывшей в своё время популярной у русских торговцев повальной переделкой «Газелей» на газ. Помню, как они при этом начинали плохо заводиться и постоянно ломались.
Мороз и солнце
Posted by Alexey in Life in the UK on Ноябрь 22, 2005
В последюю неделю погода у нас отличается тем, что сильно отличается. В смысле, от типичной в это время года, а, по-моему, и вообще от типичной для юга Англии. Прогноз погоды я смотрю редко, на Кипре в этом не было смысла, да и люблю я сюрпризы. В последнее время англичане на работе поговаривали о удивительно тёплой для начала ноября погоде, 12-15 градусов днём. А полторы недели назад выхожу я из дома, и не верю глазам — на стёклах машины толстый слой льда! С узорами, и всё такое! Я вам скажу, я не видел этого лет 5
Что делать-то??? Скребсти нечем. Не ожидал, если честно, я такого в этой стране. В феврале, когда мы приехали, утром тоже была отрицательная температра и даже шёл снег, но потом мне местные говорили, что такая низкая температура и снег в Лондоне — это аномалии.
void.class
Posted by Alexey in Java, Software Development on Ноябрь 22, 2005
Ha, another addition to my Things that I still discover about Java registry: Expression void.class is legitimate and results in a java.lang.Class instance representing void type. I did know that each primitive type had its own Class referenced as byte.class or char.class, but had no clue that you could do same thing with void.
IntelliJ IDEA 6 will have Websphere support!
Posted by Alexey in Java, Software Development on Ноябрь 21, 2005
Yow! According to «IntelliJ 6.0 (Demetra) Roadmap released» TSS article, next major version of my favourite and truly enjoyable Java IDE, IntelliJ IDEA will have support for IBM Websphere appserver. That would be a pleasant addition for me. Currently, I use a somewhat hacker’s approach to start/stop Webshpere instances on my computer. I intercepted the command line that WSAD (IBM’s IDE) is using to start integrated Websphere, and now use it to start Websphere from ant script. The major drawback is that sometimes server state needs synchronisation with the config files, which only can be done from WSAD. Also, re-generating deployment sources requires WSAD too. Although I am not sure these will be addressed in IDEA 6.0, it is a good step forward for such a great IDE.
Каникулы в Северном Уэльсе: день 3
Posted by Alexey in Leisure, Photography on Ноябрь 20, 2005
После небольшого перерывчика решил написать о третьем дне нашего отдыха в Северном Уэльсе. С ходом времени всё забывается, поэтому история будет менее красочной.
День 3, понедельник, 24 октября 2005
День этот, по причине пасмурности, мы решили провести недалеко — погулять по берегу моря. Ничего особенно примечательного для глаза мы от побережья не ждали, так как я смотрел фотографии ещё дома — обычный серый берег. Путь лежал через прибрежный городишко Abergele, где мы решили по дороге заодно подкупить продуктов. Настроив навигатор на какой-то тупичок поближе к морю, мы выехали.
Stateless private methods: static or not?
Posted by Alexey in Java, Software Development, Work on Ноябрь 16, 2005
We had an short argument with a collegue at work recently whether the private «stateless» methods of a class (those that do not use instance fields) should be declared static or not. My opinion was they should be static because this marks them as stateless and not only eases code reviews, but provides a compile time safety against using instance fields. This used to help me when I was digging in numerous piles of somebody else’s code. In turn his argument was that
… if someone decides that they need some state in the method it is possible that they’ll make the mistake of creating or changing a static variable instead of creating an instance variable or removing static from the method signature. Also, static methods tend to create yet more static methods, like cancer.
I don’t like declaring all methods as instance methods just because there are people with procedural language background that can’t or don’t want to fight their habits. If the field should be an instance field, don’t make it static, it just won’t work in most cases!
I am eager to hear your opinions on the case.
Heron the Wise
Posted by Alexey in Photography, Всякое on Ноябрь 15, 2005
Here goes Heron the Wise who knows no doubt and is above all vanity:

Toyota Шу: взгляд снаружи и немного изнутри
Posted by Alexey in Leisure, Автомобили on Ноябрь 14, 2005
Выложил несколько снимков Шуриковой Toyota Avensis для тех несчастных, кто не может увидеть этот пепелац «лично». Обратите внимание — багажник designed for kids
Speed limits
Posted by Alexey in Автомобили on Ноябрь 8, 2005
The topic of acceptable speed in a XX mph limit zone in the UK seems to be quite popular and I hear my friends asking me same question over and over again. Browsing rupoint.co.uk, I found the link to the Speed Trap FAQ. If you scroll to the bottom you’ll see the table:
| Limit | Fixed Penalty | Summons |
|---|---|---|
| 20 mph | 25 mph | 30 mph |
| 30 mph | 35 mph | 50 mph |
| 40 mph | 46 mph | 66 mph |
| 50 mph | 57 mph | 76 mph |
| 60 mph | 68 mph | 86 mph |
| 70 mph | 79 mph | 96 mph |
So up to 79mph you should be just told off, 79-95mph is a fixed penalty and 96mph+ is a mandatory summons to appear in court.
Свежие комментарии