- 対象: R15B03-1, R16B, R16B02
- 参考にした情報: http://23min.com/2013/01/erlang-observer-debugger-on-mountain-lion/
- ここの情報だけだとビルドできなかった分を補足しています
- Mountain Lion (OS X 10.8.x 使ったのは 10.8.3 / 10.8.5)
- Xquartz http://xquartz.macosforge.org/landing/ からダウンロードしてインストール
TARGET1 = alpha-elf arc-elf arm-elf avr-elf h8300-elf i386-elf m32r-elf \ | |
m68k-elf pdp11-aout powerpc-elf sh-elf sparc-elf v850-elf xtensa-elf | |
TARGET2 = mips-elf mips64-elf | |
TARGET3 = hppa-linux ia64-elf x86_64-linux | |
TARGET4 = m6811-elf | |
TARGET5 = strongarm-elf xscale-elf | |
TARGETS = $(TARGET1) $(TARGET2) $(TARGET3) $(TARGET4) $(TARGET5) | |
BLDROOT = /build | |
GMAKE = make | |
GTAR = tar |
#!/bin/sh | |
set -o xtrace | |
. /lib/svc/share/smf_include.sh | |
cd / | |
PATH=/usr/sbin:/usr/bin:/opt/custom/bin:/opt/custom/sbin; export PATH | |
case "$1" in |
# vmadm halt <uuid> | |
# zonecfg -z <uuid> | |
zonecfg:uuid> add dataset | |
zonecfg:uuid:dataset> set name=<zfs/path> | |
zonecfg:uuid:dataset> end | |
zonecfg:uuid> commit | |
zonecfg:uuid> exit | |
# zfs set mountpoint=legacy <zfs/path> | |
# vmadm boot <uuid> |
~/erlang_learning $ erl | |
Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:8:8] [async-threads:0] [hipe] [kernel-poll:false] [dtrace] | |
Eshell V5.9.3.1 (abort with ^G) | |
([email protected])1> trace(recursive). | |
ok | |
([email protected])2> recursive:fac(10). | |
call: <0.42.0> recursive:fac(10), level: 0 | |
call: <0.42.0> recursive:fac(9), level: 1 | |
call: <0.42.0> recursive:fac(8), level: 2 |
use std::rc::Rc; | |
trait HKT<U> { | |
type C; // Current type | |
type T; // Type with C swapped with U | |
} | |
macro_rules! derive_hkt { | |
($t:ident) => { | |
impl<T, U> HKT<U> for $t<T> { |
#!/bin/bash | |
mkdir -p /opt/bin | |
curl -L `curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.assets[].browser_download_url | select(contains("Linux") and contains("x86_64"))'` > /opt/bin/docker-compose | |
chmod +x /opt/bin/docker-compose |
;;; -*- coding:utf-8; mode:lisp -*- | |
(in-package :cl-user) | |
(defpackage cl-dudga | |
(:use :cl :lparallel)) | |
(in-package :cl-dudga) | |
;;; Setting for lparallel | |
(defparameter *kernel* (make-kernel 4)) |
(WIP)