Scripting Language Extension via Object Subclassing

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

ECMA compliant scripting languages in wireless devices are bug-prone and difficult to maintain due to weak-typing and missing data types, which hinders their use in complex applications and increases development and maintenance costs.

Innovation Solution

A method is introduced to extend the ECMA compliant scripting environment by subclassing objects, dynamically registering symbols, and executing replacement methods to support strong data typing and other missing features, enabling the use of strong-typing and new data types within the scripting environment.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of operation

If weak-typing and dynamic property addition are used in ECMA scripting languages, then ease of operation and programmer friendliness are improved, but reliability and maintainability deteriorate due to bug-prone applications

Engineering Contradiction:
Improveprogrammer friendlinessVSAvoidapplication reliability
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent changes the typing parameter from weak-typing to strong-typing by introducing explicit type declarations and type checking mechanisms into the scripting environment. This allows the system to maintain ease of operation while significantly improving reliability through compile-time type verification and runtime type enforcement.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent segments the scripting language features into core scripting capabilities and extended typed features. By separating these concerns through object subclassing and method extension, the system can provide both the simplicity of basic scripting and the reliability of strong typing without compromising either aspect.

Inventive Principle:
Principle #1Segmentation

2Ease of manufacture

If weak-typing is used in scripting languages, then ease of manufacture and development speed are improved, but manufacturing precision and error detection deteriorate

Engineering Contradiction:
Improvedevelopment speedVSAvoiderror detection precision
Core Design Contradiction:
Ease of manufactureVSManufacturing precision

Solution Approach 1:

The patent implements preliminary type checking and declaration actions before code execution. By requiring type declarations and performing type validation in advance, the system detects errors during development rather than at runtime, significantly improving error detection precision while maintaining development speed through automated checking mechanisms.

Inventive Principle:
Principle #10Preliminary action

3Productivity

If scripting languages are used for complex applications, then productivity and development efficiency are improved, but reliability deteriorates due to missing data types and weak-typing

Engineering Contradiction:
Improvedevelopment efficiencyVSAvoidapplication security and reliability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent creates a universal scripting environment that can handle both simple and complex applications through a unified strong-typing framework. By introducing comprehensive data types and type system extensions, the same scripting language can reliably support complex applications while maintaining the productivity benefits of scripting paradigms.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS8438577B2Method and system for extending scripting languages
Publication Date: 2013.05.07 MALIKIE INNOVATIONS LTD
  • US8438577B2 patent drawing
  • US8438577B2 patent drawing
  • US8438577B2 patent drawing

AI summary

A method for extending a script language in a runtime environment of a data processing system to support an application, the runtime environment having a script language interpreter, the method comprising: subclassing a predetermined object defined by the script language to create a subclassed object, the predetermined object having an original method, the subclassed object having a respective replacement method for supporting the application; dynamically registering a symbol corresponding to the subclassed object; detecting the subclassed object in the application with the script language interpreter; and, executing the replacement method with the script language interpreter.