Repository navigation
Egg 0.1.0
What's Changed
- Egg v1: structs, enums, unions, arrays/slices, error unions, generics by @femto in #1
- Egg v2 (step 1): modules and capability checking by @femto in #2
- Egg v2 (step 2): integer types, raw pointers, function values, extern fn by @femto in #3
- Egg v2 (step 3): owned buffers, ownership checking, defer by @femto in #4
- Check overflow with gcc/clang builtins by @femto in #6
- Add benchmarks against C, Rust, Go and Zig by @femto in #5
- link "lib": link C libraries, plus -l/-L on build and run by @femto in #7
- f32 and f64 by @femto in #8
- examples/ffi: libm and a SQLite blog; a.cstr, a.str_from_c by @femto in #9
- Ownership: structs, arrays and buffers that hold buffers by @femto in #10
- owned struct: resources checked like buffers by @femto in #11
- Optionals, deinit and push/pop: owned structs in containers by @femto in #12
- Bring #12 to main; fix recursive types through Buf by @femto in #13
- Design: no GC; v3 is memory without GC by @femto in #14
- Parameters borrow by default; sink takes ownership by @femto in #15
- spec: pools instead of an arena by @femto in #16
- a.free of a plain T is a no-op in generic instances by @femto in #17
- Errors you can tell apart: catch |e|, anyerror, block fallbacks by @femto in #18
- examples/complex: larger programs, run by the tests by @femto in #19
- Strings: the \r escape by @femto in #20
- Buf keeps a capacity: a.push doubles it when full by @femto in #21
- Comptime if on types, and @CompileError by @femto in #22
- Imports: modules by name, files inside the module root by @femto in #23
- std/map: HashMap(K, V) by @femto in #24
- if with a value: if (c) a else b by @femto in #25
- _ = e drops a value on purpose by @femto in #26
- Text that is freed: Buf(u8) by @femto in #27
- std/map: Buf(u8) keys, looked up by any text by @femto in #28
- Mutable slices (inout xs: []T) and std/sort by @femto in #29
- Character literals ('a', '\n', '\xff') by @femto in #30
- E137: allow inout calls in a for loop when the callee cannot resize the buffer by @femto in #31
- Text ergonomics: multi-value print, text ordering, a.str, sort_by; evaluation order fix by @femto in #32
- A move into a nested sink parameter counts as a change (E117) by @femto in #33
- @as passes T only to a literal operand by @femto in #34
- String escapes \xNN and \u{N} by @femto in #35
- Bitwise operators & | ^ ~ << >>; hex and binary literals by @femto in #36
- editors/codeshot: render an .egg file and its output as a PNG by @femto in #37
- Type aliases: const Name = T by @femto in #38
- The fs capability: whole-file read and write by @femto in #39
- CI: run the tests on Linux, macOS and Windows by @femto in #40
- fs on Windows: a directory is IsDirectory; Windows blocks a merge by @femto in #41
- Add out.eprint and the args capability by @femto in #42
- Add out.read_line and out.read_all by @femto in #43
- Name the Io value io by @femto in #44
- On Windows, fs paths and args are UTF-8 by @femto in #45
- Rename a.str to a.leak by @femto in #46
- Add @swap, so std/sort works on elements that own buffers by @femto in #47
- Text a program builds is a Buf(u8) it frees by @femto in #48
- Add if (x) |v| and while (x) |v| by @femto in #49
- A plain value fits !?T, as in Zig by @femto in #50
- Add open files: Reader and Writer by @femto in #51
- Add the net capability: TCP, UDP and name resolution by @femto in #52
- Tests read files as UTF-8 in any locale by @femto in #53
- A function type names its parameters' modes by @femto in #54
- Add threads: uses thread, spawn, join and detach by @femto in #55
- Add channels: threads.channel, Sender and Receiver by @femto in #56
- Rename @drop to @forget by @femto in #57
- A channel of capacity 0 hands each value over by @femto in #58
- Example: a threaded HTTP file server by @femto in #59
- Add read_line_max: a limit on what a line can use by @femto in #60
- Add std/text: find, split, trim, parse_int and friends by @femto in #61
- A byte of a str is a u8, as of a []u8 by @femto in #62
- Local slices with non-lexical borrows by @femto in #63
- Receiver.clone and a thread pool in the HTTP example by @femto in #64
- HTTP example: keep-alive by @femto in #65
- Bench: HTTP servers by @femto in #66
- files.read allocates the file's size at once by @femto in #67
- README: lead with what Egg is by @femto in #69
- Add CodSpeed performance benchmarks by @codspeed[bot] in #68
- A writable local slice: inout s = &x[lo..hi] by @femto in #70
- E103 for an if yielding a slice says why and how to get around it by @femto in #71
- fs: directories, remove, rename, stat, real_path and Reader.seek by @femto in #72
- rx.recv_timeout(ms): recv that waits at most ms milliseconds by @femto in #73
- Bytes to and from C: @strptr of any text, @bufPtr, @sliceFromPtr by @femto in #74
- args.env(name) ?str: an environment variable by @femto in #75
- Top-level constants: const MAX = 8192, const OK: i32 = 0 by @femto in #76
- Capabilities time (Clock) and rand (Random) by @femto in #77
- README: once-campfire-egg under Performance by @femto in #78
- TcpConn.clone(): another handle to the same connection by @femto in #79
- Files and directories are not inherited by child processes by @femto in #80
- A function of another module can be a value by @femto in #81
- net.poller(): many sockets on one thread by @femto in #82
- TcpConn.peer_ip(a): the peer's numeric IP address by @femto in #83
- Functions return slices of their read-only parameters by @femto in #84
- std/http, std/ws, std/codec, std/sha1 by @femto in #85
- std/http: an HTTP client (http:// only) by @femto in #86
- Emit only the functions main reaches by @femto in #89
- eggc build and run: -O0 by default, --release for -O2 by @femto in #90
- Code generation keys functions by identity (fixes #89's compile-time regression) by @femto in #91
- inout parameters passed by pointer are restrict in the C by @femto in #92
- Lexer: skip comments, blanks and identifiers in one step by @codspeed[bot] in #88
- select: wait on several channels by @femto in #93
- channel: blocked senders and receivers wait in line, first come first served by @femto in #94
- select: a waiting select stands in its channels' lines by @femto in #95
- eggc --pkg NAME=DIR: packages are modules by name by @femto in #96
- clutch: the package manager by @femto in #97
- std/text: parse_float, decimal text to the nearest f64 by @femto in #98
- opt == null and opt != null by @femto in #99
- clutch publish: a release into the index by pull request by @femto in #100
- clutch test: each test/NAME.egg a program, and [dev-dependencies] by @femto in #101
- eggc lsp: a file in a clutch package is checked with its packages by @femto in #102
- Local borrows: const r = &p and inout r = &p by @femto in #104
- Owned unions and local borrows by @femto in #103
- An if with a value may yield a slice by @femto in #105
- Native eggc and clutch: built by Spinel, checked against Ruby by @femto in #106
- Release workflow and installers by @femto in #107
New Contributors
Full Changelog: https://github.com/femto/egg/commits/v0.1.0