Skip to content

charleskoffler/clprolf

Repository files navigation

Clprolf — Clear Programming Language & Framework

A methodology turned into a language. Good OOP becomes natural, not accidental.

Clprolf adds a conceptual layer on top of Java/C#/PHP: roles, contracts, and design rules are first-class keywords. You model systems with agents, worker agents, versions, and capacities, while the compiler enforces clarity.


🚀 Why Clprolf?

  • Safer architecture: compile-time errors prevent invalid dependencies
  • Clear concurrency: intent expressed with one_at_a_time, turn_monitor, etc.
  • Readable design: class roles (agent, worker_agent, model) explain themselves

📝 Quick Example

agent OrderService {
    with_compat OrderRepository repo;
    void checkout(Order o) { repo.save(o); }
}
  • In plain OOP: architecture drifts, concurrency bugs, endless onboarding.
  • With Clprolf: contracts explicit, roles clear, design rules enforced.

✨ Key Ideas

  • Role-based classes: agent, worker_agent, model, information, indef_obj

  • Modifiers for real-world complexity: long_action, one_at_a_time, dependent_activity

  • Works two ways:

    • Framework (annotations for Java, C#, PHP 8+)
    • Language (compiles into pure Java)

🎯 Perfect For

  • Large simulations & multi-agent systems
  • Scientific prototypes with interacting “actors”
  • Teaching OOP/design patterns with minimal overhead

👉 With Clprolf, your code doesn’t just run — it explains itself.


Documentation

Main documentation

Explaining Declensions

TALKING IN JAVA VERSUS TALKING IN CLPROLF – EXAMPLE

LEARNING THE CLASS ROLES THROUGH JAVA WRAPPERS

Interfaces in Clprolf — Complete Overview

Concurrency and Parallelism Aids in Clprolf

The underst Method Modifier

Insights About Clprolf — For Experienced Readers

AI Insights

clprolf official web site

Extended documentation

Using Clprolf for Complex Object-Oriented Designs

Attempts of Multiple Inheritance with Interfaces in Clprolf

Sources

clprolf compiler

clprolf compiler directory

clprolf frameworks

clprolf Java framework

clprolf C# framework

clprolf PHP framework

Source examples

clprolf wrappers for Java Standard Libraries

clprolf simple examples

clprolf algorithms examples

clprolf design patterns examples

clprolf games examples