[basex-talk] Issue for JAVA Bindings for Basex 7.7

2013-11-11 Thread jean-marc Mercier
Hi, To resume an exchange with BaseX members : The issue is JAVA Bindings for BAseX version = 7.7, illustrated by the following XQUERY code import module namespace set = java.util.HashSet;{ let $loop := for $i in 1 to 128 return set:add($i) let $loop := for $i in 1 to 128 return set:add($i)

[basex-talk] Xquery for noobs : the HashSet problem

2013-11-12 Thread jean-marc Mercier
Hi, Following a recent discussion with BaseX team, here is a description of a problem that I don't know how to solve efficiently from within Xquery or BaseX Xquery extensions like map:module. Thus, any suggestion are welcomed ! The problem is the following : I want to write an XQUERY module

Re: [basex-talk] Xquery for noobs : the HashSet problem

2013-11-12 Thread jean-marc Mercier
Dear Christian, Thanks for your answer. It may be interesting to do some testing in order to find out what’s the actual bottleneck in your query. How man entries is your hash set supposed to contain? The HashSet contains 10M strings. That's not a big deal. The problems comes from filling the

Re: [basex-talk] Xquery for noobs : the HashSet problem

2013-11-12 Thread jean-marc Mercier
() ___ ___ On Tue, Nov 12, 2013 at 5:48 PM, jean-marc Mercier jeanmarc.merc...@gmail.com wrote: Dear Christian, Thanks for your answer. It may be interesting to do some testing in order to find out what’s the actual bottleneck in your

Re: [basex-talk] Xquery for noobs : the HashSet problem

2013-11-12 Thread jean-marc Mercier
/12 Charles Duffy char...@dyfis.net On Tue, Nov 12, 2013 at 3:05 PM, jean-marc Mercier jeanmarc.merc...@gmail.com wrote: Thus I could use maps to simulate HashSet, it not a very big overload. However, is there any incentive to trade off 20% performance ? Immutability is its own reward

Re: [basex-talk] Technical and commercial support informations about BaseX

2013-11-17 Thread jean-marc Mercier
Hi Christian, No, at present time, nothing really specific. I just want to have basic informations regarding my options packaging a commercial product shipping with BaseX as Database. As far as I understand, my first option is to ship BaseX together with its native BSD licensing. This is

Re: [basex-talk] Technical and commercial support informations about BaseX

2013-11-18 Thread jean-marc Mercier
I just realized that BaseX provides some basic information directly on its website : http://basex.org/services/support/. Thats just fine at present time, the important point for me is to be sure that BaseX can, if needed, enter in a contract based tech support. I will re-open this thread, or ask

Re: [basex-talk] Linear Algebra module in XQUERY ?

2013-11-18 Thread jean-marc Mercier
However, this doesn’t necessarily mean that XQuery is the wrong language for a linear algebra. Even a raytracer has already been implemented in XQuery (from the developers of XMLPrime; it seems to be offline). Some other examples on what can be done with XQuery is found in [1]. Indeed, I think

[basex-talk] BaseX Interpreter / Eclipse integration issue ?

2013-11-22 Thread jean-marc Mercier
Hi, Within my environment, I am experiencing some frustrating behavior of the Xquery Basex engine. I've done my best to single out the problem in the following XQUERY code : declare function local:wtf($x as item() ) {function() { $x}}; declare function local:dummy($f,$x) {

Re: [basex-talk] search into basex talk archive ?

2013-11-22 Thread jean-marc Mercier
Hi Christian, The mail archive is just fine for me. Thx for pointing me out his link. Cheers, Jean-Marc 2013/11/21 Christian Grün christian.gr...@gmail.com Hi Jean-Marc, is there a (convenient) way to search into basex talk archives ? Web search engines like DuckDuckGo, Bing and...

Re: [basex-talk] BaseX Interpreter / Eclipse integration issue ?

2013-11-22 Thread jean-marc Mercier
-marc Mercier: Thx very much for your workaround. I did not succeed using the GUI and executing »SET INLINELIMIT 0«. That only sets the setting for the current GUI session, not permanently. - Edit the file .basex, adding the line INLINELIMIT = 0 after #Local Options. I would prefer

Re: [basex-talk] BaseX Interpreter / Eclipse integration issue ?

2013-11-23 Thread jean-marc Mercier
code at Basex repository ? Motivation : I would like to try evaluating whether inlining recursive functions is possible or not. You are welcome to suggestions ! Cheers 2013/11/22 jean-marc Mercier jeanmarc.merc...@gmail.com Leo, Christian I fixed the bug, thank you for reporting it. You can

Re: [basex-talk] map:module. Behavior of maps of nodes

2013-12-01 Thread jean-marc Mercier
Christian, Concerning this topic, it took me a whole week of quite hard work to write a Red / Black removable tree written in XQUERY, together with a map interface that mimic the basex one. However I won't go public, and would advise not to use it, because it suffers from performance issues. I

[basex-talk] inspect functions and %private

2013-12-02 Thread jean-marc Mercier
Hi, To report a small issue in the inspect functions module with %private declaration. The following code runs perfectly : declare %private function local:test(){()}; for $fun in inspect:functions() return gotcha However, If the function test is located in another module, say test, then the

Re: [basex-talk] inspect functions and %private

2013-12-02 Thread jean-marc Mercier
Hi christian, yes this is the point : Stopped at C:/Jiheme/informatique/workspace/Graph DataBase/module/common.xq, 31/89: [XPST0017] Function 'local:test' is not visible from this module. If this is desired, it means that we can not use the inspection module as soon as there is %private

[basex-talk] some questions over the profile module

2013-12-04 Thread jean-marc Mercier
Hello Christian, I have some small questions over the profile module. 1) The following code declare function local:sequence($nb){for $i in 1 to xs:integer($nb) return $i}; prof:time(fn:count(local:sequence(100))) return 4.94 ms. It means that you lazy evaluate the query {for $i

Re: [basex-talk] some questions over the profile module

2013-12-05 Thread jean-marc Mercier
Hi Christian, Thx for your answer. it is advisable to remove all trace() calls from the code before doing performance comparisons. You're right. From another side, the trace functions are called very few times (68 calls), compared to the time execution (about two minutes to run the entire

Re: [basex-talk] some questions over the profile module

2013-12-06 Thread jean-marc Mercier
in this configuration ? Thx Jean-Marc 2013/12/5 jean-marc Mercier jeanmarc.merc...@gmail.com Hi Christian, Thx for your answer. it is advisable to remove all trace() calls from the code before doing performance comparisons. You're right. From another side, the trace functions are called very few times

Re: [basex-talk] BaseX Evaluation for Big Data

2013-12-06 Thread jean-marc Mercier
Hi Gary I am a BaseX team member, but have you sized up your JVM to run Big Data ? See the files BaseX/basex*.bat. I am currently using set VM=-Xmx6g Hope this helps Jean-Marc 2013/12/6 Huband, Gary W *HS gwh...@hscmail.mcc.virginia.edu I'm evaluating BaseX to use in a project that

Re: [basex-talk] BaseX Evaluation for Big Data

2013-12-06 Thread jean-marc Mercier
I meant I am NOT a baseX member ! sorry for the mistyping ! 2013/12/6 jean-marc Mercier jeanmarc.merc...@gmail.com Hi Gary I am a BaseX team member, but have you sized up your JVM to run Big Data ? See the files BaseX/basex*.bat. I am currently using set VM=-Xmx6g Hope this helps Jean

Re: [basex-talk] BaseX Evaluation for Big Data

2013-12-06 Thread jean-marc Mercier
...@hscmail.mcc.virginia.edu I still get an out of main memory when I try to create attribute indexes. I originally added the xml data with no indexes. Gary From: jean-marc Mercier [jeanmarc.merc...@gmail.com] Sent: Friday, December 06, 2013 9:37 AM To: Huband, Gary W *HS Cc: basex

Re: [basex-talk] map:module. Behavior of maps of nodes

2013-12-08 Thread jean-marc Mercier
for a while, but... well, is one of many other projects we are working on). Christian ___ On Fri, Dec 6, 2013 at 4:29 PM, jean-marc Mercier jeanmarc.merc...@gmail.com wrote: Christian, Hi. To end this topic, you should find enclosed two files that fulfills now my

