# US 2015/0106786 A1 · Symmetrical dimensions in context-oriented programming to optimize software object execution

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2015/0106786 A1
- Document ID: US20150106786A1
- Status: Published application
- Kind: A1
- Application number: 14/503,064
- Filed: 2014-09-30
- Published: 2015-04-16
- Earliest claimed: 2013-10-16
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: HAROLD L. OSSHER; DAVID M. UNGAR
- Web page: https://patentgrep.com/patent/US20150106786A1

## CPC

- G06F 9/4491: {Optimising based on receiver type}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, system, and/or computer program product optimizes execution of a computation. Multiple slots, each of which is a container for information, are defined. A coordinate tuple is defined for each of the multiple slots. The coordinate tuple describes a position of a slot along multiple dimensions in a slot space. The multiple dimensions describe roles for executing a software object, and each of the multiple dimensions has a same level of primacy such that no dimension has primacy over another dimension in the slot space. Multiple method slots are populated with software method objects that address different contexts and purposes as defined by coordinate tuples of the multiple method slots. Software method objects are retrieved from coordinate tuples in the slot space that match a defined context and purpose of a particular computation, which is propagated to a processor that is executing a particular software method object.

## Claims

### Claim 1

A method for optimizing object execution in context-oriented programming, the method comprising:
defining, by one or more processors, multiple slots, wherein each of the multiple slots is a container for information;
defining, by one or more processors, a coordinate tuple for each of the multiple slots, wherein the coordinate tuple describes a position of a slot along multiple dimensions in a slot space, wherein the multiple dimensions describe roles for executing a software object, and wherein each of the multiple dimensions has a same level of primacy such that no dimension has primacy over another dimension in the slot space;
populating, by one or more processors, multiple method slots with software method objects that address different contexts and purposes as defined by coordinate tuples of the multiple method slots;
defining, by one or more processors, a context and purpose of a computation;
retrieving and executing, by one or more processors, one or more particular software method objects from the multiple method slots, wherein said one or more particular software method objects are located at coordinate tuples in the slot space that are determined to be a match for the defined context and purpose of the computation; and
propagating implicitly, by one or more processors, the context and purpose of the computation to a processor that is executing a particular software method object, wherein the particular software method object is able to call nested methods, wherein the context and purpose of the computation is propagated to the nested methods, and wherein the context and purpose of the computation determines a selection of nested method executions.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
defining, by one or more processors, a role that corresponds to a concept of receiver in standard object oriented languages.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
defining, by one or more processors, a role as a description of a level of assertion checking to be performed when executing the software object.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
defining, by one or more processors, a role as a version of code that is to be used when executing the software object.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
defining, by one or more processors, a role as a particular user on whose behalf the software object is to be executed.

### Claim 6 (depends on 1)

The method of claim 1, wherein the software object is an executable software method.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
populating, by one or more processors, a data slot in the slot space with a data object, wherein the data slot has a data coordinate tuple in the slot space; and
retrieving, by one or more processors, the data object from the data slot at a position described by the data coordinate tuple in the slot space.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
defining, by one or more processors, the context and purpose of the computation according to the coordinate tuple, wherein content of the coordinate tuple represents the context and purpose of the computation.

### Claim 9

A computer program product for optimizing object execution in context-oriented programming, the computer program product comprising a computer readable storage medium having program code embodied therewith, wherein the computer readable storage medium is not a transitory signal per se, and wherein the program code is readable and executable by a processor to perform a method comprising:
defining multiple slots, wherein each of the multiple slots is a container for information;
defining a coordinate tuple for each of the multiple slots, wherein the coordinate tuple describes a position of a slot along multiple dimensions in a slot space, wherein the multiple dimensions describe roles for executing a software object, and wherein each of the multiple dimensions has a same level of primacy such that no dimension has primacy over another dimension in the slot space;
populating multiple method slots with software method objects that address different contexts and purposes as defined by coordinate tuples of the multiple method slots;
defining a context and purpose of a computation;
retrieving and executing one or more particular software method objects from the multiple method slots, wherein said one or more particular software method objects are located at coordinate tuples in the slot space that are determined to be a match for the defined context and purpose of the computation; and
propagating implicitly the context and purpose of the computation to a processor that is executing a particular software method object, wherein the particular software method object is able to call nested methods, wherein the context and purpose of the computation is propagated to the nested methods, and wherein the context and purpose of the computation determines a selection of nested method executions.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the method further comprises:
defining a role as a description of a level of assertion checking to be performed when executing the software object.

