Skip to content

Instantly share code, notes, and snippets.

View simonholm's full-sized avatar
:octocat:

Simon Holm simonholm

:octocat:
View GitHub Profile
@simonholm
simonholm / ai-glossary.md
Created July 17, 2025 05:40
AI interface terminology glossary

Language Model Interface Terminology Glossary

Core Interaction Terms

Term Definition
Prompt The input text or instruction you provide to the model.
Completion The generated response from the model. In chat settings, this is usually called a "response".
Output / Response Common alternative to "completion", used in most non-technical settings.
Token A small unit of text (word fragment, word, or punctuation). Models process text as tokens.
building_footprint_extraction_methods:
- name: geoai.orthogonalize()
purpose: Align polygon edges to 90° angles (orthogonal shapes)
use_case: Post-processing irregular or noisy building polygons
strengths:
- Improves realism and map readability
- Lightweight
limitations:
- May distort non-rectangular structures

Fixing a Borrow Checker Violation in Rust

This post explains a common borrow checker error in Rust and shows how to fix it using idiomatic code.


❌ Problematic Code

The original Rust code shared in a code challenge was:

🔍 Model Comparison: Gemma 3n vs Phi-4 vs LLaMA 3 (8B/70B) vs Claude 3 Sonnet vs Gemma 3

🧠 Model Capability & Deployment Overview

Feature Gemma 3n Phi-4 LLaMA 3 (8B) LLaMA 3 (70B) Claude 3 Sonnet Gemma 3
License Open (permissive) Open (permissive) Open (Meta research) Open (Meta research) Closed / Commercial Open (permissive)
Multimodal ✅ Text, image, audio, video ❌ Text only ❌ Text only ❌ Text only ✅ Text, image, vision ✅ Text + image
Context Window 128K tokens 128K toke
# =============================
# Terminal Editing Cheat Sheet
# =============================
# Emacs-style keybindings (default in Bash, Zsh)
# ----------------------------------------------
# Cursor Movement
Ctrl-A # Beginning of line
Ctrl-E # End of line

DXT Development Secret Source Documentation

The hard-won lessons from building a working Claude Desktop Extension

🚨 Critical Checks Before Starting

1. Verify Current DXT Specification

⚠️ The DXT spec changes frequently!

# Always check the latest official docs FIRST

🧠 Prompt vs Completion — AI Input/Output Terminology by Context

Standard Terms in LLMs

Input Term Output Term Used In
Prompt Completion GPT models, OpenAI API, text-based LLMs
Prompt Response Chat interfaces like ChatGPT
Prompt Generation NLP/text generation tasks (e.g. Hugging Face)
Prompt Prediction Instruct-tuned or few-shot models
@simonholm
simonholm / mtb_futureproof_comparison.md
Created June 5, 2025 06:20
MTB brand comparison: future-proof vs budget

MTB Brand and Model Comparison — Future-Proofing vs Budget

🚫 Why Trek Marlin is Not Future-Proof

Limitation Explanation
Non-Boost (141 mm QR) Not compatible with 12-speed MTB drivetrains
Quick-release axle Outdated — most upgrades require thru-axle
Entry-level drivetrain (8–10 speed) Limited upgrade path
No UDH / Di2 routing Not ready for wireless/electronic future
Narrow tire/frame clearance Less room for modern trail tires

Comparison of 2014 Attention RNN vs. 2017 Transformer

🔁 2014: Attention with RNNs (Bahdanau et al.)

🧠 Architecture: RNN Encoder + Attention + RNN Decoder

Input sequence → [ RNN Encoder ] → Hidden states
                                ↘
                               [ Attention Layer ] ⇨ Context vector