Re: [basex-talk] Alternative to XQDT ?

2013-12-11 Thread jean-marc Mercier
developing a nice plugin for IntelliJ IDEA [1]; you may want to have a look it, too. Best, Christian [1] http://ligasgr.github.io/intellij-xquery/ ___ On Wed, Dec 11, 2013 at 9:40 AM, jean-marc Mercier jeanmarc.merc...@gmail.com wrote: Hello, I am developing

Re: [basex-talk] map:module. Behavior of maps of nodes

2013-12-23 Thread jean-marc Mercier
Hi, Casewhere someone is using these files, here is a more stable version, including some quite handy union, intersection and except operators. By stable I mean that I am using them extensively since some weeks without any modifications ! Cheers Jean-Marc 2013/12/8 jean-marc Mercier

[basex-talk] add-dayTimeDuration-to-date

2013-12-27 Thread jean-marc Mercier
Hello, I am trying to add dates and duration through BaseX, in conformance with http://www.w3.org/TR/xpath-functions-30/#func-add-dayTimeDuration-to-date. However, BaseX interpreter does not recognize the function add-dayTimeDuration-to-date, nor op:add-dayTimeDuration-to-date. Did I

Re: [basex-talk] [ANN] Higher-Order XQuery Modules

2013-12-29 Thread jean-marc Mercier
Leonard, Hello. I'am just reading this annoucement, trashed erroneously by gmail. Sorry for not having reacted before. It sounds very interesting. First probably stupid question : how do we install these modules ? 2013/12/12 Leonard Wörteler l...@woerteler.de Hello everyone, I want to