### Claim 11 (depends on 9)

The computer program product of claim 9, wherein the method further comprises:
defining a role as a version of code that is to be used when executing the software object.

### Claim 12 (depends on 9)

The computer program product of claim 9, wherein the method further comprises:
defining a role as a particular user on whose behalf the software object is to be executed.

### Claim 13 (depends on 9)

The computer program product of claim 9, wherein the software object is an executable software method.

### Claim 14 (depends on 9)

The computer program product of claim 9, wherein the method further comprises:
populating a data slot in the slot space with a data object, wherein the data slot has a data coordinate tuple in the slot space; and
retrieving the data object from the data slot at a position described by the data coordinate tuple in the slot space.

### Claim 15

A computer system comprising:
a processor, a computer readable memory, and a computer readable storage medium;
first program instructions to define multiple slots, wherein each of the multiple slots is a container for information;
second program instructions to define a coordinate tuple for each of the multiple slots, wherein the coordinate tuple describes a position of a slot along multiple dimensions in a slot space, wherein the multiple dimensions describe roles for executing a software object, and wherein each of the multiple dimensions has a same level of primacy such that no dimension has primacy over another dimension in the slot space;
third program instructions to populate multiple method slots with software method objects that address different contexts and purposes as defined by coordinate tuples of the multiple method slots;
fourth program instructions to define a context and purpose of a computation;
fifth program instructions to retrieve and execute one or more particular software method objects from the multiple method slots, wherein said one or more particular software method objects are located at coordinate tuples in the slot space that are determined to be a match for the defined context and purpose of the computation;
sixth program instructions to propagate implicitly the context and purpose of the computation to a processor that is executing a particular software method object, wherein the particular software method object is able to call nested methods, wherein the context and purpose of the computation is propagated to the nested methods, and wherein the context and purpose of the computation determines a selection of nested method executions; and wherein the first, second, third, fourth, fifth, and sixth program instructions are stored on the computer readable storage medium for execution by the processor via the computer readable memory.

### Claim 16 (depends on 15)

The computer system of claim 15, further comprising:
seventh program instructions to define a role as a description of a level of assertion checking to be performed when executing the software object; and wherein the seventh program instructions are stored on the computer readable storage medium for execution by the processor via the computer readable memory.

### Claim 17 (depends on 15)

The computer system of claim 15, further comprising:
seventh program instructions to define a role as a version of code that is to be used when executing the software object; and wherein
the seventh program instructions are stored on the computer readable storage medium for execution by the processor via the computer readable memory.

### Claim 18 (depends on 15)

The computer system of claim 15, further comprising:
seventh program instructions to define a role as a particular user on whose behalf the software object is to be executed; and wherein
the seventh program instructions are stored on the computer readable storage medium for execution by the processor via the computer readable memory.

### Claim 19 (depends on 15)

The computer system of claim 15, wherein the software object is an executable software method.

### Claim 20 (depends on 15)

The computer system of claim 15, further comprising:
seventh program instructions to populate a data slot in the slot space with a data object, wherein the data slot has a data coordinate tuple in the slot space; and
eighth program instructions to retrieve the data object from the data slot at a position described by the data coordinate tuple in the slot space; and wherein
the seventh and eighth program instructions are stored on the computer readable storage medium for execution by the processor via the computer readable memory.
