Better HN
topnewbestaskshowjobs
Log inSign up

dominiek

298 karma · joined Jan 7, 2008 (18y ago) · 76 submissions

http://dominiek.com/
Submissions

1.

Ask HN: What agentic directory structure do you use?

7 points · by dominiek · 5mo ago · 3 comments

2.

AI as a Context Compiler(dominiek.substack.com ↗)

3 points · by dominiek · 6mo ago · discuss

3.

Show HN: Promptcellar – capture every Claude Code prompt as JSONL in your repo(github.com ↗)

6 points · by dominiek · 6mo ago · discuss

comment 7mo ago · link · parent

I think these system prompts reveal a couple of things about Claude Code and agentic tools in genereral.

1. Adding MCP/plugins creates a lot of overhead in the context window. For example you can see Figma taking up large base prompt and tool listings.

2. As agentic wrappers get more bloated, the system prompt grows. The memory facility is a good example. It's a wholly unimpressive mechanism taking up a large part of the context window.

3. Perhaps the most revealing thing is the security constraints that are just part of the prompt. The "auto mode" for permissions is just part of the system prompt.

As impressive as LLMs are, it seems that the only way to control this statistical beast is to add stuff to the base prompts. "IMPORTANT: Don't talk about goblins".

5.

Claude Code wire trace reveals 13,000 words base prompt(twitter.com ↗)

6 points · by dominiek · 7mo ago · 1 comment

6.

Principles of Using AI Professionally(dominiek.substack.com ↗)

1 points · by dominiek · 1y ago · discuss

7.

From "Vibe Coding" to Artisanal Production Engineering(dominiek.substack.com ↗)

7 points · by dominiek · 1y ago · discuss

8.

Product Market Fit in the Age of AI(dominiek.substack.com ↗)

1 points · by dominiek · 1y ago · discuss

9.

Steeplejack takes down chimney brick by brick (1979) [video](youtube.com ↗)

3 points · by dominiek · 3y ago · 1 comment

10.

Bedrock Core – Template for Kubernetes and Mongo and Node and React (KMNR)(github.com ↗)

1 points · by dominiek · 4y ago · discuss

comment 5y ago · link · parent

"Any application that could be done on a blockchain could be better done on a centralized database. Except crime."

What if the actual crime is committed by those that control our money...

Saifedean Ammous' book "The Bitcoin Standard" gives an excellent history of hard money and shows that any new form of hard money will inevitably replace the lesser form (e.g. from the silver standard to the gold standard).

Crypto is composed of interesting projects and scams. Gambling and speculations are symptoms of a wider problem of debased currency and a lack of hard money.

Bitcoin fixes this...

Talking about Bitcoin in the same vain as Crypto shows a profound lack of understanding of history both past and recent when looking at Bitcoin.

While people trade their little Pokemon NFTs Bitcoin will be doing what Bitcoin has been doing from the beginning: Staying exactly 21 million bitcoin - the scarcest and most accessible form of hard money the world has ever seen. It's a black hole sucking in monetary inflation.

1 Bitcoin = 1 Bitcoin.

comment 5y ago · link · parent

Keep in mind that I have no control on the client. No manufacturer has implemented TLS let alone sFTP.

If I had any influence on the protocol it would be HTTPs. This is why I wasn't expecting to build an FTP server in 2020.

comment 5y ago · link · parent

Exactly my reasoning. See my comment above for more info.

I'm making the maintenance of this less painful by doing a hacking/debugging session with manufacturers once a month where we hook up many devices and fix issues. After addressing most edge cases fewer are coming up now (despite a relentless stream of new cheaply manufactured devices)

comment 5y ago · link · parent

I had considered this, but decided against this for a couple of reasons:

- Scaling requirements are relatively low. Even though we're dealing with 10 thousands of devices, the amount of firware updates at a given time to those devices is minimal. Our main scaling challenges are around OCPP over websockets. Story for another day.

- I have bad memories of ProFTPd etc buffer overflow exploits.

- I wanted something simple that could bridge between FTP and our cloud persistence (MongoDB and Cloud Storage).

- I found this Node.js library that I since then forked: https://github.com/autovance/ftp-srv - The great thing about this library is that it allows a quick implementation of a custom filesystem.

- For Kubernetes pods the file system should really be treated as a /tmp - which we are doing.

- When a charge station connects, the FTP username/password is a temporary generated set of tokens that is checked against our MongoDB.

Essentially, I'm using FTP as a throwaway here.

If you think through this you can imagine it would be quite a lift to accomplish this with an existing FTP server.

comment 5y ago · link · parent

The main reason for using Node.js is because the rest of our stack is Node.js: https://bedrock.io

We use MongoDB as persistence and have existing wrappers for dealing with Google Cloud Storage.

Since it's an isolated service we could've used a different implementation language.

In our case Node.js in our existing Kubernetes environment was the least amount of friction

comment 5y ago · link · parent

Yep VPN. The devices don't support TLS. (We have Cloudflare in front of other services)

comment 5y ago · link · parent

Amazing.

I never thought I would say this, but I actually implemented an FTP server in 2020. This was needed to support firmware updates to specific hardware (Electric Vehicle charging stations). Apparently embedded software developers choose FTP whenever a spec doesn't specify how binary file transfers should work.

It was kind of amusing getting FTP to work in a modern cloud environment. I run a single Kubernetes pod with a Node.js based FTP server optimized for one thing: Transferring files between FTP and Google Cloud Storage. A series of ports are specified in the Docker file to enable passive FTP transfers.

Even more amusing was the number of varieties in which FTP was implemented by different hardware manufacturers. I regularly had to dive into the FTP libraries to add support for crazy edge cases (tcpflow in kubectl exec -it is your friend!). Example: one device added a newline in the middle of a command (USER\n myusername)..

The latest curve ball I received this week is that a certain firmware version of a Qualcomm modem chip cannot deal with the size of the IP packets coming from our FTP server... Fun stuff!

18.

Docker container for exporting HTML to PDF/PNG (using Chrome)(github.com ↗)

5 points · by dominiek · 5y ago · discuss

19.

Deploying a production ready Kubernetes Node+React platform in under 15 minutes(blog.bedrock.io ↗)

2 points · by dominiek · 6y ago · discuss

20.

Show HN: Bedrock.io, a solid template for building on Kubernetes, Node and React(bedrock.io ↗)

25 points · by dominiek · 6y ago · 4 comments

21.

Reverse Engineering a Xinjiang Police Mass Surveillance App(hrw.org ↗)

177 points · by dominiek · 7y ago · 22 comments

22.

Recycling is Garbage (1996)(nytimes.com ↗)

2 points · by dominiek · 8y ago · discuss

23.

How I Spent One Week Giving Birth to Pregnant Crypto Kitties(hackernoon.com ↗)

2 points · by dominiek · 8y ago · discuss

24.

Understanding Decentralized Exchanges(medium.com ↗)

3 points · by dominiek · 8y ago · discuss

25.

Node API boilerplate using tools du jour: ES6/Await, Express/JWT, Jest, Docker(github.com ↗)

7 points · by dominiek · 9y ago · discuss

comment 10y ago · link · parent

Unfortunately, the current state of web apps have many layers of frameworks, transpilers and tooling. So yes, this is relatively simple by today's standards.

comment 10y ago · link · parent

Shoot. Looks like the .gitignore excluded the `public/js` dir which was used for the watchify output.

If you pull now it should work. Sorry about that.

28.

Simple JavaScript App Skeleton (React, Bootstrap, Babel/ES6, StandardJS, Browserify..)(github.com ↗)

3 points · by dominiek · 10y ago · 4 comments

123