News for hackers. Stuff that matters.
Re:Apple Silicon M1: A Developer's Perspective by raverbashing on Saturday November 28, 2020 @02:31PM (#25239833)
Good to know

I'm glad Vim is running fine on Rosetta, still, if you wanted to compile it from source, it really shouldn't be too hard.

(Rust is a harder problem, so I wouldn't worry too much, still, once the dependencies are downloaded and compiled it's usually fine)

Re:Apple Silicon M1: A Developer's Perspective by saagarjha on Saturday November 28, 2020 @02:40PM (#25239893)
No need to use Rosetta:

  $ file `which vim`
  /usr/bin/vim: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64e]
  /usr/bin/vim (for architecture x86_64): Mach-O 64-bit executable x86_64
  /usr/bin/vim (for architecture arm64e): Mach-O 64-bit executable arm64e
Re:Apple Silicon M1: A Developer's Perspective by lmedinas on Saturday November 28, 2020 @03:06PM (#25240091)
vim 8.2 included in MacOS is native, neovim is not yet ported :(
Re:Apple Silicon M1: A Developer's Perspective by mlindner on Saturday November 28, 2020 @11:02PM (#25242836)
NeoVIM works fine after adding a compilation target. See: https://github.com/neovim/neovim/pull/12624

It hasn't been merged yet as some of the dependencies aren't available, one of them apparently being LuaJIT, but if you build it yourself without that it shouldn't be a problem.

Re:Apple Silicon M1: A Developer's Perspective by X-Istence on Saturday November 28, 2020 @07:31PM (#25241864)
I install from Homebrew, specifically MacVim. The system version is usually behind on patch levels/plugins that can be loaded.
Re:Apple Silicon M1: A Developer's Perspective by mlindner on Saturday November 28, 2020 @11:03PM (#25242841)
Gluing yourself at the hip to homebrew is a bad idea IMO. It's trivial to install things yourself. It's just a matter of `./configure && make && make install` and you're done.
Re:Apple Silicon M1: A Developer's Perspective by ibraheemdev on Saturday November 28, 2020 @11:39PM (#25242953)
Why do a `git clone pkg && cd pkg && ./configure && make && make install` instead of just a `brew install`? The whole point of a package manager is to make installations and upgrades easier.
Re:Apple Silicon M1: A Developer's Perspective by mlindner on Sunday November 29, 2020 @02:36AM (#25243599)
Homebrew never was a package manager until recently. It was in the name, it was designed for building packages from source on your local machine.
Re:Apple Silicon M1: A Developer's Perspective by X-Istence on Sunday November 29, 2020 @02:43AM (#25243627)
Now your are just quibbling over what ultimately is a minor difference.
Re:Apple Silicon M1: A Developer's Perspective by X-Istence on Sunday November 29, 2020 @01:17AM (#25243303)
"just"

Also need to track down and install all of the dependencies, and the dependencies dependencies and all the way down, and figure out the right configure flags to pass, and what environment variables it needs and where it expects to look for header files and the like.

Doing all of that from scratch takes hours and hours. Homebrew lets me not worry about that, and instead be productive.

Re:Apple Silicon M1: A Developer's Perspective by ant6n on Sunday November 29, 2020 @08:44AM (#25245064)
It also takes care of updates
Re:Apple Silicon M1: A Developer's Perspective by arcticbull on Saturday November 28, 2020 @05:00PM (#25240924)
I'm doing my Rust development in a Docker container deployed on AWS w/Fargate and EFS to store my source, via VSCode Remote on my M1 MacBook Pro :) Thin client, arbitrarily fat server. VSCode Remote makes it a very pleasant experience. I'll document my experience once I've smoothed out the kinks.

The nice thing is I can just wait out the compatibility issues re: arm migration, especially with some of the third party crates my rust projects depend on currently failing to build.

Re:Apple Silicon M1: A Developer's Perspective by aledalgrande on Saturday November 28, 2020 @07:01PM (#25241692)
What is the monthly expense to run your dev on Fargate?
Re:Apple Silicon M1: A Developer's Perspective by arcticbull on Sunday November 29, 2020 @07:50PM (#25249646)
Just got it set up a few days ago, but happy to report back. I'll also write up a quick medium post or something.
Re:Apple Silicon M1: A Developer's Perspective by X-Istence on Saturday November 28, 2020 @07:30PM (#25241859)
Being able to easily install it using homebrew is really where that need came from. I can use the existing bottles and the recommendation for right now is to not mix and match both Intel/Arm binaries.

Also, the ARM version of Homebrew is not yet ready for primetime, there is a ton of software that doesn't compile for ARM yet (Including MacVim).