Letian Tang

dblp:326/2914 · DBLP profile ↗
← Back
2ranked-venue papers
0as first author
2since 2021 · last 2022
0000-0001-8882-9187ORCID · corroborated

Domains — the database's venue-derived domains; a paper can count in several

Software engineering, systems software and programming languages · 2 · 2 since 2021Applied, interdisciplinary, general and emerging computing · 1 · 1 since 2021
YearPublicationVenuePosition
2022 MerGen: A Smart Code Merging Approach for Automatically Generated Code
abstract
In model-driven low-code development, developers obtain the initial system implementation by generating the source code from models and then modify the generated code for custom-ization. In the subsequent development, the models may evolve so the code must be re-generated. How to merge the modified code with the newly generated code is an important issue. Existing model-driven development tools simply discard the code changed by developers or preserve developers' code based on some special annotations manually appended by developers. This paper pro-poses MerGen, a smart code merger for the generated code. Mer-Gen relies on universal unique identifiers that are associated with the generated code entities (i.e., types, fields, and methods) to pair the parts to be merged. Then, MerGen computes the digest of an entity in the normalized form to automatically determine whether the entity has been changed. Finally, MerGen uses a two-way re-factoring-based merging algorithm to merge the semantic code changes, rather than directly merging the code textually. We im-plement a prototype tool for the Eclipse Modeling Framework (EMF) and conduct a case study to evaluate the feasibility and the effectiveness of MerGen. The study results show that MerGen can effectively merge the modified code with the newly generated code compared with the default code merger of the EMF.
Xiao He 0005, Letian Tang
COMPSAC2
2022 Accelerating similarity-based model matching using on-the-fly similarity preserving hashing
abstract
Similarity-based model matching is the foundation of model versioning. It pairs model elements based on a distance metric (e.g., edit distance). Because it is expensive to calculate the distance between two elements, a similarity-based matcher usually suffers from performance issues when the model size increases. This paper proposes a hash-based approach to accelerate similarity-based model matching. Firstly, we design a novel similarity-preserving hash function that maps a model element to a 64-bit hash value. If two elements are similar, their hashes are also very close. Secondly, we propose a 3-layer index structure and a query algorithm to quickly filter out impossible candidates for the element to be matched based on their hashes. For the remaining candidates, we employ the classical similarity-based matching algorithm to determine the final matches. Our approach has been realized and integrated into EMF Compare. The evaluation results show that our hash function is effective to preserve the similarity between model elements and our matching approach reduces 16%--72% of time costs while assuring the matching results consistent with EMF Compare.
Xiao He 0005, Letian Tang
MoDELS2