116 Commits
Author SHA1 Message Date
Matt Godbolt 8168108a8a Missing line endings 2023-04-10 22:49:15 -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
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
Patrick Quist 4774334493 Add MLIR 16.0.0 (#4892) 2023-03-30 18:20:56 +02:00
Airbus5717 2aefd6fb75 Update default fortran example (#4807)
integer reflects a more accurate example compared to other languages in
the code
2023-03-11 14:18:03 -06:00
wxwisiasdf a3edc64993 Add basic COBOL support 2023-03-01 06:17:26 +08: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
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
Andrew Kaster 3fc61711ee jakt: Fix signature of default example's main (#4522)
And make sure to cast the i32 to a c_int from the example function.
2023-01-02 16:56:07 -06:00
Matt Godbolt 867d24c9c3 Fix typo 2022-11-27 10:39:05 -06:00
Steve 75b9d30485 Support trunk and execution for .NET (#4351)
* Support trunk and execution for .NET
* Adjust compilers order
* Support stdin
* Update samples
2022-11-27 10:14:35 -06:00
J. Ryan Stinnett 80dd763985 Add basic Racket support (#4098) 2022-10-05 09:32:45 +02:00
Cameron Cawley 24d4c39e57 Allow the C examples to build with a C89 compiler (#4104) 2022-10-02 17:41:57 +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
Matt Godbolt a8a666aeac Fixes for cppfront (#4076)
* Rename cppx_cppfront to cpp2_cppfront
* Add some blurb about the compiler
* Some syntax highlighting
* Better output highlighting
* Some form of line tracking and filtering
2022-09-20 07:42:41 -05:00
Matt Godbolt cf2da5f9b3 cppfront (#4069) 2022-09-16 18:27:48 -05:00
Jeremy Ong d928bccf5a Add preliminary HLSL support (#3932)
* Add preliminary HLSL support

- Adds a new language mode to monaco, extending the base C++ layer with
  HLSL intrinsics and types
- Adds a new `HLSLCompiler` class
- Adds a sample pixel shader

The compiler used to test this locally is the [DirectX Shader
Compiler](https://github.com/microsoft/DirectXShaderCompiler) (aka DXC),
which needs to also be added to the
[infra](https://github.com/compiler-explorer/infra) project.

Some guidance is needed before this PR can be merged:

1. While DXC can run on Linux, there are no binaries available so this
   compiler must be built. Are there examples that show how we should do
   this as part of the infra CI/CD? Should we build and host it
   separately instead? The build process for DXC on Linux is relatively
   straightforward and documented
   [here](https://github.com/microsoft/DirectXShaderCompiler/blob/main/docs/DxcOnUnix.rst).
2. The example code doesn't compile unless the user also supplies
   additional compiler flags `-T ps_6_6 -E PSMain`. Is there a way to
   load these flags conditionally only if the sample is loaded?
3. Technically, DXC emits DXIL IR (based on LLVM IR) and I am wondering
   if it's possible to extend an existing LLVM backend. In addition, the
   `-spirv` compiler flag could be emitted to target the SPIR-V backend
   instead, so I'm curious if there is a good way to express the target
   backend.

Signed-off-by: Jeremy Ong <jeremycong@gmail.com>

* Fix copyright dates, remove unnecessary strict usage, and remove
placeholder logo

Signed-off-by: Jeremy Ong <jeremycong@gmail.com>

* Rebase and remove unneeded HLSL logo

Signed-off-by: Jeremy Ong <jeremycong@gmail.com>

* Fix lint errors

Signed-off-by: Jeremy Ong <jeremycong@gmail.com>

* Simply HLSL sample and remove default config

Signed-off-by: Jeremy Ong <jeremycong@gmail.com>
2022-08-09 07:32:19 -05: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
Matt Godbolt 50a1eedf01 Add support for Carbon (#3885)
Add support for the Carbon language prototype.
2022-07-19 09:42:25 -05:00
Patrick Quist 9b9ccc6818 fix pony example 2022-07-18 20:18:36 +02:00
Patrick Quist ddd4dd33fb fix pony example 2022-07-18 20:15:19 +02:00
Christopher Smyth a5c45b6f0b Pony Lang Config (#3855) 2022-07-10 21:58:19 +02:00
partouf 51244769e1 add hellow 2022-07-09 17:04:47 +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
SeekingBlues 15bcc9c6ee Fix typo in Ada example (#3793) 2022-06-20 12:24:31 +01:00
Mats Larsen d988a00b63 Enable MLIR for prod with 14.0.0 and 14.0.5 (#3770) 2022-06-13 17:10:27 +02:00
Mats Larsen fe688a15b6 Create minimal support implementation for MLIR (#3733) 2022-06-01 14:46:43 +02:00
Jeremy Rifkin f7f5f1c67d Updated default cuda example (#3685) 2022-05-19 13:27:23 +02:00
redzic b57c5d0bcf Add x86 assembly AVX2 sum array example (#3669) 2022-05-16 23:55:40 +02:00
Alexey ShekhirinandRubén Rincón Blanco 2001d1b65e Add support for Solidity (#3507)
* feat(compilers): Solidity support MVP

* don't concat userOptions in optionsForFilter

* fixes after review

* Update etc/config/solidity.defaults.properties

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2022-04-14 02:33:13 +02:00
Jan cd4d18233e changed syntax of Analysis default from Intel to AT&T (#3505) 2022-04-08 08:55:32 -05:00
ODuzharandAlex D df3042f29b Added TypeScript Native compiler (#3448)
* progress

* added some config

Co-authored-by: Alex D <duzhar@gmail.com>
2022-03-21 22:14:03 -05:00
Arsenic 9a75a7a1d6 Add examples for CUDA (#921) (#3439)
- Add examples for CUDA
- Update CONTRIBUTORS.md
2022-03-14 16:21:13 +01:00
Rubén Rincón Blanco 1589a14ebc Changed Python default example to classical square (#3380) 2022-02-19 21:31:20 +01:00
Michael Debertol 3f695c9cc1 Add Dart support (#3352) 2022-02-11 16:19:16 +01:00
Steve 0a3aadbe80 Add support for C#, F# and Visual Basic (#3168) 2022-01-29 16:16:27 +01:00
Timothy MooresandPatrick Quist 82772f4bbb add support for erlang to beam bytecode (#3094)
* add support for erlang to beam bytecode

* changed call by 'this' to overridden functions

* Update base-compiler.js

Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-11-21 14:22:04 +01:00
Patrick Quist 5e5e60159a Multifile/IDE mode (#2725) 2021-08-26 21:57:07 +02:00
Quinton Miller 7e1835fa0f Add support for Ruby (#2816) 2021-07-30 16:29:37 -04:00
Michał Cichoń 3bce751739 Add support for Circle (https://www.circle-lang.org/) (#2808)
* Add support for circle-lang (closes #1845)
* Add circle-128 version.
* Support keywords starting with @ (thanks Matt!)
2021-07-25 21:26:00 -05:00
Jason Zheng 18a03e5577 Add C++ for OpenCL language (#2771) 2021-07-13 09:24:13 -05:00
Quinton Miller 6ea7669814 Override CC env variable in Crystal propeties (#2776) 2021-07-12 08:37:32 -05:00
Quinton MillerandPatrick Quist 94ecb093a0 Add Crystal support (#2732)
* Add Crystal support

* Fix copyright

* Add ASM parser for Crystal

* Add supportsLibraryCodeFilter

* Update crystal-mode.js

* use baseName

* Force `square` call

* Update default snippet

Co-authored-by: Patrick Quist <partouf@gmail.com>
2021-07-08 00:23:48 +02:00
Jason Zheng 70cb841daf Add OpenCL C language (#2752) 2021-07-06 08:32:22 -05:00
Oleksandr d1da148563 Add initial scala support (#2737)
* Add initial scala support

* Fix scala 3 compiler flags

* Use semver instead
2021-06-29 09:39:06 +02:00
Matt Godbolt 8c2bed4819 Updates to better support cppx-blue
With @hsutter
2021-06-25 17:23:51 -05:00
b4ebb47ac2 Add Kotlin/JVM support (#2637)
* Add Kotlin/JVM support

* Update CONTRIBUTORS.md

* Use kotlinc-jvm instead of kotlinc

* Fix alphabetical ordering

* Filter kotlin compiler arguments

Extract user options filtering for java into a separate function to
handle filtering options with extra arguments.
Filter kotlin compiler options: -d, -jdk-home, -kotlin-home, -script, -progressive

* Filter -Xjavac user options

Filter any option that starts with '-Xjavac', as it could be used to pass unwanted options through kotlinc to javac.

* Fix year in copyright

Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>

* Add kotlin.amazon.properties

* Add JAVA_HOME to kotlin default exec options

Query per-compiler property 'java_home' and set environment

* Add java_home to kotlin properties

Co-authored-by: Daniel Below <daniel.below@jetbrains.com>
Co-authored-by: Rubén Rincón Blanco <ruben@rinconblanco.es>
2021-06-02 22:58:41 +02:00