GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Magics as interfaces · Issue #80 · dflib/jjava

Magics as interfaces #80

New issue
Copy link
New issue
Copy link
Closed
Closed
Magics as interfaces#80
Copy link
Milestone
1.0-a6

Description

@andrus
andrus
opened on Sep 21, 2025
Issue body actions

This task is about improving Magics implementation. While focusing on magics refactoring, it is also about the overall implementation philosophy moving in the direction of a more transparent OO structure with fewer levels of indirection, fewer to no generic callbacks (replacing them with explicit "service" singletons) and immutability. This should result in code that is easier to understand and easier to reuse for alternative kernels.

  1. Convert @CellMagic and @LineMagic annotations into interfaces that concrete magics must implement. This makes writing and cataloging magics much simpler by removing multiple layers of indirection, making magics object-oriented and easier to understand.
  2. Make magics registry immutable, taking maps of magics in constructor. Immutability is great for comprehension as well.
  3. Make magics kernel-aware (instead of invoking kernel via generic callback functions, making tracing interdependencies extremely hard)
  4. Move extension loading logic from MavenResolver (why is it there?) to the kernel.
  5. Cleanup magic "compiler" code.

Upgrade Notes

This breaks compatibility of a few internal APIs, but should not affect notebooks.

Activity

  1. andrus
    changed the title [-]Implement Magics as interfaces[/-] [+]Magics as interfaces[/+] on Sep 21, 2025
  2. andrus
    added this to the 1.0-a6 milestone on Sep 21, 2025
  3. andrus
    added a commit that references this issue on Sep 21, 2025

    Magics as interfaces #80

    b6800c5
  4. andrus
    closed this as completedon Sep 21, 2025
  5. andrus
    added 2 commits that reference this issue on Sep 27, 2025

    Magics as interfaces #80

    109091d

    Magics as interfaces #80

    583eaa0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      • 1.0-a6

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.