PitchHut logo
A mobile-first programming language for versatile coding.
Pitch

Coderive is a mobile-first programming language designed with versatility in mind. Built primarily in Java 7 and featuring a dual parser and compiler for both bytecode and native code generation, it aims to provide a clean code structure and fast performance. Perfect for developers looking to code on the go.

Description

A mobile-first general programming language, Coderive is designed with the aim of providing a production-ready, self-hosting environment for developers. Primarily written in Java 7 with a runtime built in C, Coderive employs a dual parser system that combines ANTLR with manual recursive backtracking, along with a unique dual compilation process that generates both bytecode and native code.

Key Features:

  • Mobile-First Development: Coderive is created specifically for mobile devices, demonstrating that robust programming can be accomplished without traditional development environments.
  • Advanced Compiler Architecture: Utilizing a custom AOT compiler with JIT techniques, Coderive supports multi-target code generation for ARM64 and x86_64 architectures, thus ensuring versatility and efficiency.
  • Expressive Syntax: The language includes innovative features such as multi-return slots in function definitions, expressive for-loops, and a simplified importing system that enhances code readability and reduces boilerplate.

Technical Specifications:

  • Development Environment: The developer utilizes tools such as Java NIDE for quick compilation, QuickEdit as an editor, Termux for a Linux environment, and AI assistants like Deepseek and Gemini for efficient code debugging.
  • Sample Code Demonstration:
unit sample.program get {
    cod.Math
}

share interactiveDemo {
    ~| formula, operation
    local calculate(int a, int b, string op) {
        if op == "+" {
            ~ formula a + b
            ~ operation "addition"
        } else if op == "-" {
            ~ formula a - b
            ~ operation "subtraction"
        }
        // ... more code
    }
    
    share main() {
        output "=== CODERIVE INTERACTIVE DEMO ==="
        demonstrateArrays()
        getUserInfo()
        interactiveCalculator()
        numberSeries()
        edgeCaseLoops()
    }
}
  • Compilation Output Example:
[20:26:28.018] [INFO] RUNNER: Starting MTOT compilation pipeline
[20:26:28.021] [INFO] RUNNER: Input file: InteractiveDemo.cod
[20:26:28.056] [INFO] RUNNER: AST built successfully
[20:26:28.068] [INFO] BYTECODE: Compilation complete: 1076 instructions across 9 methods
[20:26:28.071] [INFO] MTOT: Detected CPU: aarch64
[20:26:28.227] [INFO] MTOT: Full compilation pipeline complete.

Unique Contributions:

  • Coderive is notable as the first fully functional compiler developed entirely on mobile devices, showcasing a Filipino-led innovation in a field traditionally dominated by Western developers.
  • It embodies a constraint-driven architecture, effectively transforming mobile limitations into design strengths and encouraging a paradigm shift in mobile programming capabilities.

Community Engagement:

For discussions, questions, or project sharing, the Coderive community welcomes engagement through GitHub Discussions and bug reporting via Issues. Contributions are encouraged from developers across various backgrounds, fostering an inclusive development environment.

Overall, Coderive stands as a testament to innovation in programming, extending the possibilities of mobile development and contributing to a more diverse coding landscape.

0 comments

No comments yet.

Sign in to be the first to comment.