Patents
Literature
Hiro is an intelligent assistant for R&D personnel, combined with Patent DNA, to facilitate innovative research.
Hiro

61 results about "Type inference" patented technology

Type inference refers to the automatic detection of the data type of an expression in a programming language. It is a feature present in some strongly statically typed languages. It is often characteristic of functional programming languages in general. Some languages that include type inference include C++11, C# (starting with version 3.0), Chapel, Clean, Crystal, D, F#, FreeBASIC, Go, Haskell, Java (starting with version 10), Julia, Kotlin, ML, Nim, OCaml, Opa, RPython, Rust, Scala, Swift, Vala and Visual Basic (starting with version 9.0). The majority of them use a simple form of type inference; the Hindley-Milner type system can provide more complete type inference. The ability to infer types automatically makes many programming tasks easier, leaving the programmer free to omit type annotations while still permitting type checking.

Local type alias inference system and method

The present invention discloses an improved system and method for specifying and compiling computer programs. Type aliases are introduced whose binding is inferred by a type inference component during compilation. Once declared, type aliases can be utilized just like regular types thereby providing added efficiency in coding, among other things. Additionally, a mechanism for specifying the introduction of a new variable whose type is to be inferred is disclosed. This mechanism clears up an ambiguity during type inference concerning whether to infer a new variable type or utilize a variable in scope. Further yet, an efficient type inference system and method is disclosed to effectively deal with overloading among other things.
Owner:MICROSOFT TECH LICENSING LLC

Python resource sensitive defect code detecting method based on depth neural network

The invention provides a Python resource sensitive defect code detecting method based on a depth neural network. The Python resource sensitive defect code detecting method comprises the following steps of 1, obtaining a source code of the historical version of the same software and a source code of a to-be-detected version; 2, utilizing type deduction to extract resource sensitive code modes of all versions; 3, extracting relevant characteristics of the resource sensitive code modes; 4, calculating all characteristic similarities between a defect code mode and a safe code mode and between thedefect code mode and a to-be-detected code mode to generate characteristic vectors and obtaining a training set and a testing set; 5, using the training set to train a depth neural network model to combine the characteristics, then using the mode with a testing set to calculate relevance of the depth neural network model and ranking the relevance; 6, conducting prompt, assisting development and maintenance on possibly wrong resource object operations according to a relevance ranking result in a program development and maintenance period. The Python resource sensitive defect code detecting method based on the depth neural network solves the problems that currently, an automated method aiming at Python language resource sensitive code recognition and defect code detection is lack, then the software risk is lowered, the software quality is improved, and thus the efficiency for a developer and a maintainer to develop and maintain software is improved.
Owner:NANJING UNIV

Method of performing queriable XML compression using reverse arithmetic encoding and type inference engine

A method and apparatus for performing queriable XML compression and queries related to a compressed XML document are disclosed. In the method, information, including at least the frequencies of the respective tags of XML data, the type information of data values and data value-related statistical information is collected. Thereafter, the type information of data values of elements is inferred according to tags using an automatic data type inference engine algorithm. Reverse arithmetic encoding is performed on the tags and paths of elements. The data values are encoded based on the inferred type information.
Owner:KOREA ADVANCED INST OF SCI & TECH

Configuration item type constraint inference method based on name semantics

The invention discloses a configuration item type constraint inference method based on name semantics, and provides a configuration item type inference and related constraint extraction method based on name semantics, wherein semantic information in a name and a type of a configuration item are fully mined, and consequently an aim of promoting configuration constraint extraction precision and eliminating constraint extraction boundedness is realized. A technical scheme comprises the following steps: firstly, reading a configuration file of a software system in advance, and obtaining the configuration item in the configuration file through parsing; secondly, finding out mapping between the system configuration item and a program source code through a characteristic mode; then, obtaining thetype of the configuration item through name analysis and program source code analysis; completing verification for the configuration type; and finally, inferring out the configuration constraint in cooperation with program analysis through a predefined template. According to the method provided by the invention, the semantic information in the name of the configuration item, particularly the constraint information contained in the configuration item type, is mined fully. The type of the configuration item is inferred through the name of the configuration item, meanwhile, grammar and semanticconstraint of the configuration item are extracted, difficulty in extraction of the configuration constraint is reduced greatly, the configuration constraint can be described in a fine granularity mode at the same time, and the method has good application scenes.
Owner:NAT UNIV OF DEFENSE TECH

Type inference of generic type parameters in overloaded functions using type intervals and inference directions

The disclosed embodiments provide a system that facilitates the development and execution of a software program. During operation, the system obtains a type interval for a generic type parameter of an implementation of an overloaded function. Next, the system selects an inference direction for the generic type parameter based on a variance of the generic type parameter, wherein the inference direction is an upward inference direction or a downward inference direction. Finally, the system uses the type interval and the inference direction to perform type inference on the generic type parameter.
Owner:ORACLE INT CORP

Smart socket-based electrical appliance type inference method and device

The invention discloses a smart socket-based electrical appliance type inference method and device, wherein the method comprises the following steps: constructing a user power data set according to electrical appliance power consumption data, and constructing an electrical appliance power consumption characteristic model library according to the electrical appliance power consumption characteristic; constructing an electrical appliance behavior data set according to the user power data set and the electrical appliance power consumption characteristic model library; constructing a characteristic vector extracting model according to the electrical appliance behavior data set so as to construct a power consumption characteristic vector data set; constructing an electrical appliance type classifier according to the power consumption characteristic vector data set and a machine learning algorithm; detecting the power consumption data of a to-be-measured electrical appliance and determiningthe electrical type of the to-be-measured electrical appliance through the model and the classifier. According to the method, the power data of the user is collected through a smart socket; by extracting the characteristics of the range of the power consumption of the household appliances, the duty ratio of the power consumption and the duration of time of power consumption, the power utilizationbehavior of the user is inferred, an electrical appliance behavior event data set is generated, and an electrical appliance type classifier is constructed based on the machine learning model, so thatthe type of the utilized electrical appliance can be inferred in real time; the robustness is high; and the method is simple and easy to implement.
Owner:BEIHANG UNIV +1

Systems and/or methods for type inference from machine code

Systems, methods and computer readable medium described herein relate to techniques for automatic type inference from machine code. An example technique includes receiving a machine code of a program, generating an intermediate representation of the machine code, generating a plurality of type constraints from the intermediate representation, generating one or more inferred types based at least upon the plurality of type constraints, converting the generated inferred types to C types, updating the intermediate representation by applying the inferred types to the intermediate representation, and outputting said inferred types, said converted C types, and / or at least a portion of the updated intermediate representation.
Owner:GRAMMATECH

Method, apparatus, and computer program for specializing serializer

To provide a method, apparatus, and computer program for performing type inference of serialization for each generation site and specializing a serializer for each generation site. A type of serialization is inferred for each generation site of compiling a query, and a serializer is specialized for each generation site based on the inferred type and a type that is actually used. A data value is serialized using the specialized serializer for each generation site. The inference is executed while transcribing identification information assigned to each generation site to a type as an annotation, and the inferred type and the type used in serialization are recursively compared.
Owner:IBM CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products