Olivier Chafik

Results 32 issues of Olivier Chafik

Another couple of speedups for grammar sampling (https://github.com/ggerganov/llama.cpp/issues/4218): - Early exit in `llama_grammar_reject_candidates_for_stack` when there's no next_candidates - Cache token pieces & their decoded codepoints in `llama_sample_grammar` - Non-quadratic `llama_grammar_copy`...

Still very rough, but sharing a draft to get early feedback on the general direction. This is an experiment in adding **grammar-constrained** tool support to llama.cpp, with a simple example...

- added instructions on how to use a local benchpress repo (please note that this requires benchpress 2.0.0-alpha.53, not published yet) See https://github.com/angular/angular/commit/fe1dd77d941397d742024c2fbda648 5cdf5a0b16

Corefinement functions seem to produce different outputs in debug vs. release builds. The following example produces a substantial diff: ```bash g++ -stdlib=libc++ -std=c++1y -lgmp -lmpfr repro.cc -o repro && ./repro...

Pkg::PMP

``` class Bar { Bar() { print("Bar created"); } } class Foo { var bar = new Bar(); Foo([this.bar]); } main() { print(new Foo().bar); } ``` Dart prints: ``` Bar...

Type: bug
area-dev-compiler

``` class Foo { var x; Foo([this.x]) : this.x = 1; } ``` In Dart, this prevents the code from running, but silently ignored by ddc.

Type: bug
area-dev-compiler

Note: this is blocked by support for Closure's SIMPLE (#312) and ADVANCED (#311) compilation modes. Signatures are declared as top-level statements and Closure has no knowledge of how to tree-shake...

dev-compiler-closure
area-dev-compiler

The [Closure Compiler](https://github.com/google/closure-compiler) can _almost_ consume the output of DDC with `--language_in=ECMASCRIPT6_STRICT -O SIMPLE` (and output ES5 code). Here are some blockers: - (fixed by https://github.com/google/closure-compiler/commit/3f54e473500ee54a4aa5c264dbe6f61d82586a8d) ~~`super` getter calls aren't...

dev-compiler-closure
area-dev-compiler

Note that DDC supports basic type annotations (when `--closure` is set #286), but Closure doesn't currently accept DDC's output, not even in [SIMPLE](https://developers.google.com/closure/compiler/docs/compilation_levels) mode (#312). Here are some of the...

dev-compiler-closure
area-dev-compiler