News for hackers. Stuff that matters.
Re:Rob Pike interview by nappy-doo on Thursday April 30, 2020 @12:02PM (#23032348)
use a better editor. VSCode, vim with vimgo, emacs with whatever those apes use.
Re:Rob Pike interview by jpgvm on Thursday April 30, 2020 @12:04PM (#23032369)
This helps but doesn't solve the core issues. I generally use Goland whenever editing Go code (as I am currently doing sigh) but even with such a powerful IDE the language is the main limiting factor in carrying out refactorings (which again, I'm doing right now).
Re:Rob Pike interview by dlsniper on Friday May 01, 2020 @01:40PM (#23044553)
What kind of refactorings would you like to do but GoLand doesn't help with? I'd be interested in that kind of feedback. Thank you!
Re:Rob Pike interview by centimeter on Thursday April 30, 2020 @12:23PM (#23032638)
I shouldn't need an industrial-strength editing engine to efficiently express my ideas. (And don't, if I'm using a nice expressive language.)
Re:Rob Pike interview by throwaway894345 on Thursday April 30, 2020 @01:00PM (#23033148)
Generally speaking, Go is one of the easiest languages to write with a simple text editor. Rust is among the hardest due to its complexity and demanding static analysis. This isn't a bad thing, and tools like rust-analyzer make writing Rust a lot easier. But rust-analyzer is amazing technology from the future; hardly an ordinary text editor plugin.
Re:Rob Pike interview by eropple on Thursday April 30, 2020 @01:14PM (#23033295)
> Generally speaking, Go is one of the easiest languages to write with a simple text editor.

And one of the absolute dog's-breakfast worst to refactor regardless of editing environment. No statically typed language should be this hard to do basic changes in, and yet it exists.

Being writable in a "simple text editor" isn't a plus when the "simple text editors" in 2020 are IDEs with the name filed off.

Re:Rob Pike interview by mcqueenjordan on Thursday April 30, 2020 @04:27PM (#23035697)
OK, I'll bite...

The demanding static analysis and clear compiler errors actually make it easier and more robust to write unaided for me. Especially when it comes to refactoring -- it's essentially a process of resolving the compiler errors and you can be pretty confident you've arrived at a correct result.

Source: I write Rust everyday in a plain text editor without syntax highlighting.

Re:Rob Pike interview by centimeter on Thursday April 30, 2020 @04:19PM (#23035605)
> Go is one of the easiest languages to write with a simple text editor.

As long as you never refactor anything.

> Rust is among the hardest due to its complexity and demanding static analysis

I have never wanted or needed to offload Rust's "demanding static analysis" to my text editor. Rust's linearity/lifetime type system is really quite simple - it's not like you have to keep track of long-distance lifetime relationships in your head.

Even a reasonably powerful type system with e.g. HKTs, arithmetic, etc. like Haskell's rarely benefits from external tooling, and any interactivity can often be just as easily done via a polling build tool like ghcid rather than integrating it into a text editor.

The one place where it strikes me as sane to have a "smart" text editor is if you're using a proof assistant-style language like Coq/Idris/Isabelle/Liquid Haskell/etc. where there's actually a non-trivial amount of interactivity required while writing the code.

Re:Rob Pike interview by nappy-doo on Thursday April 30, 2020 @12:30PM (#23032756)
ever written Java?