This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- -*- mode: haskell; coding: utf-8 -*- | |
-- Author: SAITO Atsushi | |
import Network.HTTP | |
import Data.Maybe | |
import Text.Regex | |
import Control.Monad | |
import Data.Sequence (unfoldr) | |
import Data.Foldable (toList) | |
import Data.Word |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>test</title> | |
<script type="text/javascript"> | |
function setHandler() { | |
var tgt = document.getElementById('triangle'); | |
tgt.addEventListener('mouseover', function(e) { | |
tgt.style.background='red'; | |
}); | |
tgt.addEventListener('mouseout', function(e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; gauche bug case | |
(import (scheme base)) | |
(cond-expand | |
((library (srfi 1)) | |
(import (prefix (srfi 1) srfi-1:)) | |
)) | |
(cond-expand |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;CRC32 bench | |
(import (scheme base)) | |
(cond-expand | |
((library (rfc zlib)) | |
(import (prefix (rfc zlib) zlib:)))) | |
(cond-expand | |
(gauche (import (gauche time))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!r6rs | |
(library (crc32) | |
(export crc32) | |
(import (rnrs) | |
(rnrs arithmetic bitwise (6))) | |
(define (crc32 data . opt) | |
(let ((r (get-optional opt #xFFFFFFFF)) | |
(len (bytevector-length data)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use rfc.uri) | |
(use rfc.base64) | |
(use rfc.sha) | |
(use rfc.tls) | |
(use math.mt-random) | |
(use binary.io) | |
(use binary.pack) | |
(use gauche.uvector) | |
(use gauche.collection) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/parsing.sch | |
=================================================================== | |
--- src/parsing.sch (リビジョン 6659) | |
+++ src/parsing.sch (作業コピー) | |
@@ -29,14 +29,31 @@ | |
; n defaults to 1000, and input defaults to "nboyer.sch". | |
; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
- | |
-(import (rnrs base) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: bench | |
=================================================================== | |
--- bench (リビジョン 6659) | |
+++ bench (作業コピー) | |
@@ -44,13 +44,13 @@ | |
KVW_BENCHMARKS="ack array1 string sum1 cat cat2 cat3 tail wc" | |
-IO_BENCHMARKS="read0 read1 read2 read3" | |
+IO_BENCHMARKS="read1 read2 read3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import (rnrs) | |
(rnrs io ports) | |
(math random) | |
(scheme time) | |
(rfc base64) | |
(math hash) | |
(rfc uri) | |
(rfc tls) | |
(srfi :13 strings) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: bench | |
=================================================================== | |
--- bench (リビジョン 6659) | |
+++ bench (作業コピー) | |
@@ -1,4 +1,4 @@ | |
-#! /usr/bin/env bash | |
+#!/usr/bin/env bash | |
# For running R6RS benchmarks. | |
# |