Commit Graph

6 Commits

Author SHA1 Message Date
83f1533bce feat(mojo): integrate Modular Mojo compiler implementation
Extracted from modular repo and reorganized:

Compiler Implementation:
- 21 compiler source files (frontend, semantic, IR, codegen, runtime)
- 15 comprehensive test files (lexer, parser, type checker, backend, etc.)
- 9 compiler usage example programs

Architecture (5 phases):
- Frontend: Lexer, parser, AST generation (lexer.mojo, parser.mojo, ast.mojo)
- Semantic: Type system, checking, symbol resolution (3 files)
- IR: MLIR code generation (mlir_gen.mojo, mojo_dialect.mojo)
- Codegen: LLVM backend, optimization passes (llvm_backend.mojo, optimizer.mojo)
- Runtime: Memory mgmt, reflection, async support (3 files)

File Organization:
- mojo/compiler/src/: Compiler implementation (21 files, 952K)
- mojo/compiler/tests/: Test suite (15 files)
- mojo/compiler/examples/: Usage examples (9 files)
- mojo/samples/: Mojo language examples (37 files, moved from examples/)

Documentation:
- mojo/CLAUDE.md: Project-level guide
- mojo/compiler/CLAUDE.md: Detailed architecture documentation
- mojo/compiler/README.md: Quick start guide
- mojo/samples/README.md: Example programs guide

Status:
- Compiler architecture complete (Phase 4)
- Full test coverage included
- Ready for continued development and integration

Files tracked:
- 45 new compiler files (21 src + 15 tests + 9 examples)
- 1 moved existing directory (examples → samples)
- 3 documentation files created
- 1 root CLAUDE.md updated

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-23 19:05:44 +00:00
b57ac8d895 Add initial M3 component library and update styles
Introduces a new 'fakemui' component library with Button, Card, Table, and Tabs components, including supporting SCSS and utility files. Adds extensive Material 3 SCSS theme files and updates various style modules and atom styles for improved consistency and compatibility.
2026-01-22 05:42:33 +00:00
197a7db6a7 stuff 2026-01-22 02:20:35 +00:00
43f5021ccb stuff 2026-01-22 02:00:16 +00:00
d772201bf1 feat: Replace placeholder examples with official Modular Mojo examples
Added official examples from github.com/modular/modular:
- gpu-intro, gpu-functions, gpu-block-and-warp (GPU programming)
- layout_tensor, layouts (tensor operations)
- life (Conway's Game of Life)
- operators (custom operators)
- process (subprocess handling)
- python-interop (Python integration)
- testing (unit test patterns)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 17:40:19 +00:00
583c6cb61f feat: Add Mojo example project for systems programming
Replaces typthon with Mojo - a Python-superset language with:
- Strict typing with compile-time checking
- SIMD and parallel processing support
- Python interoperability
- Systems-level performance (comparable to C++)

Includes examples for:
- Basic syntax and structs
- SIMD vector operations
- Python library integration
- Performance benchmarks

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 17:37:37 +00:00