HNHacker News
TopNewBestAskShowJobs

AndyKluger

43 karma · joined April 24, 2022

submissionscomments
AndyKluger··on Pipeline-Oriented Programming [video]
If anyone's interested to see the slide examples but in Factor, I wrote them out:

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
  ;
AndyKluger··on Show HN: Wave – Modern Open-Source Terminal (macOS and Linux)
Just in case you haven't tried it and want another option, Wezterm runs anywhere and does pretty much everything. But not AI/webapp stuff.
AndyKluger··on Show HN: PyApp – runtime installer for Python applications
Thanks, I look forward to this!

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?

AndyKluger··on Show HN: Perfect Pitch Puzzle – a musical Wordle daily ear training game
Thanks, after trying on Firefox Mobile, I didn't have any luck getting audio on Chrome Mobile either. Which browsers are tested and expected to work on Android?
AndyKluger··on Designing a programming language to speedrun Advent of Code
Ever played with a more stack-oriented / concatenative / postfix language, like Factor?

  "," split [ string>number 5 > ] count
or

  "," split [ string>number ] map [ 5 > ] count
or

  "," split [ string>number 5 > ] filter length
AndyKluger··on Show HN: Pypipe – A Python command-line tool for pipeline processing
Cool!

I 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.

https://github.com/CZ-NIC/pz

AndyKluger··on Noteful – a fun, free app to learn to read music and basic music theory
Sorry I haven't mastered linking lemmy communities yet, and that one doesn't work well for me now that I test it. More directly: https://programming.dev/c/devlogs
AndyKluger··on Noteful – a fun, free app to learn to read music and basic music theory
Well this recently created Lemmy community is empty so far, but programming.dev/c/devlogs is an option. https://lemmy.guide/link?target=!devlogs@programming.dev
AndyKluger··on Dish dealt space-debris fine for misparking satellite
Why isn't the solution for the offender to pay the cost of cleanup, and for the cleanup to happen?
AndyKluger··on Dish dealt space-debris fine for misparking satellite
So will the money be used to clean up the debris?
AndyKluger··on Show HN: Config-file-validator – CLI tool to validate all your config files
I feel like I missed it, but what kind of validation rules are used?
AndyKluger··on The Ashley Book of Knots (1944)
I just want to say that I enjoy and recommend Philippe Petit's opinionated Why Knot? book.
AndyKluger··on The Ashley Book of Knots (1944)
But it can be fixed in that regard by turning it into a constrictor knot instead, IIUC.
AndyKluger··on Foot – A fast, lightweight and minimalistic Wayland terminal emulator
Wezterm does pretty much everything.
AndyKluger··on Foot – A fast, lightweight and minimalistic Wayland terminal emulator
Not in New York, at least. Foo rhymes with Blue and Flu, while Foot rhymes with Soot and Put (same vowel sound as Book, Look, Cook, etc.).
AndyKluger··on Organic Maps: An open-source maps app that doesn't suck
That makes sense, but my problems are in my own area, already downloaded.
AndyKluger··on An INI Critique of TOML (2021)
I know I'm being repetitive in all these config file threads, but you might like NestedText, which only provides strings, lists, and maps.
AndyKluger··on An INI Critique of TOML (2021)
> The only one that is close to equal in simplicity is JSON, which only allows booleans, numbers, strings and arrays/dictionaries.

NestedText only allows strings, arrays, and dictionaries, has a proper specification, and you never need to escape anything.

AndyKluger··on An INI Critique of TOML (2021)
Absolutely agree!

If you haven't checked it out, NestedText takes this approach.

AndyKluger··on An INI Critique of TOML (2021)
> IMO, configuration file formats should only ever have text as primitive type. Anything else should be defined in another layer.

I very much agree. If you haven't checked it out, NestedText is an excellent format that takes this sentiment to heart.

AndyKluger··on Organic Maps: An open-source maps app that doesn't suck
I've been trying to like it, but it doesn't have named places results like I'd really want, and it even fails to locate straight up addresses sometimes. I'm keeping it installed for now and will keep checking back.
AndyKluger··on XML is better than YAML – Hear me out
Unfortunately that's not a spec, only a (language-specific) tool.

For a similar spec that offers no types outside of string, list, and dict, there's NestedText.

AndyKluger··on XML is better than YAML – Hear me out
> The problem is there's no clean way to abstract strings, bools, lists, objects, trees, etc. into a human-readable configuration syntax that does not have a footgun.

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.

AndyKluger··on What is wrong with TOML? (2019)
NestedText 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.
AndyKluger··on What is wrong with TOML? (2019)
But the whitespace handling involved is an extra complication, at least the provided example fails to be parsed by `tomli`, which is following the currently release TOML spec: https://github.com/hukkin/tomli/issues/199
AndyKluger··on What is wrong with TOML? (2019)
Thanks for your work!

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.

AndyKluger··on What is wrong with TOML? (2019)
Have you looked at NestedText?
AndyKluger··on jq 1.7
A couple more alternatives:

https://github.com/kellyjonbrazil/jello

https://github.com/wwkimball/yamlpath

AndyKluger··on The force that shapes everything around us: Parking
https://subwaysheds.com/
AndyKluger··on Bees can learn, remember, think and make decisions
Portia as a comparison and a name is also used in the scifi book Echopraxia, a sequel to Blindsight, by Peter Watts.

I recommend these things to folks who like augmented humans, weird brains, aliens, and vampires.

← PreviousPage 2 of 3Next →