아핫뉴스실시간 인기검색어
아핫뉴스 화산 이미지
아하

생활

생활꿀팁

프알못
프알못

Rust는 Managed 언어인가요? Unmanaged 언어인가요?

By "managed" they normally mean a presence of a garbage-collected memory management and/or a presence of a virtual machine infrastructure - StackExchange 답변
To put it very simply, managed code is just that: code whose execution is managed by a runtime. In this case, the runtime in question is called the Common Language Runtime or CLR, regardless of the implementation (Mono or .NET Framework or .NET Core). - Microsoft 문서
Managed code systems take care of memory management by automatically allocating and deallocating memory (garbage collection) as needed. - 다른 글

Managed와 Unmanaged 언어에 대해 검색 해 보면
VM에서 돌아가거나 GC가 있으면 Managed라는 것 같은 글을 많이 볼 수 있습니다.

메모리 · 동시성 이슈를 컴파일 시점에 잡아주는 Rust는 메모리 관리로 인해
개발자가 의도하지 않은 메모리 재배치나 메모리(배열 범위)검사 루틴 등이 생기고
어쨌든 메모리를 관리해 주기 때문에 Managed라는 의견도 있던데

Rust를 Unmanaged 언어라고 봐도 괜찮을까요?

    55글자 더 채워주세요.
    1개의 답변이 있어요!
    • 섹시한꽃새90
      섹시한꽃새90

      Unmanaged 언어 중 대표적인 언어로는 C#,Java로 메모리의 할당과 해제를 통한 메모리를 관리없이 언어자체적으로 메모리를 관리합니다 또한, 메모리를 구체적인 관리를 할수 없기 때문에 프로그래밍의 자유도가 낮으며 비정기적인 메모리 정리가 이루어집니다.

      Rust 언어는 Unmanaged 언어가 맞습니다.