Skip to content

Instantly share code, notes, and snippets.

View ManasJayanth's full-sized avatar

prometheansacrifice ManasJayanth

View GitHub Profile
@ManasJayanth
ManasJayanth / libgccjit.rb
Created April 29, 2021 18:04
libgccjit.rb for native-comp enabled Emacs on MacOS arm64
class Libgccjit < Formula
# This is a spin-off of the GCC formula and they should remain as close as possible.
desc "JIT library for the GNU compiler collection"
homepage "https://gcc.gnu.org/"
if Hardware::CPU.arch == :arm64
# Branch from the Darwin maintainer of GCC with Apple Silicon support,
# located at https://github.com/iains/gcc-darwin-arm64 and
# backported with his help to gcc-10 branch. Too big for a patch.
url "https://github.com/DiningPhilosophersCo/gcc/archive/gcc-10-arm-20210429.tar.gz"
sha256 "e22d39545e3ab50eb9cb14b4624fa08eb450f47c73e9e2d245ff96c1e99dca5c"
@ManasJayanth
ManasJayanth / slides.org
Created May 24, 2020 11:21
Reason meetup #2

Algebraic Effects for Concurrency

Monads/Promises have been our go to tools for expressing concurrency.

However, they seem to divide up our language.

Context: How do we achieve concurrency?

@ManasJayanth
ManasJayanth / esy.json
Last active May 29, 2020 04:41
Dune 2.3.1 on esy
{
"dependencies": {
"ocaml": "4.6.x",
"@opam/ocaml-lsp-server": "ocaml/ocaml-lsp:ocaml-lsp-server.opam"
},
"resolutions": {
"@opam/dune": {
"source": "https://github.com/ocaml/dune/releases/download/2.5.1/dune-2.5.1.tbz#6c09f4d53e9169498ab017597c4343ceb00f6ead",
"override": {
"buildsInSource": true,
#! /bin/bash
# If org name is reasonml then REST_BASE will be: https://dev.azure.com/reasonml/
REST_BASE="https://dev.azure.com/esy-ocaml/"
PROJ="esy-ocaml"
BUILD_STAGINGDIRECTORY="$PWD"
AGENT_OS="WINDOWS_NT"
SYSTEM_PULLREQUEST_TARGETBRANCH="master"
ESY__CI_CACHE_VERSION=v1
# REST_BASE="${SYSTEM_TEAMFOUNDATIONCOLLECTIONURI}"
@ManasJayanth
ManasJayanth / experimental-lsp-esy.el
Last active December 3, 2019 02:41
Esy with lsp-mode 🚧 Experimental
(defun load-esy-env ()
"Loads esy env"
(let* ((env-json-str (shell-command-to-string "esy command-env --json"))
(json-key-type 'string)
(env-pairs (json-read-from-string env-json-str)))
(progn
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(make-local-variable 'process-environment)
@ManasJayanth
ManasJayanth / esy-mode.el
Last active October 27, 2019 11:33
Esy mode
(defun load-esy-env ()
"Loads esy env"
(let* ((env-json-str (shell-command-to-string "esy command-env --json"))
(json-key-type 'string)
(env-pairs (json-read-from-string env-json-str)))
(progn
$ opam switch create 4.08.0+msvc64c -y --debug
00:00.008 GSTATE LOAD-GLOBAL-STATE @ C:\OCaml64\home\manas\.opam
00:00.010 RSTATE LOAD-REPOSITORY-STATE @ C:\OCaml64\home\manas\.opam
00:00.075 RSTATE Loaded C:\OCaml64\home\manas\.opam\repo\state.cache in 0.065s
00:00.109 RSTATE Cache found
00:00.125 SWACT create_empty_switch at 4.08.0+msvc64c
00:00.125 SYSTEM mkdir C:\OCaml64\home\manas\.opam\4.08.0+msvc64c
00:00.129 SYSTEM mkdir C:\OCaml64\home\manas\.opam\4.08.0+msvc64c\lib
00:00.129 SYSTEM mkdir C:\OCaml64\home\manas\.opam\4.08.0+msvc64c\lib\stublibs
00:00.129 SYSTEM mkdir C:\OCaml64\home\manas\.opam\4.08.0+msvc64c\lib\toplevel
@ManasJayanth
ManasJayanth / opam 404
Created April 27, 2019 09:23
@opam/* 404s
```
http fetch GET 404 https://registry.npmjs.org/@opam%2fbos 1439ms
40 silly fetchPackageMetaData error for @opam/bos@^0.2.0 404 Not Found: @opam/bos@^0.2.0
41 http fetch GET 404 https://registry.npmjs.org/@opam%2flogs 1631ms
42 silly fetchPackageMetaData error for @opam/logs@^0.6.2 404 Not Found: @opam/logs@^0.6.2
43 http fetch GET 404 https://registry.npmjs.org/@opam%2ffmt 1915ms
44 silly fetchPackageMetaData error for @opam/fmt@^0.8.4 404 Not Found: @opam/fmt@^0.8.4
45 http fetch GET 404 https://registry.npmjs.org/@opam%2fppx_expect 1927ms
46 silly fetchPackageMetaData error for @opam/ppx_expect@v0.11.0 404 Not Found: @opam/ppx_expect@v0.11.0