Skip to content
#

Compiler

Compilers are software that translate higher-level (more human readable) programming languages to lower-level languages (e.g. machine code). The processor executes machine code, which indicates when binary high and low signals are required in the arithmetic logic unit of the processor. Examples of compiled languages include BASIC, Fortran, C++, C, and Java.

Here are 4,151 public repositories matching this topic...

Reconcyl
Reconcyl commented Mar 25, 2020

The following code causes an ICE:

fn main() {
    print!("\r¡{}");
}

As far as I can tell:

  • Any number of characters can be inserted between \r and ¡ and the error will still happen.
  • ¡ can be replaced with any unicode character and the error will still happen.
  • No escape sequences other than \r cause the error.

The error is reproducible on the stable or nightl

kevincox
kevincox commented Feb 19, 2020

#4001 🐛 bug report

Applying @parcel/transformer-raw to a file causes it to be renamed as if it was an asset rather than an entry.

🎛 Configuration (.babelrc, package.json, cli command)

// .parcelrc
{
	"extends": ["@parcel/config-default"],
	"transforms": {
		"*.json": ["@parcel/transformer-raw"],
	}
}
// entry.json
{}
$ parcel build entry.json
svelte
rowanparker
rowanparker commented Mar 31, 2020

Describe the bug
If you define an on:change attribute before a bind:value attribute, the on:change handler doesn't work.

To Reproduce
This REPL shows how it should work.
https://svelte.dev/repl/b2dfff7844614d9e8ce07f8d41fc3086?version=3.20.1

Swap lines 44 and 45 around. The input boxes will stop updating when the select is changed.

Expected behavior
It shouldn't matter whe

radare
radare commented Mar 21, 2020

V version: V 0.1.25 c12985d
OS: macOS 10.15

What did you do?

grepping in the source i found all those [..] attributes used or documented. its a bit confusing to understand what are they for and how/when to use them. so it will be good to have some tests and document them in doc/attributes.md

Also it is possible to define custom attributes like in python or c# ?

type
pjebs
pjebs commented Oct 15, 2018

The documentation for reflect.DeepEqual makes no mention of panic'ing: https://golang.org/pkg/reflect/#DeepEqual

In this example it panics:

println(fmt.Sprintf("fieldVal %T %v", fieldVal, fieldVal))
println(fmt.Sprintf("Zero %T %v", reflect.Zero(reflect.TypeOf(fieldVal)).Interface(), reflect.Zero(reflect.TypeOf(fieldVal)).Interface()))
reflect.DeepEqual(fieldVal, reflect.Zero(reflect.T
Nim
mratsim
mratsim commented Nov 24, 2019

sizeof doesn't work for types that store Atomics. This would be useful to size the memory buffer for thread-safe memory allocators with what is left from the synchronization primitives.

import std/atomics

type
  Node = ptr object
    # works
    next: Atomic[pointer]

  MyChannel = object
    # type not defined completely
    back: Atomic[ptr int]

static:
  echo sizeof(N
devjgm
devjgm commented Jan 20, 2020

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
I'd like the source code to be automatically clang-formatted according to my settings anytime the code is compiled. That is, don't require me to use the contextual menu or keyboard shortcut to format the code. Just auto-format it; just like the code is auto-compiled too.

Well, ther

masahi
masahi commented Nov 27, 2019

With v0.6 adding quantization support, I think it is good time to add documentation on our quantization story.

There have been many questions on the forum, some of which are listed at the bottom. I myself have recently become interested in the topic, but I'm having hard time digging through the forum, github issues, PRs etc.

It would be great if we could add an end to end quantization usag

ballercat
ballercat commented Oct 14, 2018

Problem

walt-cli package when linking multiple .walt files together can "wrap" the modules in a stand-alone JS module. The resulting module is too large because it serialized the dependency tree with the AST information encoded directly into the output, resulting in a massive amount of js.

Encoding the dependencies into the file is done to ensure the module can be used stand-alone in br

meijeru
meijeru commented Nov 3, 2019

I quote from a recent conversation in red/help
Every built-in function has a specification which tells you what the (type of) result is. Or, at least, it SHOULD have this. The docstring of print, e.g., does not tell you its result is unset. Admittedly that might be added.
If HELP <built-in> would always show the type of result, problems such as with print could be avoided for new users.

You can’t perform that action at this time.