{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "a0e3b3f3", "metadata": {}, "outputs": [], "source": [ "import os\n", "from subprocess import check_output\n", "\n", "def p(ls):\n", " print(' '.join(sorted(ls)))" ] }, { "cell_type": "code", "execution_count": 2, "id": "07552d09", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'ca-certificates'}" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "work_rosetta = {'ca-certificates'}\n", "work_rosetta" ] }, { "cell_type": "code", "execution_count": 16, "id": "f0701f6a", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "ca-certificates\n" ] } ], "source": [ "rosetta = set(check_output('arch -x86_64 /usr/local/bin/brew list'.split(), text=True).split())\n", "p(rosetta)" ] }, { "cell_type": "code", "execution_count": 4, "id": "9cf34db5", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "antigen autoconf awscli bat ca-certificates fd fzf gdbm gettext go hugo icu4c krb5 libevent libffi libidn2 libssh2 libtermkey libunistring libuv luajit-openresty luv m4 mpdecimal msgpack ncurses neovim openssl@1.1 openssl@3 packer pcre2 pkg-config postgresql python@3.10 python@3.8 python@3.9 readline ripgrep rust six sqlite starship tcl-tk tmux tree tree-sitter unibilium utf8proc wget xz zlib\n" ] } ], "source": [ "work_native = {'antigen', 'autoconf', 'awscli', 'bat', 'ca-certificates', 'fd', 'fzf', 'gdbm', 'gettext', 'go', 'hugo', 'icu4c', 'krb5', 'libevent', 'libffi', 'libidn2', 'libssh2', 'libtermkey', 'libunistring', 'libuv', 'luajit-openresty', 'luv', 'm4', 'mpdecimal', 'msgpack', 'ncurses', 'neovim', 'openssl@1.1', 'openssl@3', 'packer', 'pcre2', 'pkg-config', 'postgresql', 'python@3.10', 'python@3.8', 'python@3.9', 'readline', 'ripgrep', 'rust', 'six', 'sqlite', 'starship', 'tcl-tk', 'tmux', 'tree', 'tree-sitter', 'unibilium', 'utf8proc', 'wget', 'xz', 'zlib'}\n", "p(work_native)" ] }, { "cell_type": "code", "execution_count": 5, "id": "d1d58c10", "metadata": { "scrolled": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "aom asdf atool autoconf automake aws-vault bat bdw-gc brotli btop bzip2 c-ares ca-certificates cairo cjson cmocka colordiff coreutils dav1d duf ffmpeg flac fontconfig fop freetype frei0r fribidi fzf gawk gcc gd gdbm gdk-pixbuf gettext giflib glib gmp gnupg gnutls go gobject-introspection gping graphite2 graphviz gron gts guile harfbuzz htop httpie icu4c imath isl jansson jasper jpeg jpeg-xl jq keepingyouawake krb5 lame leptonica libarchive libass libassuan libavif libb2 libbluray libevent libffi libgcrypt libgpg-error libidn2 libksba libmaxminddb libmpc libnghttp2 libogg libpng libpq libpthread-stubs libreoffice librist librsvg libsamplerate libsmi libsndfile libsodium libsoxr libssh libssh2 libtasn1 libtiff libtool libunistring libusb libvidstab libvmaf libvorbis libvpx libx11 libxau libxcb libxdmcp libxext libxml2 libxrender libxslt libyaml little-cms2 lua lz4 lzo m4 mbedtls mpdecimal mpfr mtr ncurses netpbm nettle nmap npth oniguruma opencore-amr openexr openjdk openjpeg openssl@1.1 openssl@3 opus p11-kit pango pcre pdftohtml pinentry pipx pixman pkg-config prips procs pyenv pyenv-virtualenv pyenv-virtualenvwrapper python@3.10 python@3.9 rav1e readline rubberband rust sd sdl2 snappy speex sqlite srt tcl-tk telnet tesseract theora tree unbound unixodbc unzip watch webp wget wireshark wxwidgets x264 x265 xorgproto xvid xz youtube-dl zeromq zimg zip zlib zstd\n" ] } ], "source": [ "native = set(check_output('brew list'.split(), text=True).split())\n", "p(native)" ] }, { "cell_type": "code", "execution_count": 6, "id": "0ae237a8", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "antigen autoconf awscli bat ca-certificates fd fzf gdbm gettext go hugo icu4c krb5 libevent libffi libidn2 libssh2 libtermkey libunistring libuv luajit-openresty luv m4 mpdecimal msgpack ncurses neovim openssl@1.1 openssl@3 packer pcre2 pkg-config postgresql python@3.10 python@3.8 python@3.9 readline ripgrep rust six sqlite starship tcl-tk tmux tree tree-sitter unibilium utf8proc wget xz zlib\n" ] } ], "source": [ "ross = set('''antigen icu4c m4 python@3.10 tree\n", "autoconf krb5 mpdecimal python@3.8 tree-sitter\n", "awscli libevent msgpack python@3.9 unibilium\n", "bat libffi ncurses readline utf8proc\n", "ca-certificates libidn2 neovim ripgrep wget\n", "fd libssh2 openssl@1.1 rust xz\n", "fzf libtermkey openssl@3 six zlib\n", "gdbm libunistring packer sqlite\n", "gettext libuv pcre2 starship\n", "go luajit-openresty pkg-config tcl-tk\n", "hugo luv postgresql tmux\n", "'''.split())\n", "p(ross)" ] }, { "cell_type": "code", "execution_count": 7, "id": "417fcc93", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "m1-terraform-provider-helper\n" ] } ], "source": [ "p(rosetta - native)" ] }, { "cell_type": "code", "execution_count": 8, "id": "1496aecf", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "antigen awscli fd hugo libtermkey libuv luajit-openresty luv msgpack neovim packer pcre2 postgresql python@3.8 ripgrep six starship tmux tree-sitter unibilium utf8proc\n" ] } ], "source": [ "p(ross - rosetta - native)" ] }, { "cell_type": "code", "execution_count": 9, "id": "96d12c02", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "antigen awscli fd hugo libtermkey libuv luajit-openresty luv msgpack neovim packer pcre2 postgresql python@3.8 ripgrep six starship tmux tree-sitter unibilium utf8proc\n" ] } ], "source": [ "p(work_native - native - rosetta)" ] }, { "cell_type": "code", "execution_count": 10, "id": "c831415c", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "m1-terraform-provider-helper\n" ] } ], "source": [ "p(rosetta - native)" ] }, { "cell_type": "code", "execution_count": 11, "id": "39c72d69", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "aom asdf atool automake aws-vault bat bdw-gc brotli btop c-ares cjson cmocka colordiff coreutils dav1d duf ffmpeg flac fop frei0r fzf gawk gcc gmp gnupg gnutls gping gron guile htop httpie imath isl jansson jpeg-xl jq keepingyouawake krb5 lame leptonica libarchive libass libassuan libavif libb2 libbluray libevent libgcrypt libgpg-error libidn2 libksba libmaxminddb libmpc libnghttp2 libogg libpq libreoffice librist libsamplerate libsmi libsndfile libsodium libsoxr libssh libssh2 libtasn1 libunistring libusb libvidstab libvmaf libvorbis libvpx libxml2 libxslt libyaml little-cms2 lua lz4 mbedtls mpfr mtr ncurses nettle nmap npth oniguruma opencore-amr openexr openjdk openjpeg opus p11-kit pdftohtml pinentry pipx prips procs pyenv pyenv-virtualenv pyenv-virtualenvwrapper python@3.10 rav1e rubberband rust sd sdl2 snappy speex srt telnet tesseract theora tree unbound unixodbc unzip watch wget wireshark wxwidgets x264 x265 xvid youtube-dl zeromq zimg zip zstd\n" ] } ], "source": [ "p(native - rosetta)" ] }, { "cell_type": "code", "execution_count": 12, "id": "4eae3a06", "metadata": { "scrolled": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "autoconf bzip2 ca-certificates cairo fontconfig freetype fribidi gd gdbm gdk-pixbuf gettext giflib glib go gobject-introspection graphite2 graphviz gts harfbuzz icu4c jasper jpeg libffi libpng libpthread-stubs librsvg libtiff libtool libx11 libxau libxcb libxdmcp libxext libxrender lzo m4 mpdecimal netpbm openssl@1.1 openssl@3 pango pcre pixman pkg-config python@3.9 readline sqlite tcl-tk webp xorgproto xz zlib\n" ] } ], "source": [ "p(native & rosetta)" ] }, { "cell_type": "code", "execution_count": null, "id": "b8104a82", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.9" } }, "nbformat": 4, "nbformat_minor": 5 }