TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

My journey with Rust in 2017 — The good, the bad, the weird

85 pointsby fschuttover 7 years ago

6 comments

greenhouse_gasover 7 years ago
1. Why are you&#x27;re learning a language at the same time you&#x27;re trying to launch an MVP? And a fairly involved language such as rust.<p>2. You&#x27;re complaining about windows32 API being slow, but blaming it on .NET (&quot;I don’t know if it was attributed to Windows or the application programmers, but I attributed Windows’ built-in functions with being slow and having shitty PDF output, which is why I refused to use anything related to Win32 or .NET&quot;).<p>Windows API is C (or internally C++).<p>3. Is display a bottleneck? I never developed GIS applications, but your display is 2D and doesn&#x27;t have to be real-time. I would assume that the &quot;back end&quot; of the program is doing most of the calculations, and the display just outputs it (not like, say, a 3D game where the rendering engine does a significant chunk of its own work).
评论 #16069918 未加载
评论 #16069329 未加载
评论 #16068880 未加载
ohaziover 7 years ago
Software taking half an hour to generate a PDF probably has nothing to do with the performance differences between bare metal and garbage collected languages.
评论 #16069982 未加载
ToJansover 7 years ago
I am wondering why the author didn&#x27;t opt for a language&#x2F;platform with a mature PDF and GUI library?<p>If I read the article correctly, it would have halved his development time...
评论 #16069328 未加载
nemothekidover 7 years ago
I started a reading the article expecting a critique of Rust, and I&#x27;m halfway through and it feels like I&#x27;m reading 2014-esque React philosophies on UI management.
评论 #16070024 未加载
Sammiover 7 years ago
He didn&#x27;t link to the product he&#x27;s building. So I looked up the company he&#x27;s listing himself as working at at found this: <a href="http:&#x2F;&#x2F;maps4print.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;maps4print.com&#x2F;</a>
5ourpussover 7 years ago
I often dream about doing what the author is currently doing: Tooling around, writing software in a language I want to learn full-time. If I could get a patreon going...<p>ANYWHO, I didn&#x27;t come here to malign the author. I came here to ask a question.<p>( For clarity, I&#x27;m an experience dev, computer science degree, been a developer full time for 6 years out of college and two years while in college )<p>I see a lot of discussion in here about developing GUIs in Rust. Writing native GUIs with Rust sounds awesome to me, and I&#x27;m drawn to it for the obvious benefits.<p>One of the things I want to do in 2018 is learn a new programming language. Last year I learned groovy, which is terrible, and Elixir, which is great and I highly recommend it.<p>I&#x27;m currently tore between three languages: Rust, Reasonml, and Scala<p>They have the following requirements:<p>- EXCELLENT type system - Functional - Productive - Portable<p>My goal is to write GUI applications that help me design my board games.<p>* Scala<p>Scala has a nice type system, runs on the JVM so we get all of that sweet sweet Java interop, is functional with a mutable escape hatch, and is a &quot;boring&quot; language that is used extensively.<p>Additionally, the story for writing GUI applications for Java isn&#x27;t as slick as web technologies.<p>Listen, I&#x27;m a millennial. We don&#x27;t believe in anything. I don&#x27;t mind opening up a web browser to interact with a graphical user interface, so languages with a better web technologies story is more attractive to me.<p>Scala is not much of a departure from my previous languages, so I fear I wouldn&#x27;t learn much.<p>I already have Elixir for writing restful APIs and GoLang&#x2F;Hugo for static sites, so Scala over-laps with these use cases making it less productive.<p>* Reasonml<p>Reasonml is a newer language from Facebook that compiles to the OCaml syntax tree, and then uses the OCaml compiler to produce the machine code.<p>Currently, Reason&#x27;s only target is Javascript, but the community has already written a bunch of back-ends to have reason output to other formats.<p>There is a Facebook-developed React library called ReactReason, so targeting web technologies is Reasons JAM. A lot of Messenger.com has already been re-written using reason.<p>Reason has a language server implementation that hooks up to my Emacs config quite nicely, so I&#x27;m efficient in my development environment.<p>Reason uses OCaml&#x27;s type system, which has 25 years of development and is extremely effective.<p>Reason has a compiler. After working with dynamic languages for so long, I have learned to love my compiler.<p>Reason is designed for productive Javascript interop, so I have access to the gigantic nodejs ecosystem.<p>The humans who are d<p>Reason ticks a LOT of my boxes, but it has some warts:<p>- Not a perfect story for async programming. - Does not have a swagger-codegen back-end for stubbing out types based on my API docs. - Special little snowflake language with a small community - Really only good for front-end development - Is the type system and other language primitives THAT MUCH BETTER than Typescript + ImmutableJS?<p>* Rust<p>Rust is the language I WANT to learn and use, but I am hesitant for a number of reasons.<p>I want to learn rust because:<p>- Aside from a teeny bit of C &#x2F; C++ usage in college, I&#x27;ve not written in a low level language that requires me to think about garbage collection and I think it would be a useful exercise. - It&#x27;s extremely fast. - It has some excellent concepts, like the borrow checker, that will expose me to new ways of programming. - Will be nice to have a low-level language in my tool belt. - Quickly growing community, a good opportunity to contribute FOSS.<p>I&#x27;m hesitant because:<p>- I&#x27;m concerned it doesn&#x27;t fit my use case of writing GUIs. - I want it to be a PRODUCTIVE langauge, and MAKE STUFF, not writing glue to get the stuff I want to work.
评论 #16071894 未加载