Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Mixed reference method and mixed reference system for items with different programming languages of platform

A programming language and project technology, applied in memory systems, program control design, program control devices, etc., can solve problems such as development and debugging overhead, and achieve the effect of facilitating cross-language development

Active Publication Date: 2017-02-22
CTRIP TRAVEL NETWORK TECH SHANGHAI0
View PDF7 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to solve the problems in the prior art that the entire project needs to be compiled to realize mutual reference between projects in the process of multi-language development, which brings unnecessary overhead for development and debugging; Mixed reference method and system with different programming language projects on the same platform

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Mixed reference method and mixed reference system for items with different programming languages of platform
  • Mixed reference method and mixed reference system for items with different programming languages of platform
  • Mixed reference method and mixed reference system for items with different programming languages of platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] Such as figure 1 As shown, a mixed reference method for projects with different programming languages ​​on the same platform, the method includes:

[0041] S1. Establish a project directory structure.

[0042] Such as figure 2 As shown, the project directory structure includes: information subdirectory info, source file directory src, and target subdirectory target; source file directory src contains at least two language subdirectories, and each language subdirectory contains at least one project. Each project contains the project's source files written in the corresponding programming language.

[0043] S2, read the source file of each project, compile it into an intermediate file with the intermediate language belonging to the platform, and store it in the target subdirectory target.

[0044] In the process of actual use, there are various platforms, for example, .NET is Microsoft's (Microsoft) XML Web service-oriented platform, jvm platform, and so on. Each pla...

Embodiment 2

[0051] Such as figure 1 As shown, a mixed reference method for projects with different programming languages ​​on the same platform, the method includes:

[0052] S1. Establish a project directory structure.

[0053] Such as figure 2 As shown, the project directory structure includes: information subdirectory info, source file directory src, target subdirectory target, and build configuration subdirectory build config.

[0054] Wherein, the source file directory src contains at least two language subdirectories, each language subdirectory contains at least one project, and each project contains source files of projects written in a corresponding programming language.

[0055] The build configuration subdirectory build config contains at least one project configuration information. Each project configuration information includes: the project name of the project, the programming language used, the version of the programming language used, and the reference relationship infor...

specific Embodiment

[0076] The project written in c# language is as follows:

[0077]

[0078] The project written in f# language is as follows:

[0079]

[0080] The resulting dlls are consoleapplication1.dll and library1.dll respectively, and the read il located in the target subdirectory target is:

[0081]

[0082]

[0083]

[0084]

[0085] The metadata information is:

[0086] F#:

[0087] class Library1.HelloClass

[0088] .property instance string Hello()

[0089] .property instance string X()

[0090] Among them, Library1.HelloClass is the class name to be retrieved; hello and x are the function names to be retrieved C#:

[0091] class ConsoleApplication1. Program

[0092] .method private static void Main

[0093] Among them, ConsoleApplication1.Program is the name of the class to be retrieved; main is the name of the function to be retrieved.

[0094] The above is a mixed reference method disclosed in Embodiment 2 for projects with different programming languag...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a mixed reference method and a mixed reference system for items with different programming languages of a platform. The mixed reference method includes firstly, establishing an item directory structure; secondly, reading a source file of each item, compiling each source file into an intermediate file with an intermediate language of the platform and storing each intermediate file into a target subdirectory; thirdly, reading metadata information of each intermediate file and storing the metadata information into each information subdirectory; finally, retrieving all metadata information in the information subdirectory at least according to namespace information of any item so as to obtain item information of the corresponding item. The mixed reference method has the advantages that multi-compiling language development of single platform can dispense with global compiling and packaging processes, and main information of all compiled languages in the items can be directly provided for the items, so that cross-language development and integration of different compiled languages are facilitated for developers.

Description

technical field [0001] The invention relates to a parsing and quoting technology for programming languages, in particular to a mixed quoting method and system for projects with different programming languages ​​on the same platform. Background technique [0002] In recent years, a variety of different programming languages ​​have blossomed, with endless layers and their own advantages. Developers often combine the characteristics of different languages ​​to solve different problems. Existing management tools, for different languages, must be compiled into binary packages before they can reference each other. It brings unnecessary overhead to development and debugging, and it is often impossible to know in time whether the functions provided by other languages ​​are complete during the development process. Contents of the invention [0003] The purpose of the present invention is to solve problems in the prior art that in the process of multi-language development, the enti...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44G06F9/45
Inventor 桂之明郭亮陆费汉平
Owner CTRIP TRAVEL NETWORK TECH SHANGHAI0
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products