#programmer Rust or Go ? terjawab sudah (^^^) :D Full comment - TopicsExpress



          

#programmer Rust or Go ? terjawab sudah (^^^) :D Full comment bagi yang di blok redditnya : They are not meant to be competing languages. They fill different needs, designed with different approaches and excels at different things. If you want to write low-level stuff, something that needs every tiny bit of performance, working directly with the hardware or graphics, and you want to handle the memory. Basically something that youd use C/C++ to write, something like kernel, driver, graphics library, a big library that exposes a C interface for other languages to call, a game that couldnt work well if there are GC pauses, or something like what Mozilla is building: Servo, a new browser engine. Then go with Rust, just choose Rust, or plain C/C++ for that. Ive made the mistake of fanboyingly choosing Go for this kind of task and it hurts, its really stupid and inappropriate, even though Go can definitely do some, its awkward. On the other hand, if you want to do something like writing a tool, a server, a web application, a network application or an application to process, send/receive something or whatever that is called high-level. Things that previously people have to use such slow and unsafe scripting languages like Python, Ruby or PHP to write. You dont care about GC, you dont care about memory management, lifetimes and all that stuff, and you shouldnt care because Go is a compiled language which is more than fast enough to do ten times the work. You just want something simple, fast, compiles instantly and makes your code the easiest to read, to understand, to cooperate and to maintain. Choose Go, for the love of god choose Go because its awesome for the job. One more thing I want to say: Ive made of mistake of being such a fanboy, choosing that language I love for unsuitable tasks. And thats the worst thing. Theres no perfect language, there is no best language. The best language is choosing the right tool for the job. reddit/r/golang/comments/29ua55/rust_or_go/ciojqcg
Posted on: Fri, 04 Jul 2014 19:27:53 +0000

Trending Topics



Recently Viewed Topics




© 2015