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


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

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

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

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

(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


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
aliaegik and Rubén Rincón Blanco
91334b9d9b
New Language: C3 ( #5086 )
...
Related to: https://github.com/compiler-explorer/infra/pull/1017
C3 is a system programming language based on C. It is an evolution of C
enabling the same paradigms and retaining the same syntax as far as
possible.
Design Principles:
Procedural "get things done"-type of language.
Try to stay close to C - only change what's really necessary.
C ABI compatibility and excellent C integration.
Learning C3 should be easy for a C programmer.
Data is inert.
Avoid "big ideas" & the "more is better" fallacy.
Introduce some higher level conveniences where the value is great.
You can try it out live on its tutorial website:
https://www.learn-c3.org
Source code: https://github.com/c3lang/c3c
---------
Co-authored-by: Rubén Rincón Blanco <git@rinconblanco.es >
2023-06-02 08:08:57 -05:00
Jeremy Rifkin
794a350a9e
Add something to the context menu in place of paste when not supported ( #5081 )
...
In case anyone asks why "Paste" is missing from the context menu in the
future:

Paste is present in chrome and other browsers that support the clipboard
api, just not firefox. This should change upstream some day.
https://github.com/microsoft/vscode/blob/1052813be23485fd9c17ac77b517241479c21142/src/vs/editor/contrib/clipboard/browser/clipboard.ts#L27-L30
Closes #3113
2023-05-30 21:19:06 -05:00
Jeremy Rifkin and Matt Godbolt
edcacc0272
Better compiler argument warnings handling ( #5076 )
...
The goal of this PR is to display any warnings about compiler arguments,
e.g. the warning about -march=native, somewhere else instead of a toast
notification every time. Feature requested on discord.



---------
Co-authored-by: Matt Godbolt <matt@godbolt.org >
2023-05-30 21:18:09 -05:00
Jeremy Rifkin
0bc22f8883
Egregiously overengineered fix for a niche UI bug ( #5074 )
...
Fixes #4714
2023-05-30 21:11:21 -05:00
Jeremy Rifkin
0364ef87ad
Use a discriminated union for the ConfiguredOverride type ( #5075 )
...
Closes #5054
2023-05-25 13:10:54 -04:00