print('\u25b6\u25b6\ufe0e\u25b6\ufe0f')
const {execSync} = require('child_process');
execSync(`echo '{"foo": "bar"}' >file.json`);
console.log(require('./file.json'));
execSync(`echo '{"baz": "qux"}' >file.json`);
console.log(require('./file.json')); // cached
Code
Diff
  • #include <immintrin.h>
    
    typedef double v4d __attribute__((__vector_size__(32)));
    
    __attribute__((__target__("avx")))
    v4d add(v4d xs, v4d ys) {
      return _mm256_add_pd(xs, ys);
    }
  • 11 #include <immintrin.h>
    22
    33 typedef double v4d __attribute__((__vector_size__(32)));
    44
    5+__attribute__((__target__("avx")))
    55 v4d add(v4d xs, v4d ys) {
    66 return _mm256_add_pd(xs, ys);
    77 }
Code
Diff
  • #include <immintrin.h>
    
    using v4d = double __attribute__((__vector_size__(32)));
    
    __attribute__((__target__("avx")))
    v4d add(v4d xs, v4d ys) {
      return _mm256_add_pd(xs, ys);
    }
  • 11 #include <immintrin.h>
    22
    33 using v4d = double __attribute__((__vector_size__(32)));
    44
    5+__attribute__((__target__("avx")))
    55 v4d add(v4d xs, v4d ys) {
    66 return _mm256_add_pd(xs, ys);
    77 }
UnnamedFailed Tests

AVX

solution.c:6:10: error: always_inline function '_mm256_add_pd' requires target feature 'avx', but would be inlined into function 'add' that is compiled without support for 'avx'
return _mm256_add_pd(xs, ys);

#include <immintrin.h>

typedef double v4d __attribute__((__vector_size__(32)));

v4d add(v4d xs, v4d ys) {
  return _mm256_add_pd(xs, ys);
}
UnnamedFailed Tests

AVX

main.cpp:10:10: error: always_inline function '_mm256_add_pd' requires target feature 'avx', but would be inlined into function 'add' that is compiled without support for 'avx'
return _mm256_add_pd(xs, ys);

#include <immintrin.h>

using v4d = double __attribute__((__vector_size__(32)));

v4d add(v4d xs, v4d ys) {
  return _mm256_add_pd(xs, ys);
}
add(X, Y, R) :- R is X + Y + 1.
add(X, Y, R) :- R is X + Y + 1.
add(X, Y, R) :- R is X + Y.
add0(_, _, _).
add_or_sub(X, Y, R) :- R is X + Y; R is X - Y.
Unnamedvs.UnnamedFailed Tests

Fixed

(The last line of the message is still missing.)

Code
Diff
  • unit module Solution;
    error-here-again
  • 11 unit module Solution;
    2error-here
    2+error-here-again
unit module Foo;
error-here
Code
Diff
  • unit module Solution;
    
    try { sink shell 'raku -e "error-here"'; }
    try { sink shell 'RAKUDO_ERROR_COLOR=0 raku -e "error-here"'; }
  • 11 unit module Solution;
    2error-here-too
    2+
    3+try { sink shell 'raku -e "error-here"'; }
    4+try { sink shell 'RAKUDO_ERROR_COLOR=0 raku -e "error-here"'; }
Code
Diff
  • // fixed
    int foo() { return 1; }
    int bar() { return 2; }
    int baz() { return 3; }
  • 1+// fixed
    11 int foo() { return 1; }
    22 int bar() { return 2; }
    33 int baz() { return 3; }
Loading more items...