frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: QLCodePreview, syntax highlighting in Finder's Quick Look

https://konstruukt.com/projects/qlcodepreview/
1•realityloop•1h ago
In 2012 I forked QLColorCode, a Quick Look plugin, to add the Drupal file types I worked with every day at the time. I kept that fork going for about a decade. Apple deprecated the whole .qlgenerator format that used some time ago. On current macOS the old code previewer just doesn't load, and you can't port it either as it colored code by shelling out to external tools, while the modern replacement (Quick Look app extensions) runs in a sandbox that won't let you spawn anything.

So this is a rewrite in Objective-C with its own highlighter using per-language compiled regexes running inside the extension's sandbox, no external processes. A 2 MB Objective-C file highlights in about 140 ms end to end, so space-bar preview still stays snappy.

It covers 51 languages (130+ filetypes) out of the box. Font, themes, line numbers and extension-to-language overrides are configurable in the app, and settings reach the sandboxed extension through a shared defaults domain.

Builds are universal but I've only tested on Apple Silicon, and macOS 12 is the floor. Install is available via Homebrew or direct download.

Development was AI assisted as most are now, I made all the decisions and spent time specifically optimizing for performance. I don't think it's too sloppy, and is working very well for me at least.

The source is on GitHub under the MIT license.

Comments

realityloop•1h ago
In 2012 I forked QLColorCode, a Quick Look plugin, to add the Drupal file types I worked with every day at the time. I kept that fork going for about a decade. Apple deprecated the whole .qlgenerator format that used some time ago. On current macOS the old code previewer just doesn't load, and you can't port it either as it colored code by shelling out to external tools, while the modern replacement (Quick Look app extensions) runs in a sandbox that won't let you spawn anything.

So this is a rewrite in Objective-C with its own highlighter using per-language compiled regexes running inside the extension's sandbox, no external processes. A 2 MB Objective-C file highlights in about 140 ms end to end, so space-bar preview still stays snappy.

It covers 51 languages (130+ filetypes) out of the box. Font, themes, line numbers and extension-to-language overrides are configurable in the app, and settings reach the sandboxed extension through a shared defaults domain.

Builds are universal but I've only tested on Apple Silicon, and macOS 12 is the floor. Install is available via Homebrew or direct download.

Development was AI assisted as most are now, I made all the decisions and spent time specifically optimizing for performance. I don't think it's too sloppy, and is working very well for me at least.

I care about privacy, so It doesn't phone home at all, the only stats I get are from Github's download counts.

The source is on GitHub under the MIT license.

The AI industry is a complete mess [video]

https://www.youtube.com/watch?v=e2zjpCqTmyo
1•miletus•2m ago•0 comments

At Work, AI Is Mandatory. After Work, It's Forbidden

https://medium.com/@yalovoy/at-work-ai-is-mandatory-after-work-its-forbidden-d12bbd78851c
1•zero-ground-445•4m ago•0 comments

Pentagon Creates 'Autowarcom' to Expand AI and Drone Capabilities

https://www.reuters.com/world/pentagon-creates-autowarcom-expand-ai-drone-capabilities-2026-09-30/
1•m463•5m ago•0 comments

Show HN: Visi – Excel as a CLI

https://github.com/albert-yu/visi
1•albert-yu•6m ago•0 comments

Maylang – A self-hosted systems language compiled with LLMs

https://github.com/mirged/maylang
1•mirged•15m ago•1 comments

OpenAI fires three workers over mishandling 'sensitive information'

https://www.bbc.com/news/articles/c6y9z9r4ejzwo
3•geox•16m ago•0 comments

Best-of-Agent-Harnesses – Ranked list of 167 AI agent harnesses, rescored weekly

https://github.com/ryanalberts/best-of-agent-harnesses
3•peter_d_sherman•17m ago•0 comments

How Singapore's government-run dating service works

https://www.singapore-samizdat.com/p/how-singapores-government-run-dating-service-firstdate-works
2•danielfoster•18m ago•0 comments

