On Tue, 2007-05-29 at 18:03 -0600, Alan Silverstein wrote:
> John et al,
>
> > On Windows, one needs to dllexport symbols when building a DLL...
>
> If at all possible, avoid dynamically linked (shared) libraries, they
> can hurt performance. libJudy is small enough that usually it's "free"
> to link a copy with every program. (Aside from issues of having to
> relink to get a new version.)
On Windows it is not possible. On Unix systems, it we currently
leave the choice to the end user.
You're right, the calling protocol for Linux/PIC on x86_64 is
disgusting.
Never-the-less .. we build our run time library
as a collection of small and distinct shared libs by default.
The point being -- it's the customer's choice not the vendor's.
> > Luckily, I can probably patch the Judy sources by searching for
> > FUNCTION followed by one of the public function names on the same line
> > (the FUNCTION macro is a real saviour!)
>
> "You're welcome." That's my doing.
>
> I consider the exclusion of the "syntactically unnecessary" FUNCTION
> "keyword" (or equivalent) to be a severe oversight in C and C++.
> Minimalism has its place, but "dumb" parse-ability also has its place.
You can blame the ANSI C committee for 'typedef'
which made C into a context sensitive language.
This is one of the faults of C/C++ which Felix fixes, we use
fun f .. // function (no side effects allowed)
proc f .. // procedure (must have side effects)
gen f .. // generator: a function with 'side inputs'
and the overall syntax is LALR1 (yaccable) without ambiguity.
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Judy-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/judy-devel