frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Your hex editor should color-code bytes

https://simonomi.dev/blog/color-code-your-bytes/
78•tobr•2d ago

Comments

bandrami•1h ago
Emacs's hexl-mode does this, incidentally, though annoyingly by default it makes all faces the same color. I never understood why it defines the faces but then doesn't customize them.
js8•1h ago
I think semantic coloring (based on structure) is more useful. Also (can't help as someone working with z/OS), if you really want to make hex output readable, I recommend using big-endian machine.
a_t48•1h ago
I've started doing this with hashes in a CLI I'm working on. For slow prints, it's somewhat helpful https://asciinema.org/a/aD38Pk88CZgSZqtq but for debug dumps with many many hashes it really helps readability and tracking hashes across lines.
asibahi•1h ago
When I read this article a few days ago it inspired me to create my own hex viewer : https://ar-ms.me/thoughts/3sl-a-sweet-hex-utility/

The cool thing about it imo (outside of colors) is a `--windows` flag. Which separates the hex view into partitions: so `-w 2:-3:5` shows the first two bytes on a line, then skips three bytes, then shows the next 5 bytes on a line, then the rest of the file. Easy to use combined with a terminal's up arrow.

psychoslave•1h ago
That said, even colored these dumps still feels unappealing to me — so yes this is admittedly subjective gut jumping in the conversation. I get that occult form can also be an attractive force.

The post put on the table an interesting point about how to improve the presentation layer to fit what’s human cognition is good at spotting (in general, or at least for the expected audience with some training). And it does start proposing something with these color schemes. But isn’t it kind of missing the forest for the tree? Actually why do we even have rendering with [012345678ABCDEF], when a specific set of (colored/imaged?) glyphs would be able to make more obvious what’s on the table? Or even beyond the hexadecimal grouping, wouldn’t be more relevant to render something "intuitively" far more easy to grap without several layer of internalized interpretation through acculturation?

GuB-42•10m ago
I can't think of anything better than a hex dump for representing raw binary data. I don't mean that there are no others, equally good representations, but hex dumps win because of familiarity.

Of course, if you know about the format, there are better ways, but it goes beyond the scope of a hex editor, though the most advanced ones support things like template files and can display structured data, disassembly, etc...

azalemeth•1h ago
I really like hexyl [1], which does this by default.

https://github.com/sharkdp/hexyl

kqr•14m ago
The author uses hexyl as an example of trying, but not doing it right.
Archelaos•36m ago
This article made me think how I could use similar techinques to colour code the data in database tables. Has anyone here tried that and has some recommendations where to start, etc.?
xyx0826•31m ago
If you analyze binary files often, I highly recommend binvis - http://binvis.io/. It creates a colored minimap for files it loads and has two available arrangements. Pixel color is based on range of bytes, eg ASCII/null bytes/FF bytes. Besides, it’s a pretty basic hex viewer that runs in your browser. The minimap is extremely powerful for identifying interesting areas and patterns in unknown data.
pratyahava•12m ago
> it’s a pretty basic hex viewer that runs in your browser

excuse me? "basic" and "runs in your browser" together sound very contradictory to me. while doing things i actually feel (yes, emotionally) much better when there is no browser open on my machine, but only text editors, vcs gui and file managers, and terminals of course. and sometimes i reject an idea to start a browser just thinking how much ram it will take (ha, what a progress we have done - one github issue tab, with text only and no images, takes 180mb of ram).

franga2000•7m ago
It's basic bause it does like two things. It's not advanced or complex. HN is also a basic forum, even though it runs in a browser.
dspillett•18m ago
Everything should try do some basic syntax highlighting IMO. Not too much, or it just becomes a sea of formatting that doesn't help at all. It is surprising how much difference a little splash of colour makes. If possible, always include configuration options for the user though, so those with colour-blindness issues can tweak things to their needs, those who are just fussy can make the output fit with their finely adjusted system-wide colour schemes¹, and even better, where you can, allow bold/italic/other as well as colours so that those who barely see colour at all can play too.

Of course none of this helps those using screen-readers and other tech, so make sure that all your fancy colouring & such is additive so if it is all “lost” no meaning is absolutely lost with it.

--------

[1] Some people can be very vocal about this, more so than if highlighting isn't possible at all. If you give any output formatting they'll expect you to match, or be able to be made to match, their preferred style.

I am building a cloud

https://crawshaw.io/blog/building-a-cloud
351•bumbledraven•5h ago•169 comments

Alberta startup sells no-tech tractors for half price

https://wheelfront.com/this-alberta-startup-sells-no-tech-tractors-for-half-price/
1771•Kaibeezy•17h ago•564 comments

Your hex editor should color-code bytes

https://simonomi.dev/blog/color-code-your-bytes/
81•tobr•2d ago•13 comments

Apple fixes bug that cops used to extract deleted chat messages from iPhones

https://techcrunch.com/2026/04/22/apple-fixes-bug-that-cops-used-to-extract-deleted-chat-messages...
606•cdrnsf•13h ago•149 comments

We found a stable Firefox identifier linking all your private Tor identities

https://fingerprint.com/blog/firefox-tor-indexeddb-privacy-vulnerability/
702•danpinto•16h ago•200 comments

Fundamental Theorem of Calculus

https://david.alvarezrosa.com/posts/fundamental-theorem-of-calculus/
5•dalvrosa•8h ago•0 comments

5x5 Pixel font for tiny screens

https://maurycyz.com/projects/mcufont/
632•zdw•3d ago•129 comments

Our newsroom AI policy

https://arstechnica.com/staff/2026/04/our-newsroom-ai-policy/
53•zdw•4h ago•35 comments

A True Life Hack: What Physical 'Life Force' Turns Biology's Wheels?

https://www.quantamagazine.org/what-physical-life-force-turns-biologys-wheels-20260420/
77•Prof_Sigmund•2d ago•15 comments

The Onion to Take over InfoWars

https://www.nytimes.com/2026/04/20/business/infowars-alex-jones-the-onion.html
161•lxm•2d ago•46 comments

Over-editing refers to a model modifying code beyond what is necessary

https://nrehiew.github.io/blog/minimal_editing/
366•pella•16h ago•206 comments

Website streamed live directly from a model

https://flipbook.page/
283•sethbannon•16h ago•77 comments

Tempest vs. Tempest: The Making and Remaking of Atari's Iconic Video Game

https://tempest.homemade.systems
77•mwenge•8h ago•25 comments

Technical, cognitive, and intent debt

https://martinfowler.com/fragments/2026-04-02.html
265•theorchid•17h ago•68 comments

An amateur historian's favorite books about the Silk Road

https://bookdna.com/best-books/silk-road
15•bwb•1d ago•12 comments

Arch Linux Now Has a Bit-for-Bit Reproducible Docker Image

https://antiz.fr/blog/archlinux-now-has-a-reproducible-docker-image/
58•maxloh•8h ago•13 comments

Parallel agents in Zed

https://zed.dev/blog/parallel-agents
229•ajeetdsouza•16h ago•122 comments

Ping-pong robot beats top-level human players

https://www.reuters.com/sports/ping-pong-robot-ace-makes-history-by-beating-top-level-human-playe...
120•wslh•18h ago•147 comments

Plexus P/20 Emulator

https://spritetm.github.io/plexus_20_emu/
19•hggh•3d ago•2 comments

Qwen3.6-27B: Flagship-Level Coding in a 27B Dense Model

https://qwen.ai/blog?id=qwen3.6-27b
849•mfiguiere•20h ago•393 comments

Scoring Show HN submissions for AI design patterns

https://www.adriankrebs.ch/blog/design-slop/
310•hubraumhugo•19h ago•222 comments

Borrow-checking without type-checking

https://www.scattered-thoughts.net/writing/borrow-checking-without-type-checking/
59•jamii•7h ago•15 comments

Ultraviolet corona discharges on treetops during storms

https://www.psu.edu/news/earth-and-mineral-sciences/story/treetops-glowing-during-storms-captured...
235•t-3•20h ago•65 comments

Verus is a tool for verifying the correctness of code written in Rust

https://verus-lang.github.io/verus/guide/
56•fanf2•2d ago•10 comments

Bodega cats of New York

https://bodegacatsofnewyork.com
196•zdw•5d ago•78 comments

Windows 9x Subsystem for Linux

https://social.hails.org/@hailey/116446826733136456
955•sohkamyung•1d ago•226 comments

Workspace Agents in ChatGPT

https://openai.com/index/introducing-workspace-agents-in-chatgpt/
138•mfiguiere•16h ago•52 comments

The Forgotten History of Hershey's Electric Railway (1916) in Cuba

https://spectrum.ieee.org/hershey-electric-railway-cuba
5•defrost•1d ago•0 comments

The handmade beauty of Machine Age data visualizations

https://resobscura.substack.com/p/the-handmade-beauty-of-machine-age
40•benbreen•19h ago•2 comments

What killed the Florida orange?

https://slate.com/business/2026/04/florida-state-orange-food-houses-real-estate.html
151•danso•2d ago•145 comments