Linked by Thom Holwerda on Thu 18th Jun 2009 13:35 UTC, submitted by Jochen
Window Managers "samurai-x is a highly modular and configurable, next generation framework window manager for X. It is written in pure python utilising ctypes. samurai-x is targeted at people wishing to experiment with desktop programming and people who want more control over their desktop (without having to code in C)." Version 0.2 has been released recently.
Thread beginning with comment 369174
To read all comments associated with this story, please click here.
Fear of programming in C?
by theosib on Thu 18th Jun 2009 13:57 UTC
theosib
Member since:
2006-03-02

I'm trying to decide if this is just because people don't want to take the time to learn to program C, or if in fact the amount of work a window manager has to do is so little that using an interpreted language is actually BETTER because it's more maintainable.

I know C, C++, Java, and lots of other compiled languages. Professionally, I even write quite a lot of Verilog. But honestly, if I could get a Ruby compiler that produced code that performed half as fast as what I can get out of C or C++, I'd do everything in Ruby. It just takes so much less time to code and debug.

And don't tell me about YARV. Going from an interpreted parse tree to interpreted bytecode may speed things up a bit SOMETIMES, but it's nowhere near natively compiled. And don't tell me you can't compile dynamic languages. They don't seem to have that problem with Self.

Reply Score: 3

RE: Fear of programming in C?
by sanctus on Thu 18th Jun 2009 16:01 in reply to "Fear of programming in C?"
sanctus Member since:
2005-08-31

You always Lua, where jit compiled program run half C performance.

Also, I found myself being nearly as productive with ocaml, yes it's not dynamic, but its ml type system is efficient and native compiled code is near C performance.

But python got many, many libraries, strong user base and it's easy to learn for those who wants to expiriment.

Reply Parent Score: 2

RE: Fear of programming in C?
by Tuishimi on Thu 18th Jun 2009 20:03 in reply to "Fear of programming in C?"
Tuishimi Member since:
2005-07-06

Says in the text that it is for people who want more control over their window manager without having to know C.

Reply Parent Score: 2

RE: Fear of programming in C?
by kuya on Fri 19th Jun 2009 09:07 in reply to "Fear of programming in C?"
kuya Member since:
2009-06-19

It is written in python to make it smaller and easier - and yes we believe python is up to the task

Reply Parent Score: 1

RE: Fear of programming in C?
by dagw on Tue 23rd Jun 2009 11:38 in reply to "Fear of programming in C?"
dagw Member since:
2005-07-06

I'm trying to decide if this is just because people don't want to take the time to learn to program C, or if in fact the amount of work a window manager has to do is so little that using an interpreted language is actually BETTER because it's more maintainable.

I do a lot of coding in C and think it's a great language. That being said I write virtually all my actual end user applications in Python, calling out to C libraries when needed. So while I haven't looked at this particular app yet, I think that in principal they're doing the right thing.

Reply Parent Score: 2