-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# 0.2.0 (07-26-2023) | ||
|
||
## Added | ||
|
||
- buzz has a homepage: [https://buzz-lang.dev](https://buzz-lang.dev), a [Discord](https://discord.gg/VnMdNSdpNV) and an actual [VS Code extension](https://marketplace.visualstudio.com/items?itemName=giann.buzz) | ||
- JIT compiler powered by [MIR](https://github.com/vnmakarov/mir) | ||
- [mimalloc](https://github.com/microsoft/mimalloc) as the main allocator | ||
- Inline if | ||
- Ranges | ||
- `any` type | ||
- `as?` operator to safely cast something | ||
- `http` standard lib (with an HTTP client) | ||
- `crypto` standard lib (in progress) | ||
- `list.pop`, `list.insert`, `list.forEach`, `list.reduce`, `list.filter`, `list.map`, `list.reduce`, `list.sort` | ||
- `pattern.replace`, `pattern.replaceAll` | ||
- `std.random` | ||
- `bz_call` allows a native function to call a buzz function | ||
- `--ast` will dump a script AST in JSON | ||
- `--check` will check that a script compiles whitout running it | ||
- Shebang comment is allowed (`#!/usr/bin/env buzz`) at the start of a script | ||
|
||
## Changed | ||
- Main function signature must either be `fun main([str] args) > void` or `fun main([str] args) > int`, plus any required errors | ||
- Numbers are splitted in two types: `int` (32 bits integers) and `float` (64 bits floating points) | ||
- Some performance related changes | ||
- VM uses tail calls to dispatch opcode instead of a big switch | ||
- More specialized opcodes to avoid checking types at runtime | ||
- Some minor things... | ||
- Key can be omitted in `foreach` statements | ||
- buzz wil now search a library in a list of common directories | ||
- `export` can prefix declarations | ||
|
||
## Fixed | ||
|
||
Too many to count... | ||
|
||
# 0.1.0 (11-18-2022) | ||
|
||
- static type system | ||
- null safety | ||
- "error safety": much like zig, function signatures must specify which errors can be raised and error must be handled | ||
- objects (struct-like, no inheritance) | ||
- anonymous objects | ||
- protocols | ||
- enums | ||
- lists and maps | ||
- fibers (coroutines) | ||
- userdata (pointer to foreign data wrapped in a buzz value) | ||
- first-class citizen functions | ||
- arrow functions | ||
- generics | ||
- pcre regex | ||
- zic/c interop | ||
- syntax highlighting via vs code extension or by using the TextMate grammar file | ||
- minimal std lib: buffer, fs, io, os, math, gc, debug |