News for hackers. Stuff that matters.

cipherself

Re:On Rendering Diffs on Friday May 29, 2026 @03:55PM (#48328362)
For anyone else who's suffering, paste this in the console in devtools:

  document.getElementsByTagName('main')[0].style.margin = '0 auto';
It's quite exciting how far we've come from the modern exposition of world models by David Ha and Jürgen Schmidhuber in 2018 https://worldmodels.github.io/
Re:Ask HN: How are you doing RAG locally? on Thursday January 15, 2026 @10:31AM (#46633944)
Here's a Dockerfile that will spin up postgres with pgvector and paradedb https://gist.github.com/cipherself/5260fea1e2631e9630081fb7d...

You can use pgvector for the vector lookup and paradedb for bm25.

Re:Ask HN: What Are You Working On? (January 2026) on Sunday January 11, 2026 @01:26PM (#46578182)
I am trying to get the TLA+ tools to run completely in the browser https://github.com/tlaplus/tlaplus/tree/master/tlatools
Re:Five Years of Tinygrad on Wednesday December 31, 2025 @04:12AM (#46442607)
I don't think this is bad, if you know Python then most of the code will be fine for you. I think you're probably referring to pm_reduce_collapse, but while it looks daunting at first, it really isn't when you consider the alternatives, I'd be curious on how you'd improve it short of creating a DSL.
Re:Parsing Advances on Tuesday December 30, 2025 @03:25PM (#46437563)
I have written parsers using parser combinators in Haskell and Clojure. I find that ML-like (Haskell, OCaml, StandardML) languages generally are great at writing parsers, even hand-written ones in it is a superior experience.

In this case, this was a project at $EMPLOYER in an existing codebase with colleagues who have never seen Haskell code, using Haskell would've been a major error in judgement.

Re:Parsing Advances on Tuesday December 30, 2025 @07:19AM (#46432582)
One anecdote in the same vein, a couple of months ago, I wanted to parse systemd-networkd INI files in Python and the python built-in ConfigParser [0] and pytest's iniconfig parser [1] couldn't handle multiple sections with the same name so I ended up writing 2 parsers, one using a ParserCombinator library and one by hand and ended up using the latter given it was much simpler to understand and I didn't have to introduce an extra dependency.

Admittedly, INI is quite a simple format, hence I mention this as an anecdote.

[0] https://docs.python.org/3/library/configparser.html

[1] https://github.com/pytest-dev/iniconfig

Re:Capsudo: Rethinking Sudo with Object Capabilities on Saturday December 13, 2025 @06:00AM (#46253704)
I have used systemd services before to do this to run an application, I had a user created specifically for the application, and I defined the capabilities the application needed via CapabilityBoundingSet and AmbientCapabilities [0] and I used a lot of stuff from [1] to restrict the application e.g. the sandboxing facilities, restricting the allowed syscalls [2], ...etc. systemd also comes with a useful command systemd analyze security [3]

[0] https://www.freedesktop.org/software/systemd/man/latest/syst...

[1] https://www.freedesktop.org/software/systemd/man/latest/syst...

[2] https://www.freedesktop.org/software/systemd/man/latest/syst...

[3] https://www.freedesktop.org/software/systemd/man/latest/syst...

Re:Building a Simple Search Engine That Works on Monday November 17, 2025 @03:32AM (#45951812)
That was a great book, I wonder what the 2025 equivalent of it is...
Re:Show HN: Spam classifier in Go using Naive Bayes on Sunday November 16, 2025 @08:13PM (#45950034)
12 (13?) years ago I had also written a Naïve Bayes classifier in Perl https://github.com/cipherself/NaiveBayes_perl

IIRC, next thing on my TODO list was to add vectorization. Also (like OP) it uses log probabilities to avoid floating-point underflow.

Re:Heartbeats in Distributed Systems on Friday November 14, 2025 @05:59AM (#45925731)
10 years ago I've implemented SCAMP (a gossip protocol) in Clojure, you might find it interesting, the implementation is quite small https://github.com/cipherself/gossip
Re:How often does Python allocate? on Thursday November 06, 2025 @07:10PM (#45842171)
> I recommend using the `dir` function in a REPL

A while back I wrote this https://mohamed.computer/posts/python-internals-cpython-byte..., perhaps it's interesting for people who use `dir` and wonder what some of the weird things that show up are.

Assuming that's what he meant, why would it be considered baseline versus anything else? I am genuinely curious because I'd like to know more about issues people face with this or that vector store in general.
Re:Code from MIT's 1986 SICP video lectures on Tuesday October 21, 2025 @06:35AM (#45654325)
Moreover, you can have SICP inside emacs by just downloading a package from Melpa:

https://melpa.org/#/sicp

Got it, I think this might make sense for a "conversation" type of search not for an instant search feature because lowest latency is gonna be too high IMO.
S3 Vectors is hands down the SOTA here

SOTA for what? Isn't it just a vector store?

I am working on search but rather for text-to-image retrieval, nevertheless, I am curious if by that's all baked into Azure AI search you also meant synthetic query generation from the grandparent comment. If so, what's your latency for this? And do you extract structured data from the query? If so, do you use LLMs for that?

Moreover I am curious why you guys use bm25 over SPLADE?

Re:Docker Hub Is Down on Thursday September 25, 2025 @03:28AM (#45370162)
While I haven’t tried --pull=missing, I have tried --pull=never, which I assume is a stricter version and it was still attempting the HEAD request.
Re:Docker Hub Is Down on Wednesday September 24, 2025 @07:56PM (#45367457)
I’ll admit I haven’t checked before posting, perhaps an admin can merge both submissions and change the URL on the one you linked to the one in this submission.
Re:Docker Hub Is Down on Wednesday September 24, 2025 @07:53PM (#45367427)
In the case where you still have an image locally, trying to build will fail with an error complaining about not being able to load metadata for the image because a HEAD request failed. So, the real question is, why isn't there a way to disable the HEAD request for loading metadata for images? Perhaps there's a way and I don't know it.
Re:Mother of All Demos (1968) on Tuesday September 16, 2025 @11:18AM (#45263480)
There was a way to experience this demo interactively https://dougengelbart.org/content/view/374/

Unfortunately, it seems like it's not working properly anymore. I just messaged Bret Victor and maybe he can get it back in working order or can reach out to someone.

In the list of features, it mentions:

> vision-based search for comprehensive document understanding

but it's not clear to me what this means, is it just vector embeddings for each image in every document via a CLIP-like model?

In addition, I'd be curious what's the rationale behind using the plethora of databases, given the docs on running it in production spins them all up, I assume they're all required, for instance I'd be curious on the trade-offs between using postgres with something like pg_search (for bm25 support, which vanilla postgres FTS doesn't have) vs using both postgres and ElasticSearch.

The docs are also very minimal, I'd have loved to see at least 1 example of usage.

Re:Autology: A Lisp with access to its own interpreter on Monday March 24, 2025 @03:11PM (#43464423)
This in turn, is based on black[0] which is an extension to scheme, which in turn is inspired by [1]

[0] http://pllab.is.ocha.ac.jp/~asai/Black/

[1] https://www.lirmm.fr/~dony/enseig/MR/notes-etudes/Reflective...

Re:Pygfx on Friday October 25, 2024 @04:01PM (#41949090)
Pygfx uses webgpu while VisPy uses OpenGL.
Re:Test and learn how DMARC, SPF and DKIM work on Saturday May 11, 2024 @06:24PM (#40331022)
This is ~albeit not being very deep~ very cool.
I'm curious, why would that be worth mentioning?

Older »