Better HN
topnewbestaskshowjobs
Log inSign up

lulzx

295 karma · joined Aug 15, 2017 (9y ago) · 72 submissions

https://lulzx.com
Submissions

comment 2mo ago · link · parent

which ones do you want it to run? I can test out

comment 2mo ago · link · parent

I made cuda-metal btw (for mac kek), https://github.com/lulzx/cuda-metal

3.

Show HN: CuMetal – Run CUDA Programs on Apple Silicon via Metal(github.com ↗)

2 points · by lulzx · 3mo ago · discuss

4.

AI Is Superhuman Wherever the Scoreboard Is Cheap(future.lulzx.space ↗)

2 points · by lulzx · 3mo ago · 1 comment

comment 4mo ago · link · parent

I have been trying for cuda -> metal, to run it on mac, https://github.com/lulzx/cuda-metal

comment 9mo ago · link · parent

Every few months someone proposes a new standard so AI agents can interact with websites. WebMCP, llms.txt, agent metadata layers.

The accessibility tree already solves this. Labels, roles, states, actions, input formats, validation feedback, it's all there. A screen reader user and an AI agent need the exact same information. If your site works for one, it works for the other.

If you find something an agent can't do through the accessibility layer, you've found something a disabled person's assistive technology can't do either. So fix accessibility. Don't build a parallel system.

I filed an issue on the W3C WebMCP repo asking for a concrete use case that (1) can't be handled by the accessibility tree, (2) isn't better served by a backend API, and (3) wouldn't also benefit assistive technology if added to the accessibility layer.

Curious if anyone can produce one.

7.

Accessibility Is All You Need – Why agent protocols for the web are redundant(github.com ↗)

3 points · by lulzx · 9mo ago · 1 comment

comment 10mo ago · link · parent

That's good to know, I wasn't aware of it, I have updated to using a github action they recommend (https://github.com/marketplace/actions/setup-zig-compiler)

For the copyright thing, I understand that there's legit ongoing debate around all this AI-assisted coding and copyrightability.

In this case of zpdf, while Claude Code did a lot of the heavy lifting on implementation, there was a real effort in architecture decisions, iterative prompting/refinement, debugging, testing, benchmarking.

My intent is zero restrictions: use it, fork it, sell it, whatever. WTFPL captures that spirit perfectly for me. It's as permissive as legally possible while being upfront about not caring.

The goal is just to make a useful tool freely available.

Edit: I have changed it to CC0.

comment 10mo ago · link · parent

tools are tools.

comment 10mo ago · link · parent

hasn't world moved on from these things already?

comment 10mo ago · link · parent

Fair point. I won't submit here again until I've put in the work to make something that respects people's time to evaluate it. Lesson learned. :)

comment 10mo ago · link · parent

this is more like a quick test for python bindings, the zig files have tests within them for broad range of things.

comment 10mo ago · link · parent

thanks! :)

comment 10mo ago · link · parent

works now!

ΑΛΕΞΑΝΔΡΟΣ ΤΡΙΑΝΤΑΦΥΛΛΙΔΗΣ Καθηγητής Τμήματος Βιολογίας, ΑΠΘ

     ΝΙΚΟΛΕΤΑ ΚΑΡΑΪΣΚΟΥ
     Επίκουρη Καθηγήτρια Τμήματος Βιολογίας, ΑΠΘ

     ΚΩΝΣΤΑΝΤΙΝΟΣ ΓΚΑΓΚΑΒΟΥΖΗΣ
     Μεταδιδάκτορας Τμήματος Βιολογίας, ΑΠΘ





     Γονιδιώματα
     Δομή, Λειτουργία και Εφαρμογές

comment 10mo ago · link · parent

I have updated the licence to WTFPL.

I'll try my best to make it a really good one!

comment 10mo ago · link · parent

sorry, I haven't yet figured out non-latin with tounicode references.

comment 10mo ago · link · parent

fixed.

comment 10mo ago · link · parent

The accuracy difference is marginal (1-2%) but the speed difference is massive.

comment 10mo ago · link · parent

Claude Code.

comment 10mo ago · link · parent

added a comparison, will improve further. https://github.com/Lulzx/zpdf?tab=readme-ov-file#comparison-...

also, added python bindings.

comment 10mo ago · link · parent

added python bindings!

comment 10mo ago · link · parent

I have now made parallel by default and added an option to enable multiple threads.

I haven't tested without SIMD.

comment 10mo ago · link · parent

I built a PDF text extraction library in Zig that's significantly faster than MuPDF for text extraction workloads.

~41K pages/sec peak throughput.

Key choices: memory-mapped I/O, SIMD string search, parallel page extraction, streaming output. Handles CID fonts, incremental updates, all common compression filters.

~5,000 lines, no dependencies, compiles in <2s.

Why it's fast:

  - Memory-mapped file I/O (no read syscalls)
  - Zero-copy parsing where possible
  - SIMD-accelerated string search for finding PDF structures
  - Parallel extraction across pages using Zig's thread pool
  - Streaming output (no intermediate allocations for extracted text)
What it handles:

  - XRef tables and streams (PDF 1.5+)
  - Incremental PDF updates (/Prev chain)
  - FlateDecode, ASCII85, LZW, RunLength decompression
  - Font encodings: WinAnsi, MacRoman, ToUnicode CMap
  - CID fonts (Type0, Identity-H/V, UTF-16BE with surrogate pairs)

24.

Zpdf: PDF text extraction in Zig(github.com ↗)

217 points · by lulzx · 10mo ago · 87 comments

25.

Show HN: Zs3 – S3 server in ~1K lines of Zig, 250KB binary, zero dependencies(github.com ↗)

42 points · by lulzx · 11mo ago · 1 comment

26.

Show HN: TinyDOCX – Word/ODT library (14x smaller than docx)(github.com ↗)

6 points · by lulzx · 11mo ago · discuss

27.

Show HN: The equation for smoke vortices also describes 100M° fusion plasma(github.com ↗)

3 points · by lulzx · 11mo ago · discuss

comment 11mo ago · link · parent

on cloudflare workers, the bundle limit makes 226KB massive.

comment 11mo ago · link · parent

I have added it!
123