반응형
V언어 프로그래밍 리뷰(2022)를 소개합니다. (mawfig.github.io)
V언어관련 주요내용을 정리해보면 아래와 같습니다.
V 프로그래밍 언어 리뷰
|
그리고, 요약은 아래와 같습니다.
Summary
To consolidate the above into one table:
AreaRatingNotes
Simple language for building maintainable programs | N/a | Subjective claim. |
Safety | ||
> No null | 🛑 | We’re able to create a null pointer (V reference) with no compiler errors or warnings. |
> No undefined values | 🛑 | We could read uninitialized memory without compiler error or warnings. |
> No undefined behavior | 🛑 | The V compiler didn’t stop us from creating three different forms of UB. |
> No variable shadowing | ✔️ | We weren’t able to shadow local variables. |
> Bounds checking | ⚠️ | Some basic checking exists but can be trivially bypassed. |
> Immutable variables by default | 🛑 | Variables aren’t immutable in any significant way because you can trivially turn an immutable reference into a mutable one. |
> Pure functions by default | 🛑 | Claim is meaningless as it redefines “pure” to mean “impure”. |
> Immutable structs by default | 🛑 | Immutability can be by-passed trivially. |
> Option/Result and mandatory error checks | ✔️ | Works as advertised. |
> Sum types | ⚠️ | Sum types generally seem to work but there are implementation issues. |
> Generics | 🛑 | A basic implementation exists but is very buggy and seems completely out of place in a language with an self described emphasis on safety and compiler performance. |
> No global variables | 🛑 | V does not prevent you from creating and mutating globally shared state in any meaningful way. |
Performance | ||
> As fast as C (V’s main backend compiles to human readable C) | 🛑 | V’s performance claims don’t seem to be valid. |
> C interop without any costs | ✔️ | Works as advertised. |
> Minimal amount of allocations | N/a | Subjective claim. |
> Built-in serialization without runtime reflection | ✔️ | Works as advertised. |
> Compiles to native binaries without any dependencies | ⚠️ | V doesn’t seem to achieve the exact claims made at this time but there is some truth to the general ideas that V programs are relatively self-contained and small. |
Fast Compilation | ||
> V compiles ≈1 million lines of code per second per CPU core | 🛑 | The V compiler does not come close to the claimed level of performance. |
> V is written in V and compiles itself in under a second | ✔️ | Works as advertised. |
Innovative memory management | 🛑 | V’s claims are not well supported and the existing implementation cannot be described as “innovative”. |
좀 더 자세한 내용은 아래 홈페이지 참고부탁드릴께요~
V Language Review (2022) | mawfig.github.io
오늘의 블로그는 여기까지고요...
항상 믿고 봐주셔서 감사합니다.
728x90
300x250
'좋아하는 것_매직IT > 96.IT 핫이슈' 카테고리의 다른 글
TinyWow - 무료 파일 처리 도구 모음 사이트를 소개합니다. (0) | 2022.06.24 |
---|---|
Viddy - Go로 재작성한 모던 Watch 커맨드를 소개합니다. (0) | 2022.06.24 |
Miniflux - 경량 오픈소스 RSS 리더를 소개합니다. (0) | 2022.06.24 |
RISC-V, 2022년의 첫번째 새로운 사양 발표 (0) | 2022.06.23 |
HDMI Firewall 를 소개합니다. (0) | 2022.06.23 |