https://programming.dev/comment/6718327
Here's a bit:
: add1 ( x -- x' ) 1 + ;
: square ( x -- x' ) dup * ;
: double ( x -- x' ) 2 * ;
: demo1 ( -- n )
5
add1
square
double
;43 karma · joined April 24, 2022
https://programming.dev/comment/6718327
Here's a bit:
: add1 ( x -- x' ) 1 + ;
: square ( x -- x' ) dup * ;
: double ( x -- x' ) 2 * ;
: demo1 ( -- n )
5
add1
square
double
;For some possibly useful documentation feedback: I got confused.
Normally I would install a tool, check out its `--help` content, then maybe try it out. I think based on my attempts to do this and read the docs, is that this is not currently possible for PyApp. Instead you must have a Python app you'd like to setup for compilation before you can install PyApp at all (at least when using the cargo installation method). Is that right? And then when installing the tool it will also go ahead and compile the currently configured Python package?
"," split [ string>number 5 > ] count
or "," split [ string>number ] map [ 5 > ] count
or "," split [ string>number 5 > ] filter lengthI was going to ask how this differs in broad strokes from pz, but when I went to get the reference link found that pz hasn't been updated in two years, so that's one big difference.
NestedText only allows strings, arrays, and dictionaries, has a proper specification, and you never need to escape anything.
If you haven't checked it out, NestedText takes this approach.
I very much agree. If you haven't checked it out, NestedText is an excellent format that takes this sentiment to heart.
For a similar spec that offers no types outside of string, list, and dict, there's NestedText.
My favorite take on this by far is that any types beyond string, list, and dict don't belong in the format at all, and should be left to the ingesting code. I started on the path thanks to StrictYAML and found a home with NestedText.
I first encountered strictyaml years ago and have used it, happily. I especially appreciate that you made clear arguments for what ought to be excluded from a configuration format itself, and how proper validation ultimately requires real code anyway.
I was always disappointed however that your project didn't amount to a formal specification (at least at the time, unsure if that's changed).
More recently I came to know and love NestedText, which seems very close to what a strictyaml spec could be/have been. I'm curious if you've engaged with that project/format, and what you think of it.
I recommend these things to folks who like augmented humans, weird brains, aliens, and vampires.