170 Commits
Author SHA1 Message Date
Rupert TombsandJeremy Rifkin 83e06b0424 Update .js to .ts in documentation (#5558)
While reading the (excellent) documentation here, I noticed a few stale
references to `.js` files that are now implemented in TypeScript.

* Update `*.js` to `*.ts` in Markdown documentation.

* Update `app.js` to `out/dist/app.js` in
`docs/SystemdSocketActivation.md`.
_I managed to follow these instructions and locally run Compiler
Explorer through socket activation after that change._

* Update `*.js` to `*.ts` in the GitHub labeller config
`.github/labeler.yml`.
_Also correct some misnamed files here. I have checked the new version
with `ls $(grep -E "^ - " .github/labeler.yml | sed "s/ - //g")`. If I
were more familiar here, I would have liked to add a similar check to
the automated tests._

- Sheepishly add myself to the contributors list, despite this being a
tiny find-and-replace change.

---------

Co-authored-by: Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com>
2023-10-04 20:27:06 -04:00
Matt Godbolt 5d776aaae3 Replace ts-node-esm with direct calls to node to support node 20 (#5521)
- works both v18 and v20
- see https://github.com/TypeStrong/ts-node/issues/1997
2023-09-27 21:57:18 -05:00
AliG 1efe5a3eaf Add ForCompile project to API.md. (#5516) (#5522)
ForCompile - A Fortran library to access the API

by @gha3mi.
2023-09-26 07:07:32 -05:00
Jeremy Rifkin fb147126e8 Fix WSL for systems that don't have windows paths (#5480)
Attempt to fix #5476. As far as I can tell `process.env.winTmp` is
needed just for windows executables and WslVcCompiler. It should be
possible to just ignore the exec error and continue. If for some reason
the user doesn't have windows paths in their WSL but does want to run
windows executables they can pass `-tmpDir`.
2023-09-16 15:59:26 -04:00
Matt Godbolt 316992bfe7 Fix up formatting 2023-09-06 21:28:33 -05:00
Marcus Tillmanns 783f09a7c0 Fix link to formatter section (#5437)
Changed Link
"https://github.com/compiler-explorer/compiler-explorer/blob/main/etc/config/compiler-explorer.amazon.properties#L43"
to a relative link and fixed the display to be less huge.
2023-08-29 19:34:00 -05:00
Marcus Tillmanns 16d838186c Fix clientstate.ts link (#5436) 2023-08-29 15:39:05 +02:00
Matt Godbolt 5620f29d54 Format fixes 2023-07-31 18:32:32 -05:00
Elecia White 62fd203700 Wordsmithing "What is compiler explorer?" (#5316)
I like the new "what is compiler explorer" very much. Thank you for
doing it. I did a little bit of wordsmithing as I thought the intro
needed some ironing out.
2023-07-31 18:32:02 -05:00
Matt Godbolt f06fa60eee Tweak size 2023-07-30 18:06:09 -05:00
Matt Godbolt 075a04621f Add an intro for why/where/how/when etc (#5302)
Hopefully a decentish overview of the why and how of using Compiler Explorer. Prompted by a conversation with @eleciawhite.
2023-07-30 18:02:08 -05:00
Jeremy Rifkin 4260313e13 Common utilities and type work (#5200)
This PR refactors some common utilities out of lib/ and into shared/ and
eliminates some use of underscore.js, as well as general type
improvements done along the way.
2023-06-28 20:13:10 -04:00
Patrick Quist 0d4f4a8977 Emu Repo links 2023-06-23 14:31:21 +02:00
Patrick Quist 6b091c946d Add C64 emu 2023-06-23 14:28:33 +02:00
Patrick Quist 51d4073912 Update FrontendTesting.md 2023-06-20 04:10:07 +02:00
Jeremy Rifkin 3716cbd446 Support control flow graphs from the IR pane (#5155)
On top of #5154


![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/7bf25b5b-8988-42ff-9d8c-233e6d817997)

Additionally, while I was here, added support for multiple control flow
graphs to be opened from one compiler instead of disabling the button
once one is opened. And improved the implementation for how this was
done for the llvm opt pipeline.

And did some type work along the way.
2023-06-19 21:48:20 -04:00
Jeremy Rifkin 60ce06b02f Improve cache handling on the frontend, cache executions on the backend, and improve controls on the exec pane (#5111) 2023-06-11 19:10:30 -04:00
Matt Godbolt 214e48262b Bump all deps (#5114)
- npm update
- bump the webpack version as usually that needs it
- re-run eslint
- re-run format
2023-06-06 20:56:10 -05:00
Patrick Quist 5a35c7a2d2 Create SupportedEmulators.md 2023-06-01 17:56:54 +02:00
fodinaborandMatt Godbolt e28e67d972 Add new "Debug intrinsics" filter. (#5045)
For now, this removes all `llvm.dbg.*` calls from LLVM IR. This is
useful to keep coloring the line correspondence between source and IR,
while not polluting the IR with the debug intrinsics.

Admittedly, I don't have much of a clue of what's going on here, so I
might be missing obvious adaptions (e.g. can we disable this for all
non-LLVM compilers for now somehow?).
Also, not really a Node.JS testing wizard either... 🤷🏼 

Just wanted this really bad for a workshop that's coming up soon ^^

Only tested with my system's default `clang` for now.

Fixes #5044

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-05-22 22:35:01 -05:00
Jeremy Overesch 445eff5649 Add minimal TI-C2000 compiler support (#4625)
This adds the ability to use TI's C2000 compiler with basic directive filtering and assembly code parsing.
2023-04-05 11:24:47 -05:00
Matt Godbolt 54a99f6d51 Upgrade all minor versions; format; bump sonar and css minimizer (#4920) 2023-04-01 20:29:06 -05:00
zebrapurringandzebrapurring 34bbde880c Support configuring extra arguments for the demangler, objdumper and execution wrapper (#4883)
Some toolchains require passing non-standard, mandatory arguments to the
CLI tools in order to execute them (configuring licenses, selecting CPU
targets, etc.). This PR allows configuring extra command-line arguments
for the demangler, object dumper and the execution wrapper. The version
flag argument has been refactored into an array, so that more than one
argument can be passed, if necessary.

The changes are fully backwards compatible.

Co-authored-by: zebrapurring <>
2023-04-01 23:49:22 +02:00
Matt Godbolt a8f832f80c Bump to latest cypress (#4853)
Latest cypress:
- updated all the tests
- fixed up warnings
- got rid of isolation stuff, it's now isolated by default
- added simple docs
- added `--noLocal` to prevent any local config from screwing up when
testing locally
- store screenshot artifacts if things go wrong
2023-03-14 10:00:40 -05: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 342427ecde Tsify generate_site_template_screenshots.js (#4708)
<!-- 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!
-->
2023-02-10 14:13:48 -05:00
Patrick Quist 70c262e33d Update turboc.properties 2023-02-02 20:44:45 +01:00
Patrick Quist 3ea46d92d4 Update turboc.properties 2023-02-02 20:42:18 +01:00
Mats Jun Larsen 39b81c963f Tsify asm-docs-tests to typescript with utils (#4670) 2023-01-31 22:00:48 +01:00
Matt Godbolt d63e171e57 Update and fix link to MS privacy policy (#4638) 2023-01-24 16:40:45 -06:00
Jeremy Rifkin 07f37abe76 The War of The Types (#4490) 2023-01-13 19:22:25 -05:00
Marc Poulhiès 69055681d9 Support for compiling to binary object (#3232) 2023-01-11 19:39:25 +01:00
Jeremy Rifkin cb4157e186 Two quick markdown formatting changes prettier performed 2022-12-28 08:51:30 -07:00
Matt GodboltandMats Jun Larsen b6f8713ec0 2023 Roadmap (#4501)
* 2023 Roadmap (draft for now)

Co-authored-by: Mats Jun Larsen <me@supergrecko.com>
2022-12-27 18:46:15 -06:00
Rubén Rincón Blanco 2e85575145 Add note about API not supporting external files (#4483) 2022-12-24 19:46:45 +01:00
Patrick Quist 149ee2db06 Update AddingALibrary.md 2022-12-18 21:21:59 +01:00
Patrick Quist f4cbb6b2f7 build command has changed 2022-12-03 16:43:47 +01:00
Jeremy Rifkin 2e844e9ef5 Make docenizer naming more consistent (#4387) 2022-12-02 12:16:42 -05:00
partouf 3f36aa96cb formatting 2022-10-12 18:07:44 +02:00
Jackson Machado 2bc257d89d docs(api): improved clientstate API documentation describing need for unicode conversion (#4114)
* docs(api): improved clientstate API documentation describing need for unicode conversion

* docs: improve CONTRIBUTORS.md
2022-10-10 13:40:06 +02:00
J. Ryan Stinnett 80dd763985 Add basic Racket support (#4098) 2022-10-05 09:32:45 +02:00
Bogdan Grigoruță 99baaee978 Add neovim plugin to docs (#4052) 2022-09-12 17:49:33 +02:00
tocic 8d7b271a6f Fix typos in docs (#4041) 2022-09-09 19:07:22 +02:00
Daan De Meyer 0519a6c6fd Drop StandardOutput=syslog from systemd docs (#3844)
StandardOutput=syslog is deprecated. Let's remove the setting altogether from the example so we rely on the default behavior instead which works exactly the same but doesn't trigger a warning from systemd.
2022-07-06 10:48:17 -05:00
Mats Larsen 540981ccef Port lib/languages.js to TypeScript (#3740) 2022-06-24 14:14:32 +02:00
Mats Larsen c165eb8cdb Mention where to find formatter type keys in API docs 2022-06-17 11:22:15 +02:00
Jeremy Rifkin ca7ebb4583 Updated site templates (#3767)
- Better naming of functions in existing templates
- Added LLVM Ir and Preprocessor templates
- Improved screenshot generation script
- Improved config file format (now the full URL can just be copied in instead of manually trimming the `https://godbolt.org/#`)
- Added `docs/AddingASiteTemplate.md`
2022-06-12 13:38:12 -04:00
Mats Larsen 02ba6faf1f Port lib/formatters to TypeScript (#3741) 2022-06-05 16:09:35 +02:00
Patrick Quist 67714e53ac Dosbox + Turbo C 2.01 support (#3627) 2022-05-13 01:18:03 +02:00
RabsRincon 723f23e73a Add missing ts and sol logos 2022-05-12 04:07:24 +02:00