27 Repos
The process of encapsulating reusable logic using parameters and return values.
Distinct from Function Definitions: Candidates refer to SQL functions, LLM schemas, or stylesheet logic, not general-purpose language functions.
Explore 27 awesome GitHub repositories matching programming languages & runtimes · Function Definitions. Refine with filters or upvote what's useful.
This project is an educational resource designed for learning the Python programming language. It serves as a tutorial repository and programming guide, providing a collection of annotated scripts, code examples, and cheatsheets to help users master syntax and core fundamentals. The resource focuses on moving from basic language syntax to advanced implementation, with a particular emphasis on object-oriented programming, the use of the Python standard library, and scripting automation for business workflows. The content covers a broad range of programming capabilities, including control flow
Provides guidance on defining reusable functions to encapsulate tasks across a program.
This project is a Lisp interpreter implementation guide and framework designed to teach the core principles of programming language design. It provides a structured, step-by-step technical framework for building a functional Lisp language from scratch, featuring a specialized interpreter engine and an S-expression parser that converts syntax into abstract syntax trees. The project emphasizes a code-as-data metaprogramming framework, enabling the implementation of macros, quoting, and quasiquoting to transform expressions during evaluation. It is designed with host language agnosticism, allowi
Supports the definition of user-created functions and closures that capture the surrounding lexical environment.
Reason is a strongly typed functional language and multi-target compiler designed to produce either JavaScript for web environments or native machine code for operating systems. It serves as an OCaml-compatible language that shares an abstract syntax tree with OCaml, providing a practical syntax for the OCaml ecosystem. The project functions as a type-safe frontend language, incorporating JSX support to build user interfaces through structural elements that translate into type-safe function calls. It enables deep integration with the JavaScript ecosystem, allowing the use of existing librarie
Provides the fundamental ability to define reusable logic blocks as functions.
This project is an educational resource and a collection of instructional materials for performing data manipulation and statistical analysis using Python. It provides a comprehensive set of guides and code examples for using the Pandas, NumPy, and Matplotlib libraries to analyze structured data. The resource includes a dedicated guide for reshaping, cleaning, and aggregating tabular data and time series via Pandas, alongside a reference for high-performance vectorized operations and linear algebra using NumPy. It also features tutorials for creating publication-quality charts, distribution p
Demonstrates the encapsulation of reusable logic using parameters and return values within Python functions.
pysheeet ist eine technische Referenzbibliothek, die eine kuratierte Sammlung von Code-Snippets und Implementierungsmustern für fortgeschrittene Python-Entwicklung, Systemintegration und High-Performance-Computing bereitstellt. Sie dient als umfassender Leitfaden für die Implementierung von Low-Level-Netzwerkprogrammierung, nativen C-Erweiterungen sowie asynchroner und nebenläufiger Programmierung. Das Projekt bietet spezialisierte Frameworks für die Entwicklung und Bereitstellung von Large Language Models, einschließlich Werkzeugen für verteilte GPU-Inferenz und High-Performance-Serving. Es enthält zudem detaillierte Muster für die Orchestrierung von High-Performance-Computing-Clustern, die GPU-Ressourcenzuweisung und Multi-Node-Workload-Management abdecken. Die Bibliothek deckt ein breites Spektrum an Funktionen ab, einschließlich sicherer Netzwerkkommunikation und Kryptografie, Object-Relational-Mapping und Datenbankverwaltung sowie die Implementierung komplexer Datenstrukturen und Algorithmen. Sie bietet zudem Utilities für Speicherverwaltung, native Interoperabilität via Foreign-Function-Interfaces und systemnahe OS-Integration.
Provides reference patterns for advanced Python function definitions including keyword-only and arbitrary arguments.
This project is an interactive programming education resource and tutorial designed for learning the Rust programming language and systems programming concepts. It provides a collection of runnable and editable code examples that serve as a practical reference for language syntax and implementation. The resource features an interactive code sandbox that allows users to execute and test code snippets in real time. It emphasizes the verification of technical accuracy by executing embedded code blocks during the build process to ensure all examples remain functional. The content covers a compre
Provides guidance on defining reusable blocks of code with typed arguments and return values.
Penrose is a compiler that transforms structured mathematical notation into optimized SVG diagrams. It uses a three-stage pipeline of separate domain, substance, and style files to define mathematical objects, relationships, and visual presentation, then solves continuous optimization problems with user-defined spatial constraints and objectives to automatically arrange diagram elements. The system separates diagram content from visual style using distinct declarative languages, and provides a typed domain language with subtype hierarchies for mathematical objects. It supports embedding compi
Declares functions with typed inputs and outputs that diagram schemas can reference.
HybridCLR is a hybrid C# execution engine and assembly loader designed for Unity. It provides a system for hot-updating C# logic across all platforms at runtime without requiring the application to be rebuilt or reinstalled. The project is distinguished by its mixed-mode execution, which runs unmodified code at native speed while using a high-performance interpreter for updated functions. It includes a generic type resolver that allows hot-updated code to use generic classes and functions regardless of whether they were pre-instantiated in the main binary. To protect proprietary source code,
Provides a mechanism for defining native functions that can be called from hot-updated scripts.
MobX State Tree is a structured, tree-based state management library for JavaScript applications that combines typed model definitions with reactive snapshots and patch-based change tracking. It provides a reactive state container with runtime and compile-time type safety, where application state is defined as a tree of typed models with collocated actions, computed views, and lifecycle hooks for predictable state mutations. The library is built around an action-centric mutation model that encapsulates all state changes within named functions that directly modify the tree, supported by genera
Defines lazily evaluated types for recursive or circular type definitions.
Define a named function with parameters in a scratch file and evaluate it immediately with a watch expression.
TypeSpec is a language for defining cloud API shapes and generating OpenAPI, JSON Schema, and client/server code from a single source of truth. It functions as a protocol-agnostic API designer that models REST, gRPC, and other API protocols using a unified, extensible syntax, with a decorator-based metadata system for attaching metadata, validation rules, and lifecycle visibility to API models and operations. The compiler produces OpenAPI 3.0 specifications and other artifacts, and the tool supports declaring API versions and tracking changes to models, properties, and operations across releas
Provides a typed function declaration system for defining API operations with typed inputs and outputs.
This is an open-source, crowd-sourced wiki textbook that teaches Linux system programming in C. It covers the core operating system concepts of process management through the fork-exec-wait model, dynamic memory allocation using implicit free list heap allocators, inode-based file systems, inter-process communication via pipes and shared memory, POSIX threads with synchronization primitives, signal-based asynchronous notification, virtual memory with page table translation, and runtime diagnostics using Valgrind and GDB. The textbook distinguishes itself by providing practical, implementation
Covers the use of function prototypes for compile-time type checking.
Dieses Projekt ist eine lokalisierte Bildungsressource zum Erlernen der Programmiersprache Rust und bietet ein umfassendes Handbuch sowie technische Spezifikationen, die ins vereinfachte Chinesisch übersetzt wurden. Es dient als Lehrmittel zum Studium von Sprachidiomen, Speichermanagement und Typsystemen. Das Repository konzentriert sich auf die Lokalisierung von Softwaredokumentation und übersetzt offizielle Leitfäden ins vereinfachte Chinesisch, um die Zugänglichkeit für Nicht-Muttersprachler zu erhöhen. Es nutzt ein Markdown-basiertes System zur Organisation der Inhalte und unterstützt den Export in mehrere Formate wie statisches HTML, PDF und EPUB für die Web- und Offline-Ansicht. Der Inhalt deckt eine breite Palette technischer Rust-Domänen ab, einschließlich Speichermanagement-Primitiven wie Ownership und Borrowing, fortgeschrittenem Sprachdesign mit Traits und Generics sowie umfassenden Strategien zur Fehlerbehandlung. Zudem werden Programmiergrundlagen, Datenmodellierung und der Einsatz von Produktivitätstools für Build- und Dependency-Management detailliert beschrieben.
Rust declares a reusable block of code with a name and parameters to execute a specific task.
Dieses Projekt ist eine Sammlung von Lernressourcen, Dokumentationen und Boilerplate-Vorlagen, die für Entwickler konzipiert sind, die das Flutter-Framework und die Dart-Sprache studieren. Es bietet einen umfassenden Satz an Installationsanleitungen, Konfigurations-Tutorials und Referenzmaterialien, um beim Aufbau plattformübergreifender mobiler Anwendungen zu unterstützen. Das Repository zeichnet sich durch eine breite Palette praktischer Beispiele aus, einschließlich Demonstrationen der Dart-Sprachgrammatik, plattformübergreifender UI-Muster und Projektvorlagen. Es bietet spezifisch Beispielcode für die Implementierung nativer Plattform-Plugins und die Überbrückung von Hardwarefunktionen mittels Method-Channels. Die Codebasis deckt ein breites Spektrum an Entwicklungsfunktionen ab, einschließlich zustandsgesteuertem UI-Rendering und Widget-basierter Layout-Konstruktion. Es enthält Implementierungen für Navigations-Routing, lokale Datenpersistenz mittels SQLite und Shared-Preferences sowie systemnahe Integrationen für Push-Benachrichtigungen und Hardwaresensoren. Das Projekt bietet zudem Materialien für die Umgebungskonfiguration, die Verifizierung von Entwicklungstools und Logiktests, um ein konsistentes Setup auf lokalen Maschinen sicherzustellen.
Provides examples and documentation for encapsulating reusable logic using function definitions with parameters and return values in Dart.
Vyper is a security-focused, typed programming language and compiler designed for creating smart contracts that execute on the Ethereum Virtual Machine. It utilizes a Pythonic syntax to define contract logic and state, serving as a target for formal verification to allow for machine-checked proofs of correctness. The language distinguishes itself through strict architectural constraints that prioritize predictability and security. It enforces acyclic call graphs by prohibiting recursion and mandates bounded loops to ensure static gas prediction. Additionally, it features a native fixed-point
Enables the encapsulation of reusable logic into functions with configurable visibility and parameters.
c3c is the compiler for the C3 programming language, transforming source code into executable binaries, static libraries, or dynamic libraries using an LLVM backend. It implements a system based on result-based error handling, scoped memory pooling, and a semantic macro system. The compiler provides first-class support for hardware-backed SIMD vectors that map directly to processor instructions and enables runtime polymorphism through interface-based dynamic dispatch. The project covers a broad set of low-level capabilities, including manual and pooled memory management, inline assembly inte
Supports function definitions where the function type takes a pointer to itself as an argument.
Dieses Projekt ist eine chinesische Übersetzung eines umfassenden Leitfadens zur Programmiersprache Go. Es dient als lokalisierte Bildungsressource und technisches Handbuch, das Orientierung zu Sprachsyntax, Design und Softwareentwicklung bietet. Die Ressource deckt ein breites Spektrum der Go-Sprachausbildung ab, einschließlich der Implementierung von Programmiermustern und Systemdesign. Sie enthält übersetzte Lektionen und Beispiele, die sich auf Kernfunktionen der Sprache wie Concurrency und die Verwendung von Interfaces konzentrieren. Der Inhalt umfasst verschiedene Kompetenzbereiche, darunter Sprachgrundlagen, Datenmodellierung, Runtime-Reflection und Speicherverwaltung. Zudem bietet es detaillierte Abhandlungen zu Softwarearchitektur, Fehlerbehandlung, Qualitätssicherung und Web-Networking. Die Dokumentation ist als technisches Handbuch strukturiert, das übersetzte Inhalte, Errata und Korrekturen enthält, um ein präzises Lernen zu gewährleisten.
Provides comprehensive guidance on defining reusable logic through functions with parameters and return values.
This project is a comprehensive guide and educational resource for the TypeScript language. It covers the fundamental principles of the language, including its structural type system, static type analysis, and the process of transpiling typed source files into JavaScript. The material details how to model complex data and reusable type logic using generics, conditional types, and mapped types. It also explains the use of declaration files to provide type safety for external JavaScript libraries and the integration of type checking into existing JavaScript projects via JSDoc annotations. The
Teaches how to define function types and overloads to ensure type-safe imports.
Ink ist eine narrative Skriptsprache, ein JSON-Narrativ-Compiler und eine Narrative-Engine-Runtime. Sie bietet ein spezialisiertes Toolset für das Verfassen nicht-linearer Geschichten und komplexer verzweigter Dialogsysteme, wodurch Entwickler den Spielzustand verwalten und interaktiven Text an eine Benutzeroberfläche ausgeben können. Das System transformiert Rohskripte in ein maschinenlesbares JSON-Bytecode-Format, um die Ausführung innerhalb externer Game-Engines zu optimieren. Es zeichnet sich durch fortgeschrittenes Zustandsmanagement aus, einschließlich der Fähigkeit, den Fortschritt der Geschichte in Snapshots zu serialisieren und gleichzeitige Story-Kontexte für die Handhabung mehrerer paralleler narrativer Stränge beizubehalten. Das Framework deckt breite Funktionsbereiche ab, darunter bedingte Kontrollflüsse, die Ausführung von Logikfunktionen und komplexes set-basiertes Zustands-Tracking. Es unterstützt narrative Designmuster wie verschachtelte Dialogoptionen, wiederverwendbare Story-Segmente und die Verwendung von Metadaten-Tags, um systemische Aktionen an eine Host-Anwendung zu signalisieren. Die Runtime ermöglicht eine bidirektionale Kommunikation mit der Host-Logik durch externe Funktionsbindungen und Zustandsmanagement nach dem Observer-Muster.
Supports the definition of reusable logic functions that perform calculations without interrupting the primary narrative flow.
Python-Guide-CN ist eine chinesische Übersetzung eines umfassenden Leitfadens für idiomatische Python-Programmierung und Softwareentwicklung. Er dient als kuratiertes Programmier-Tutorial und Ökosystem-Referenz und bietet einen strukturierten Pfad zum Erlernen von Python-Syntax, Standardbibliotheken und professionellen Coding-Mustern. Das Projekt zeichnet sich dadurch aus, dass es detaillierte Anweisungen für das Einrichten von Entwicklungsumgebungen unter Windows, macOS und Linux bietet. Es konzentriert sich spezifisch auf die Auswahl von Interpretern und die Verwaltung virtueller Umgebungen, um einen konsistenten Arbeitsplatz zu gewährleisten. Der Leitfaden deckt eine breite Palette technischer Funktionen ab, einschließlich Software-Test-Workflows, Paketverteilung und der Implementierung von Coding-Best-Practices. Er bietet zudem Anleitungen zur Webentwicklung, REST-API-Konstruktion und wissenschaftlichem Rechnen, einschließlich Datenanalyse und Visualisierung.
Demonstrates how to execute compiled binary functions within the Python runtime using binary interfaces.