JJOmeo
Re:Rust inadequate for text compression codecs?
on Friday March 07, 2025 @08:02PM (#43296541)
I had a similar experience writing image decompressors. There wasn't enough to internally manage for rust to provide any benefit, and the gritty fast algorithmic code is just simpler to do with C++. C wasn't going to get me the flexibility and generic patterns I was going for.
Re:Show HN: Printercow – Turn any thermal printer into an API endpoint
on Tuesday January 21, 2025 @07:57PM (#42787335)
I've got a bunch of thermal printers in my work lab that definitely don't have this but they all support ESC/POS. They're all currently produced kiosk style printers.
Re:Show HN: Printercow – Turn any thermal printer into an API endpoint
on Tuesday January 21, 2025 @07:53PM (#42787303)
Some of these show up as USB to serial converters and while you do need appropriate kernel drivers for that, they'll never be recognized as a "printer". Still usable though.
Re:Show HN: Printercow – Turn any thermal printer into an API endpoint
on Tuesday January 21, 2025 @07:49PM (#42787279)
This could be plain software on any computer with network and a serial port. Not sure if the product is tied to RP hardware but it certainly wouldn't have to be. I work with thermal printers controlled by significantly less powerful hardware still running Linux, and still easily hit physical speed limits.
I'd rather see this as a pure software daemon that can run anywhere.
Re:Test if a number is even
on Tuesday January 14, 2025 @07:33PM (#42705910)
Wait until you hear what C compilers try to do if you divide by a constant. Hint: they don't need to use a division instruction in most cases.
Re:How do you backup your Android?
on Thursday January 09, 2025 @08:33PM (#42651610)
Google for contacts and small stuff. Photos get copied to a home server which itself gets backed up. I've used rsync front-ends, non-standard apps which I don't like (PhotoSync). It's been plain SMB shares accessed through CX Filebrowser recently, I haven't cared to get fancy. I'm always using this SMB share with various devices anyway because tons of things "just work" like VLC on Chromecast.
Re:Operating System in 1,000 Lines – Intro
on Thursday January 09, 2025 @01:01AM (#42642085)
I find this kind of thing most useful for microcontrollers and real-time embedded systems that don't require full networking. I've used many of these concepts but maybe not all at once on what many would call "bare metal" systems with no OS.
Audio gizmos like cheap synths, LED nodes, things you want booting really fast with well-bounded functionality. An OS can get in the way with this kind of system if all you really need is some timers and simple I/O. You may still want a primitive scheduler, sane interrupt dispatching, and filesystems.
Re:Writing a simple pool allocator in C
on Wednesday January 08, 2025 @11:58PM (#42641761)
Pool allocators don't walk the list or search anything though. All interactions are only at the list head and O(1), as all free nodes are just that, free and equal.