awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目MCP 服务器关于排名机制媒体报道
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·

23 个仓库

Awesome GitHub RepositoriesGeneric Function Definitions

Functions that accept multiple data types while maintaining type safety without empty interfaces.

Distinct from Functional: Focuses on generic function signatures, distinct from general functional programming utilities.

Explore 23 awesome GitHub repositories matching programming languages & runtimes · Generic Function Definitions. Refine with filters or upvote what's useful.

Awesome Generic Function Definitions GitHub Repositories

用 AI 发现最棒的仓库。我们将通过 AI 为您搜索最匹配的仓库。
  • gto76/python-cheatsheetgto76 的头像

    gto76/python-cheatsheet

    38,499在 GitHub 上查看↗

    This project is a comprehensive technical reference and programming cheatsheet for the Python language. It serves as a curated catalog of language features, syntax patterns, and standard library functions designed to help developers identify and apply correct coding patterns. The documentation covers a broad range of functional areas, including language fundamentals such as object-oriented structuring, functional logic, and list comprehensions. It also provides guidance on utilizing the standard library for data analysis, file management, networking, and concurrent execution. The reference e

    Documents the creation of reusable logic blocks using functions and closures.

    Pythoncheatsheetpythonpython-cheatsheet
    在 GitHub 上查看↗38,499
  • fmtlib/fmtfmtlib 的头像

    fmtlib/fmt

    23,596在 GitHub 上查看↗

    fmt is a type-safe C++ text formatting library used to convert data into formatted strings and text. It serves as a high-performance string buffer utility and provided the basis for the formatting features introduced in the C++20 standard. The library shifts format string validation and size computation to the compilation phase to prevent runtime crashes and increase execution speed. It utilizes a memory-efficient interface to write formatted data directly into buffers, minimizing allocations and eliminating intermediate string overhead. The project covers a broad range of text processing ca

    Uses template metaprogramming to resolve the correct formatting function for a given type without runtime overhead.

    C++
    在 GitHub 上查看↗23,596
  • quii/learn-go-with-testsquii 的头像

    quii/learn-go-with-tests

    23,510在 GitHub 上查看↗

    This project is an educational platform and tutorial series designed to teach the Go programming language through the practice of test-driven development. It provides a structured path for developers to master language fundamentals, concurrency, and standard library usage by building functional applications in small, verifiable increments. The core methodology centers on the test-driven development cycle, where failing tests are written before implementation to define requirements and ensure code correctness. This approach is applied across a wide range of practical scenarios, including the c

    Defines generic functions that maintain compile-time type safety across multiple data types.

    Gogogolangtdd
    在 GitHub 上查看↗23,510
  • crystal-lang/crystalcrystal-lang 的头像

    crystal-lang/crystal

    20,299在 GitHub 上查看↗

    Crystal is a statically typed, compiled programming language designed for high performance and memory safety. It leverages an LLVM-based compiler to translate source code into optimized machine-executable binaries, while its type-inference-based static analysis enforces strict safety rules during the build process. The language distinguishes itself through a fiber-based concurrent runtime that manages lightweight execution units for asynchronous input and output without blocking the main process. It also features a powerful compile-time macro system that allows for the inspection and transfor

    Creates executable function objects that capture local context and support explicit type definitions.

    Crystalcompilercrystalcrystal-language
    在 GitHub 上查看↗20,299
  • rust-lang/bookrust-lang 的头像

    rust-lang/book

    17,930在 GitHub 上查看↗

    The Rust Programming Language Book is the official technical guide and educational resource for the Rust language. It provides a comprehensive walkthrough of the language's design, focusing on its core identity as a systems programming language that enforces memory safety and high-performance execution without the need for a garbage collector. The project is distinguished by its focus on ownership, borrowing, and lifetime tracking, which allow the compiler to verify memory safety and thread safety at compile time. It covers the language's unique approach to zero-cost abstractions, including t

    Generates specialized machine code for generic definitions to eliminate runtime overhead and improve execution speed.

    Rustbookmdbookrust
    在 GitHub 上查看↗17,930
  • typescript-eslint/typescript-eslinttypescript-eslint 的头像

    typescript-eslint/typescript-eslint

    16,103在 GitHub 上查看↗

    This project is a static analysis framework and linting engine designed to inspect TypeScript codebases. It functions as a plugin suite that enables standard linting workflows to parse source code into abstract syntax trees, allowing for the automated enforcement of coding standards and the identification of potential bugs through a modular, rule-based visitor pattern. The engine distinguishes itself by integrating directly with the TypeScript compiler to perform type-aware analysis. By accessing compiler type information, it can identify complex errors and unsafe patterns that standard synta

    Promotes the use of explicit function signatures by identifying generic types that lack specific parameter and return information.

    TypeScripteslinteslint-plugineslintplugin
    在 GitHub 上查看↗16,103
  • federico-busato/modern-cpp-programmingfederico-busato 的头像

    federico-busato/Modern-CPP-Programming

    15,808在 GitHub 上查看↗

    This project is a comprehensive educational resource and programming course covering C++ language semantics and features from C++03 through C++26. It provides structured tutorials and technical guides focused on modern C++ development. The material offers specialized instruction on template metaprogramming, including the use of type traits and compile-time computations. It features detailed guides on concurrency and parallelism for multi-core execution, as well as a reference for software design applying SOLID principles and RAII. Additionally, it covers build performance optimization to redu

    Provides instruction on using templates and overloading to create type-safe generic interfaces.

    HTMLc-plus-pluscode-qualitycompilers
    在 GitHub 上查看↗15,808
  • outlines-dev/outlinesoutlines-dev 的头像

    outlines-dev/outlines

    13,965在 GitHub 上查看↗

    Outlines is a guided text generation framework and structured output engine for large language models. It enforces precise structural constraints on model output during the sampling process to ensure the generation of valid data. The framework ensures that model outputs strictly adhere to predefined data models, including JSON schemas, regular expressions, and formal grammars. This enables the conversion of natural language inputs into structured arguments for function calling and the generation of valid JSON for downstream processing. The system manages model orchestration through prompt te

    Translates natural language requests into structured arguments that match a predefined function signature.

    Python
    在 GitHub 上查看↗13,965
  • phpstan/phpstanphpstan 的头像

    phpstan/phpstan

    13,999在 GitHub 上查看↗

    This project is a static analysis engine and type checker designed for PHP codebases. It evaluates source code structure and type annotations to identify potential bugs, type mismatches, and logic errors without executing the application. By parsing code into an abstract syntax tree and applying a rule-based validation framework, it enforces code quality and safety standards across a project. What distinguishes this tool is its sophisticated type inference engine, which models dynamic language features, magic methods, and conditional types to maintain accuracy even in unconventional code. It

    Enforces exact parameter and return types for callback functions to ensure they receive the correct data structures.

    PHPphpphp7phpstan
    在 GitHub 上查看↗13,999
  • xcatliu/typescript-tutorialxcatliu 的头像

    xcatliu/typescript-tutorial

    10,725在 GitHub 上查看↗

    This is a comprehensive tutorial for learning TypeScript, designed for JavaScript programmers who want to understand the language's type system and modern features. The resource covers TypeScript's core identity, including its structural type compatibility, compile-time type erasure, declaration file merging, and the discriminated union pattern for precise type narrowing. The tutorial distinguishes itself by providing a progressive learning path from basic JavaScript concepts to advanced TypeScript patterns. It covers generic type parameter constraints, tuple types with fixed-length positions

    Documents how to define functions with type parameters in TypeScript.

    TypeScriptjavascripttutorialtypescript
    在 GitHub 上查看↗10,725
  • rust-lang/rust-by-examplerust-lang 的头像

    rust-lang/rust-by-example

    8,026在 GitHub 上查看↗

    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

    Shows how to define functions that operate on multiple types using type parameters.

    Handlebars
    在 GitHub 上查看↗8,026
  • teivah/100-go-mistakesteivah 的头像

    teivah/100-go-mistakes

    7,915在 GitHub 上查看↗

    100 Go Mistakes is a reference book and code review companion that catalogues frequent Go programming anti-patterns and provides corrected implementations for each one. It covers a wide range of common pitfalls, from range loop variable capture and interface nil handling to error wrapping and map iteration randomization, helping developers recognize and avoid these issues in their own code. The project distinguishes itself by offering a structured, example-driven approach to learning idiomatic Go. It covers core design decisions such as when to use pointer versus value receivers, how to apply

    Writes functions that work with any type using type parameters while preserving compile-time type safety.

    Gobookchinesedocumentation
    在 GitHub 上查看↗7,915
  • norvig/paip-lispnorvig 的头像

    norvig/paip-lisp

    7,465在 GitHub 上查看↗

    This project is a comprehensive Lisp AI implementation library that provides reference implementations for various artificial intelligence paradigms and symbolic algorithms. It functions as a multi-purpose toolkit containing a logic programming engine, a natural language processing suite, and a symbolic mathematics toolkit. The library is distinguished by its diverse architectural frameworks, including a Prolog-style execution engine that uses unification and goal-driven backtracking, and a system for simulating human decision-making through expert system shells and certainty factors. It also

    Defines a global interface that executes the appropriate method for an object based on its class.

    Common Lisp
    在 GitHub 上查看↗7,465
  • fuzhengwei/itstack-demo-designfuzhengwei 的头像

    fuzhengwei/itstack-demo-design

    6,779在 GitHub 上查看↗

    本项目是一个软件设计模式实现指南和架构参考。它提供了一系列实用的代码示例,演示了创建型、结构型和行为型模式,以提高软件的可维护性和质量。 该库包括通过创建型模式进行对象实例化的标准化实现、使用结构型模式将对象组装成高效层次结构的模板,以及通过行为型模式管理对象通信和职责分配的示例。 该项目将这些抽象设计模式映射到特定的业务领域(如交易和营销),以演示如何解决现实世界的软件问题。这包括应用多态运行时分派和基于接口的解耦,以降低系统复杂性并提高可扩展性。

    Implements mechanisms to determine concrete class execution at runtime based on object types.

    Java
    在 GitHub 上查看↗6,779
  • unisonweb/unisonunisonweb 的头像

    unisonweb/unison

    6,487在 GitHub 上查看↗

    Exposes effect requirements in function signatures using curly brace annotations.

    Haskellhacktoberfesthaskellprogramming-language
    在 GitHub 上查看↗6,487
  • nvidia/warpNVIDIA 的头像

    NVIDIA/warp

    6,233在 GitHub 上查看↗

    Warp is a Python framework that JIT-compiles Python functions into CUDA kernels for GPU-accelerated parallel computation, with built-in automatic differentiation and multi-framework array interoperability. At its core, it provides a GPU kernel compilation system that enables writing and executing custom GPU kernels directly from Python, while supporting automatic gradient computation through those kernels for integration with machine learning pipelines. The framework also includes tile-based cooperative computing, where thread blocks partition into tiles for shared-memory and tensor-core opera

    Creates functions that accept any data type and are automatically instantiated per call site.

    Pythoncudadifferentiable-programminggpu
    在 GitHub 上查看↗6,233
  • kaisery/trpl-zh-cnKaiserY 的头像

    KaiserY/trpl-zh-cn

    5,501在 GitHub 上查看↗

    本项目是一个用于学习 Rust 编程语言的本地化教育资源,提供翻译成简体中文的综合指南和技术规范。它作为学习语言惯用法、内存管理和类型系统的教学工具。 该仓库专注于软件文档本地化,将官方指南转换为简体中文,以提高非英语使用者的可访问性。它利用基于 Markdown 的系统来组织内容,并支持导出为静态 HTML、PDF 和 EPUB 格式,以供 Web 和离线查看。 内容涵盖广泛的 Rust 技术领域,包括所有权和借用等内存管理原语、涉及 trait 和泛型的先进语言设计,以及全面的错误处理策略。它还详细介绍了编程基础、数据建模以及用于构建和依赖管理的开发者生产力工具的使用。

    Explains the creation of functions namespaced to a type that serve as constructors.

    Markdownpdfrust-booktypst
    在 GitHub 上查看↗5,501
  • c3lang/c3cc3lang 的头像

    c3lang/c3c

    5,147在 GitHub 上查看↗

    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

    Validates pre-conditions and post-conditions through static analysis and runtime asserts.

    C3c3compilerlanguage
    在 GitHub 上查看↗5,147
  • effector/effectoreffector 的头像

    effector/effector

    4,837在 GitHub 上查看↗

    Effector is a reactive state management library designed for building complex, event-driven applications. It functions as a data flow engine that models application logic as a directed acyclic graph, ensuring that state updates propagate automatically through interconnected nodes. By utilizing atomic state updates and declarative unit composition, the library maintains data consistency and provides a predictable execution model for managing application state. The project distinguishes itself through its framework-agnostic architecture, which decouples business logic from user interface implem

    Configures the input parameters, return values, and error types for asynchronous operations to ensure predictable data flow.

    TypeScriptbusiness-logiceffectorevent-driven
    在 GitHub 上查看↗4,837
  • felipe-augusto/clean-code-javascriptfelipe-augusto 的头像

    felipe-augusto/clean-code-javascript

    4,891在 GitHub 上查看↗

    This project is a comprehensive guide and set of engineering standards for writing readable, maintainable, and scalable JavaScript code. It provides a framework for software architecture, refactoring patterns, and clean coding practices designed to improve codebase health and longevity. The guide emphasizes the application of SOLID principles and architectural strategies such as dependency inversion and the separation of concerns. It focuses on transforming complex conditional logic through polymorphism and refactoring, while promoting a transition from imperative loops to declarative functio

    Implements polymorphic method dispatch in subclasses to replace switch or if-else chains.

    JavaScriptclean-codejavascript
    在 GitHub 上查看↗4,891
