sudo apt update
sudo apt install software-properties-common -y
How to install numpy on M1 Max, with the most accelerated performance (Apple's vecLib)? Here's the answer as of Dec 6 2021.
So that your Python is run natively on arm64, not translated via Rosseta.
$ bash Miniforge3-MacOSX-arm64.sh
{;; Currently, we support either "Markdown" or "Org". | |
;; This can overwrite your global preference so that | |
;; maybe your personal preferred format is Org but you'd | |
;; need to use Markdown for some projects. | |
;; :preferred-format "" | |
;; Preferred workflow style. | |
;; Value is either ":now" for NOW/LATER style, | |
;; or ":todo" for TODO/DOING style. | |
:preferred-workflow :now |
Lima (Linux virtual machines, on macOS) installation guide for M1 Mac.
Sep. 27th 2021 UPDATED
Now we can install patched version of QEMU via Homebrew (thank you everyone for the info!). Here is the updated instruction with it:
Used M1 Mac mini 2020 with macOS Big Sur Version 11.6.
package main | |
import ( | |
"bytes" | |
"flag" | |
"golang.org/x/net/websocket" | |
"io" | |
"k8s.io/client-go/1.4/rest" | |
"k8s.io/client-go/1.4/tools/clientcmd" | |
"log" |
// Filter 注册的filter,用于在server端过滤数据并提供高性能查询 | |
type Filter struct { | |
KeyFileds []string | |
FilterStr string // 更新无极数据时用到的,注册的filter条件 | |
Template interface{} // 返回数据类型模板 | |
// objStore 用于Filter后数据的存储 | |
objStore map[string]interface{} | |
objStoreMutex *sync.RWMutex | |
dataVersion int // 当前内存中无极数据的版本 | |
stat *Stat |