#Polymorphic

2024-11-21

#ChatGPT #categorytheory #assembly #polymorphic

Category Theory! Like assembly language, it operates on minimal, foundational concepts-objects and morphisms-while allowing tremendous abstraction and generality. Each "instruction" (composition, identity, etc.) is simple in isolation, but their interactions give rise to a rich structure that can model a vast array of mathematical phenomena.

Polymorphic Types: The "polymorphism" comes from the way objects and morphisms are defined abstractly. They don't prescribe specific types; instead, they adapt to the context

Objects: Can represent sets, types, spaces, or even more abstract constructs.
Morphisms: Describe relationships or transformations between objects, but their meaning changes depending on the category in question (functions, homomorphisms, etc.).
Universal Properties: Abstract patterns like limits or adjunctions apply across vastly different contexts, embodying polymorphism at a higher level.

Comparison to Assembly

Simplicity: In assembly language, instructions like MOV, ADD, and JMP are simple primitives. Similarly, in Category Theory, operations like composition and identity are foundational yet sufficient to build complex systems.
Optimization: At both levels, careful "assembly" can reveal fundamental insights—whether about a program's execution or a mathematical concept's essence.

It's no wonder Category Theory is often referred to as the "mathematics of mathematics." It provides the ultimate abstraction layer, akin to polymorphic assembly for the universe of mathematical thought.

American NaturalistASNAmNat@ecoevo.social
2024-11-15

Animals adapt to fire events by choosing suitable backgrounds or being polymorphic, reducing predation risks. Vitor de Alcantara Viana et al. show how spiders find the best spots, and how grasshoppers and mantises thrive in a neotropical savanna. journals.uchicago.edu/doi/10.1

#fire #polymorphic #predation #spider #grasshopper #neotropicalSavanna

American NaturalistASNAmNat@ecoevo.social
2024-07-16

The American Snout butterfly’s name owes to long labial palps thought to mimic dead leaves. Papaj et al. show that its camouflaged underside is polymorphic with a sexually dimorphic pattern that alternates seasonally with a sexually monomorphic pattern.
journals.uchicago.edu/doi/10.1

#AmericanSnoutButterfly #camouflage #polymorphic #wings #pattern

Dan 🦺 Deboerdandb@mas.to
2023-10-08

One thing that would make working with #Laravel #polymorphic relationships a little more bearable would be the ability to refer to interface eager loading.

eg:

A PHP code snippet for the Laravel framework that reads:

$query->with([
	'child' => fn (MorphTo $morph) => $morph->morphWith([
      	HasCreatorInterface::class => ['createdBy'],
    ]),
]);
⎯ΘωΘ⟶yog@mathstodon.xyz
2022-10-29

In the #context of #computer #programming, #magic is an #informal #term for #abstraction; it is used to #describe #code that #handles #complex #tasks while #hiding that #complexity to #present a #simple #interface. The term is somewhat tongue-in-cheek, and often #carries #bad #connotations, #implying that the #true #behavior of the code is not #immediately #apparent. For #example, #Perl's #polymorphic #typing and #closure #mechanisms are often #called "magic".

2021-03-05

Inductive boollist : Type :=
  | bool_nil : boollist
  | bool_cons : bool → boollist → boollist.

#polymorphic

2021-01-14

- functions can have #polymorphic types but functors cannot (in #OCaml).

2021-01-09

- dynamic languages make it easy to produce #polymorphic functions.

2021-01-04

algebraic #polymorphic types like Pair and Maybe can be defined in #Lisp

clacke: exhausted pixie dream boy 🇸🇪🇭🇰💙💛clacke@libranet.de
2020-11-03
Jack Meinoff, CEO :disputed:JackMeinoff@salesforce.social
2020-10-13

Some people never listen - because of the #polymorphic relationship this report type isn't possible!

#Salesforce #reports

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst