127 Commits
Author SHA1 Message Date
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
Matt Godbolt 2c484a0916 Attempt to make renovate work to @mattgodbolt's personal schedule 2023-08-15 22:07:57 -05:00
Matt Godbolt c9294fccbb Attempt at using a tag script instead of a (soon to be deprecated) workflow (#5358)
Fix for...

> The following actions uses node12 which is deprecated and will be
forced to run on node16: tvdias/github-tagger@v0.0.2. For more info:
https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
2023-08-07 22:43:59 -05:00
Matt Godbolt ce9a909dcb Another attempt at renovate config 2023-08-07 21:27:39 -05:00
Matt Godbolt 3fe59307f0 Vague attempt at placating renovate 2023-08-07 18:31:11 -05:00
Matt Godbolt eaf1f49605 Run prettier on everything 2023-07-30 20:02:58 -05:00
Gooolerandrenovate[bot] 36213d12de Renovate updates (#5291)
We can kick these things by @renovate-bot.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-30 18:17:20 -05:00
Mauro Baladés a33dd9de16 Added snowball lang (#5245)
# Language name
Snowball 🐱 

Language version
Snowball v0.0.7-beta

## Language homepage
Soon™️ 

Not the websites but some (WIP) documentation:
https://snowball-lang.gitbook.io/docs/

Compiler homepage

https://github.com/snowball-lang/snowball

Compiler version
v0.0.7-beta

Motivation

With a myriad of features to offer, Snowball boasts object-oriented
programming, memory safety, built-in functions for enhanced
productivity, and faster execution than other languages. Plus, its
garbage collector and unit testing make it a comprehensive tool for
developers.

> It's still in development but it's development is fast
2023-07-10 20:38:55 -05:00
aliaegikandRubé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
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
Mohammed Keyvanzadeh abf92f10f6 tools: update GitHub Actions workflows (#4943)
- Update the actions in the GitHub Actions workflows to their latest versions.
- Run the workflows on the latest versions of the platforms where appropriate.
- Set the `check-latest` field of the `actions/setup-node` action to `true` to use the latest release of the specified Node.js version instead of using the cached one when there's a new release available.
- Explicitly specify the action versions instead of using the `latest` tag.
2023-04-05 11:24:31 -05:00
Matt Godbolt 54a99f6d51 Upgrade all minor versions; format; bump sonar and css minimizer (#4920) 2023-04-01 20:29:06 -05:00
Marc Poulhiès 5d98fa9cdb Minor tweak in github labeler (#4897)
Automatically add lang-objc and lang-objc++ labels when modifying
respective config files.

Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2023-03-23 20:41:57 +01: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
wxwisiasdf 53e032f1ea GNUCOBOL -> GnuCOBOL 2023-03-05 04:18:44 +08:00
wxwisiasdf 1ed63cb355 Add static/modes/cobol-mode.ts to labeler.yaml 2023-03-02 06:23:23 +08:00
wxwisiasdf a3edc64993 Add basic COBOL support 2023-03-01 06:17:26 +08:00
Matt Godbolt fb4b7bb16e Bump used node version to 18 (#4778)
Still assume node 16 compatibility for now.
2023-02-25 12:43:00 -06:00
Jeremy Rifkin ffe1cf7ce6 Fix cypress timeout issue (#4776)
This should fix the issue of cypress CI frequently timing out and having
to manually re-run to get checks to be OK
2023-02-25 10:13:23 -06: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
Alex 24a2425730 Add Julia (#4595) 2023-01-14 15:44:14 +01:00
Patrick Quist 396182e31f Windows build and deploy script (#4547) 2023-01-10 22:14:09 +01:00
Rubén Rincón Blanco 945d03eb9a Rename language_request to language_request.yml 2022-11-24 10:46:32 +01:00
Rubén Rincón Blanco cfc3957f49 Create language_request 2022-11-24 10:46:14 +01:00
Rubén Rincón Blanco a615ea58e9 Test only in Chrome for now 2022-11-09 16:14:57 +01:00
Rubén Rincón Blanco d41eb5c269 Run Cypress in both firefox & chrome (#4106)
* Run Cypress in both firefox & chrome

* Use matrix for frontend testing workflow

Done following https://github.com/browser-actions/examples/blob/master/.github/workflows/build.yml
2022-11-09 03:24:40 +01:00
Matt Godbolt a4449cb012 Workflow bump v2 v3 checkout (#4140)
* Workflow bump v2 v3 checkout
* Bump labeler
2022-10-11 17:27:26 -05:00
J. Ryan Stinnett 80dd763985 Add basic Racket support (#4098) 2022-10-05 09:32:45 +02:00
Fábio de Souza Villaça Medeiros c2e9aabfd7 Add basic support for Hook programming language (#4075)
* Add basic support for Hook programming language
2022-09-25 15:06:02 -05:00
Rubén Rincón Blanco 52af6ecbe7 Ask git to use LF line endings in windows CI (#4039) 2022-09-08 23:32:42 +02:00
Rubén Rincón Blanco 8d6f171197 Cypress test to open all panes (#3953) 2022-09-04 17:31:36 +02:00
Rubén Rincón Blanco c325a24efb Update labeler.yml 2022-09-04 17:05:44 +02:00
Rubén Rincón Blanco 641cd64e9c Add more files to labeler filters (#4023) 2022-09-04 00:35:35 +02:00
Rubén Rincón Blanco 16b176235a JBOF: Just a Bunch of Fixes (#3957)
- Renames orphancompiler.py script to propscheck.py, the name fits better
- Fixes Go props to make them easier to maintain
- Alphabetically sorts some listings in the code
- Adds tests to the props checker script (No idea how to integrate those so it's manual for now)
- Adds 2 missing limit cases for Motd filtering
2022-08-13 01:39:41 +02:00
Rubén Rincón Blanco a92edc30ef Add hlsl labeler 2022-08-10 11:46:37 +02:00
Mike UrbachandPatrick Quist 16b06027f5 Add basic CIRCT compiler support. (#3917)
* Add basic CIRCT compiler support.

This adds basic support for CIRCT as requested in #3825. The addition
is based on the similar additions for MLIR in #3733 and #3770.

* Update path and rename compiler in circt.amazon.properties.

* Update circt.amazon.properties

Co-authored-by: Patrick Quist <partouf@gmail.com>
2022-07-28 23:29:10 +02:00
Mats Larsen 18160be477 Use eslint-plugin-prettier to fix and check formatting problems (#3847) 2022-07-12 22:56:03 +02:00
RabsRincon a2634e9cab Add missing Pony labeler
Realized as soon as I merged #3855 that this was missing
2022-07-10 22:36:43 +02:00
TrMen ed4c5814ae Add the jakt programming language (#3845) 2022-07-09 17:03:23 +02:00
Patrick Quist 5452166ae1 Toit (#3808) 2022-06-24 22:07:40 +02:00
Mats Larsen fe688a15b6 Create minimal support implementation for MLIR (#3733) 2022-06-01 14:46:43 +02:00
Mats Larsen 2b38467b7c Add missing LLVM IR language labeler tags (#3734) 2022-05-30 19:59:11 +02:00
Rubén Rincón Blanco 4150b60da3 First try at fixing flang (#3673) 2022-05-26 15:52:12 +02:00
Mats Larsen e24b2f72be Remove unused prettier format script (#3646) 2022-05-15 20:36:13 +01:00
Matt Godboltandpartouf 31104f3230 Use our own fork of approvals to fix a bunch of security warnings. (#3651)
* Use our own fork of approvals to fix a bunch of security warnings.
* use node 16

Co-authored-by: partouf <partouf@gmail.com>
2022-05-13 07:44:29 -05:00
Matt Godbolt f2c1e0bd31 The Grand Reformat (#3643)
* The Grand Reformat

- everything made prettier...literally
- some tweaks to include a few more files, including documentation
- minor changes to format style
- some tiny `// prettier-ignore` changes to keep a few things the way we like them
- a couple of super minor tweaks to embedded document types to ensure they format correctly
2022-05-09 23:13:50 -05:00
Matt Godbolt 665289e515 Fix sentry (#3636)
* Unpacks the files sentry needs for source maps
2022-05-08 10:08:58 -05:00
Rubén Rincón Blanco 3e6c1ab023 Make it clear that OS/browser versions are optional in most cases (#3589) 2022-04-29 12:36:37 +02:00
Mats Larsen 15b57aef0e Create npm script for noEmit compiling frontend and backend to catch errors (#3580) 2022-04-27 10:05:27 +02:00
Matt Godbolt 6af73a3c2a Fix cache issue in build_dist 2022-04-26 09:26:09 -05:00