This guide is adapted from this original post by Christopher Charles.
- Clone the MLX Swift Examples GitHub repository:
| // | |
| // TestView.swift | |
| // | |
| // Created by Arunavo Ray on 21/09/25. | |
| // | |
| import SwiftUI | |
| struct TestView: View { | |
| @State private var searchText = "" |
| /* | |
| * BorrowMap: (possibly) zero-copy mutable data structure in a react context | |
| * ========================================================================= | |
| * | |
| * The idea behind this concept is that we can have a mutable container in a | |
| * React-linked store but ONLY IF we never share a reference to the mutable | |
| * container itself. All the reads must be contained inside selectors. As long | |
| * as no one has a second reference to the mutable container, then we are sure | |
| * that no one is able to read/write it without us knowing. | |
| * |
This guide is adapted from this original post by Christopher Charles.
| " Specify a directory for plugins | |
| call plug#begin('~/.vim/plugged') | |
| Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
| Plug 'scrooloose/nerdtree' | |
| "Plug 'tsony-tsonev/nerdtree-git-plugin' | |
| Plug 'Xuyuanp/nerdtree-git-plugin' | |
| Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
| Plug 'ryanoasis/vim-devicons' | |
| Plug 'airblade/vim-gitgutter' |
I heard some points of criticism to how React deals with reactivity and it's focus on "purity". It's interesting because there are really two approaches evolving. There's a mutable + change tracking approach and there's an immutability + referential equality testing approach. It's difficult to mix and match them when you build new features on top. So that's why React has been pushing a bit harder on immutability lately to be able to build on top of it. Both have various tradeoffs but others are doing good research in other areas, so we've decided to focus on this direction and see where it leads us.
I did want to address a few points that I didn't see get enough consideration around the tradeoffs. So here's a small brain dump.
"Compiled output results in smaller apps" - E.g. Svelte apps start smaller but the compiler output is 3-4x larger per component than the equivalent VDOM approach. This is mostly due to the code that is usually shared in the VDOM "VM" needs to be inlined into each component. The tr
This gist will walk you through configuring your Node.js Project so that you can write your code in TypeScript using Visual Studio Code. These isntructions were written for attendees at Microsoft Build doing a super secret thing I can't talk about (ooo, the suspense!), but they also will work for any Node.js project written in TypeScript.
Before we get started configuring TypeScript, we need to initialize a new Node.js project. If you have not already installed Node.js, please head over to nodejs.org and install the latest LTS version of Node.js. Once this is done, create a folder for your Node.js project and open a terminal in this folder. In the terminal, run the command:
npm init
This command will ask you a series of questions. You can use the defaults for each question here because they don't really matter. These only matter if you intend to publish your module to [npmjs.com](htt
| # - title: | |
| # subtitle: | |
| # author: | |
| # img: https://images-na.ssl-images-amazon.com/images/P/#.01._SCLZZZZZZZ_.jpg | |
| # url: | |
| # rating: | |
| # notes: | |
| - year: 2018 | |
| books: | |
| - title: Showa 1953-1989 |
| // requires https://github.com/defunkt/dotjs | |
| var player = $('#audioplayer').get(0); | |
| $(document).keypress(function(e) { | |
| if(e.which == 32) { | |
| if (player.paused) { | |
| player.play(); | |
| } else { | |
| player.pause(); | |
| } |
| 'use strict'; | |
| // simple express server | |
| var express = require('express'); | |
| var app = express(); | |
| var router = express.Router(); | |
| app.use(express.static('public')); | |
| app.get('/', function(req, res) { | |
| res.sendfile('./public/index.html'); |
| var express = require('express'); | |
| var app = express(); | |
| var router = express.Router(); | |
| var hbs = require('hbs'); | |
| app.set('view engine', 'html'); | |
| app.engine('html', hbs.__express); | |
| app.use(express.json()); | |
| app.use(express.urlencoded()); |