Hemera :ms_snow_leopard: on Nostr: France is IMO doing cool stuff with things like publicodes: https://publi.codes/ Its ...
France is IMO doing cool stuff with things like publicodes:
https://publi.codes/
Its basically almost-readable french to define complex dependencies and rules.
For example:
toots per day: 15 toot
total cost:
somme:
- 150 word * 0.1 €/word
- produit:
- toots per day
- 12.13 €/toot
Will allow you to calculate 'total cost'.
The whole thing also does type checking! It is also plain text!!
It can even do self-referential or approximate calculations.
An example on their website
The big thing is, they have their whole social security calculations on npm! https://www.npmjs.com/package/modele-social
You can download it here and play with it or in their browser tool to simulate whatever you might be interested in or can come up with!
Definitely something I wish that could be used in more public places to encode rules in a way that they can be re-used.
#opensource #france #publicodes
https://publi.codes/
Its basically almost-readable french to define complex dependencies and rules.
For example:
toots per day: 15 toot
total cost:
somme:
- 150 word * 0.1 €/word
- produit:
- toots per day
- 12.13 €/toot
Will allow you to calculate 'total cost'.
The whole thing also does type checking! It is also plain text!!
It can even do self-referential or approximate calculations.
An example on their website
The big thing is, they have their whole social security calculations on npm! https://www.npmjs.com/package/modele-social
You can download it here and play with it or in their browser tool to simulate whatever you might be interested in or can come up with!
Definitely something I wish that could be used in more public places to encode rules in a way that they can be re-used.
#opensource #france #publicodes