Leonard Schütz

Results 73 issues of Leonard Schütz

This PR implements a `net` module than can be used to create HTTP servers. Also includes the following utility functions: - `Function#run` - `Function#run_with_context` # Todos: - [ ] Write...

```javascript // binary 0b00001000 // => 8 0b00000100 // => 4 // octal 0o00000040 // => 32 0o00000020 // => 16 // hex 0x00000F00 // => 256 0x00000010 // =>...

Syntax

Passing the `stats` flag should enable crystal like stats output for parsing and execution. Output should be written to STDERR. See: [Crystal.timing](https://github.com/crystal-lang/crystal/blob/858b3e115a4d48df6e76841366211bb1c659cd44/src/compiler/crystal/util.cr#L26-L43)

CLI
Enhancement
Interpreter

Examples: ```javascript let nums = [1, 2] let othernums = [3, 4, ...nums] # [3, 4, 1, 2] ``` Can also be used for method calls ```javascript func foo(arg, arg2)...

Syntax
Interpreter

Put charly on brew ```bash $ brew install charly-lang ``` The need to manually set the `CHARLYDIR` should be removed. Discarded 25.01.2017 ~You should be able to write `charly -f...

Infrastructure
Enhancement

Currently all types are boxed inside a class called `BaseType`. This is super inefficient as it allocates a lot of memory for a single `Float64`, `Bool`, `String` etc. At the...

Enhancement
Interpreter

- Currently each list read / write access has to be synchronized via a lock, as multiple fibers could access it at the same time. - In a simple stress...

optimization
runtime

- Executing the [scratch-files/gc-stress-test.ch](https://github.com/KCreate/charly-vm/blob/rewrite/scratch-files/gc-stress-test.ch) file sometimes results in a crash. - Crash is not deterministic - Three different types of crashes observed - `unexpected worker state` in `worker.cpp` - Failed...

bug

- Implement a new `StringView` type to efficiently create substrings of another string - `StringView` stores a reference to the original string, a starting offset and a length - Come...

optimization
runtime

- Strings should cache wether they contain multibyte utf8 characters or not. - Also cache the amount of utf8 codepoints in the string, as right now this value needs to...

optimization
runtime