sorry guys, i'm a bit confuse about c++ and ci'm reading your fastbit udf codeat /fb_udf.hyou have a C code, right?and at fb_udf.cpp a c++ codeyou can mix c and c++ at the same code?at udf.hwhat this do?""
extern "C" { those functions should be undestood as "C" instead of "C++", or compiler should "export" those c++ function to "C" "code", or something related to C and namespaces ?sorry it's not mysql specific but i'm not finding some C++ plugins examples2015-09-21 13:43 GMT-03:00 Roberto Spadim <roberto@spadim.com.br>::D nicewhat i will is something like:1) a plugin daemon that receive a tcp/ip connection with a double linked list "feed" (something like: clear list, delete from position x to y, delete position x, insert at position x, update position x, move position x to y)2) save this feed to a myisam/spider/innodb/anyother engine (i'm thinking about using a mysql handler api) (i didn't check how it works, but i think handler sock use it)3) keep the double linked list at memory (reconstruct the list when server shutdown, maybe make some snapshots to avoid a long reconstruct, something like after X lines of feed, save the list, or after x minutes)4) a engine to read the double linked list at memory (i don't know yet how do this, but i will need some control about reading a shared memory, how to access this shared memory from daemon plugin using storage engine)5) a engine to read information about what daemon is doing (like 4)6) at same plugin daemon, create a tcp/ip connection to "export" the same feed to others users (just a proxy, not a big problem)at top level i think i will have 1 daemon plugin + 1 storage engine plugini'm thinking about c++ 11 cause it have double linked lists, threads, atomic, sockets, and i dont need others libs (maybe i'm wrong, but that was my first impression about c++11)--2015-09-21 13:34 GMT-03:00 Justin Swanhart <greenlion@gmail.com>:On Fri, Sep 18, 2015 at 11:52 PM, Sergei Golubchik <serg@mariadb.org> wrote:Hi, Roberto!
On Sep 18, Roberto Spadim wrote:
> guys , i'm still with doubts... but not more about c#, now about c++
> i was thinking about rewrite the code with c++
>
> my doubt is.... could i use C++ 11 ? or i will have problem with mariadb
> makefiles etc etc?
Sure, you can use any language you want, C++11 is perfectly fine too.
cmake doesn't care.
Regards,
Sergei
_______________________________________________
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~maria-discuss
More help : https://help.launchpad.net/ListHelp
Roberto Spadim
SPAEmpresarial - Software ERPEng. Automação e Controle--Roberto Spadim
SPAEmpresarial - Software ERPEng. Automação e Controle