3470 Commits
Author SHA1 Message Date
Galo Rojo 869b721d78 Add newer versions of EASTL. (#6816) 2025-10-22 11:34:39 -05:00
Marc Auberer 7b0a833a4c [Spice] Add version 0.22.5 (#8210)
Infra PR: https://github.com/compiler-explorer/infra/pull/1876
2025-10-22 11:29:28 -05:00
Cliff Burdick e39f590ec3 Add CCCL 3.1.0 (#8201) 2025-10-22 09:58:50 -05:00
Cliff Burdick 7f4ef12bbd Add CUDA 13.0.2 (#8200) 2025-10-22 09:58:41 -05:00
narpfel 815938dbc1 Add Ruby 3.4 and make it the default (#8198)
Resolves #8182.

Infra PR: https://github.com/compiler-explorer/infra/pull/1871
2025-10-22 09:56:17 -05:00
Quinton Miller 74d671bdc0 Add Crystal 1.18.1 and 1.17.1 (#8197) 2025-10-22 09:55:32 -05:00
Frank Leon RoseandMatt Godbolt b9dc265973 Clojure language support (#8146)
<img width="1405" height="474" alt="Clojure in Compiler Explorer 2"
src="https://github.com/user-attachments/assets/76dfed9b-d0eb-4764-b371-9c6023088a50"
/>

With Macro Expansion:
<img width="1642" height="594" alt="image"
src="https://github.com/user-attachments/assets/8b511af9-3617-426e-868d-5a99e5db5756"
/>

TODO
- [x] Language configuration
- [x] Compile via wrapper
  - Inject namespace if necessary to simplify minimal code sample
  - Parse Unix style command line parameters into compiler bindings
  - Place file in path according to namespace
- [x] Install some versions of Clojure [PR
here](https://github.com/compiler-explorer/infra/pull/1849)
- [x] Macroexpansion view (modeled on Rust macro expansion view)
- [x] Filter out command line options that would break wrapper operation
- [x] ~~Parse `--help` output to a list of options~~ Reverted because
not applicable.
- [x] Short form compiler options
- [x] Support Clojure compiler settings via env var, like
`JAVA_OPTS=-Dclojure.compiler.direct-linking=true
-Dclojure.compiler.elide-meta=[:doc,:file]`

NOT DOING
- [x] ~~Support loading dependencies~~ Non-trivial enhancement. Not
necessary for initial release.

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-10-22 09:04:20 -05:00
Partouf 3c5a117ab7 fix hpx paths 2025-10-18 18:14:19 +02:00
jaheikk ea53e3a4b4 Add Qt 6.10.0 (#8195)
Add recently released Qt 6.10.0
2025-10-16 10:06:52 -05:00
narpfel e66b6eddfd Add Python 3.14 and make it the default (#8196)
Infra PR: https://github.com/compiler-explorer/infra/pull/1869
2025-10-14 15:31:55 -05:00
LJandMatt Godbolt 066a942cbc Add Resolc 0.4.0 compiler for Solidity and Yul (#8164)
## What

Adds [Revive's Resolc](https://github.com/paritytech/revive) compiler
for compiling Solidity and Yul (Solidity IR) to RISC-V and PolkaVM
assembly.

### Main Additions

- [x] Implement new `ResolcCompiler`
- [x] Implement Yul language definition and config for Monaco
- [x] Add Resolc as a compiler for the Solidity and Yul languages
  - The `ResolcCompiler` handles both kinds of language input 
- [x] Implement initial `PolkaVMAsmParser` (no source mappings)
- [x] Enable viewing LLVM IR in a supplementary view
- [x] Implement a new LLVM IR backend option for toggling between
optimized and unoptimized ll
- Affects non-resolc files ([see
commit](https://github.com/compiler-explorer/compiler-explorer/pull/8164/commits/606bab9a59d49ade11d6e50c4262e9afc991c1aa))
  - Disabled by default
- (Enable by setting `this.compiler.supportsIrViewOptToggleOption =
true` in a compiler's constructor)
- The compiler's `getIrOutputFilename()` will receive the LLVM IR
backend options

### CE Infra

Accompanying CE Infra PR:
https://github.com/compiler-explorer/infra/pull/1855

## Overall Usage

### Steps

(See screenshots)

* Choose between two input languages:
  * Solidity
  * Yul (Solidity IR)
* Choose a Resolc compiler
* View assembly:
  * PolkaVM assembly (if enabling "Compile to binary")
  * RISC-V (64 bits) assembly
* View intermediate results:
  * Optimized LLVM IR (if enabling "Show Optimized" in the LLVM IR view)
  * Unoptimized LLVM IR

### Notes

Source mappings currently only exist between:
- Yul and RISC-V
- Yul and LLVM-IR

## Screenshots

<img width="1502" height="903" alt="CE Yul RISC-V LLVM IR"
src="https://github.com/user-attachments/assets/7503b9b5-0f2c-4ddf-9405-669e4bdcd02d"
/>

<img width="1502" height="903" alt="CE Solidity PolkaVM"
src="https://github.com/user-attachments/assets/eeb51c99-3eaa-4dda-b13c-ac7783e66cb8"
/>

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-10-14 13:56:59 -05:00
Matt Godbolt 55f6469956 Fix wg21 link (thanks @term-est) 2025-10-14 09:00:47 -05:00
narpfel 685f68450a Don’t add --crate-type to rust compiler options when explicitly specified by user (#8191)
Resolves #8186.
2025-10-13 14:16:01 -05:00
Mingxin Wang 10b5be2209 Add C++ library proxy 4.0.0 and 4.0.1 (#8190)
See [the PR from Infra side](https://github.com/compiler-explorer/infra/pull/1859).
2025-10-13 14:03:08 -05:00
Patrick Quist 668bdb8ab1 add aarch64 compilers (#8187)
Fixes #5967
2025-10-11 18:06:46 +02:00
Patrick Quist f3571b9bc4 cmake on windows improvements (#8174) 2025-10-11 15:55:26 +02:00
Matt Godbolt 3fc36bb322 Tweaks 2025-10-07 16:50:14 -05:00
Matt GodboltandClaude fd39af7be8 Add AI-powered duplicate detection with strict filtering (#8176)
## Summary

Adds optional AI-powered duplicate detection using Claude API to
eliminate false positives from string similarity matching. The AI
analyzes candidate groups with strict rules and only confirms true
duplicates.

## Problem

The tag-stripping improvement (#8175) reduced false positives
significantly, but string similarity still produces noise:
- Different assemblers grouped together: "fasm", "YASM", "AsmX" (all
different tools)
- Unrelated features: "language tooltips" vs "language detection"
(different features)
- Specific vs general requests: "EWARM" vs "ARM execution" (specific
toolchain vs general support)

**Before AI filtering:** 63 groups with ~60% false positive rate

## Solution

### Two-phase detection:
1. **Broadphase:** String similarity (fast, high recall) creates
candidate groups
2. **AI Refinement:** Claude Sonnet 4 applies strict rules to confirm
duplicates

### Strict AI rules:
- ✓ **Duplicates:** Same tool with spelling/version variants ("NumPy" =
"numpy", "GCC 13" = "GCC 13.1")
- ✗ **NOT duplicates:** Different named tools ("fasm" ≠ "YASM"), related
features ("tooltips" ≠ "detection")

### Features:
- Optional `--use-ai` flag (requires `ANTHROPIC_API_KEY` in `.env` file)
- Adjustable confidence threshold with `--ai-confidence` (default: 0.7)
- AI reasoning included in markdown reports for transparency
- Graceful fallback if API key not available

## Results

Testing on 843 open CE issues:

| Phase | Groups | Quality |
|-------|--------|---------|
| Broadphase (string similarity) | 63 | ~40% accurate |
| AI filtering | 5 | **100% accurate** |

### Confirmed duplicates found:
1. Forth language requests (identical)
2. Documentation out-of-date reports (#5937 + #4906)
3. objdump tool requests (#4633 + #3139)
4. Haskell vector library requests
5. Make/webpack build issues (same bug)

### False positives eliminated:
- ✗ fasm/YASM/AsmX (different assemblers)
- ✗ Language tooltips vs detection (different features)
- ✗ ARM vs EWARM execution (general vs specific)
- ✗ Lua vs LUAU (related but different languages)
- ✗ OpenBLAS vs OpenSSL (different libraries)

## Cost Analysis

- 63 groups × ~400-500 tokens/group ≈ 25-30k tokens per run
- Cost: **~$0.15 per run** with Sonnet 4 (based on actual usage)
- Runs only when `--use-ai` flag is used
- Very affordable for occasional duplicate detection

## Configuration

Create `.env` file in `etc/scripts/gh_tool/`:
```bash
ANTHROPIC_API_KEY=sk-ant-...
```

The `.env` file is gitignored for security.

## Example Usage

```bash
# Standard detection (no AI)
uv run gh_tool find-duplicates /tmp/report.md

# AI-powered detection
uv run gh_tool find-duplicates /tmp/report.md --use-ai

# Adjust AI confidence threshold
uv run gh_tool find-duplicates /tmp/report.md --use-ai --ai-confidence 0.8
```

## Dependencies Added

- `anthropic>=0.40.0` - Claude API SDK
- `python-dotenv>=1.0.0` - Environment variable management

## Test Plan

- [x] All existing tests pass
- [x] Tested on 843 real CE issues with 100% accuracy
- [x] Graceful fallback when API key not available
- [x] AI reasoning included in markdown reports
- [x] Code passes ruff linting

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-07 16:29:12 -05:00
Matt GodboltandClaude 70df51df29 Improve duplicate issue detection by stripping category tags (#8175)
## Summary

Fixes the duplicate issue detection algorithm to strip `[TAGS]` from
issue titles before calculating similarity. This eliminates massive
false-positive groups caused by shared tag prefixes like `[LIB REQUEST]`
or `[COMPILER REQUEST]`.

## Problem

The previous implementation would create groups of 98+ completely
unrelated issues just because they shared common tag prefixes. For
example:
- `[LIB REQUEST] Add ULib Library` 
- `[LIB REQUEST] musl vs glibc`
- `[REQUEST] Float explorer support`
- `[REQUEST] Support logging in`

These would all be grouped together despite being completely different
requests.

## Solution

- Strip `[TAGS]` before calculating text similarity using a compiled
regex pattern
- Compare only the actual content: "Add ULib Library" vs "musl vs glibc"
→ low similarity ✓

## Additional Changes

- Added `ruff` as a project dependency for consistent code quality
- Fixed linting issues (unused imports, updated to `datetime.UTC`)
- Updated tests to reflect new tag-stripping behavior

## Results

Testing on actual CE issues shows dramatic improvement:
- **Before**: 83 groups, with Group 1 containing 98 unrelated issues
(98% false positives)
- **After**: 63 groups, with Group 1 containing 2 legitimate "Forth"
duplicates (actual duplicates)

Most groups are now legitimate duplicates like:
- Three "Problem with [opcode]" bugs
- Two TI ARM compiler requests  
- Multiple MSVC version requests

## Test Plan

- [x] All existing tests pass
- [x] Tested on real CE issue data showing 20+ group reduction
- [x] Code passes ruff linting and formatting

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-07 15:44:56 -05:00
aneshlya efab7336b2 Add ISPC v1.28.2 (#8167)
This PR adds support of recently released ISPC 1.28.2 and updates a
default snippet for it.

Related infra change:
https://github.com/compiler-explorer/infra/pull/1857
2025-10-07 14:55:38 -05:00
Matt GodboltandClaude 4cb1416c2a Add gh_tool CLI for GitHub repository automation (#8170)
This PR adds a new Python CLI tool for automating GitHub repository
management tasks.

## Overview

The initial implementation provides duplicate issue detection using text
similarity analysis. This is the first step toward automating repository
triage tasks.

## Features

- **Click-based CLI** with subcommands for future extensibility
- **find-duplicates command** for detecting duplicate issues using text
similarity
- Uses **gh CLI** for GitHub API access (no token management needed)
- Text similarity using `difflib.SequenceMatcher` (ratio-based
algorithm)
- Configurable similarity threshold (default: 0.6)
- Progress bar for long-running comparisons
- Age filtering support (`--min-age` parameter)
- Standard Python src-layout with **uv** for dependency management
- **Comprehensive test suite** with pytest (integrated into CI)

## Project Structure

```
etc/scripts/gh_tool/
├── src/gh_tool/          # Main package
│   ├── cli.py            # Click-based CLI interface
│   └── duplicate_finder.py  # Core duplicate detection logic
├── tests/                # Test suite
│   └── test_duplicate_finder.py
├── docs/                 # Documentation
│   ├── TRIAGE-CRITERIA.md    # Triage guidelines from manual review
│   └── PHASE1-FINDINGS.md    # Historical analysis of 855 issues
├── pyproject.toml        # Package configuration
└── README.md             # Usage documentation
```

## Usage

```bash
cd etc/scripts/gh_tool
uv sync
uv run gh_tool find-duplicates /tmp/report.md
```

**Options:**
- `--threshold FLOAT` - Similarity threshold 0-1 (default: 0.6)
- `--state {all,open,closed}` - Issue state to check (default: open)
- `--min-age DAYS` - Only check issues older than N days (default: 0)
- `--limit INTEGER` - Maximum number of issues to fetch (default: 1000)
- `--repo TEXT` - GitHub repository in owner/repo format (default:
compiler-explorer/compiler-explorer)

**Example:**
```bash
# Find high-confidence duplicates in open issues
uv run gh_tool find-duplicates /tmp/report.md --threshold 0.85

# Check all issues older than 30 days
uv run gh_tool find-duplicates /tmp/report.md --state all --min-age 30
```

## Testing

The tool includes comprehensive test coverage:
- Unit tests for similarity calculation
- Integration tests for duplicate detection
- Edge case handling (transitive grouping, age filtering, threshold
sensitivity)
- Report generation validation

**Run tests:**
```bash
cd etc/scripts/gh_tool
uv run pytest -v
```

Tests are integrated into CI and run on every push.

## Documentation

- **`README.md`**: Complete usage guide with examples
- **`docs/TRIAGE-CRITERIA.md`**: Comprehensive triage guidelines
developed during manual review of 22+ issues
- **`docs/PHASE1-FINDINGS.md`**: Historical analysis context from
initial 855 issue review

## CI Integration

The tool is integrated into the GitHub Actions workflow:
- `uv` is installed via `astral-sh/setup-uv@v6`
- Tests run automatically on every push
- Ensures tool remains functional as codebase evolves

## Next Steps

Future enhancements planned for follow-up PRs:
- GitHub Action for automatic duplicate detection on new issues
- Additional automation tools (upstream health checker, label validator,
etc.)
- Automated triage reports

## Changes in this PR

- ✅ Core duplicate detection implementation
- ✅ Comprehensive test suite (192 lines)
- ✅ CI integration
- ✅ Complete documentation
- ✅ Example triage criteria and findings

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-10-07 14:50:22 -05:00
Yaxun (Sam) Liu 4fb82e8ce2 add clang for rocm-7.0.1 (#8168) 2025-10-07 11:33:39 -05:00
Partouf 6a72d4e2c6 fix ldpath for execution 2025-10-06 21:12:01 +02:00
Ofek 00ee2fc8b0 Initial support for binary/binary-obj in msvc (#8165) 2025-10-06 18:00:53 +03:00
Partouf b8ef5e6d26 update docs 2025-10-04 16:10:48 +02:00
Partouf e776af64a0 propwiz add objdump support 2025-10-04 16:07:16 +02:00
Partouf 2b0813c182 propwizard add undname and sdk param 2025-10-04 15:53:42 +02:00
dependabot[bot] d1589ac332 Bump black from 23.12.1 to 24.3.0 in /etc/scripts/ce-properties-wizard (#8162) 2025-10-04 12:16:20 +02:00
Patrick Quist 16af4186ad CE Properties Wizard: Interactive tool for adding compilers (#7934) 2025-10-04 12:11:58 +02:00
Vipul Cariappa e39d23b96b add clad v2.1 (#8161)
infra PR: https://github.com/compiler-explorer/infra/pull/1852

cc @vgvassilev
2025-10-03 07:46:22 -05:00
Matt Godbolt 1183dfec8a Add boost 1.88 and 1.89 for linux and windows (#8160)
Linux building:
https://github.com/compiler-explorer/infra/actions/runs/18198444653/job/51835248850

Windows:
https://github.com/compiler-explorer/infra/actions/runs/18206096921
(hopefully)
2025-10-03 07:36:20 -05:00
Matt Godbolt 4438387d62 Thank you new sponsors 2025-10-02 14:06:06 -05:00
Cliff Burdick 5969cc924e Added MatX 0.9.3 (#8145) 2025-10-02 12:43:46 -05:00
Alex Trotta dc730bd2ac Change Mojo version to include leading 0. (#8153)
We changed version strategies ~2 months ago to include this leading zero
(in preparation for a future 1.0), reflecting that change here so it
doesn't confuse people.
2025-10-01 15:01:40 -05:00
Patrick Quist 81d1433d9e Add C++ library fmt v12.0.0 (#8150) 2025-10-01 15:21:30 +02:00
Patrick Quist 3f317553c2 okToCache fix for nsjail errors and extra checks (#8148) 2025-09-29 22:21:51 +02:00
Matt GodboltandClaude 3160f628cc Fix AMD64 SHR missing and PTX documentation extraction (#8141)
Fixes test failures in assembly documentation generation.

## Import fixes

All docenizers: Change imports from `../base.js` to
`../../../types/assembly-docs.interfaces.js` with `import type`.

## AMD64: Fix missing SHR instruction

The docenizer only read the first `<table>` in HTML files. Files like
`SAL:SAR:SHL:SHR.html` have multiple tables - SHR was in table 2.

**Fix**: Read all tables and combine results.

## PTX: Fix broken documentation extraction

The PTX website structure changed. The old code looked for navigation
links like "Instructions: add, sub, mul" which no longer exist.

**Fix**: 
- Find instructions by scanning `<code>` blocks
- Map each to its documentation section
- Extract text from Description paragraphs
- Ensure common instructions (add, sub) map to their definition
sections, not changelogs

All asm-docs tests now pass.

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-26 15:07:59 -05:00
jmuddnv efaa4e3723 Changes for NVIDIA HPC SDK 25.9 (#8136)
Add nvc 25.9 to etc/config/c.amazon.properties
       Add nvc++ 25.9 to etc/config/c++.amazon.properties
       Add nvfortran 25.9 to etc/config/fortran.amazon.properties
2025-09-26 13:45:57 -05:00
Matt GodboltandCopilot 60497c6b9a Use uv to install python dependencies in docenizers (#8140)
Tested locally and it works BUT the created `.ts` files are still broken
similar to what was found in #8101

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-09-25 15:35:07 -05:00
Cliff Burdick bf605940d7 Add CCCL 3.0.1 and 3.0.2 to CUDA C++ (#8130) 2025-09-25 15:09:29 -05:00
Cliff Burdick b7173352ca Added nvcc 13.0.1 and nvrtc 13.0.1 to CUDA C++ (#8129) 2025-09-25 15:09:07 -05:00
Florian Freitag 83e73c80d9 Add Kotlin 2.2.20 (#8127) 2025-09-25 15:05:27 -05:00
Anton Baliasnikov 86363551d1 Update Solidity solc and solx compiler versions (#8124)
## What?

Update Solidity compilers:
* [x] Add `solx` 0.1.0, 0.1.1 and 0.1.2 versions support
* [x] Add `solc` 0.8.30 version support

Related PR in infra:
https://github.com/compiler-explorer/infra/pull/1837
2025-09-25 15:03:47 -05:00
Alex TrottaandMatt Godbolt c10fa9b300 Add Mojo 25.6 (#8045)
Adding the latest stable version here. 
---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-09-22 20:00:16 -05:00
Jamie 902d3c9a5c [swift][refactor]: sort compilers config entry in descending order (#8114)
seems marginally easier to update with new versions this way
2025-09-20 08:34:53 -05:00
Jamie 44efb0f04b [swift]: add 6.2 release compilers (#8113)
- adds support for the Swift 6.2 release compilers (x86 & cross-compiled
arm)
- bumps the default Swift compiler to 6.2

depends on infra change:
https://github.com/compiler-explorer/infra/pull/1834
2025-09-19 09:28:20 -05:00
Miguel OjedaandMarc Poulhiès c078ccb3e8 Rust 1.90.0 (#8107)
Infra: https://github.com/compiler-explorer/infra/pull/1831

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Co-authored-by: Marc Poulhiès <dkm@kataplop.net>
2025-09-19 14:53:29 +02:00
Cliff Burdick cd7c9c65f7 Added nvcc 13.0.0 and nvrtc 13.0.0 (#8073)
Added nvcc and nvrtc for CUDA 13.0.0. Also fixed host compiler to gcc
14.1.0 on newest nvcc.

Depends on https://github.com/compiler-explorer/infra/pull/1797
2025-09-15 18:59:32 +02:00
Marc Auberer d98d3e7623 [Spice] Add version 0.22.4 (#8095)
Infra PR: https://github.com/compiler-explorer/infra/pull/1823

- Add Spice compiler version 0.22.4
- Use GCC 15.2.0 for demangling
- Use Clang 21.1.0 for linking
2025-09-14 00:17:18 +02:00
Partouf 1f7099057c additional propcheck 2025-09-13 21:29:39 +02:00