目的: 既存の互換性を保ちつつ、使い勝手・表現力・国際化・エラーメッセージ品質を向上するロードマップ
- 用語: 短オプション束ね / short option bundling
- 要点:
| # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 | |
| PortSystem 1.0 | |
| PortGroup github 1.0 | |
| PortGroup makefile 1.0 | |
| github.setup crystal-lang crystal 1.17.1 | |
| github.tarball_from archive | |
| revision 0 | |
| categories lang |
| require "../src/uing" | |
| UIng.init | |
| def hex_to_rgb(hex : Int32) | |
| r = ((hex >> 16) & 0xff) / 255.0 | |
| g = ((hex >> 8) & 0xff) / 255.0 | |
| b = ((hex >> 0) & 0xff) / 255.0 | |
| {r, g, b} | |
| end |
| require "option_parser" | |
| require "wait_group" | |
| require "fastx" | |
| require "fiber/execution_context" | |
| # ────── CLI options ────── | |
| input_file = "" | |
| output_file = "" | |
| k_size = 21 | |
| worker_cnt = 4 |
Add a lightweight, opt-in API that lets CI pipelines (and developers) capture PNG screenshots of uiWindow / uiArea contents on Windows, macOS, and Linux.
This enables visual regression tests, automated UI documentation, and faster debugging—without pulling in heavyweight graphics stacks like Cairo.
| require "../src/onnxruntime" | |
| require "vips" | |
| require "option_parser" | |
| # YOLOv7 Object Detection Example | |
| # This example demonstrates how to use ONNXRuntime.cr with YOLOv7 for object detection | |
| # COCO dataset labels | |
| LABELS = ["person", "bicycle", "car", "motorcycle", "airplane", "bus", "train", | |
| "truck", "boat", "traffic light", "fire hydrant", "stop sign", "parking meter", |
| require 'getoptlong' | |
| require 'openai' | |
| options = { | |
| 'output' => 'speech.mp3' | |
| } | |
| parameters = { | |
| 'model' => 'tts-1', | |
| 'input' => nil, | |
| 'voice' => 'alloy', |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <htslib/sam.h> | |
| #include <htslib/hts.h> | |
| int main(int argc, char *argv[]) { | |
| if (argc < 2) { | |
| fprintf(stderr, "Usage: %s <bam_file>\n", argv[0]); | |
| return 1; | |
| } |
| diff --git a/src/compiler/crystal/compiler.cr b/src/compiler/crystal/compiler.cr | |
| index 38880ee9e..c51e2c7ef 100644 | |
| --- a/src/compiler/crystal/compiler.cr | |
| +++ b/src/compiler/crystal/compiler.cr | |
| @@ -204,15 +204,28 @@ module Crystal | |
| # Raises `InvalidByteSequenceError` if the source code is not | |
| # valid UTF-8. | |
| def compile(source : Source | Array(Source), output_filename : String) : Result | |
| + t1 = Time.monotonic | |
| source = [source] unless source.is_a?(Array) |
git clone https://github.com/crystal-lang/crystal
git checkout b9ab9968b85ce2b99a875abd4360b1a432e27a98
cd crystal
grep -r class_getter