Elias Sjögreen

Results 53 issues of Elias Sjögreen

It's in the title, should be part of the spec

enhancement

The language should be extendable using "compiler tips" which are essentially macros, or simply put: compiler tips. These tips would be modularly implemented using an rust interface of some sort,...

enhancement

Proposal to add inline functions using the `inline` keyword: ```rust export inline fn test_inline(a: i32): u32 { return a as u32 } ``` This would most likely be implement by...

enhancement

A simple formatter and linter, like [clippy](https://github.com/rust-lang/rust-clippy) using the whistle lexer, parser and AST would be nice to have. In my opinion it should be opinionated, and be able to...

documentation
enhancement

Will require some standardized syntax for imports and also #18.

enhancement
proposal

Probably using toml, or perhaps as a part of the entry file of a Whistle program?

enhancement
proposal

This is an quite old idea but it would essentially allow for a function to be called in multiple different stages before finally executing: ```rust fn bake_a_cake(first: str)(second: i32)(third: bool):...

proposal

Conditional parameters, while only syntax sugar would be a cool way of doing different things when the input of the function is different. I am undecided on wheter this is...

proposal

Optionally integrating [wasm-opt](https://github.com/WebAssembly/binaryen#wasm-opt) would allow us to create even smaller and faster code, without having to write our own optimizer.

enhancement

Make this module implement an API resembling the [CompressionStream](https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream) and [DecompressionStream](https://developer.mozilla.org/en-US/docs/Web/API/DecompressionStream) APIs. Possibly even polyfill the global ones, but that is up for debate.