lua-patterns
toml.io
Our great sponsors
lua-patterns | toml.io | |
---|---|---|
1 | 4 | |
27 | 42 | |
- | - | |
0.0 | 7.4 | |
over 1 year ago | 4 months ago | |
Rust | HTML | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
lua-patterns
-
The Norway Problem
If you want automatic built-in string validation, one option that seems particularly interesting is to use a variant of Lua patterns, which are weaker and easier to understand than regular expressions, but still provide a significant degree of "sanity" for something like an email. The original version works on bytes and not runes, but you could simply write a parser that works on runes instead, and the pattern-matching code is just 400 old and battle-tested lines of C89.
Lua patterns have also shown up in other places, such as BSD's httpd, and an implementation for Rust:
https://www.gsp.com/cgi-bin/man.cgi?section=7&topic=PATTERNS
https://github.com/stevedonovan/lua-patterns
http://lua-users.org/wiki/PatternsTutorial
toml.io
-
toml++ 2.4.0 released
Key links: - Homepage: https://marzer.github.io/tomlplusplus/ - Repository: https://github.com/marzer/tomlplusplus - "What is TOML?": https://toml.io/
-
AreWeDown? a self-hosted alternative to uptime robot
Yeah, I find the whitespacing really annoying. I recommend TOML instead - it's much nicer.
-
They must hate the JS part in JSON
That's why TOML exists. It's like INI, but standardized, has arrays, dictionaries and multiline strings. And it's not a nightmare to implement like YAML, which has a 23449-word spec (TOML has 3339)
- The Norway Problem
What are some alternatives?
jsonnet - Jsonnet - The data templating language
ron - Rusty Object Notation
dhall-lang - Maintainable configuration files
edn - Extensible Data Notation
yamllint - A linter for YAML files.
tomlplusplus - Header-only TOML config file parser and serializer for C++17.
strictyaml - Type-safe YAML parser and validator.
cson - CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.
Gotify - A simple server for sending and receiving messages in real-time per WebSocket. (Includes a sleek web-ui)