bitmaps/binaries of variables
Wednesday, 27 January 2016 · 4 messages
RS
Rob Stapper27 Jan 2016 11:34 #
Hi,
Is it somehow possible to get the bitmap/binary of a $variable or a
bitmap/binary-overlay of a $variable in BaseX?Since there is no bitmap-datatype I guess it is probably not possible or straight forward but BaseX continues to surprise me (in a positive manner). So maybe?
TIA for any reply,
Rob Stapper
CG
Christian Grün27 Jan 2016 11:50 #
Hi Rob,
Quoted text · Rob Stapper · 2 lines
> Is it somehow possible to get the bitmap/binary of a $variable or a > bitmap/binary-overlay of a $variable in BaseX?
What do you mean by the "bitmap/binary of a $variable"? Talking about
$variable, do you refer to the declaration of a variable or its
references (see e.g. [1,2])?RS
Rob Stapper27 Jan 2016 12:32 #
Hi Christian,
I mean the binary representation of the value of a variable. At the moment, for comparing my user defined datatypes, which are functional data structures, I convert them to a strings and compare those. It works but it could do better. Being able comparing the binary images of values, which can be functions, would be a better solution. In that case the binary image of a value is its unique signature that can be compared. Hence my question.
So I guess I refer to the reference (value) of a variable.
Rob
-----Oorspronkelijk bericht-----
Quoted text · Christian Grün · 12 lines
Van: Christian Grün [mailto:christian.gruen at gmail.com] Verzonden: woensdag 27 januari 2016 11:51 Aan: Rob Stapper CC: BaseX Onderwerp: Re: [basex-talk] bitmaps/binaries of variables Hi Rob, > Is it somehow possible to get the bitmap/binary of a $variable or a > bitmap/binary-overlay of a $variable in BaseX? What do you mean by the "bitmap/binary of a $variable"? Talking about $variable, do you refer to the declaration of a variable or its references (see e.g. [1,2])? Christian [1] https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/query/var/Var.java [2] https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/query/var/VarRef.java
CG
Christian Grün27 Jan 2016 19:31 #
I am afraid there is simple representation that could simply be used; and talking about comparisons, it’s not that easy to say if a function is equal to another, because we’d first need to define what equality is supposed to be. Maybe it will be better to follow the idea of extending
fn:deep-equal, as we did a while ago.Quoted text · Rob Stapper · 32 lines
On Wed, Jan 27, 2016 at 12:32 PM, Rob Stapper <r.stapper at lijbrandt.nl> wrote: > Hi Christian, > > I mean the binary representation of the value of a variable. > At the moment, for comparing my user defined datatypes, which are functional data structures, I convert them to a strings and compare those. It works but it could do better. > Being able comparing the binary images of values, which can be functions, would be a better solution. In that case the binary image of a value is its unique signature that can be compared. > Hence my question. > > So I guess I refer to the reference (value) of a variable. > > Rob > > > -----Oorspronkelijk bericht----- > Van: Christian Grün [mailto:christian.gruen at gmail.com] > Verzonden: woensdag 27 januari 2016 11:51 > Aan: Rob Stapper > CC: BaseX > Onderwerp: Re: [basex-talk] bitmaps/binaries of variables > > Hi Rob, > >> Is it somehow possible to get the bitmap/binary of a $variable or a >> bitmap/binary-overlay of a $variable in BaseX? > > What do you mean by the "bitmap/binary of a $variable"? Talking about $variable, do you refer to the declaration of a variable or its references (see e.g. [1,2])? > > Christian > > [1] https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/query/var/Var.java > [2] https://github.com/BaseXdb/basex/blob/master/basex-core/src/main/java/org/basex/query/var/VarRef.java >
Written for BaseX 8.3. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery