[HN Gopher] Hecto: Build your own text editor in Rust
___________________________________________________________________
Hecto: Build your own text editor in Rust
Author : lukastyrychtr
Score : 17 points
Date : 2021-01-17 09:00 UTC (1 days ago)
(HTM) web link (www.philippflenker.com)
(TXT) w3m dump (www.philippflenker.com)
| brundolf wrote:
| > Why? I have always thought that every software engineer needs
| to have more than superficial knowledge of at least two
| programming languages. However, I have to admit, that in the past
| few years, my knowledge in pretty much everything except
| JavaScript has started to fade.
|
| Slightly OT, but it's interesting to me how common this story
| seems to be. It's basically my story with Rust too. In many ways
| Rust is the polar opposite of JS: low-level memory model, high-
| performance, meticulous and cohesive language design, strict-
| typing-first. But in terms of its culture and ecosystem there's a
| lot of overlap: a vibrant package ecosystem that you're
| encouraged to hook into, trivial cross-platform-targeting,
| embrace of creativity, and a closeness to the web that spans
| everything from first-class (de)serialization support to first-
| class WASM support (unsurprising given its origins at Mozilla).
|
| My theory is that there's a whole bunch of us who use JS at work
| and are specifically looking for the exact opposite in our hobby
| projects, not because we hate JS but because we want a palette
| cleanser/to keep our knowledge broad, and that many of us are
| turning to Rust, and that this may be a driving force in the way
| the Rust ecosystem is evolving.
|
| Edit: I have to wonder if there's a similar phenomenon going on
| with Clojure. It too is very popular with hobbyists, and less
| popular with companies, and positioned as both adjacent to (in
| terms of ecosystem and amenities) and directly opposite from (in
| terms of semantics and developer experience) an extremely popular
| enterprise language - Java - which many people use every day at
| work and have a love-hate relationship with.
| pornel wrote:
| > bunch of us who use JS at work and are specifically looking
| for the exact opposite in our hobby projects
|
| I use Rust at work, and JS only in hobby projects :)
|
| There is something "opposite" about these languages, but I
| think both coexist because there's very little overlap in their
| use-cases. You use Rust where JS can't be used (multicore,
| high-performance, or low-level native code), and use JS where
| Rust would be overkill (small webby things).
| loopz wrote:
| I never heard of java devs playing around with java, IDEs et
| al. in their free time either. I'm sure they exist, but sounds
| entirely foreign (hello Apache!).
| cassepipe wrote:
| Based on the great Kilo tutorial to reimplement a simple text
| editor in C https://viewsourcecode.org/snaptoken/kilo/
___________________________________________________________________
(page generated 2021-01-18 23:01 UTC)