Better HN
topnewbestaskshowjobs
Log inSign up

ndyg

52 karma · joined May 29, 2014 (12y ago) · 38 submissions

Hi, I'm @ndyg. I love tinkering and cobbling together Small Tools.

I make: https://stacks.cross.stream

I'd like to garden: https://ndyg.co

Tinkering: https://github.com/cablehead

Fascinated by cosy communities and good faith communication as tools, aiming to explore life's intricacies and uplift everyone's journey.

Submissions

comment 3mo ago · link · parent

I'm a dual Australian / Canadian citizen. I'm disappointed Australia hasn't been more active in their support for Canada. Commonwealth countries should be sticking together.

comment 4mo ago · link · parent

if you like bash web apps, you'll love https://github.com/cablehead/http-sh

comment 7mo ago · link · parent

Something I find myself saying a lot, Nushell is a better `jq` than `jq`

comment 8mo ago · link · parent

The original sin wasn't reactivity. It was putting state in the wrong place. Making the client state heavy. It's been downhill since then. Now you need to duplicate state handling between your frontend language and your backend language. Which leads to "isomorphic" backends seeming like a good idea.

5.

Show HN: HTTP-nu – Nushell-scriptable HTTP server with SSE / Datastar(github.com ↗)

14 points · by ndyg · 9mo ago · 2 comments

comment 10mo ago · link · parent

I'm using fjall v2 in the Rust event streaming store, cross.stream (`xs`) https://github.com/cablehead/xs

`xs` is for personal scale so fjall is fairly overkill performance-wise. marvin_j97's benchmark work and deep dives into different database systems is incredible though. Looking forward to updating to v3.

comment 11mo ago · link · parent

Fjall

https://github.com/fjall-rs/fjall

comment 1y ago · link · parent

If you like lo-fi ways to attach cli commands to http end-points, you may also like:

- https://github.com/cablehead/http-nu or for POSIX - https://github.com/cablehead/http-sh

comment 1y ago · link · parent

astroturf campaign?

comment 1y ago · link · parent

My understanding is Turbo is more aligned with htmx. Common practice in Turbo are generally patterns of last resort in Datastar.

e.g. Datastar prescribes a single long lived SSE endpoint that owns the state for the currently connected user's view of the world / app, while common practice in Turbo is to have many small endpoints that return a fragment of html when requested by the client.

comment 1y ago · link · parent

The preferred pattern addresses your concern about scattered logic: a single long-lived SSE endpoint that "owns" the user's view of the app. That endpoint updates their field of view as appropriate - very much inspired by game dev's immediate mode rendering.

I've a tutorial that demonstrates this with Nushell as the backend: https://datastar-todomvc.cross.stream

An interesting characteristic of Datastar: it's very opinionated about the shape of your backend but extremely unopinionated about how you implement that shape.

comment 1y ago · link · parent

I'm curious, what do you think is missing from Caddy that has you looking for something new?

comment 1y ago · link · parent

I maintain a Rust-based CLI HTTP server that embeds Nushell. It’s a handy little Swiss-army knife that’s replaced Nginx and Caddy for my personal projects.

You can serve a folder of static assets like this:

http-nu :3021 '{|req| .static "www" $req.path}'

https://github.com/cablehead/http-nu

comment 1y ago · link · parent

The approach you describe requires host to have an open ssh port you can access. quic + nat hole punching works around this.

comment 1y ago · link · parent

The friction Dave describes where changing one param effects all the other params in an animation brought to mind this section of an old Bret Victor talk: https://www.youtube.com/watch?v=a-OyoVcbwWE&t=716s

16.

I'm Unsatisfied with Easing Functions(davepagurek.com ↗)

83 points · by ndyg · 1y ago · 82 comments

comment 1y ago · link · parent

A basic use case, to tie it back to the topic :)

When I'm working on a remote machine, it's nice to be able to easily pass things back and forth between it and my local laptop. I start a stream on the remote server and use `dumbpipe` to make the stream available on my local laptop.

```

# remote

xs serve ./store --expose :3001 ; dumbpipe listen-tcp --host 127.0.0.1:3001

# local

dumbpipe connect-tcp --addr 127.0.0.1:3001 <ticket>

$env.XS_ADDR ":3001" ; .cat

```

I can then do things like:

```

# local

cat local.file | .append local.file

# remote

.head local.file | .cas

```

Or register a local handler for the topic "pasteboard" that puts the contents on my local clipboard. Then, from the remote machine, I can run: `"foo" | .append pasteboard`

comment 1y ago · link · parent

Iroh is intriguing. Dumbpipe is magical, and its implementation is easy to understand. I use dumbpipe daily to expose cross-stream (https://github.com/cablehead/xs) stores I run on different servers to my local laptop's `xs` client.

comment 1y ago · link · parent

I'm finding I increasingly produce entire changesets without opening an editor: just `claude code`, or my own cobbled-together version of `claude code`, and `git diff` to preview what's happening. For me, the future of these tools isn't "inside" a text editor. If you want to poke around, my “cobbled‑together Claude Code” lives here: https://github.com/cablehead/gpt2099.nu

comment 2y ago · link · parent

Noting Codebuff is manicode renamed.

It's become my go-to tool for handling fiddly refactors. Here’s an example session from a Rust project where I used it to break a single file into a module directory.

https://gist.github.com/cablehead/f235d61d3b646f2ec1794f656e...

Notice how it can run tests, see the compile error, and then iterate until the task is done? Really impressive.

For reference, this task used ~100 credits

21.

Fjall 2.2- featuring multi-writer transaction support(fjall-rs.github.io ↗)

13 points · by ndyg · 2y ago · 1 comment

22.

Announcing Fjall 2.0 – embedded LSM Rust storage engine(fjall-rs.github.io ↗)

2 points · by ndyg · 2y ago · discuss

23.

An overview of Leveled Compaction in LSM-trees(fjall-rs.github.io ↗)

3 points · by ndyg · 2y ago · discuss

24.

Exploring Bloom Filter Theory: Fjall's Approach in LSM Storage(fjall-rs.github.io ↗)

3 points · by ndyg · 2y ago · discuss

comment 2y ago · link · parent

> As they should! Building with htmx works a lot better if you play to its strengths. You can send JSON-formatted form bodies, if you really insist. But you shouldn’t!

This excellent essay overlooked a '*':

* unless you are using bash + jq for your backend, in which case, JSON-formatted form bodies are quite reasonable.

comment 2y ago · link · parent

This is fantastic. I'd love to live in a world populated by tens of thousands of incredible, practical projects like Atuin, whose maintainers earn a good living. Best of luck, Ellie!

comment 2y ago · link · parent

Yeah, I'm finding it difficult to create a prompt which doesn't result in Error: 400 Your request was rejected as a result of our safety system. Your prompt may contain text that is not allowed by our safety system.

Even when I don't think I'm attempting particular weird instructions!

comment 3y ago · link · parent

For anyone else immediately caught out by the separation of http1 and http2 builders in Hyper v1: auto negotiation is still available via hyper-utils:

https://github.com/hyperium/hyper-util/blob/v0.1.0/src/serve...

comment 3y ago · link · parent

This is great. Thank you for all your hard work Sean!
12