Re: [LAD] Writing a library?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Darren Landrum <darren.landrum@...>
Cc: <linux-audio-dev@...>
Date: Wednesday, July 23, 2008 - 12:41 pm

On Jul 22, 2008, at 10:26 PM, Darren Landrum wrote:

> I've been looking around for a library to read and write SFZ files,

I'd strongly suggest you consider learning C if you want to maximize
other people using your library. If you write the library in C++ it
will be hard for anyone but C++ users to use it. If you write it in
straight C, or at least expose a plain C interface, it will be
trivial to use for C users, C++ users, Objective C users, Python
users, Smalltalk users and some scheme and lisp users, and I'm sure
I'm missing other languages that can interface with C easily.

Also, I suggest that you learn how to use a lex program like Flex.
You could also possibly use a parser generator, something like yacc/
bison on top of that. The time spent learning flex will be time very
well spent and the time spent learning it will probably pay itself
back immediately as your write your tokenizer. There are quite a few
good free lex and/or yacc guides available, often on university web
sites.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Writing a library?, Darren Landrum, (Wed Jul 23, 2:26 am)
Re: [LAD] Writing a library?, Joshua Boyd, (Wed Jul 23, 12:41 pm)
Re: [LAD] Writing a library?, Paul Davis, (Wed Jul 23, 1:02 pm)
Re: [LAD] Writing a library?, Paul Davis, (Wed Jul 23, 2:05 pm)
Re: [LAD] Writing a library?, Julien Claassen, (Wed Jul 23, 1:26 pm)
Re: [LAD] Writing a library?, Anders Dahnielson, (Wed Jul 23, 4:20 pm)
Re: [LAD] Writing a library?, , (Wed Jul 23, 2:19 pm)
Re: [LAD] Writing a library?, Darren Landrum, (Wed Jul 23, 2:42 pm)
Re: [LAD] Writing a library?, Anders Dahnielson, (Wed Jul 23, 4:13 pm)
Re: [LAD] Writing a library?, Anders Dahnielson, (Fri Jul 25, 10:03 pm)
Re: [LAD] Writing a library?, Anders Dahnielson, (Fri Sep 5, 10:58 pm)
Re: [LAD] Writing a library?, Anders Dahnielson, (Fri Sep 5, 11:21 pm)
Re: [LAD] Writing a library?, Pelle Nilsson, (Wed Jul 23, 4:34 pm)
Re: [LAD] Writing a library?, Julien Claassen, (Wed Jul 23, 3:05 pm)
Re: [LAD] Writing a library?, Darren Landrum, (Wed Jul 23, 3:25 pm)
Re: [LAD] Writing a library?, Joshua Boyd, (Wed Jul 23, 2:14 pm)
Re: [LAD] Writing a library?, Julien Claassen, (Wed Jul 23, 7:59 am)
Re: [LAD] Writing a library?, Emanuel Rumpf, (Wed Jul 23, 7:07 am)
Re: [LAD] Writing a library?, Erik de Castro Lopo, (Wed Jul 23, 8:52 am)
Re: [LAD] Writing a library?, Julien Claassen, (Wed Jul 23, 9:13 am)
Re: [LAD] Writing a library?, Nedko Arnaudov, (Wed Jul 23, 10:16 am)
Re: [LAD] Writing a library?, Emanuel Rumpf, (Wed Jul 23, 12:02 pm)
Re: [LAD] Writing a library?, Erik de Castro Lopo, (Wed Jul 23, 3:49 am)