Poll regarding the choice of languages for an API

A place to discuss the implementation and style of computer programs.

Moderators: phlip, Moderators General, Prelates

Which language?

Visual Basic
3
4%
PHP
10
13%
Perl
6
8%
Java
5
6%
C/C++
17
22%
Python
11
14%
Ruby
8
10%
C#
5
6%
TCL
2
3%
Scheme
1
1%
Guile
0
No votes
Lisp
3
4%
Lua
2
3%
Modula3
0
No votes
Ocaml
0
No votes
Pike
0
No votes
R
0
No votes
Other
5
6%
 
Total votes: 78

User avatar
the Cow
Today India, tomorrow the world!
Posts: 2199
Joined: Sun Jun 10, 2007 5:40 pm UTC
Contact:

Poll regarding the choice of languages for an API

Postby the Cow » Mon May 11, 2009 2:53 pm UTC

If you were asked to develop an application that accessed a non-sql custom database application and an API was provided to perform the typical functions, such as searching, editing, adding, and deleting records, which of the following languages would you like to see that API support natively?

Please, I am not interested in the reasons why you would want support for one language over another, nor am I terribly interested in why someone else's choice is good or bad. I am merely interested in popularity.
...the whim of a hat.

0xBADFEED
Posts: 687
Joined: Mon May 05, 2008 2:14 am UTC

Re: Poll regarding the choice of languages for an API

Postby 0xBADFEED » Mon May 11, 2009 3:18 pm UTC

I can't find SQL on the list.

User avatar
Will
There are about a million things I can do from behind
Posts: 2256
Joined: Mon Sep 10, 2007 11:12 pm UTC
Location: St. Heraldwulf's Stone
Contact:

Re: Poll regarding the choice of languages for an API

Postby Will » Mon May 11, 2009 3:43 pm UTC

I think the most important is to provide a C API. Most language environments have ways to get bindings from C into the native environment (since they tend to be written in C anyway), and it allows you to move the burden of doing that onto someone else rather than doing it yourself. Someone wants bindings for, say, Python? Let them write it themselves. They might even be so kind as to GPL it and then they've created value for your DB application without you having to so much as lift a finger.
Meaux_Pas: Is it fucking Taint Sunday or something?
liza: Screw y'all, I'm going to the moon

User avatar
ash.gti
Posts: 404
Joined: Thu Feb 07, 2008 1:18 am UTC
Location: Probably a coffee shop.

Re: Poll regarding the choice of languages for an API

Postby ash.gti » Mon May 11, 2009 3:43 pm UTC

No Erlang? or server side javascript? haskell?

Hehe, well considering I can only think of 1 thing that uses that combination (couchdb) its not terribly popular but it is incredibly powerful.

But then again I am probably looking at this from a web developer's perspective...
# drinks WAY to much espresso

User avatar
hotaru
Posts: 1045
Joined: Fri Apr 13, 2007 6:54 pm UTC

Re: Poll regarding the choice of languages for an API

Postby hotaru » Mon May 11, 2009 5:36 pm UTC

you seem to have forgotten to include c in your poll.

Code: Select all

factorial product enumFromTo 1
isPrime n 
factorial (1) `mod== 1

0xBADFEED
Posts: 687
Joined: Mon May 05, 2008 2:14 am UTC

Re: Poll regarding the choice of languages for an API

Postby 0xBADFEED » Mon May 11, 2009 5:43 pm UTC

Yeah, go with C. For all the reasons mentioned. You'll be glad you did if you decide to do more than one binding.

User avatar
the Cow
Today India, tomorrow the world!
Posts: 2199
Joined: Sun Jun 10, 2007 5:40 pm UTC
Contact:

Re: Poll regarding the choice of languages for an API

Postby the Cow » Mon May 11, 2009 5:46 pm UTC

hotaru wrote:you seem to have forgotten to include c in your poll.


C is listed as C/C++ - in that a C binding can (and currently does) serve both.
...the whim of a hat.

stephentyrone
Posts: 778
Joined: Mon Aug 11, 2008 10:58 pm UTC
Location: Palo Alto, CA

Re: Poll regarding the choice of languages for an API

Postby stephentyrone » Mon May 11, 2009 5:49 pm UTC

Will wrote:They might even be so kind as to GPL it and then they've created value for your DB application without you having to so much as lift a finger.


If they were kind, they would release it under a BSD-type license. =P

Joking aside, a very good set of C bindings will get you (almost) all the rest.
GENERATION -16 + 31i: The first time you see this, copy it into your sig on any forum. Square it, and then add i to the generation.

User avatar
evilbeanfiend
Posts: 2650
Joined: Tue Mar 13, 2007 7:05 am UTC
Location: the old world

Re: Poll regarding the choice of languages for an API

Postby evilbeanfiend » Mon May 11, 2009 6:21 pm UTC

the Cow wrote:
hotaru wrote:you seem to have forgotten to include c in your poll.


C is listed as C/C++ - in that a C binding can (and currently does) serve both.


yes but c++ is going to mangle the names, and any non-POD types on the interface are going to be a bitch if you want to do any interop stuff hence we would normally seperate c and c++ in this situation to mean "c or c++ with extern c" and "no holds barred c++".

or another way of looking at it, most of the languages you have listed have c bindings.

personally id go for some flavour of scripting language first and c second
in ur beanz makin u eveel


Return to “Coding”

Who is online

Users browsing this forum: No registered users and 7 guests