Globals - Magic swords for storing data. Sparse arrays. Part 3.

In the previous parts (1, 2) we talked about globals as trees. In this article, we will look at them as sparse arrays.

A sparse array - is a type of array where most values assume an identical value.

In practice, you will often see sparse arrays so huge that there is no point in occupying memory with identical elements. Therefore, it makes sense to organize sparse arrays in such a way that memory is not wasted on storing duplicate values.

In some programming languages, sparse arrays are part of the language - for example, in J, MATLAB. In other languages, there are special libraries that let you use them. For C++, those would be Eigen and the like.

Globals are good candidates for implementing sparse arrays for the following reasons:

views

rating

Need clarification on usage of globals and global memory

It is my understanding that when a routine accesses a global it is temporarily stored in global memory.

views

rating

The command to kill all globals given the namespace

Hi,

Is there any COS command could kill all the globals given the namespace?

Thanks.

views

rating

Global Summit 2017 - Early Bird Rate & Group Discounts

Sign up by August 19 to take advantage of the Group Discount or Early Bird registration rate for the Solution Developers Conference at Global Summit 2017.

views

rating

How to index a class

Hi 

I have two persistent classes defined. Lets call it Parent and Child.

Child class is one of the property of Parent Class.

I would like to define a index on Child class.

views

rating

How to export the whole project

How would I export the WHOLE PROJECT rather than just a single class file out to an XML file?

 

I would like to, on every file change export the whole project to XML

 

views

rating

ClassMethod Transform Count Number of OBX's Under OBR

Is there a class Method that will return the number of OBX segments under the OBR segments? I see  method ChildCountGet

views

rating

use punycode in caché

Hi everybody, We have written a convert from Punycode. This is reformed from javascript. Perhaps many non-English systems need to use this feature in domain name resolution. Anyone can use and change the code as needed.

views

rating

Ens.FileInboundAdapter consuming files in sequence order

Hello,

We need to consume files (right now using FileInboundAdapter) with a strict order.

Example:

File order will be A, B, C. Suppose A, B and C will be the names of the files.

views

rating

In a bit of a cache.dat pickle

I'm trying to recreate a smaller copy of our DEV machine on a sandbox instance.

views

rating

How to specify the UrlMap for Rest call

Hi,

 

I have a UrlMap like the one below.

views

rating