[basex-talk] INLINER : bug ?

2013-12-29 Thread jean-marc Mercier
Hi Everybody @Leo, there might be a bug in the BaseX INLINER (I am currently profiling your module https://github.com/LeoWoerteler/xq-modules/). To reproduce it : - use the 3 files attached. - Edit baseX config file .baseX, set the following Local options : # Local Options INLINELIMIT = 5 -

Re: [basex-talk] INLINER : bug ?

2013-12-29 Thread jean-marc Mercier
Leo, You are right, there was a type error in my code, thx a lot for pointing it out. I am recomputing the profile result of your code with full inlining. Cheers, Jean-Marc 2013/12/29 Leo Wörteler l...@basex.org Dear Jean-Marc, Am 29.12.2013 13:09, schrieb jean-marc Mercier: @Leo

[basex-talk] BaseX for noobs: C++ API ?

2014-01-03 Thread jean-marc Mercier
Hi all, going back to the root... I am trying to connect my favorite C++ tools to BaseX. Unfortunately, I am using visual C++ 12 Express under windows 7. It seems that windows users will not be able to use the existing BaseX API C connector, and need another one. Thus I started to code a C++

Re: [basex-talk] BaseX for noobs: C++ API ?

2014-01-03 Thread jean-marc Mercier
API at the basex-api repository, so this should give you a starting point if you ant to rewrite anything. Cheers, Dirk On 03/01/14 11:12, jean-marc Mercier wrote: Hi all, going back to the root... I am trying to connect my favorite C++ tools to BaseX. Unfortunately, I am using

Re: [basex-talk] BaseX for noobs: C++ API ?

2014-01-05 Thread jean-marc Mercier
-Windows-TCP-Sockets-in-C-for-the-Begin I would guess windows socket programming can be done quite similar to Unix sockets. Cheers, Dirk On 03/01/14 11:33, jean-marc Mercier wrote: Hi Dirk, Thanx for your answer. Indeed, I tried to install the existing C API. For windows user

Re: [basex-talk] Possible bug in BaseX interpreter, might be the introspection module ?

2014-01-06 Thread jean-marc Mercier
Note : casewhere, I checked that this issue does not depend upon the values of INLINELIMIT and TAILCALL. 2014/1/6 jean-marc Mercier jeanmarc.merc...@gmail.com Hello, I have a quite strange behavior, that might be a bug in the introspection module. I am just describing it, and will work

Re: [basex-talk] BaseX for noobs: C++ API ?

2014-01-06 Thread jean-marc Mercier
code and to try compile a server to see what is happening on the server side...that is probably some days of hard works :( 2014/1/6 Liam R E Quin l...@w3.org On Mon, 2014-01-06 at 21:15 +0100, jean-marc Mercier wrote: Hello, I still can't connect to BaseX. I checked that I sent

Re: [basex-talk] BaseX for noobs: C++ API ?

2014-01-07 Thread jean-marc Mercier
I finally succeeded connecting to BaseX server. This issue was stupidly due to the last trailing '\0' character in the server time stamp response, messing out the password MD5 computations. 2014/1/7 jean-marc Mercier jeanmarc.merc...@gmail.com @Dirk thx : I saw this with WireShark, even if I

[basex-talk] C++ API for BaseX v0.0

2014-01-08 Thread jean-marc Mercier
Hi all, C++ users could be interested in this first quick and dirty version of a C++ API for BaseX, located at https://github.com/JohnLeM/BaseXCPPAPI. Even if this v0.0 version is built upon Visual C++ 2012 Express, the C++ code should be multi platform. Hence, if there is any C++ / Unix / gcc

Re: [basex-talk] Possible bug in BaseX interpreter, might be the introspection module ?

2014-01-09 Thread jean-marc Mercier
) at org.basex.core.Main.execute(Main.java:146) at org.basex.BaseX.init(BaseX.java:119) at org.basex.BaseX.main(BaseX.java:38) 2014/1/6 jean-marc Mercier jeanmarc.merc...@gmail.com Note : casewhere, I checked that this issue does not depend upon the values of INLINELIMIT and TAILCALL. 2014/1/6

Re: [basex-talk] C++ API for BaseX v0.0

2014-01-10 Thread jean-marc Mercier
Kirsten d...@basex.org Hi Jean-Marc, sure, I am happy to test. Cheers, Dirk On 09/01/14 11:21, jean-marc Mercier wrote: Hi Dirk, I am currently trying to compile this project with GCC / MINGW under eclipse. With eclipse, I should be able to provide a unix compatible makefile. Once

Re: [basex-talk] Possible bug in BaseX interpreter, might be the introspection module ?

2014-01-11 Thread jean-marc Mercier
Hi all, Due to this issue, I am pulling back to the BaseX beta 6aeaebf (that is not showing this issue), waiting for a fix. Cheers, Jean-Marc 2014/1/10 jean-marc Mercier jeanmarc.merc...@gmail.com Hi all, it seems that this bug is linked to the introspection module. I isolated a code

Re: [basex-talk] BaseX as a Windows Service

2014-01-22 Thread jean-marc Mercier
. Flexible enough licensing, and most importantly support for windows 64 bits. @Christian : Installing a service with YAJSW seems really straightforward (see : http://yajsw.sourceforge.net/). Is it worth writing a Wiki page ? 2014/1/22 jean-marc Mercier jeanmarc.merc...@gmail.com Hi, Maybe I don't

Re: [basex-talk] Introspection bug in BaseX7.8 beta 4cfa54c ?

2014-01-30 Thread jean-marc Mercier
On Thu, Jan 30, 2014 at 5:07 PM, jean-marc Mercier jeanmarc.merc...@gmail.com wrote: Hello, As bug https://github.com/BaseXdb/basex/issues/839 has been closed, I tried to upgrade from BaseX7.8 6aeaebf to BaseX beta_4cfa54c. Unfortunately, this bug still appears in 4cfa54c, and I

Re: [basex-talk] Introspection bug in BaseX7.8 beta 4cfa54c ?

2014-01-30 Thread jean-marc Mercier
Christian, The point is that I don't know how to provide a self-contained query. The only strategy I could propose, to provide a self-contained query isolating the memory management problem, is really too time-consuming : I can imagine a binary-chop search, comparing the memory management of the

Re: [basex-talk] Introspection bug in BaseX7.8 beta 4cfa54c ?

2014-01-30 Thread jean-marc Mercier
anything, though. On Thu, Jan 30, 2014 at 9:39 PM, jean-marc Mercier jeanmarc.merc...@gmail.com wrote: Christian, The point is that I don't know how to provide a self-contained query. The only strategy I could propose, to provide a self-contained query isolating the memory management problem

Re: [basex-talk] Make external variable declarations mandatory #833

2014-02-01 Thread jean-marc Mercier
,$vars) Best, Christian On Sat, Feb 1, 2014 at 11:44 AM, jean-marc Mercier jeanmarc.merc...@gmail.com wrote: Dirkk, thx for your answer. I am really sorry, but definitively, I don't know how to use xquery:eval with the last release. Following your advise, I tried the following one

[basex-talk] Eclipse vs BaseX Gui differences ?

2014-09-23 Thread jean-marc Mercier
Hi all, Happy to write again in this mailing-list, hope you are all doing well guys ! I am encountering a small problem running my old xquery modules. I guess that it is a classical issue, but I can't remember how to look into BaseX archive :( Here is the description of the problem : I am

[basex-talk] how generating wiki from Basex inspect:xqdoc ?

2014-09-25 Thread jean-marc Mercier
Hi all, I am using BaseX' inspect:xqdoc module to generate xquery docs. I was wondering how generating html pages for accessing this documentation from the web, as for instance Leo did for http://www.woerteler.de/xquery/modules/base64 ?? Thanx cheers, Jean-Marc

Re: [basex-talk] Eclipse vs BaseX Gui differences ?

2014-09-26 Thread jean-marc Mercier
BaseX integration in eclipse uses XQJ, which could possibly introduce some performance bottlenecks. So if you could shortly describe how you set up BaseX within Eclipse, that would be great. Cheers, Dirk On 09/24/2014 06:33 AM, jean-marc Mercier wrote: Hi all, Happy to write again

Re: [basex-talk] Eclipse vs BaseX Gui differences ?

2014-09-27 Thread jean-marc Mercier
-27 11:34 GMT+02:00 jean-marc Mercier jeanmarc.merc...@gmail.com: Dirk, Hello ! Sorry, the problem seems to be on BaseX side. 1- I have tried to use eclipse IDE setting the interpreter as a client. Doesn't work, it saturated my Java machine. 2- I have tried to sollicitate directly the BaseX

Re: [basex-talk] Eclipse vs BaseX Gui differences ?

2014-10-06 Thread jean-marc Mercier
Jean-Marc, back again. Could you possibly send us the problematic query files (provided that these can be run without too much initialization overhead)? Cheers, Christian On Sat, Sep 27, 2014 at 11:34 AM, jean-marc Mercier jeanmarc.merc...@gmail.com wrote: Dirk, Hello ! Sorry

Re: [basex-talk] Performance issue due to evaluation during function composition ?

2015-01-02 Thread jean-marc Mercier
errata : * declare variable $BigDb := db:open('MyBigDataBase'); 2015-01-02 21:54 GMT+01:00 jean-marc Mercier jeanmarc.merc...@gmail.com: Dirk, Hello, sorry, but a very similar behavior seems to appear also in the latest version BaseX80-20141225.174535. Here is a new code to test : declare

Re: [basex-talk] Performance issue due to evaluation during function composition ?

2015-01-02 Thread jean-marc Mercier
jean-marc Mercier jeanmarc.merc...@gmail.com: Hi Dirk, You are right, I was using an old 8.0 BaseX version (seems to be the one from 23/09/2014). The problem does not appear in the latest release. Thank you ! 2015-01-02 19:29 GMT+01:00 Dirk Kirsten d...@basex.org: Hello Jean-Marc, what

Re: [basex-talk] Performance issue due to evaluation during function composition ?

2015-01-02 Thread jean-marc Mercier
reached the inline limit (http://docs.basex.org/wiki/Options#INLINELIMIT). You might want to try setting it to a higher value. Cheers, Dirk On 01/02/2015 10:19 AM, jean-marc Mercier wrote: Hello (and happy new year 2015 !) I am facing some performance issues opening big databases due

[basex-talk] Performance issue due to evaluation during function composition ?

2015-01-02 Thread jean-marc Mercier
Hello (and happy new year 2015 !) I am facing some performance issues opening big databases due to an (unexpected for me) argument evaluation during function composition. Is this a normal behavior ? Cheers Here is a code description : declare variable $db := db:open(MyBigDataBase); declare

Re: [basex-talk] C++ BaseX Client

2015-02-02 Thread jean-marc Mercier
than the makefile is outdated now. I did not install gcc on my comp (always a pain to Mingw / gcc a windows installation ...), maybe Dirk could have a look at it ? Cheers, Jean-Marc 2015-01-31 17:55 GMT+01:00 jean-marc Mercier jeanmarc.merc...@gmail.com: Hi christian, I should probably

Re: [basex-talk] C++ BaseX Client

2015-02-02 Thread jean-marc Mercier
to our list of bindings [1]. All the best, Christian [1] http://docs.basex.org/wiki/Clients On Mon, Feb 2, 2015 at 12:51 PM, jean-marc Mercier jeanmarc.merc...@gmail.com wrote: Christian, Hello. I just commited changes to https://github.com/JohnLeM/BasexCPPAPI/ Major changes

[basex-talk] try catch mechanisms and inlining

2015-01-17 Thread jean-marc Mercier
Hello all, I wrote some basic debugging / profiling tools for xquery code, using try{} catch *{} mechanisms. However, profiling tools are not reliable. The suspected reason is that inlining is not activated in try catch expression. If confirmed, is it a desired behavior ? Here is the basic test

Re: [basex-talk] try catch mechanisms and inlining

2015-01-17 Thread jean-marc Mercier
*$a})}; declare variable $test := prof:time(local:test(1000),false(),2 :); prof:time(count(local:test(1000)),false(),1 :),count($test) Output : 2 :2508.42 ms 1 :710.51 ms 2015-01-17 13:27 GMT+01:00 jean-marc Mercier jeanmarc.merc...@gmail.com: Hello all, I wrote some basic debugging

[basex-talk] C++ BaseX Client

2015-01-31 Thread jean-marc Mercier
Hi all, Just to report that I updated a C++ client for BaseX 8.0, according to the new digest protocol (http://docs.basex.org/wiki/Clients) Cheers

[basex-talk] Optimization for procedure call ?

2015-01-12 Thread jean-marc Mercier
Hello, I am facing some performances issues, probably due to unexpected query reevaluation. Might it be due to the optimizer ? Here is a code to test declare function local:test($i){ let $data := fn:for-each(1 to 1000, function($a){2*$a} ) (: let $data := xquery:eval(fn:for-each(1

[basex-talk] Storing sequences of atomic type into BaseX ?

2015-01-06 Thread jean-marc Mercier
Hello, I am currently trying to store precomputed maps. The basic issue is to store a sequence $seq of integers (that are indeed element id, i.e. retrieved using db:node-pre). Actually, I am storing it using db:replace($db,map,map{fn:serialize($seq)}/map) and retrieve the sequence using using

[basex-talk] prof:time and updating expression

2015-01-06 Thread jean-marc Mercier
Hi all, I was trying to profile updating expression, and the result is [XUST0001] prof:time(value[,cache[,label]]): no updating expression allowed. Is this a desired behavior ? Cheers, Jean-Marc

[basex-talk] Database corrupted while inserting big string

2015-01-06 Thread jean-marc Mercier
Hello, I am trying to insert big string into BaseX, and ended corrupting the whole database. Here a test code , can you reproduce it ? declare updating function local:dbtest($db as xs:string) { db:replace($db,map,map{fn:serialize(1 to 1000)}/map) }; local:dbtest(MyDataBase) output :

Re: [basex-talk] Optimization for procedure call ?

2015-01-13 Thread jean-marc Mercier
in the previous case (if no inlining takes place), all items will be iterated. Hope this helps, Christian [1] https://github.com/BaseXdb/basex/issues/1052 [2] http://files.basex.org/releases/latest/ On Tue, Jan 13, 2015 at 9:19 AM, jean-marc Mercier jeanmarc.merc...@gmail.com wrote: Christian

Re: [basex-talk] Optimization for procedure call ?

2015-01-13 Thread jean-marc Mercier
- 1996.37 ms Might it be garbage collector stuff ? 2015-01-14 8:18 GMT+01:00 jean-marc Mercier jeanmarc.merc...@gmail.com: Glory to our holy Leo for transmitting *brahmavidya* to shishya !! Turning back to this optimization problem, this might be trickier since execution time does not seem

Re: [basex-talk] Optimization for procedure call ?

2015-01-13 Thread jean-marc Mercier
) Should be easy to resolve. Thanks for your (always concise) examples, Christian On Mon, Jan 12, 2015 at 9:08 PM, jean-marc Mercier jeanmarc.merc...@gmail.com wrote: Hello, I am facing some performances issues, probably due to unexpected query reevaluation. Might it be due to the optimizer

[basex-talk] Question / Suggestion : Template mechanisms and operator overloading for XQUERY 3.++ ?

2015-01-04 Thread jean-marc Mercier
Hello, I was wondering if it is possible to improve template programming and operator overloading with XQUERY 3.? 1) template programming : XQUERY provides a quite natural template mechanism using type switch and instance: declare function yell($animal) { if ($animal instance of element()) then

Re: [basex-talk] Storing sequences of atomic type into BaseX ?

2015-01-08 Thread jean-marc Mercier
Christian, Hi. Thx for the trick. It seems to work finely for serializing, but awfully for unserializing : 1) Serialization using pack-integer is great. I am saving time and disk space (around a factor 4). 2) However unserialization seems to perform awfully, or I do not know how to do it

[basex-talk] Fwd: Storing sequences of atomic type into BaseX ?

2015-01-08 Thread jean-marc Mercier
Christian, Excellent ! thanks a lot ! prof:time(local:savebin((1 to 1000),$binfile)) ,prof:time(local:loadbin($binfile)) output is now 930.71 ms 907.04 ms 2015-01-08 22:11 GMT+01:00 Christian Grün christian.gr...@gmail.com: Hi Jean-Marc, 2) However unserialization seems to perform

[basex-talk] Basex Standalone : [bxerr:BXSQ0007] Could not initialize supplied driver: 'com.mysql.jdbc.Driver'

2015-05-11 Thread jean-marc Mercier
Hi, I am struggling to use Basex sql module together with Basex Standalone. I am getting the error : [bxerr:BXSQ0007] Could not initialize supplied driver: 'com.mysql.jdbc.Driver' The sql connection works finely while using the Basex server. I guess that it might be due to the fact that I

Re: [basex-talk] Basex Standalone : [bxerr:BXSQ0007] Could not initialize supplied driver: 'com.mysql.jdbc.Driver'

2015-05-12 Thread jean-marc Mercier
Christian, Hello. Thx for your answer. I've tried your suggestion, but I can't set the Java Build path using Eclipse/ Project / Properties (my IDE is eclipse together with BaseX Interpreter) : [image: Images intégrées 1] This is a minor issue : I can survive using the BaseX server. It is only

Re: [basex-talk] Strange compilator behavior ?

2017-10-09 Thread jean-marc Mercier
Christian, Yes absolutely. Thx for your answer. Cheers, Jean-Marc 2017-10-09 18:00 GMT+02:00 Christian Grün : > > Yes. But my question is : why did the BaseX compiler ran the query let > $idd > > := $elt[d]/@id ? > > The query is valid, because $elt could have an

[basex-talk] Strange compilator behavior ?

2017-10-09 Thread jean-marc Mercier
Hello BaseX team ! I lost some time to detect an error in my code, and wonder if there is a minor bug into the BaseX compiler. Here is the test let $elt as element(*)*:= for $d in (1 to 1) return let $idd := $elt[d]/@id return ($elt[$d]/@id,$idd) output : id="yolo". (Hence missing the

Re: [basex-talk] proc:system ?

2017-10-13 Thread jean-marc Mercier
ft.com/en-gb/help/830473/command-prom > pt-cmd--exe-command-line-string-limitation > [2] https://docs.oracle.com/javase/7/docs/api/java/lang/ProcessB > uilder.html#environment() > > On 12 October 2017 at 11:19, jean-marc Mercier <jeanmarc.merc...@gmail.com > > wrote: &g

[basex-talk] proc:system ?

2017-10-12 Thread jean-marc Mercier
Hello BaseX team, I am an extensive user of the proc:system BaseX command (and looking forward for proc:fork !). I am using this command with in-memory arguments, it means that my way of using it is : proc:system("my_exe", $my_arguments_for_exe) $my_arguments_for_exe is an xml node serialized

Re: [basex-talk] map behavior ?

2017-09-26 Thread jean-marc Mercier
ntry(7.0, "Saturday") > )) > for $key in sort(map:keys($map)) > return "* " || $key || ": " || $map($key) > > Hope this helps, > Christian > > > > > On Tue, Sep 26, 2017 at 11:29 AM, jean-marc Mercier > <jeanmarc.merc...@gmail.com&

[basex-talk] map behavior ?

2017-09-26 Thread jean-marc Mercier
Hello BaseX team, It has been a while since I last wrote to this mailing list ! Happy to report again :) I have a strange behavior concerning map, it doesn't seem to sort as I expected. Is there any explanation ? let $map as map(xs:double,xs:string) := map:merge(( map:entry(xs:double(0.1),

Re: [basex-talk] Strange compilator behavior ?

2017-10-09 Thread jean-marc Mercier
Hello Christian, Yes. But my question is : why did the BaseX compiler ran the query let $idd := $elt[d]/@id ? Shouldn't it raise a compilation error ? 2017-10-09 17:49 GMT+02:00 Christian Grün : > Dear Jean-Marc, > > > let $idd := $elt[d]/@id > > Shouldn’t it be