News for hackers. Stuff that matters.

cryo

Re:Ask HN: What alternatives to GitHub are you using? on Tuesday August 12, 2025 @10:51AM (#44877007)
Yes I meant Wireguard, haha spend too much time working with Wireshark lately.
Re:Ask HN: What alternatives to GitHub are you using? on Tuesday August 12, 2025 @10:40AM (#44876836)
Ah I see, thanks. I only clicked on the first link assuming this was the project page.
Re:Ask HN: What alternatives to GitHub are you using? on Tuesday August 12, 2025 @10:34AM (#44876742)
Do I miss something? The site only shows a stream but nothing to describe or show the project.
Re:Ask HN: What alternatives to GitHub are you using? on Tuesday August 12, 2025 @10:19AM (#44876525)
For personal projects: GIT barebone repositories + Wireguard to access them from all my devices.

OSS work is mirrored to Codeberg and SourceHut. For actions I try to make sure that local builds, and cross compilation to Windows, macOS, armhf and arm64, is always working to not soley depend on Github Actions.

Re:A Global Look at Teletext on Monday August 11, 2025 @06:30PM (#44870218)
That was a nice read. I didn't know there were vector graphics in these systems. Found Canadian description of the Telidon "Picture Description Instructions (PDI)"

https://publications.gc.ca/collections/collection_2020/isde-...

Re:Thread – the tech we can't use or teach on Saturday May 11, 2024 @03:29AM (#40326608)
The Matter specification has a similar touch. The devil is in the details and due clever marketing people don't understand what they are praising.

The real problem here is people who invest money in this anyway.

After a long period of rejecting CMake for "simple" build.sh and Makefile projects, nowadays CMake is my goto choice. Top features:

- supports all kinds of compilers, even Watcom for DOS and Windows <all versions> projects.

- cross platform compiliation inlc. MSVC

- my #1 feature wide IDE support + usage from command line.

Re:A small Rust binary indeed (2022) on Sunday February 18, 2024 @04:59PM (#39423885)
Interesting, would be cool to see that applied to a real world rust program.

Today I got rid of libc on the Windows version of a commandline tool to flash firmware via USB, which freed 7 kB of the .exe size.

The original version was done in C++ plus Qt and was ca. 3.5 MB (.exe and dependencies).

The optimized C version is 14 kB compressed with upx.

FYI Code: https://github.com/dresden-elektronik/gcfflasher

Re:Sourcehut: Network Outage on Wednesday January 10, 2024 @11:24AM (#38940295)
This is a nice status page, clear and honest progress updates.
Re:Building a high performance JSON parser on Sunday November 05, 2023 @09:43AM (#38151541)
I've made a JSON parser which works like this too. No dynamic memory allocations, similar to the JSMN parser but stricter to the specification.

Always nice to be in control over memory :)

https://sr.ht/~cryo/cj

Re:Alan Kay: Doing with Images Makes Symbols [video] on Monday October 23, 2023 @04:57AM (#37983189)
The video shows Sutherlands Sketchpad from 1963, I highly recommend looking in the related thesis for more details on how it works.

Technical report of the thesis: https://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-574.pdf

Re:"Hacker News" for retro computing and gaming on Sunday October 15, 2023 @05:55AM (#37888429)
Love it, just earned a spot in my bookmark toolbar.
Re:My personal C coding style as of late 2023 on Monday October 09, 2023 @04:44AM (#37818345)
I'd love to have him in a team. He truly cares exactly how code works and analyzes/fuzzes the hell out of everything.

I don't agree with all stylistic choices in his code, but the level of experience and skills are far above most C developers.

Re:The World’s Oldest Active Torrent Turns 20 Years Old on Sunday September 24, 2023 @06:19AM (#37631765)
Reminds me everytime how awesome Torrents are.

I don't always run this one but have multiple backups of the .torrent and the video just in case.

Re:Simplify your C preprocessor usage on Wednesday August 16, 2023 @07:35PM (#37155302)
Nice haven't seen this one yet.
The choice of Cap'n Proto seems odd to me

https://veilid.com/framework/rpc

It is an interesting project, but I'm sceptical. Veilid appears to be focused on their implementation in Rust, not so much as reference implementation but as the thing itself. I was hoping for a W3C like definition of a standard, not "bound" to their implementation or Cap'n Proto.

Re:Show HN: Gemini web client in 100 lines of C on Wednesday July 19, 2023 @03:25PM (#36791839)
Is BearSSL still actively maintained? My approach is abstracting SSL away so the API can be exchanged wit OpenSSL, MbetTLS, etc.
Re:Bye Bye Ubuntu, Hello Manjaro. How Did We Get Here? on Thursday June 08, 2023 @05:31PM (#36249443)
Same here, every system is different, but my main desktop Arch installation is kicking since 6 years now with absolute minimal maintenance issues. Perhaps 1-2 times per year maximum things need to be fixed manually in super rare cases.
I've recently compiled my JSON parser with Borland Turbo C compiler (from 1989) on FreeDOS. It feels good to see the code builds with compilers covering 34 years. ANSI C is still remarkable.
Hi HN, here is my take for a minimal structured format. It doesn't specify anything other than the structure, and leaves the data type specifics to the application.

Show HN: Bitmatch – ANSI C bit pattern matching

https://git.sr.ht/~cryo/bitmatch

Hi HN,bitmatch is my new library to do bit pattern matching and data extraction, similar to Regular Expressions.It has no dependencies, libc usage or dynamic memory allocations.I'm sharing the code as Open Source since the question for bit pattern matching came up on Stack Overflow but there aren't that many options for C out there.

( Read More... | no comments | on HN )
Last time I cloned the repository it was already over 20 GB, holy ***.

Having read the spec up and down a few times I think it's sound, my main complain would be the device attestation and blockchain usage for OTA. Also Matter inherited the very same thing that sucked most for Zigbee: manufacturer specific "enhancements" are valid, what could possibly go wrong.

Re:Intel One Mono Typeface on Saturday May 13, 2023 @06:27AM (#35927100)
Wow that one was new to me, looks pretty good.
Re:Please don’t upload my code on GitHub on Monday May 08, 2023 @04:43AM (#35859443)
Sourcehut. I like how they approach things there, and am happy to pay for my account to support them.
The Pico runs at 133 MHz. I don't know how the slint-ui works under the hood but the shown demo (with DMA speedup) could be much more snappy imho. For that the code needs to be aligned to what the SPI protocol of the display offers instead of treating it as a general purpose frame buffer. For example while scrolling not sending the whole area but only the part which becomes visible.

Older »