đź“• Node [[mac_os]]
📄 mac_os.myco by @melanocarpa ️🔗 ✍️

macOS is an operating system. I use it on caemlyn.

Safari is the best web browser.

An interesting tour of Mac OS that traces its evolution.

On a related note, there's a browser for old versions of Mac OS X: TenFourFox

According to the article, if you execute the commands below, you will be able to use the web inspector where applicable in macOS system applications.

defaults write NSGlobalDomain WebKitDeveloperExtras -bool true
defaults write -g WebKitDeveloperExtras -bool YES

This is ridiculous! Why would they use webview for that? Well, it's better than Electron, of course.

A web emulator of classic Mac (what version) with bundled software. The easiest way to see how it all looked like.

I’ve tried it myself. Android and iOS both feel horrible in two colors, like your app icons are trapped in an episode of I Love Lucy. But black and white can feel great, if the OS is explicitly designed for it. Using an old Mac is pure zen.

A UI framework using native CSS/JS replications of the Mac OS 8.1 interface components. The project is named after the interface theme that came with MacOS 8 and 9, Platinum.

This is what the Mac OS UI looked like in 1984

This is hot.

All of this was designed to run in 128k of RAM. Makes you really wonder why Windows 2000 requires 128 MEGS to run. And the best thing about all of this is there is no stupid web "integration"!

Millions of people around the world are familiar with the artwork of Susan Kare, but few would be able to connect that name with Apple's early computer icons. Her new book takes a look back.

Ready to show off your pixel perfect design skills? We're challenging you to embrace the constraints of a grid and design an app icon at pixel level using only black and white colors. When we design icons today, we create work for high-resolution HDR screens, with millions of pixels and color at our disposal. But there’s joy in embracing a bit of retro restraint: pixel grids can help you distill the essence of your design and make sure your icon is clear and understandable at all sizes.

Extra fun with today's off-grid icons

Loading pushes...

Rendering context...

đź“• Node [[macos]] pulled by the Agora
đź“• Node [[macros]] pulled by the Agora

macros

macros

Macros are a feature in certain [[programming languages]] that allow for editing source code at compile or runtime. Similar to functions, macros are a means of code reuse, but rather than rewrite functionality they rewrite code.

Macros first appeared, to my knowledge, in [[Lisp]].

In Lisp (specifically [[Emacs Lisp]]), a macro looks like this:

(defmacro ++ (var)
  "Incrementing operator like in C."
  (list 'setq var (list '+ 1 var)))

(let ((my-var 1))
  (++ my-var))

The above, at runtime, is expanded in the following manner:

(macroexpand '(++ foo))

(setq foo (+ 1 foo))

Consider also the following example in [[Rust]]:

macro_rules! inc {
    ($name:ident) => {
        $name = $name + 1
    }
}

fn main () {
    let mut foo = 1;
    inc!(foo); // macros in rust end with exclamation points
    println!("foo: {}", foo); // println is also a macro
    // => 2
}

Macros allow for [[programming language extension]].