2041 Commits
Author SHA1 Message Date
Matt Godbolt 3461db6c19 Bump all minor versions - npm update; also bump webpack version speculatively... (#4851)
also npm lint and format to make sure any changes turn up.
2023-03-12 11:29:57 -05:00
Matt Godbolt 64acc14872 Merge remote-tracking branch 'origin/main' into wxwisiasdf-cobol2 2023-03-12 10:57:47 -05:00
Matt Godbolt e10350d9ef Rename cobol-> gnucobol and fix up relocation 2023-03-12 10:55:13 -05:00
kasperk81 610658c0b7 rename jit option for dotnet 8 (#4821) 2023-03-11 16:07:53 -06:00
Matt Godbolt d924f16904 Cache S3Bucket clients by region (#4845)
I hope it's OK to reuse the same client for multiple in-flight requests,
as effectively this means we'll have one client only. I'm pretty sure
we're effectively doing this already in the cache where multiple
in-flight requests from users will be served from the one cache's S3
client, but couldn't find any documentation about this.
2023-03-11 14:18:04 -06:00
Fred Tingaud 69c7fb4424 Add a tool with Sonar C++ analysis. (#4837)
This is a preview of the static analysis capabilities of the Sonar C++ analyzer. See https://www.sonarsource.com/ for more information.
2023-03-11 14:18:04 -06:00
Patrick Quist ce844dc57e Pass compiler options to cmake (#4829) 2023-03-11 14:18:04 -06:00
Ben Barsdell 18a29581dc Fix and update NVRTC compiler (#4804)
The recent change to the way NVCC compilation is handled broke support
for NVRTC. NVRTC can only compile device code, so the host-compilation
approach now used for NVCC (using --keep) is incompatible.

This PR gives the NVRTC compiler its own class and restores the old
behavior. The class is a copy of the old NvccCompiler class, with minor
updates to match the code in the new NvccCompiler class where possible
(plus TypeScript).

This PR also removes NVRTC from `cuda.gpu.properties` (because its
output cannot be executed), and updates the list of versions to match
NVCC.

cc @jrhemstad @trxcllnt
2023-03-11 14:18:04 -06:00
Matt Godbolt 231ac3a38d Upgrade LRU-Cache (#4833)
- rephrase a few LRUs in terms of the new API
- add `okToCache` to the `CompilationResult` to make typing more correct
(I _think_)
2023-03-11 14:18:04 -06:00
Matt Godbolt 775fabb2cb Format fixes 2023-03-11 14:18:04 -06:00
Matt Godbolt f294296a58 Update to latest AWS SDK (#4818)
We're not using the new `send` functionality, but this gets everything
running and tests passing. It has _not_ been tested against real AWS
yet. That's next. I might move stuff over to the new `send` API, but
also I might not if it's just working.
2023-03-11 14:18:04 -06:00
Patrick Quist ab692e4e40 fix z88dk asm (#4751) 2023-03-11 14:18:03 -06:00
Jeremy Rifkin 8cb2e22605 More work needed, thanks for the comments Ruben and Matt! :)
Revert "Compiler picker UI improvements (#4789)"

This reverts commit d4a8c2bdb2.
2023-03-11 14:18:03 -06:00
Jeremy Rifkin a8d01f0cc2 Finished collecting metrics -- Revert "Temporarily collect metrics on job time and queue time (#4790)"
This reverts commit 5fee0e24a6.
2023-03-11 14:18:03 -06:00
Rubén Rincón Blanco dd6e669beb Add name to binary tools error response (#4798) 2023-03-11 14:18:03 -06:00
Jeremy Rifkin 46a4d6e0f8 Compiler picker UI improvements (#4789)
Makes the compiler picker dropdown a bit taller, prevents the dropdown from overflowing the page, and also adds a compiler picker popup
2023-03-11 14:18:03 -06:00
Matt Godbolt 5c45f31cd1 Update to yaml and drop some unneeded deps (#4811)
Also add some tests
2023-03-11 14:18:03 -06:00
Matt Godbolt da5277d463 Cache S3Bucket clients by region (#4845)
I hope it's OK to reuse the same client for multiple in-flight requests,
as effectively this means we'll have one client only. I'm pretty sure
we're effectively doing this already in the cache where multiple
in-flight requests from users will be served from the one cache's S3
client, but couldn't find any documentation about this.
2023-03-10 09:06:50 -06:00
Fred Tingaud 3b3035e57b Add a tool with Sonar C++ analysis. (#4837)
This is a preview of the static analysis capabilities of the Sonar C++ analyzer. See https://www.sonarsource.com/ for more information.
2023-03-09 21:23:07 -06:00
Patrick Quist 2dc89dde3b Pass compiler options to cmake (#4829) 2023-03-09 19:44:03 +01:00
Ben Barsdell 050e03fd29 Fix and update NVRTC compiler (#4804)
The recent change to the way NVCC compilation is handled broke support
for NVRTC. NVRTC can only compile device code, so the host-compilation
approach now used for NVCC (using --keep) is incompatible.

This PR gives the NVRTC compiler its own class and restores the old
behavior. The class is a copy of the old NvccCompiler class, with minor
updates to match the code in the new NvccCompiler class where possible
(plus TypeScript).

This PR also removes NVRTC from `cuda.gpu.properties` (because its
output cannot be executed), and updates the list of versions to match
NVCC.

cc @jrhemstad @trxcllnt
2023-03-08 19:11:40 -06:00
Matt Godbolt 3f7def7e38 Upgrade LRU-Cache (#4833)
- rephrase a few LRUs in terms of the new API
- add `okToCache` to the `CompilationResult` to make typing more correct
(I _think_)
2023-03-08 10:58:56 -06:00
Matt Godbolt 9b1548c949 Format fixes 2023-03-08 07:52:46 -06:00
Matt Godbolt 2b6500203e Update to latest AWS SDK (#4818)
We're not using the new `send` functionality, but this gets everything
running and tests passing. It has _not_ been tested against real AWS
yet. That's next. I might move stuff over to the new `send` API, but
also I might not if it's just working.
2023-03-07 18:10:56 -06:00
Patrick Quist 1c639c7a7c fix z88dk asm (#4751) 2023-03-07 21:51:39 +01:00
Jeremy Rifkin ea107a5ff9 More work needed, thanks for the comments Ruben and Matt! :)
Revert "Compiler picker UI improvements (#4789)"

This reverts commit d4a8c2bdb2.
2023-03-07 10:46:33 -05:00
Jeremy Rifkin 6131e6aa47 Finished collecting metrics -- Revert "Temporarily collect metrics on job time and queue time (#4790)"
This reverts commit 5fee0e24a6.
2023-03-07 10:38:11 -05:00
Rubén Rincón Blanco dd2c08693c Add name to binary tools error response (#4798) 2023-03-06 20:10:00 +01:00
Jeremy Rifkin d4a8c2bdb2 Compiler picker UI improvements (#4789)
Makes the compiler picker dropdown a bit taller, prevents the dropdown from overflowing the page, and also adds a compiler picker popup
2023-03-04 19:55:25 -05:00
Matt Godbolt 8cb8f6ff84 Update to yaml and drop some unneeded deps (#4811)
Also add some tests
2023-03-02 19:02:57 -06:00
wxwisiasdf a3edc64993 Add basic COBOL support 2023-03-01 06:17:26 +08:00
Mats Jun LarsenandMatt Godbolt 633eb82d18 Transition to ECMAScript Modules (#4780)
Makes the Compiler Explorer app, and all the tooling ESM compatible.
Things that have been done:

1. The package.json has `type: module` now
2. All relative imports have a .js ending
3. All directory imports are now directory/index.js to comply with ESM
standards
4. Dependency node-graceful is now imported into tree, because the
package is broken under esm
5. Dependency p-queue has been bumped to 7.x with ESM support
6. Dependency profanities has been bumped to 3.x with ESM support
7. Webpack config is now both ESM and CommonJS compatible
8. Non-ESM compatible imports have been rewritten
9. ESLint configuration has been tweaked to not fail on .js imports
10. Mocha is now hacked together and ran with ts-node-esm
11. Webpack is now hacked together and ran with ts-node-esm
12. Webpack config is now ESM compatible, so that it can be used in the
dev server
13. Cypress code still runs commonjs, and has been excluded from the
tsconfig
14. All sinon mock tests have been commented out, because sinon module
mocks do not work with ESModules (because ESModules are immutable)

A lot of tests are now giving warnings/errors to stdout, yet still pass.
Docenizer codegenerator scripts have been updated, but I did not re-run
them, and instead just changed their code.

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-02-27 18:06:38 -06:00
Jeremy Rifkin 5fee0e24a6 Temporarily collect metrics on job time and queue time (#4790)
Collecting raw data points for job time and queue time for a few days.
Briefly discussed with Matt, will be reverting in a few days.
2023-02-27 18:05:41 -05:00
Jeremy Rifkin fcd9ee7c87 Remove an assertion now that we know the case can happen (#4787)
Resolves #4781. Remove the assertion, just allow the bad behavior
silently. Same behavior as before the tsification.
2023-02-26 13:03:46 -05:00
Jeremy Rifkin 384c297906 Fix trailing comma issue (#4775)
Make trailing commas more consistent throughout the project, fixes
config conflict between eslint and prettier. Resolves an oversight in
#4766.
2023-02-26 12:21:35 -05:00
Marc Poulhiès 2b8d554a10 fix: modula2 name
Use Modula-2 instead of modula2.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-02-25 18:25:25 +01:00
Jeremy Rifkin 8262e2be5e Handle another LLVM pass dump case (#4774)
Resolves #4195
2023-02-24 20:46:53 -05:00
Yashwant SinghandYashwant c8f2cb53be Language support for LLVM Machine IR (#4763)
Resolves #4762

---------

Co-authored-by: Yashwant <yassingh@amd-blr-comp-03f7.amd.com>
2023-02-24 00:28:15 -05:00
Jeremy Rifkin 2c7e9a351a Tsify a small handful of tests (#4765) 2023-02-23 23:45:27 -05:00
Jeremy Rifkin 2b06c69111 Turn some auto-fixable eslint rules back on (#4766)
This PR turns comma-dangle and indent eslint rules on for lib/. These
are rules inherited from the eslint config for static/, this PR just
makes things more consistent. Also turned
@typescript-eslint/no-var-requires back on while I was here.
2023-02-23 17:16:17 -05:00
Jeremy Rifkin 6bd5c43f62 Tsify app.js (#4767)
I forgot about app.js, now this is actually the last file in our ts
conversion (other than test/)
2023-02-23 17:15:59 -05:00
+2 46f99a15f9 Tsify more tests (#4729)
Happy Superbowl Sunday!
Watching 3rd down conversions and converted code.

Converted base-compiler-tests 
Snuck in analysis-tests & compilfer-finder tests because they are small

Added a couple of testing helpers to tests/utils.ts and went back and
implemented them in cache-tests

<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE
IT
Thanks for taking the time to improve CE. We really appreciate it.
Before opening the PR, please make sure that the tests & linter pass
their checks,
  by running `make check`.
In the best case scenario, you are also adding tests to back up your
changes,
  but don't sweat it if you don't. We can discuss them at a later date.
Feel free to append your name to the CONTRIBUTORS.md file
Thanks again, we really appreciate this!
-->

---------

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Co-authored-by: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>
Co-authored-by: Gaurav Gautam <gautam1168@users.noreply.github.com>
Co-authored-by: Matt Godbolt <matt@godbolt.org>
Co-authored-by: Goooler <wangzongler@gmail.com>
Co-authored-by: Marc Poulhiès <dkm@kataplop.net>
Co-authored-by: Mats Jun Larsen <me@supergrecko.com>
Co-authored-by: Jake Hemstad <jhemstad@nvidia.com>
Co-authored-by: Ross Brunton <bruntonross+github@gmail.com>
Co-authored-by: Fábio de Souza Villaça Medeiros <fabiosvm@outlook.com>
Co-authored-by: Joel Falcou <joel.falcou@lri.fr>
Co-authored-by: Patrick Quist <partouf@gmail.com>
2023-02-23 17:15:37 -05:00
Marc Poulhiès 73f7d0787f Initial support for Modula-2 language (#4747)
With the upcoming gcc 13 release and its shiny Modula-2 frontend, we
are introducing Modula-2 support in Compiler Explorer :)

Currently, only the gcc-snapshot build supports modula-2.

fixes #4688

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-02-23 20:43:56 +01:00
Jeremy Rifkin 563b220cb9 Type work for some handlers and stuff related to the compiler-finder (#4752) 2023-02-22 17:45:55 -05:00
Fábio de Souza Villaça Medeiros 7fe0b694c9 Update hook-mode.ts (#4756) 2023-02-19 22:21:35 +00:00
Jeremy Rifkin 96631c47a8 Setup eslint config for lib/ (#4753)
This turns on a number of eslint rules that we setup for static that
aren't specified in the root eslint config as well as ts-eslint rules.
At some point we may want to merge the eslint configs for static/ and
lib/ but we might not be quite ready for that yet. I've temporarily
turned off some rules from static, such as comma-dangle.
2023-02-18 10:39:51 -05:00
Mats Jun Larsen a35c350f7a fix: move typings to actually be registered (#4754) 2023-02-18 15:26:48 +01:00
Marc Poulhiès 357cec2f78 fix: compile to binary object not working with ldc/dmd
The compile to binary object has been enabled by mistake for dmd and
ldc, so taking the opportunity to implement it.

ldc is sensitive to output filename extension (.s will force assembly
output, .o binary).

dmd accepts -c to skip the link step.

fixes #4649

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-02-14 19:56:46 +01:00
Goooler ae08b7b71e Use new Kotlin logo (#4742) 2023-02-14 13:12:32 +01:00
Gaurav Gautam 219b83b52d Add check for triple (#4723)
For this issue:
https://github.com/compiler-explorer/compiler-explorer/issues/4456
2023-02-13 23:19:52 +00:00