Content
@
0 reply
0 recast
0 reaction
Chase
@harden-hardys
One of the innovations we're using @vaporware is a new alternative to S-expressions, called Rex. I'm super excited for Lisp devs to check it out. Rex has a very simple parser and supports macro's like Lisp, but is much more readable imo. Lots of layouts too https://git.sr.ht/~plan/plunder/tree/master/item/doc/REX.md
2 replies
1 recast
4 reactions
Lemma
@lemma
This is pretty interesting. How linked to Urbit is @vaporware? Or not at all, beyond just sharing some ideas?
2 replies
0 recast
2 reactions
Lemma
@lemma
On Rex itself I’d be curious to see some examples for macros, or rather any larger expression with sub expressions that are evaluated and others that aren’t. S-exps can get pretty hairy and I’m mostly curious what R-exps would look like!
1 reply
0 recast
1 reaction
Chase
@harden-hardys
This is the "col" macro (used when the last arg is a callback lambda). e.g. : (x y z) < foo x y | add x | add y z Expands to: - foo x y & (x y z) | add x | add y z Where `-` and `|` are function application. Definition starts at line 112: https://git.sr.ht/~plan/plunder/tree/master/item/sire/sire_17_sug.sire
1 reply
0 recast
1 reaction
Chase
@harden-hardys
I should note that devs will not need to write backend code using this language. There's an intermediate representation that can be targeted by other higher level languages directly. We're still evaluating options, but might pick something like Roc lang or Elm.
0 reply
0 recast
1 reaction