Show HN: Simply @dotlink in ChatGPT web,space or dot to access local files,tools

https://github.com/abird-ai/dotlink/
1•logxroot•20m ago•0 comments

Pentagon launches Office of Religious Affairs, will report directly to Hegseth

https://www.militarytimes.com/news/pentagon-congress/2026/10/01/pentagon-launches-office-of-relig...
3•embedding-shape•20m ago•0 comments

Show HN: A userspace only nwing client for Tailscale nw

https://github.com/krishnakumar4a4/tail-userspace
1•krishnakumar4a4•23m ago•0 comments

Pg_redact: Content-aware PII redaction with Jev, enforced in Postgres

https://neon.com/blog/pg-redact-content-aware-pii-redaction-with-jev-enforced-in-postgres
1•thruflo22•26m ago•0 comments

Someone Torturing LLMs in a Robot Prison Has Triggered the Dumbest Debate in AI

https://www.404media.co/someone-torturing-llms-in-a-robot-prison-has-triggered-the-dumbest-debate...
2•Refreeze5224•32m ago•0 comments

Exhaling may speed up reaction times

https://www.sciencenews.org/article/reaction-times-sync-breathing-brain
1•wawayanda•36m ago•0 comments

Can your Postgres survive a bad query?

https://clickhouse.com/blog/can-your-postgres-survive-a-bad-query
2•saisrirampur•37m ago•0 comments

Luainstaller: "Pyinstaller" for Lua [video]

https://www.youtube.com/watch?v=ctYfIRZeuYc
1•linzhangrun•40m ago•0 comments

CIRCT – An experimental effort to apply MLIR and LLVM to hardware design tools

https://circt.llvm.org
1•peter_d_sherman•41m ago•0 comments

Apex: Agentic coding for mobile and web, fluent in React

https://apex.callstack.com/
1•handfuloflight•41m ago•0 comments

Nazi Germany had no hope of making an atomic bomb, uranium cubes reveal

https://www.science.org/content/article/nazi-germany-had-no-hope-making-atomic-bomb-uranium-cubes...
6•xqcgrek2•46m ago•0 comments

Ask HN: Programming Codex/Claude to code for a duration

1•senor_digimon•46m ago•2 comments

Toronto hospital to expand permanent housing program that reduces ER visits

https://www.cbc.ca/news/canada/toronto/ont-dunn-house-9.7365728
2•BiraIgnacio•47m ago•0 comments

AI decompiling and combining Games: The Skate 3 in MW2 Mod is Unbelievable [video]

https://www.youtube.com/watch?v=I6BkcPdKQ8U
1•reimertz•48m ago•0 comments

Forget 'superintelligence': error-prone AI nearly sparked world war three

https://www.theguardian.com/commentisfree/2026/oct/01/forget-superintelligence-error-prone-ai-nea...
2•pseudolus•49m ago•1 comments

Praxis-1

https://runway.com/research/introducing-praxis-1
2•gmays•50m ago•0 comments

Bevy - a refreshingly simple data-driven game engine built in Rust

https://bevy.org/
1•reimertz•53m ago•0 comments

Our AI Midwife

https://www.astralcodexten.com/p/our-ai-midwife
1•semiquaver•55m ago•1 comments

Show HN: Sovereign-NB: Sub-microsecond bare-metal neural engine in Rust (UEFI)

https://github.com/msndsn123a/Sovereign-NB
1•msndsn123a•59m ago•0 comments

KernelBench: Can LLMs Write GPU Kernels? – Benchmark and Toolkit, Torch –> CUDA

https://github.com/ScalingIntelligence/KernelBench
3•peter_d_sherman•1h ago•0 comments

Martian Chaos Terrain

https://en.wikipedia.org/wiki/Martian_chaos_terrain
3•tiagod•1h ago•0 comments

Show HN: I made a bullet heaven game no one seems showing intresting

https://store.steampowered.com/app/5170580/Blend_Hunter_Smoothie_Bullet_Heaven/
2•sacravenger•1h ago•2 comments