Glue Code란
glue의 사전적 의미는 "풀" (종이를 붙이는 딱풀 또는 접착제)을 의미한다.
glue code란 말 그대로 연결 또는 붙여주는 코드를 가리킴.
붙이는 대상을 넣어서 정의하면 다음과 같음.
"
glue code"는
서로 다른 소프트웨어 component(or Entity)들을
연결하여 작동하게 하는 코드.
glue code는
서로 다른 데이터 포맷이나 프로그래밍 인터페이스를 가지고 있어서
직접적으로 호환되지 않는 시스템(또는 component)들 사이에서 데이터를 변환하거나 메시지를 전달하는 데 사용됨.

Glue code: Adapter 및 Wrapper의 활용
- component들의 다른 interface를 중간에서 변경해주는
adapter나, - 특정 component를 감싸는 객체를 이용하는
wrapper등이
glue code에서 자주 사용됨.
Language Binding
glue code에 대한 API를 보통 language binding 이라고도 부름.
C or C++로 만들어진 라이브러리를
Python으로 작성된 source code에서 사용할 수 있도록 API를 제공해 주는 대표적인 language binding으로
NumPy나 PySide (or PyQt)등이 있음.
같이 읽어보면 좋은 자료
https://ko.wikipedia.org/wiki/%EC%96%B8%EC%96%B4_%EB%B0%94%EC%9D%B8%EB%94%A9
언어 바인딩 - 위키백과, 우리 모두의 백과사전
위키백과, 우리 모두의 백과사전. 컴퓨팅에서 바인딩(binding)은 프로그래밍 언어가 해당 언어에 네이티브하지 않는 외부 라이브러리나 운영 체제 서비스를 사용할 수 있도록 만들어주는 글루 코
ko.wikipedia.org
2024.06.06 - [Python] - [Programming] Binding: Name Binding and Language Binding
[Programming] Binding: Name Binding and Language Binding
Programming에서의 Binding(binding)이란?binding은 프로그램이 실행되는 동안 특정 identifier (or name)에어떤 속성이나 객체 등의 실제 대상을 binding(연결)하는 것을 의미함.Binding의 기본 개념Name or Identifier Us
ds31x.tistory.com
https://dsaint31.tistory.com/512
[Python] Python 소개?
Python 이란Python은 현재 가장 많이 사용되는 High-Level Programming Language 중 하나임. 사실, Machine Learning (특히 Deep Learning) 분야와 Data Science 분야, 그리고 Scientific Computing분야에서 가장 많이 사용되는 언
dsaint31.tistory.com
'Python' 카테고리의 다른 글
| [DL] Tensor 간의 변환: NumPy, PyTorch, TensorFlow (0) | 2024.03.15 |
|---|---|
| [Python] importlib.util.find_spec() (0) | 2024.03.08 |
| [Python] itertools: iterator를 반환. (0) | 2024.02.04 |
| [Python] Parameter 의 종류 - Slash and Asterisk for Function Parameters (1) | 2024.02.04 |
| [Python] mutable and immutable: Mutability (1) | 2024.02.03 |