Better HN
topnewbestaskshowjobs
Log inSign up

hugodutka

1,186 karma · joined Jan 5, 2019 (7y ago) · 99 submissions

https://hugodutka.com/contact/
Submissions

1.

Agent session transcripts are precious, keep them(quesma.com ↗)

2 points · by hugodutka · 1mo ago · discuss

comment 1mo ago · link · parent

Source code of the mod: https://github.com/chasmlol/SkyCraft

3.

SkyCraft – Minecraft inside Skyrim [video](youtube.com ↗)

1 points · by hugodutka · 1mo ago · 2 comments

comment 3mo ago · link · parent

Cloning a template is IO-heavy. You can speed it up further by putting postgres on a ramdisk.

5.

How to build OpenClaw in 400 lines of code(hugodutka.com ↗)

2 points · by hugodutka · 9mo ago · discuss

6.

Show HN: Blink – Build custom AI agents in TypeScript for your team(github.com ↗)

1 points · by hugodutka · 9mo ago · discuss

7.

Show HN: Blink – self-hosted, open-source PaaS for running AI agents(github.com ↗)

3 points · by hugodutka · 9mo ago · discuss

comment 1y ago · link · parent

Have you considered https://github.com/containerd/overlaybd? It seems to offer very similar features to blockdiff.

9.

Show HN: Wush-Action – SSH into GitHub Actions over WireGuard(github.com ↗)

8 points · by hugodutka · 1y ago · discuss

10.

Show HN: Wush Action – SSH into GitHub Actions(github.com ↗)

2 points · by hugodutka · 1y ago · discuss

comment 1y ago · link · parent

I haven't used claude-task-master before, but based on the README, it looks like it's an AI agent that integrates well with IDEs. In contrast, AgentAPI lets you control other agents - like Claude Code or OpenAI Codex - using HTTP calls instead of typing commands into the terminal. For example, you could use AgentAPI to control Claude Code from a custom frontend, such as a native desktop application.

12.

Show HN: AgentAPI – HTTP API for Claude Code, Goose, Aider, and Codex(github.com ↗)

163 points · by hugodutka · 1y ago · 15 comments

13.

Solving GitHub Issues with Claude Code(coder.com ↗)

10 points · by hugodutka · 1y ago · discuss

comment 2y ago · link · parent

PyMuPDF, a PDF library for Python.

comment 2y ago · link · parent

I think so. I'd normalize the text first: lowercase it and remove all non-alphanumeric characters. E.g for the phrase "What now?" I'd create these trigrams: wha, hat, atn, tno, now.

comment 2y ago · link · parent

I used this approach extensively over the past couple of months with GPT-4 and GPT-4o while building https://hotseatai.com. Two things that helped me:

1. Prompt with examples. I included an example image with an example transcription as part of the prompt. This made GPT make fewer mistakes and improved output accuracy.

2. Confidence score. I extracted the embedded text from the PDF and compared the frequency of character triples in the source text and GPT’s output. If there was a significant difference (less than 90% overlap) I would log a warning. This helped detect cases when GPT omitted entire paragraphs of text.

17.

How to Use Iptables(hugodutka.com ↗)

3 points · by hugodutka · 2y ago · discuss

18.

How to Use Iptables(hugodutka.com ↗)

13 points · by hugodutka · 2y ago · 2 comments

comment 2y ago · link · parent

It detects if a message contains the ”Final Answer” substring preceded by a specific emoji. The emoji is there to make the substring relatively unique.

comment 2y ago · link · parent

You're right that sections reference each other, and sometimes reference other regulations. By creating the "plan for the junior lawyer", the LLM can reference multiple related sections at the same time. In the second step of the example plan in the post there's a reference to "Articles 8-15", meaning 7 articles that should be analyzed together.

The system is indeed limited in the way that it cannot reference other regulations. We've heard it's a problem from users too.

21.

Answering Legal Questions with LLMs(hugodutka.com ↗)

170 points · by hugodutka · 2y ago · 149 comments

22.

AzerothCore: Self-Hosted World of Warcraft 3.3.5a Server(github.com ↗)

167 points · by hugodutka · 2y ago · 75 comments

comment 3y ago · link · parent

One of the applications are ZK-Rollups [1] which allow developers to move heavy computation off a blockchain. The blockchain receives the results and only validates proofs that they are valid. This is especially useful on Ethereum because its computational throughput is pretty low.

There's also ZCash [2], which is a cryptocurrency that lets you make untraceable transactions. This is in stark contrast to Bitcoin or Ethereum, where transaction information is available publicly to everyone. They have a series of blog posts [3] on the math that actually makes it work under the hood.

[1] https://ethereum.org/en/developers/docs/scaling/zk-rollups/

[2] https://z.cash

[3] https://electriccoin.co/blog/snark-explain/

comment 3y ago · link · parent

This is the WASM blob and it's 1.1 MB uncompressed. https://github.com/rhashimoto/wa-sqlite/blob/master/dist/wa-.... No issues - it's cached by cloudflare.

We're using IndexedDB. Here's a writeup on alternatives https://github.com/rhashimoto/wa-sqlite/issues/85 and a benchmark https://rhashimoto.github.io/wa-sqlite/demo/benchmarks.html

comment 3y ago · link · parent

With something called Rich-CRDTs - they were invented by Electric's CTO. They have a section in the docs and some blog posts dedicated to it: https://electric-sql.com/docs/reference/consistency#rich-crd...

comment 3y ago · link · parent

There's a workaround - if a table has an "electric_user_id" column then a user with that id (based on their JWT) can only read rows which have the same id. It's basic but it works for us. https://electric-sql.com/docs/reference/roadmap#shapes

comment 3y ago · link · parent

We have run into queries that corrupted the database client-side, but fortunately that doesn't propagate into postgres itself. In that case we had to drop the client-side db and resync from a clean state.

The corruption was also caught by sqlite itself - it threw a "malformed disk image" error and stopped responding to any further queries.

Also bugs around syncing some kinds of data - one bug that's already been fixed was that floats without decimal points would not get synced. https://github.com/electric-sql/electric/issues/506

In general electric's team is very responsive and fixes bugs when we bring them up.

comment 3y ago · link · parent

Every postgres migration is done through an Electric proxy and it converts it into a corresponding sqlite migration that it can apply later on the client. In case of a migration that would be somehow breaking you can also drop the client-side sqlite database and resync state from postgres.

comment 3y ago · link · parent

We've been using https://github.com/electric-sql/electric for real-time sync for the past month or so and it's been great. Rather than make you think about CRDTs explicitly, Electric syncs an in-browser sqlite db (WASM powered) with a central postgres instance. As a developer, you get local-first performance and real-time sync between users. And it's actually faster to ship an application without writing any APIs and just using the database directly. Only downside is Electric is immature and we often run into bugs, but as a startup we're willing to deal with it in exchange for shipping faster.

30.

Emojis – Generate detailed Slack emojis from short prompts(github.com ↗)

2 points · by hugodutka · 3y ago · discuss

1234