Skip to content

Instantly share code, notes, and snippets.

View EduardoRFS's full-sized avatar
♥️
Laughing at the abysm

Eduardo Rafael EduardoRFS

♥️
Laughing at the abysm
View GitHub Profile
FROM agners/archlinuxarm-arm32v7
# pacman -Sy --noconfirm base-devel awk m4 git unzip perl wget ocaml opam ocaml-compiler-libs
RUN pacman -Sy --noconfirm base-devel awk m4 git unzip perl wget
RUN curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh | sh
RUN useradd -m esy-user
USER esy-user

Recursion

This document should describe what should be the behavior when we have recursive dependencies.

Motivations

// TODO: Why is this useful. As seen in harfbuzz and freetype2 on runtime and for general recursion you can look at most compilers.

Runtime Recursion

/*
features:
- auto currying
- closures
- recursion
- basic branching
- ffi with JS
missing:
- tail call recursion

Pacman Pipeline

  • install while download
#! /bin/sh
set -e
set -u
OCAMLC_PATH=$(dirname $0)
BSC="$OCAMLC_PATH/bsc"
NEW_ARGS=""
for ARG in "$@"
This file has been truncated, but you can view the full file.
make: Entering directory '/bin/ocaml/testsuite'
Running tests from 'tests/afl-instrumentation' ...
... testing 'afltest.ml' with 1 (native-compiler) => passed
... testing 'afltest.ml' with 1.1 (script) => skipped (afl-showmap not available)
... testing 'afltest.ml' with 1.1.1 (setup-ocamlopt.byte-build-env) => n/a
... testing 'afltest.ml' with 1.1.1.1 (ocamlopt.byte) => n/a
... testing 'afltest.ml' with 1.1.1.1.1 (ocamlopt.byte) => n/a
... testing 'afltest.ml' with 1.1.1.1.1.1 (run) => n/a
Running tests from 'tests/arch-power' ...
... testing 'exn_raise.ml' with 1 (arch_power) => skipped (Target is not POWER architecture)

TODO

  • are you enjoying the time of EL ?

Variants

type user_status =
  | Authorized
  | Unauthorized;
let someone_status = Authorized
#! /bin/sh
## Requirements
## - esy
## - brew install nodejs
## - brew install coreutils
## Full Xcode installed
## look for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk
git clone https://github.com/EduardoRFS/reason-mobile.git
@EduardoRFS
EduardoRFS / val+ref.as
Last active September 20, 2020 03:53
/*
your obj pointer came in the first position of the stack
so you will load it on a register
*/
movl (%esp), %eax ;
/*
then you want to do obj.a += 6, if we suppose
that we're talking about records not dictionaries