2022年1月8日土曜日

Comparing the programming languages ​​Rust and V, if V is more beneficial, it cannot be ignored.

https://blog.goo.ne.jp/jsp_blog/e/7060694611d493ceecde2e3e2c27ecb6

I shared it.

V language and Rust

On June 22, 2019, the V language was released as open source.
So far, I've been investigating various ways to develop WEB database applications with Rust, but when V language has more advantages, it cannot be ignored.
You may also need to consider switching to V language.
So, once I believed what the official V language website said, I tried to sort out the features compared to Rust.

▼ V language official website
https://vlang.io

▼ Comparison explanation with other languages ​​on the V language official website
https://vlang.io/compare


I have not actually used V language yet, but based on the above Then, it may be as follows.
VRustremarks
Executable file performanceIt is said that it is as fast as C on the V official website, but it seems that there are cases where it is slow at the moment. I think Rust is stable and fast.
Executable files are combined into oneWhen compiled, they all seem to be one file with the smallest possible size.
Cross-compileAll of them can easily generate executable files natively compatible with Windows, Linux, macOS, Android, and iOS. (V language Android / iOS will be supported in the future) In particular, V is in the policy of supporting GUI toolkits on each OS as standard. Rust's GUI library is left to each manufacturer.
Compile timeV also sells the speed of compilation. Certainly Rust isn't that fast.
Ease of learningSyntactically, V seems to be aware of Go's brevity. Rust still has to be written with variable ownership and lifetime in mind, and I'm having a hard time compiling ...
No garbage collectionNeither can set NULL for a variable. It seems that you are conscious of ensuring memory safety. Rust needs to be aware of variable ownership and lifetime for this feature, but I think it's amazing that V can achieve a garbage collection-free feature without that need. To do.
Type inference functionNeither requires a type declaration.
Ease of installing the libraryBoth are provided with a package manager and are easy to import.
Is there a powerful web framework?There is "vweb" in V, but I think it is still insufficient in terms of functionality. In Rust, it can be realized by "actix-web" and so on.
Is database connection easy?"Sqlite" "Postgres" "MySQL" seems to be easily realized by introducing a library.
Is there an OR mapper?V seems to come with the standard library. (I'm doing my best!) In Rust, you can do it with "diesel" .
Is there a form generation library???V has not been investigated. I think the most sophisticated form library available in open source is Java's "JasperReport" , but I don't think there is a comparable library in Rust.
Language maker supportRust is well supported by Firefox maker Mozilla. V seems to have only one sponsor on the official website at the moment.
Editor supportBoth seem to have basic plugins in Visual Studio Code. It seems that V also has a "Vid editor" .
Macro support×It seems that macros cannot be used in V because it is complicated. Since V itself is simple, I think that there is no problem with that policy.
Available for free for commercial use
So, if I believe only the description on the website, I feel that V language has a longer day than Rust except for the support of the manufacturer.
(Manufacturer support is the most important matter in language selection)
However, until the version of V language itself becomes 1.0, it seems that many destructive changes will be made.
(Now it's 0.1.24, next is 0.2)

I personally make small apps that can develop apps using DB on the WEB without a program.
I'm developing the server side with Rust, but I think that the day will come when I have to use V language.
(Sake)

Simple entry / exit management
Infinitely   simple time card system

WhitePlug
  Palm-sized Linux server

monipet
  Supports watching dogs and cats at veterinary hospitals
  Safe even at night when you leave the hospital

Smart mat
  Weight sensor Innovate inventory management with IoT.
  Prevent shortages and ordering mistakes with automatic ordering & email alerts

RealStocker
  Visualize inventory in real time!
  Achieves speedy and accurate warehousing / delivery management  IT company   based in

JSP Yokohama Co. , Ltd.   that handles software development, system development, product development (moni series), and agriculture.

0 コメント:

コメントを投稿