Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

New Python/C# Bindings Expand KDE Languages

timothy posted more than 12 years ago | from the tower-of-babel dept.

KDE 18

Dre writes: "Today marks a special coincidence. First, Adam Treat released the initial version of Qt bindings for C#, which consists of 476 Qt classes converted to C#. The bindings work with the Mono compiler, runtime environment and class libraries, enabling a fully Open Source implementation of C# for Qt. While not yet ready for a real application, Adam has managed to write and execute a Hello World! program (screenshot). KDE bindings are on the drawing board. Shortly thereafter, Phil Thompson, Jim Bublitz and theKompany.com released KDE 2 and KDE 3 bindings for Python. Together with the Java, Objective C and C bindings in the kdebindings module, as well as the Ruby bindings, KDE is providing developers a broad gamut of application development languages."

cancel ×

18 comments

My first "first post" (0)

Anonymous Coward | more than 12 years ago | (#3175719)

Woohoo, I'm writing enough so that it takes me 20 seconds. Because of that, I'm sure that i'm already too late. :(

I hate whoever designed the 20 second waiting limit.

Perl (2)

redcliffe (466773) | more than 12 years ago | (#3175775)

It needs a perl binding.

Re:Perl (0)

Anonymous Coward | more than 12 years ago | (#3176656)

Actaully, since the bindings for Qt/KDE are actually autogenerated for the most part, it should now be realtively trivial to make bindings for Perl or most other languages.

I'd like to see a Common Lisp binding, myself...

Re:Perl (1)

sleepingduke (106423) | more than 12 years ago | (#3180560)

The 'kalyptus' bindings generation tool has a '-fperl' option to generate .pig (Perl Interface Generator) files. The .pig files can be then be fed straight into Ashley Winters' Pig.pm generator.

kalyptus is in the KDE cvs under kdebindings/kalyptus.

The main technical obstacle to producing Perl bindings for Qt 3/KDE 3 is that they assume that the moc generated code works like Qt 2. Qt used to call slots via function pointers, but in Qt 3 it uses an integer offset into the slot table.

So the slot/signal handling needs to be redone to get the Perl bindings to work.

And Common Lisp for Qt/KDE should certainly be possible.

-- Richard

3rd post! (1)

hkhanna (559514) | more than 12 years ago | (#3175944)

NT.....waiting 20 seconds....... Mod this down please.

Re:3rd post! (0)

Lunar82 (541435) | more than 12 years ago | (#3176031)

Don't ask me, I have no mod points.

Why? (2, Interesting)

Garthnak (110033) | more than 12 years ago | (#3175959)

Alright. At the risk of sounding like a troll or a flamer, I'm going to ask what I do think many other people just asked when seeing this article:

Why?

Okay, okay. This has probably been covered in other Slashdot articles covering C#, .NET, etc. But for one thing, I do not see these things gaining a lot of acceptance in the open source community. There's the Mono project, but in my personal interaction with other OSS programmers, they agree this is a Bad Idea.

Alright, I'll spare you the rants and reasons on the subject - you've heard them all before - but my point is here is not necessarily my own beliefs and opinions on the C#/.NET situation. My point is that this is something that _most_ of us (in my experience) are rejecting outright. I think Miguel de Icaza is crazy for spouting pro-.NET rhetoric in the GNOME project when there's such a clear lack of support of most of his community, and this Qt thing just doubles that across both desktop environments.

Am I totally out of line here? Will anyone _actually_ use this? Is there really a population of hackers out there who will be writing X apps with C#? Personally, I'm highly dubious about the whole thing. If you agree with me, reply. If you don't, reply. But flames can be filed in /dev/null.

--Garthnak

Re:Why? (2, Insightful)

WasterDave (20047) | more than 12 years ago | (#3176124)

I agree with you. It's all completely barking mad. We really need one, maybe two languages that developers can rally behind. One is C/C++, depending on whether you're in the Gnome or KDE camps (-1, Flamebait). The other should maybe be Java (-2, Pisses off Python jockies), although the open source-iness of Java is currently under some debate. Perhaps Perl? Given it's solid backing in the scripting / admin community, it would make a sensible choice.

So, choose our language, and get some support behind it. Witness the wonder that is KDevelop :) And get some good documentation, which was part of Miguel's reasoning to use .net.

But, yes, bollocks to C#

Dave

Re:Why? (0)

Anonymous Coward | more than 12 years ago | (#3176892)

People do what they like. This guy wanted to have some C# bindings. He did them. Congratulation. Although I don't find those bindings useful and I would prefer to see people spending time on more useful stuff (fixing and developing KDE for example), he can do whatever pleases him.

This is why we have free software, because people enjoy doing stuff. You even have project recognised as unuseful such as zeta [freehackers.org]

Re:Why? (2, Insightful)

Chmarr (18662) | more than 12 years ago | (#3178050)

The more languages supported, the better.

If I have to rewrite my 20,000 line application just so I can have a KDE-native version, then I'm probably not going to do it. However, if all I need to do is link in with a particular binding, and change some of the interface stuff, then things seem much more likely.

One should be looking at things from a "The Right Tool for the Right Job", and you can't answer that question with support for just one or two languages, or even 5. There are going to be applications that call for a particular set of languages and libraries. Its not your choice to decide what the 'right' language is, but instead the application developer.

Re:Why? (1)

miked1001 (173101) | more than 12 years ago | (#3182272)

It DOES make sense to implement Qt with C#!

Since Visual Studio .NET was only just released, it may not be very apparent how widespread the usage of C# will turn out to be. I'd wager the language will be very widely used to develop new Windows applications. Obviously, particularly those based on .NET.

In my opinion, it could only help the development of Qt based apps once C# developers realize they can easily develop in a syntax they're used to.

Work on this project needs to start now so that when that day comes, the C# developers will have the tools they need. It's a matter of anticipating the needs of future Microsoft-flavored programmers when they make the switch to a superior OS.

Let the flames begin,
Mike D

Re:Why? (2)

Hard_Code (49548) | more than 12 years ago | (#3183844)

Why do geeks do *anything*?

1) because they can
2) because they felt like it

I'm so sick of these "why are we doing this! whine!" questions. Nobody is forcing you to use C#.

Languages are like hammers (2, Insightful)

torkar (89383) | more than 12 years ago | (#3176323)

You're missing the point.

You pick the language you are familiar with or most importantly of all - the language that makes it easier for you to solve a problem (doesn't matter if it's scientifical app or GUI or ..)

Languages are just like a regular tool, you pick the right one to do the job.
If you want to do some heavy crunching you pick a heavy hammer (fortran, C) and vice versa.

In this case they want people to use *their* favourite language to make GUI applications for KDE.

Uh... no. (2)

__past__ (542467) | more than 12 years ago | (#3176876)

...released KDE 2 and KDE 3 bindings for Python.

Well, they didn't. Actually, a first beta was released, and even that is not yet mentioned on the linked page.

Which is a pity, because, having tried the alpha versions, programming with PyKDE is really, really nice. Unfortunatly it's quite a huge package, so unless Distributors ship it by default, you shouldn't expect users to be too happy it you tell them to compile it themselves.

Yea! (3, Interesting)

RevAaron (125240) | more than 12 years ago | (#3177388)

Man, this Mono stuff is taking off pretty well... it may get me to switch back to Linux from OS X just yet! :) Does Mono, at this point, rely on any ASM, or is it all C? Has anyone compiled it for PPC?

Re:Yea! (1)

high (315481) | more than 12 years ago | (#3180052)

Some parts of it compiles under PPC. But mono is a big project so its hard to say how useful it is for the average developer =)

They are working on an OS X/Darwin port too!

To back up my statement:

[Mono-list] (MacOSX) Requesting porting guide clarifications
http://lists.ximian.com/archives/p ublic/mono-list/ 2002-March/003528.html

Re:Yea! (2)

RevAaron (125240) | more than 12 years ago | (#3180882)

Awesome, thanks!

It's a trap! (1)

setag (549313) | more than 12 years ago | (#3192050)

Duck and cover! Implementing .NET and c# on Linux
is just asking for trouble from M$!

Fight the power!
Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...