Commit Graph
94 Commits
Author SHA1 Message Date
partouf 67f07dd672 add timetrace artifact type 2023-04-22 12:41:41 +02:00
partouf 2f07f54879 offer timetrace json as download 2023-04-18 16:55:45 +02:00
David Hewitt a7da7e83c4 Add the Vala programming language (#4955)
See https://gitlab.gnome.org/GNOME/vala/ for the language repository.

> Vala is a programming language that aims to bring modern programming
language features to GNOME developers without imposing any additional
runtime requirements and without using a different ABI compared to
applications and libraries written in C.
> 
> `valac`, the Vala compiler, is a self-hosting compiler that translates
Vala source code into C source and header files. It uses the GObject
type system to create classes and interfaces declared in the Vala source
code.
> 
> The syntax of Vala is similar to C#, modified to better fit the
GObject type system.

I've also created https://github.com/davidmhewitt/vala-builder based on
https://github.com/compiler-explorer/python-builder and tested that it
can build tarballs of arbitrary versions of Vala. I'd be happy to
transfer the ownership of this repository, or feel free to clone it into
the `compiler-explorer` org.

However, I'm a little unsure of how to join up the pieces and get this
Docker builder integrated with the `infra` repository. Let me know where
to go next and I'd be happy to open the relevant PRs.
2023-04-10 22:47:49 -05:00
Matt Godbolt 436d84bdb5 Fix unset versionFlags (#4922)
Closes #4921

```
> a = ("")?.split("|")
[ '' ]
> a = (undefined)?.split("|")
undefined
> a = ("a|b")?.split("|")
[ 'a', 'b' ]
```
2023-04-01 20:38:08 -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
Gaurav Gautam 3c58187cf9 Add d8 for disassembling javascript (#4721)
https://github.com/compiler-explorer/compiler-explorer/issues/264
2023-04-01 16:22:21 -05:00
Jeremy RifkinandMatt Godbolt 55dc09017e Compiler Picker UI Improvements (#4849)
Alrighty, round 2!

This PR makes the compiler picker dropdown taller (max height is to the
bottom of the screen)

![image](https://user-images.githubusercontent.com/51220084/224517409-17706ba6-fe85-444a-ad3b-f244f66eea5b.png)

I've added a toolbar button for opening the popout as well as a button
when the dropdown is open:


![image](https://user-images.githubusercontent.com/51220084/224517304-6478fca5-7bc1-4f87-b2ae-e9091d7d48bc.png)

![image](https://user-images.githubusercontent.com/51220084/224517317-83468805-1e9d-4bc6-8a4f-8786325f1e7b.png)

Then the modal interface allows text searching, filtering by compiler
category, and filtering by compiler instruction set. In the future I'd
like to replace the instructionSet property with an architecture
property so the filtering here can be a little better.


![image](https://user-images.githubusercontent.com/51220084/224517348-9cf40866-c5af-4274-84ba-21eb640ab2ea.png)

Demo of the category filtering:


![image](https://user-images.githubusercontent.com/51220084/224517529-5370b3f9-9ad3-4340-838a-b2d0a47c7467.png)

The text filtering highlights results the same as tomselect does:


![image](https://user-images.githubusercontent.com/51220084/224517490-d0dfa6d0-9b61-4be4-8cc7-ca4a4729a532.png)

I moved the favorites permanently to their own column so compilers
aren't jarringly shifted around the screen when favoriting /
unfavoriting.

Also added media queries so the modal looks ok on smaller screens:


![image](https://user-images.githubusercontent.com/51220084/224517563-bdf409c1-7e3a-4c73-812b-f02179b55799.png)


![image](https://user-images.githubusercontent.com/51220084/224517574-07fa2c8b-67d2-496d-9174-b1343e22bd62.png)

I think the only other two changes from the first PR are now the active
compiler is highlighted like it is in the tomselect dropdown and I
figured out how to reliably focus the search bar on modal open. (Oh, and
now clicking a compiler actually does something!)

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-03-12 17:07:44 -04: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 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
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 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
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
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
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
Jeremy Rifkin e2b84eb5a6 Tsify lib/handlers/api (#4704)
<!-- 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 22:52:04 -05:00
Matt Godbolt 3bc2dbcafc TSify the compiler args (#4692) 2023-02-09 19:34:18 -06:00
Scott Tran b31ee6a643 Tsify clang-tidy-tool (#4695) 2023-02-05 18:48:20 -05:00
Patrick Quist a15c725c4f Move url expansion to files (#4602) 2023-02-02 22:02:32 +01:00
Patrick Quist c022ca8a6c rebased ts/executor (#4605) 2023-02-02 20:46:15 +01:00
Matt Godbolt fc94ccd5a7 Ts-ify dart (#4665) 2023-01-30 22:13:41 -06:00
Jeremy Rifkin 6a6efaefe6 Tsify lib/compilers (#4609) 2023-01-29 13:22:30 -05:00
Marc Poulhiès 28928a44cf Initial support for Objective-C/Objective-C++
Currently only list GCC compilers as a first step.
Will add clang in a followup change.

Port gcc.js to Typescript (simple renaming).

Package the objectivec language support for Monaco.

Add very basic example. Something more objc/objc++ specific would be better.

fixes #2942

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-01-21 10:01:11 +01:00
Alex 24a2425730 Add Julia (#4595) 2023-01-14 15:44:14 +01:00
Jeremy Rifkin 33167a3024 Tsify main (#4520) 2023-01-13 19:52:00 -05:00
Jeremy Rifkin 07f37abe76 The War of The Types (#4490) 2023-01-13 19:22:25 -05:00
Patrick Quist 092ce12e8e move emulation related fields to artifact system (#4567) 2023-01-11 21:07:38 +01:00
Marc Poulhiès 69055681d9 Support for compiling to binary object (#3232) 2023-01-11 19:39:25 +01:00
Patrick Quist 07236628bb minimal ts conv of llvm-ir (#4477) 2022-12-24 19:45:47 +01:00
Matt Godbolt 57a647b8a3 Add the result inside the CompilationResult (#4475) 2022-12-20 08:15:39 -06:00
Matt Godbolt 6348917e15 Separate shareable tool type from server ITool (#4472)
* Separate shareable tool type from server ITool

I realised we were using the "Tool" on both client and server, but the client only has the JSON-able data of Tool, not the interface/object Tool (now renamed to `ITool`).

* Fix tests
2022-12-19 22:40:27 -06:00
Matt Godbolt cad5227756 Don't try and hack the compilation results (#4429)
* Don't try and hack the compilation results

Carbon tried to synthesize "having run" by overriding and hacking a result routine...but did so _after_ it had been cached. So cached results were broken, but live results not.

This "fixes" by adding a post-compilation, but pre-cache hook and uses that instead. Naming is terrible.

I also took the time to fix the `CompilationResult`'s `buildResult`

Closes #4426
2022-12-12 21:38:22 -06:00
Patrick Quist 67f71f2b51 Support patched clang for faster opt-view (#4416) 2022-12-10 18:17:51 +01:00
Jeremy Rifkin e7b10519f7 Tsify options-handler (#4396)
* First pass conversion of options-handler to ts

* Small tweaks

* Fix tests
2022-12-03 19:37:57 -05:00
Patrick Quist ae0fee1095 first bits of compiler interface (#4378) 2022-12-02 13:42:47 +01:00
Jeremy Rifkin 1294c3f949 Control flow graph tool rework (#3899)
* Removed old code

* Base functionality

* Work on edge offsets

* Setup interval trees for edges

* linter things

* Formatting

* Added syntax highlighting

* Cleanup and simplification. Improved handling of direct dropdown edges.

* Basic zoom/pan

* Remove old blocks from output

* Fix distance calculation

* Added function selector

* Improved zoom behavior

* figue 8 logic

* Canvas scaling / repainting, updated colors

* Don't truncate output, also removed some console.logs

* Tweak to zoom system

* Replaced canvas stuff with svg

* Experimenting with adding shadows to edges

* Removed shadows, was causing problems. Improved how blocks with lots of incident edges are handled.

* Slightly improved edge system

* some work on implementing segment priority system from cutter

* Optimization to rendering process. I was worried the graph layout algorithm was causing the page to hang but it turns out it was adding elements to the page with +=

* Removed need for storing the previous segment

* refactor, splitting up some logic

* Cleaned up logic and got horizontal edges working better

* Remove vis-network dependency

* Updated package-lock, removed @import vis-network css stuff, added a todo for myself

* Cleaned up notes and error messages. Added comments. Clear the pane if there's no function to display

* Added layout time information, implemented .resize

* Light theme

* State work and bug fix for dragiing

* Re-dading lost dark theme changes

* Added jquery import

* Cleaned up console.logs

* Added basic block count

* Incorporated PR review comments; Fixed cypress (hopefully), added documentation, improved the dropdown, and fixed dropdown items not being cleared with an empty result.cfg

* Ran format
2022-11-29 22:28:10 -05:00
Marc Poulhiès 2fa2bbb16a refactor: renames the CompilerFilters type (#4346)
The type which probably started as a real enum of possible post filtering
options now also includes options used for compilers' invocations.

The type was already split, but the naming was not reflecting this in the other
part of the code.

This changes tries to apply a simple renaming to the type only (corresponding
variables are left as 'filters').

While doing so, some typing error were discovered around the GccDump feature.
A fix for this will follow in a different PR.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2022-11-28 21:37:15 +01:00
Patrick Quist 189d445363 store compilationOptions so that we can debug buildsteps better (#4288) 2022-11-13 19:39:17 +01:00
Jeremy Rifkin 1b37402cd9 Added llvm opt pipeline timing info (#4284)
* Added llvm opt pipeline timing info

* Fix naming

* Tweak timing pane and use exec's timing if possible

* Added timing info for processExecutionResult
2022-11-12 11:37:47 -05:00
Patrick Quist 17a56af696 Bugfix Map usage (#4265) 2022-11-09 14:08:19 +01:00
Rubén Rincón Blanco e962c3ef8b Fix errorResponse return value (#4248) 2022-11-09 03:12:01 +01:00
Rubén Rincón Blanco c7cfda6a3f Add language tooltips (#4237) 2022-11-09 02:53:04 +01:00
Ofek db9b4f48b0 Add Hide metadata option to LLVM pipeline (#4243) 2022-11-06 12:22:47 -05:00
Patrick Quist 0212779a74 CC65 Binary + NES support (#4139) 2022-10-29 17:01:44 +02:00
Patrick Quist 1e0543fbbb Change auto-open device-view to only when there's device asm (#4202) 2022-10-25 23:11:49 +02:00
Paul Taylor 1476937e82 Add split host/device views for CUDA C++ (#4177)
* make nvcc show the device asm view button, stop after compiling host assembly
* keep and extract ptx device code
* paper over some typescript compile errors (maybe mitigating orchidjs/tom-select#500, orchidjs/tom-select#501)
* await on promise-returning methods
* use gcc objdump for nvcc host code, add nvdisasm to disassemble SASS .cubin
* append device ASM lines to result ASM so they're also colourized
* append device ASM to all ASM
* automatically open the device pane if the compiler supports emitting device ASM
* save device view open boolean in compiler state
* make the nvcc compiler return all PTX and SASS results as separate devices
* ensure line hover highlights propagate from editor to compiler panes, and are re-applied when the user changes the selected device
* update cuda properties
2022-10-24 20:28:01 -05:00
Matt Godbolt c5f50d603c Fix typing and usage of tools (#4180)
* Fix typing and usage of tools
* Fix tests and break cycle
* More improvements
2022-10-22 17:16:23 -05:00
ddafb32feb Try to fix main (#4173)
* Fix Editor not being able to load full links
* Better type for this.filename in compiler.ts
* Updates editor.ts and improves compilation types
* Fix some of the type issues, lots still remain
* fixes to language selection & refactoring of hub and some inits
* fix flow of events
* Fix llvm opt handling (cc @jeremy-rifkin)

Co-authored-by: partouf <partouf@gmail.com>
Co-authored-by: Matt Godbolt <matt@godbolt.org>
2022-10-22 13:59:51 -05:00
Rubén Rincón Blanco b25e443bbb Improve event-map types (#4135) 2022-10-10 13:39:18 +02:00