sermant-io / Sermant

A Cloud-Native Proxyless Service Mesh based on Java Bytecode Enhancement Technology
https://sermant.io/
Apache License 2.0
1.26k stars 170 forks source link

Why was C language chosen over Java for attach.c? #1516

Closed Yaxx19 closed 6 months ago

Yaxx19 commented 6 months ago

What do you want to ask?

Hello, I was looking at the attach.c script and I’m curious about the decision to implement it in C rather than Java. Could you please share the design considerations or trade-offs that led to this choice? Understanding the rationale behind the language selection would be very helpful for my own learning and to better appreciate the project’s architecture.

hanbingleixue commented 6 months ago

This script is developed when the Sermant interconnects with the Gopher. The Gopher supports the C language script. Therefore, the C language is used to dynamically mount the script.

hanbingleixue commented 6 months ago

The question has been answered. No other questions will be raised. Therefore, this issue is closed.