2396 Commits
Author SHA1 Message Date
Patrick Quist 8a547721a0 Fix flto warning (#5459)
issue mentioned in discord, option has been renamed in the UI
2023-09-06 20:47:58 -05:00
Sergei Murzin 66d1be9c66 fix: Do not add default libraries to state if previous state exists (#5440) 2023-09-04 14:28:32 +02:00
Patrick Quist 2aad725797 Fix for old links where language is not set in the editor (#5378) 2023-08-25 15:53:58 +02:00
Justin Bogner 4c613e9f70 Implement comment filtering in LlvmIrParser (#5389)
This is arguably a bit pointless, since most if not all of the comments
in LLVM IR are filtered out as part of directives or attributes, but it
comes up for things like `opt` on LLVM IR with debug info and for DXC
(which is DXIL, but that's LLVM 3.7-era IR).

In any case, this makes things less confusing in those cases by making
the comments filter actually do something, rather than be ignored.
2023-08-20 11:32:02 -04:00
SpydrandMatt Godbolt 0bf769e245 New Language: V (#5297)
V (`vlang`) is a simple, fast and safe general purpose programming
language compiling to human-readable C.

#### Key features of V:

- simplicity, "only one way to do things"
- performance as fast as C
- safety: no null, no globals, no undefined behavior, immutability
- automatic C to V translation, good C interoperability
- hot code reloading
- flexible memory management (GC by default, manual, arena allocation,
autofree)
- other compilation backends like JavaScript, `native` (wip), `wasm`
(wip) or interpreted

#### Links:

Source code: https://github.com/vlang/v
Official website: https://vlang.io
Web playground: https://play.vlang.io/

infra PR: https://github.com/compiler-explorer/infra/pull/1058

#### Things this PR adds:

- General support for V
- Code inspection for the C, Go and JavaScript backends
- Support for the v formatter `v fmt`
- Some V example code

#### Things not implemented:

- Support for binary-output backends like `native` and `wasm`
- Support for running programs

<!-- 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!
-->

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2023-08-15 22:16:36 -05:00
Mats Jun Larsen 06506166ff Sort settings language keys before presenting in ui (#5300) 2023-07-30 18:16:08 +02:00
Matt Godbolt e4b791ce92 Use session _then_ local storage for saved state (#5277)
In conversation with @mknejp he pointed out that it can be frustating
when having a browser loaded up with many tabs of CE links, then
reloading the browser (e.g. a reboot, or open/closing the tabs), that
upon reload all the tabs will have the same, shared state (corresponding
to whichever saved to local storage last).

This change:
- stores state in _both_ session and local storage
- removes from both on UI reset
- loads first from session storage and then falls back to local storage

The net result is:
- tabs reopened with "ctrl-shift T" will regain their prior state, as do
any other tabs for which the browser thinks are part of the same session
(like on a "reopen tabs" plugins etc)
- newly-opened tabs still have the prior behaviour of using whatever the
most recently opened tab had as its starting state

Some more info on session vs local storage
[here](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage)
2023-07-23 18:08:33 -05:00
Patrick Quist 0e85d8c388 Fix link datetime layout (#5263) 2023-07-18 02:26:35 +02:00
Patrick Quist 9b983d6965 Load and show creation_date of shortlink (#5236) 2023-07-17 23:36:36 +02:00
Matt Godbolt 87024e2239 Bump latest deps (#5252) 2023-07-10 21:31:04 -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
Jeremy Rifkin 9b69146add Move all styles to static/styles (#5210) 2023-06-28 08:06:45 -04:00
Jeremy 5b0b08e877 Minor adjustments in the cfg layout script 2023-06-27 21:12:31 -04:00
Patrick Quist 76beb84b2e C64 emulation (#5198) 2023-06-23 12:21:28 +02:00
Jeremy Rifkin 72e6b34d55 Improve pane typing (#5191)
Resolves #4365
2023-06-21 21:40:35 -04:00
Jeremy 10695b425b Try to fix an issue observed in sentry 2023-06-21 16:51:29 -04:00
Jeremy Rifkin e2ee803598 Improve sentry capturing of unhandled promise rejections (#5190) 2023-06-21 15:40:40 -04:00
Jeremy Rifkin 974159bdbe Fix CE not working without internet (#5188)
Fixes #4252
2023-06-21 18:10:55 +02:00
Jeremy Rifkin e267286553 Support user site templates (#5180)
Long overdue
![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/d8a56216-d6b0-459a-8539-9f519c023b92)
![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/133da5e6-2717-464a-a5fc-5983a3f75014)
2023-06-19 22:33:40 -04:00
Jeremy c9801e88bf Hot fixes for the print view as stuff gets merged 2023-06-19 22:21:15 -04:00
Jeremy Rifkin c779507000 Create a print view (#5161)
This PR adds a print view for CE

Closes #4617


![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/92e5ceab-10cc-4289-a742-592e379627ef)

At the moment syntax highlighting isn't working. I think we need a way
to get style definitions from monaco. I've opened an issue at
https://github.com/microsoft/monaco-editor/issues/4031. For the CFG
pane, using the monaco classes "just works", but for some reason when
@media print is applied those definitions go away. We'd want to always
use light mode colors anyway.
2023-06-19 22:13:45 -04:00
Jeremy 4e39c484f6 Normalize dragListener in compiler.ts 2023-06-19 22:00:21 -04: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
Guo Ci 7651874a98 add Stack Usage Viewer (#5160)
For #4834
2023-06-19 20:26:15 -05:00
Jeremy Rifkin 2affa339c9 Fix word wrapping bug (#5162)
Fixes #4486
2023-06-18 15:57:12 -04:00
Jeremy Rifkin 7a5d21338c Fix color scheme flash on page load for pink theme (#5174)
Updating the logic in #4488
2023-06-18 15:32:34 -04:00
Jeremy Rifkin 1d44b6d2b4 War on @ts-expect-error (#5171)
Following up on #5170, let's just get rid of @ts-expect-error and
@ts-ignore completely in the codebase. (Well almost)
On top of #5170
2023-06-18 15:21:50 -04:00
Jeremy Rifkin 764338eb21 Fix longstanding issue TypeError: e.map is not a function (#5170)
Fixes #4868
This took so long to track down. I am convinced `@ts-expect-error` is
*always an error*.
2023-06-18 15:12:03 -04:00
Jeremy Rifkin 07c1cf632f Fix color scheme being overwritten on load (#5169)
Closes #2590
This took a lot of printbugging for such a simple fix. At least a 10:1
ratio of console.log to diff lines (not including the renaming in
fillColourSchemeSelector).
2023-06-18 15:04:02 +02:00
Jeremy Rifkin 42ea9cc128 General work on solidifying the instruction set system (#5156)
Mainly type work
2023-06-17 19:41:26 -04:00
Jeremy 07b0df516e Revert "Fix word wrapping bug"
This reverts commit 567c45be12.
2023-06-17 15:14:37 -04:00
Jeremy 567c45be12 Fix word wrapping bug 2023-06-17 15:12:45 -04:00
Jeremy Rifkin 6e857a2546 Check for clipboard support better (#5146) 2023-06-14 15:45:46 +02:00
Jeremy Rifkin 8c292050fd Fix word wrapping for compiler filters (#5147) 2023-06-14 15:43:23 +02:00
Guo Ci e39f045bba add floating point representation for numeric tooltip (#5140) 2023-06-13 16:33:29 -04:00
Jeremy Rifkin 8d624b523c Improve CFG viewer navigation and behavior (#5134) 2023-06-11 19:12:09 -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
Jeremy Rifkin 910d69f233 Turn on @typescript-eslint/await-thenable (#5131) 2023-06-11 18:09:35 -04:00
Jeremy Rifkin 74e177dd0b Fix ordering in the compiler picker popup (#5132)
No more of this nonsense, long overdue fix

![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/bf55a8bb-63a9-47dc-802e-d24df465d422)
2023-06-11 18:00:12 -04:00
Jeremy 653e9a6899 Lint fixes 2023-06-11 17:38:38 -04:00
Jeremy Rifkin 34292238c1 Identify unused imports during lint (#5130) 2023-06-11 17:35:59 -04:00
Jeremy Rifkin acdd5ad45c Capture errors in sentry better (#5128)
Fixes #5127 and similar issues.

Rationale: Whenever something that is not an Error object is passed to
Sentry.captureException we get pretty much no useful information in
sentry

![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/c7345449-f7a0-46cb-a198-abe0bd80a8b1)
(usually not even a stacktrace)
2023-06-11 17:31:51 -04:00
Jeremy 319dee6811 Minor reformatting of css 2023-06-11 17:12:58 -04:00
Jeremy Rifkin 10851a1dda LLVM IR pane improvements (#5078)
This PR will add filtering and other output options to the LLVM IR pane


![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/ffc865ea-b3fa-441f-b501-4ec4b68e261f)

![image](https://github.com/compiler-explorer/compiler-explorer/assets/51220084/936be326-b55e-40cd-ba47-22b121c1acfb)


Closes #5062
Related to #5045
2023-06-11 17:00:53 -04:00
Guo Ci 79bba4c1d1 Add PTX and SASS docs (#5129)
For CUDA C++, add PTX and SASS docs.
2023-06-11 17:00:38 -04:00
Jeremy 6dacb4d3e2 Add more info to an earlier triage attempt 2023-06-10 15:43:43 -04:00
Jeremy Rifkin 71ae48c8e7 Fix conformance view state bug (#5120)
Fixes #5119 where a type error happens during page load
2023-06-07 19:10:24 -04:00
Matt Godbolt 3b75a229c8 Bump to latest LRUCache; use the correct import now the old way is deprecated (#5116) 2023-06-06 21:32:03 -05:00
Matt Godbolt 4187390952 Update eslint et al (#5115) 2023-06-06 21:17:25 -05: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