上一个12下一个
  1. Home
  2. Programming Languages & Runtimes
  3. Programming Utilities
  4. Functional
  5. Generic Function Definitions

探索子标签

  • Associated FunctionsFunctions namespaced to a specific type that do not require an instance to execute. **Distinct from Generic Function Definitions:** Distinct from generic function definitions: focuses on type-namespaced static methods rather than generic parameter handling.
  • Function Signature Enforcement1 个子标签Rules that require explicit parameter and return types for generic function definitions. **Distinct from Generic Function Definitions:** Distinct from Generic Function Definitions: focuses on enforcing strict signatures rather than just defining generic functions.
  • Generic Dispatch Mechanisms2 个子标签Logic for resolving type-specific function implementations at compile time using templates. **Distinct from Generic Function Definitions:** Focuses on compile-time template resolution for formatting, unlike runtime-based dispatch candidates.
  • Natural Language Parameter ExtractionTranslating unstructured natural language into structured arguments for function signatures. **Distinct from Function Signature Enforcement:** Focuses on extracting arguments from natural language for LLM function calling, whereas Function Signature Enforcement is a static type-checking concern.
  • Polymorphic DispatchMechanisms that execute different method implementations based on the class of the provided object. **Distinct from Generic Function Definitions:** Distinct from Generic Function Definitions (which focus on type safety/signatures) by focusing on the runtime dispatch logic.
  • Python Generic Function DispatchersImplementing generic functions in Python that route execution based on the runtime types of one or more arguments. **Distinct from Generic Function Definitions:** Distinct from general generic function definitions: specifically implements runtime type-based multi-argument dispatch in Python.