105 Commits
Author SHA1 Message Date
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
redzic 9e27ff27fb Make Rust examples more idiomatic (#2634)
* Make Rust examples more idiomatic

* Make 'non-idiomatic' example match the aligned version

* Rename examples
2021-05-05 11:52:24 +02:00
Patrick Quist ce64888b7e More rust examples (#2482)
* more rust examples

* Update default.rs
2021-03-11 17:30:03 +01:00
Danil Yarantsev 62902ddd53 Add more Nim examples (#2265)
* Add more Nim examples

* Newlines :P

* Replace it with openArray

* Remove march, seq

* fix typo
2020-10-08 23:58:33 +02:00
Danil Yarantsev d1ddfcf075 Make Nim example actually work (#2264) 2020-10-08 23:58:20 +02:00
Patrick Quist 60abd009ed Swift executions (#2216)
* enable swift execution

* execution example

* disable swift binary+execution until v5, and v5.0 gives a runtime error
2020-09-20 01:18:54 +02:00
Matt Godbolt 33bb9965cd Partially address #2201 2020-09-17 21:59:34 -05:00
sdgoodrick a41d7becf6 add support for cppx blue and gold languages (#2144) 2020-08-20 16:27:15 +02:00
Patrick Quist 5bc4e3b133 enables binary+execution for ADA (#1971)
* enables binary+execution for ADA

* generic bandaid for missing executables

* -eS commands are not errors

* support error annotations

* restore original default but add exec example

* re-enable rpath

* add tools
2020-05-20 12:54:34 +02:00
Tony Yang 2501734007 Fix Rust Max_array examples (#1960)
* Fix Max_array.rs iter_mut is not necessary

The previous example failed to compile as `y` was not borrowed as a mutable reference but used to produce a mutable iterator. Changing from `iter_mut()` to `iter()` resolved this issue.

* Fix Max_array_(Optimized).rs

The previous example failed to compile as `y` was not borrowed as a mutable reference but used to produce a mutable iterator. Changing from `iter_mut()` to `iter()` resolved this issue.
2020-05-11 01:03:13 +02:00
Christopher Serr 91a35e65d4 Improve the Rust examples
This commit
 - formats the Rust examples idiomatically
 - uses idiomatic code
 - uses only safe code without compromising on performance
 - makes them compile on stable
2020-03-26 23:28:49 +01:00
bastien penavayre 6c7c90c558 More idiomatic Nim example 2019-12-28 14:27:14 +01:00