yoavlavi

joined 1 year ago
[–] yoavlavi@programming.dev 7 points 6 months ago (1 children)

Thank you!

We developed this for our platform and CLI (which are Rust based) which is a bit of a different use-case than a one-off manual run of a linter (in which the difference perhaps wouldn't be as dramatic), although performant tooling for the end user should still be something we strive for IMO.

The "fast JS runtime" was Bun in this case, which we tried specifically because it has faster startup (and we also use in our CLI as a runtime for user defined functions). Most people would be using Node which is much more popular and likely have an even slower startup time.

[–] yoavlavi@programming.dev 5 points 1 year ago

Quickly creating or editing objects. The main target would be editor extensions, image a snippet that expands to an object on tab for instance

[–] yoavlavi@programming.dev 5 points 1 year ago* (last edited 1 year ago)

Nickel looks like something akin to Nix (JSON with functions), whereas August's goal is to allow you to quickly write a snippet that expands to your target document (e.g. via an editor extension) like Emmet. You can think of August like a snippet or shortcut to typing (or editing) a document rather than its own configuration language

[–] yoavlavi@programming.dev 16 points 1 year ago (2 children)

I heard that they've named it the "SwitchCube Advance SP 3DS"

[–] yoavlavi@programming.dev 4 points 1 year ago

Multiple, they don't have to accept input but they can like in the DuckDuckGo example. The idea is to set up easy to type commands you can execute quickly

 
  1. Go to Settings ➜ Accessibility ➜ Siri
  2. Turn on "Type to Siri"
  3. Go to the Shortcuts app
  4. Create shortcuts that ask for input with short names (they're not case sensitive)
  5. Your iPhone now has a command palette

A screenshot of an iPhone with Siri being typed to and running a shortcut with the name "dg". The shortcut searches DuckDuckGo. The input is "Siri as a command palette".

 
  1. Go to Settings ➜ Accessibility ➜ Siri
  2. Turn on "Type to Siri"
  3. Go to the Shortcuts app
  4. Create shortcuts that ask for input with short names (they're not case sensitive)
  5. Your iPhone now has a command palette
[–] yoavlavi@programming.dev 1 points 1 year ago* (last edited 1 year ago)

It's more readable and maintainable than ECMAScript regular expressions, which it compiles into

[–] yoavlavi@programming.dev 9 points 1 year ago* (last edited 1 year ago) (3 children)

I wouldn't consider Melody a new flavour of regex as it compiles to ECMAScript regular expressions.

I'd consider being more verbose than regular expressions as a great thing for what this project aims to do, regular expressions are very write optimized which is the wrong (IMO) tradeoff to make in a shared codebase (or even your personal code that's more than a few days old) where code is read much more often.

[–] yoavlavi@programming.dev 8 points 1 year ago

Awesome idea, will definitely take it into consideration when that feature is available. Melody actually has a VSCode extension with highlighting and snippets, could be added to that

[–] yoavlavi@programming.dev 20 points 1 year ago (5 children)

That's not supported yet but is planned (see the "reverse compiler" feature in the README)

view more: next ›