Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Hamayama
Hamayama / Gauche_Compile.md
Last active December 21, 2019 12:46
Gauche の Windows 上でのコンパイル手順 メモ (古い)

Gauche の Windows 上でのコンパイル手順 メモ (古い)

  • 自分がコンパイルしたとき(2015年5月~2019年12月)の参考用のメモです。
    (情報が古くなっている可能性があります)
    Windows 8.1 (64bit) で作業しました。

  • **以下の記述は、MinGW (32bit) の開発環境でのコンパイル手順となっています。
    今では、より新しい MSYS2/MinGW-w64 (64bit/32bit) の開発環境でもコンパイル可能になっています。
    MSYS2/MinGW-w64 (64bit/32bit) の開発環境を使う場合には、以下のページの方を参照ください。

@Hamayama
Hamayama / 3000_handle_vals.txt
Last active December 22, 2019 13:08
Gauche プルリクエスト #558 測定結果
<Gauche プルリクエスト #558 測定結果>
https://github.com/shirok/Gauche/pull/558
測定用のスクリプトは下に添付します ( handle_vals.scm ) 。
(1) 変更前 (for + local allay)
values-0 : #<time-result 3000000 times/ 6.818 real/ 7.547 user/ 0.781 sys>
values-1 : #<time-result 3000000 times/ 7.043 real/ 8.000 user/ 0.875 sys>
@Hamayama
Hamayama / lem_r7rs-swank.txt
Last active February 13, 2020 01:50
lem の r7rs-swank 対応
<lem の r7rs-swank 対応>
関連プルリクエスト: https://github.com/cxxxr/lem/pull/435
https://github.com/cxxxr/lem/pull/438
(1)ファイル
scheme-mode
scheme-mode.lisp process にも swank にも無関係なもの(上位層)(※)
@Hamayama
Hamayama / 0101_indent_conv.scm
Last active May 1, 2020 23:22
Gauche でテキストファイルを加工するサンプル 2 個です。
;; -*- coding: utf-8 -*-
;;
;; indent_conv.scm
;; 2020-5-2 v1.11
;;
;; <内容>
;; Gauche を使用して、テキストファイルの行頭のインデントを変換します。
;;
;; <使い方>
;; gosh indent_conv.scm infile outfile
@Hamayama
Hamayama / pcdemo3_debug.scm
Last active June 5, 2020 04:09
reset/shift と guard の組み合わせでメモリリークする件の調査
;;
;; pcdemo3_debug.scm
;; 2020-6-4 v1.02
;;
(use data.queue)
(use gauche.partcont)
;; for debug
(define *dbg-level* 3) ; (bitwise setting (e.g. 3 is error+info)
; ; =0:none, =1:error, =2:info)
@Hamayama
Hamayama / 3011_lem_scheme.md
Last active December 30, 2020 07:46
Lem エディタの scheme-mode

Lem エディタの scheme-mode

  • Lem エディタで、Scheme 言語のプログラムの作成を行うためのモードです。

  • (キーバインドの記号 (C- 等) の意味については、Emacs 関連の文書を参照してください)

  • Scheme の処理系は、事前にインストールされている必要があります。
    (デフォルトでは、Scheme の処理系は、Gauche を想定しています)

@Hamayama
Hamayama / 1010_lem_win.md
Last active January 14, 2021 14:16
Lem エディタの Windows 上でのインストール手順等

Lem エディタの Windows 上でのインストール手順等

インストール手順

  1. MSYS2/MinGW-w64 (64bit/32bit) のインストール
    事前に MSYS2/MinGW-w64 (64bit/32bit) がインストールされている必要があります。
@Hamayama
Hamayama / 3012_lem_conemu.md
Last active January 22, 2021 02:29
Lem エディタの ConEmu 上での実行方法

Lem エディタの ConEmu 上での実行方法

  • Windows 環境において、Lem エディタを ConEmu 上で実行する方法をまとめたものです。

  • mintty + winpty 上では 16 色 しか表示できませんでした (winpty の制約による) が、
    ConEmu 上では 256 色 で表示することができます。
    (参考URL: rprichard/winpty#108
    https://conemu.github.io/en/Xterm256Colors.html )

@Hamayama
Hamayama / 3000_lem_emoji_ini.md
Last active April 18, 2021 11:29
Lem エディタの Windows 用の文字幅データの設定サンプル (実験中)

Lem エディタの Windows 用の文字幅データの設定サンプル (実験中)

  • Lem エディタ ( https://github.com/cxxxr/lem ) の
    Windows 用の文字幅データの設定サンプルです。
    一部の文字の表示が改善されます。
    (カーソルの表示位置がずれたりするケース等)

    <<現状、Windows 10 では、あまり改善できていません>>

@Hamayama
Hamayama / thread32.c
Last active April 24, 2021 07:01
GetThreadContext test for Windows Wow64 thread
//
// thread32.c
// 2019-2-16 v1.03
//
// Description:
// GetThreadContext test for Windows Wow64 thread.
//
// Original source:
// https://social.msdn.microsoft.com/Forums/vstudio/ja-JP/aa176c36-6624-4776-9380-1c9cf37a314e/getthreadcontext-returns-stale-register-values-on-wow64?forum=windowscompatibility
// (GetThreadContext returns stale register values on WOW64)