Skip to content

Instantly share code, notes, and snippets.

View jeapostrophe's full-sized avatar
🍕

Jay McCarthy jeapostrophe

🍕
View GitHub Profile
@jeapostrophe
jeapostrophe / ab.log
Created April 28, 2015 10:52
Responding to requests concurrently in the Racket Web server
This is ApacheBench, Version 2.3 <$Revision: 1604373 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software: Racket
Server Hostname: localhost
Server Port: 9000
{
"Genesis": {
"NetworkName": "",
"Wallets": [
{
"Name": "Wallet1",
"Stake": 100,
"Online": true
}
]
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
enum SE_Ty { SE_Mt, SE_Num, SE_Sym, SE_Cons };
struct SExpr {
enum SE_Ty type;
union {
#lang racket/base
(require racket/match
racket/math)
(let ()
(struct get-x ())
(struct get-y ())
(struct distance-from-origin ())
(struct set-x (nx))
(struct set-y (ny))
@jeapostrophe
jeapostrophe / explore.rkt
Created July 5, 2012 03:00 — forked from jadudm/explore.rkt
Exploration of the PLT web server...
#lang racket/base
;; Each library function is prefixed by the module it came from.
(require web-server/dispatch)
(define-values (dispatch blog-url)
(dispatch-rules
[("go") go]))
;; dispatch-rules patterns cover the entire URL, not just the prefix,
#lang racket/base
(require (for-syntax racket/base
racket/set
racket/list
racket/match
racket/require-transform
syntax/parse
syntax/modcollapse))
(define-syntax default-in
env XFORM_USE_PRECOMP=xsrc/precomp.h ../racketcgc -cqu ./xform.rkt --setup . --depends --cpp "gcc -E -I./.. -I./../include -g -O2 -pthread -DUSE_SENORA_GC " --keep-lines -o xsrc/bool.c ./../src/bool.c
Error [GCING] 212 in ./../src/bool.c: Function mz_long_double_eqv declared __xform_nongcing__, but includes a function call.
Error [GCING] 248 in ./../src/bool.c: Function double_eqv declared __xform_nongcing__, but includes a function call.
xform: Errors converting
context...:
/home/utrs/tmp/racket-6.3/src/racket/gc2/xform-collects/compiler/private/xform.rkt:8:2: xform
/home/utrs/tmp/racket-6.3/src/racket/gc2/xform-collects/xform/xform-mod.rkt: [running body]
commit 5573e58c5a122e90d3f394f247f94ba5405bd729
Author: Jay McCarthy <jay@racket-lang.org>
Date: Wed Jul 6 17:24:55 2016 -0400
Switch from deprecated Posix function removed in Android's LB64 ABI
diff --git a/racket/src/racket/src/port.c b/racket/src/racket/src/port.c
index d5b965d..26995ba 100644
--- a/racket/src/racket/src/port.c
+++ b/racket/src/racket/src/port.c
libtool --mode=compile --tag=CC arm-linux-androideabi-gcc -I./.. -I../../../racket/src/../include -g -O2 --sysroot=/Users/jay/Library/Android/sdk/ndk-bundle/platforms/android-23/arch-arm -DUSE_SENORA_GC -DMZ_NO_ICONV -DMZ_USES_SHARED_LIB -c ../../../racket/src/gmp/gmp.c -o gmp.lo
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `-' in: --mode=compile
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_fil
From 6cc6aeb987cf426af1e2bfe28d7135abb40a4745 Mon Sep 17 00:00:00 2001
From: Jay McCarthy <jay.mccarthy@gmail.com>
Date: Thu, 7 Jul 2016 22:40:59 -0400
Subject: [PATCH 1/1] Updating to work with OS X 10.11.4 and XCode 7.3.1, plus
adding convenience top-level Makefile
---
GNUmakefile | 5 +++++
higan/audio/audio.cpp | 6 +++++-
higan/out/.gitignore | 5 +++--