Install Ubuntu Desktop 22.04, encrypted ZFS, with minimal packages.
We may want to do the rest of the installation/configuration from our laptop over ssh, so:
package fpmax | |
import scala.util.Try | |
import scala.io.StdIn.readLine | |
object App0 { | |
def main: Unit = { | |
println("What is your name?") | |
val name = readLine() |
Install Ubuntu Desktop 22.04, encrypted ZFS, with minimal packages.
We may want to do the rest of the installation/configuration from our laptop over ssh, so:
{-# language BlockArguments, LambdaCase, Strict, UnicodeSyntax #-} | |
{-| | |
Minimal dependent lambda caluclus with: | |
- HOAS-only representation | |
- Lossless printing | |
- Bidirectional checking | |
- Efficient evaluation & conversion checking | |
Inspired by https://gist.github.com/Hirrolot/27e6b02a051df333811a23b97c375196 |
#!/usr/bin/env -S jq -f -r | |
# | |
# This jq scripts transforms cabal's plan.json file into a series of fact that souffle can interpret. | |
# | |
# Example use | |
# | |
# $ ~/plan-to-datalog.jq <dist-newstyle/cache/plan.json >plan.dl | |
# | |
# Then create a file query.dl | |
# |
{-# LANGUAGE DeriveAnyClass #-} | |
{-# LANGUAGE DeriveGeneric #-} | |
{-# LANGUAGE NamedFieldPuns #-} | |
{-# LANGUAGE OverloadedStrings #-} | |
{-# LANGUAGE RecordWildCards #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
module Main where | |
import Data.Aeson (FromJSON, Object, Value (..), eitherDecodeFileStrict, parseJSON, (.:)) |
Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.
Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.
The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.
(* Compile with: | |
$ ocamlfind ocamlc -package angstrom,stdio -linkpkg tychk.ml -o tychk | |
Example use: | |
$ ./tychk <<EOF | |
> let f = (fun x -> x) : forall a. a -> a | |
> in f f | |
> EOF | |
input : forall a. a -> a | |
*) |
The following are examples of various features.
-------------------------------------------------------------------------------- | |
-- | |
---- Dependently Typed Programming: Part 3 | |
-- | |
---- An Intrinsically Typed Compiler | |
-- | |
---- Josh Ko (Institute of Information Science, Academia Sinica) | |
-- | |
-------------------------------------------------------------------------------- |