frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

John Ternus to become Apple CEO

https://www.apple.com/newsroom/2026/04/tim-cook-to-become-apple-executive-chairman-john-ternus-to...
1727•schappim•11h ago•879 comments

Anthropic says OpenClaw-style Claude CLI usage is allowed again

https://docs.openclaw.ai/providers/anthropic
159•jmsflknr•4h ago•85 comments

A Roblox cheat and one AI tool brought down Vercel's platform

https://webmatrices.com/post/how-a-roblox-cheat-and-one-ai-tool-brought-down-vercel-s-entire-plat...
133•bishwasbh•4h ago•56 comments

Louis Zocchi, inventor of the d100, has died

https://icv2.com/articles/news/view/62176/r-i-p-louis-zocchi-the-godfather-dice
29•sgbeal•2h ago•7 comments

The Beauty of Bonsai Styles

https://longwoodgardens.org/blog/2023-05-17/beauty-bonsai-styles
52•lagniappe•4h ago•14 comments

How to make a fast dynamic language interpreter

https://zef-lang.dev/implementation
158•pizlonator•7h ago•21 comments

Salmon exposed to cocaine and its main byproduct roam more widely

https://www.science.org/content/article/cocaine-pollution-gives-salmon-wanderlust
17•1659447091•3h ago•4 comments

Show HN: Mediator.ai – Using Nash bargaining and LLMs to systematize fairness

https://mediator.ai/
53•sanity•17h ago•26 comments

Qwen3.6-Max-Preview: Smarter, Sharper, Still Evolving

https://qwen.ai/blog?id=qwen3.6-max-preview
617•mfiguiere•18h ago•326 comments

How a subsea cable is repaired

https://www.onesteppower.com/post/subsea-cable-repair
60•slicktux•4d ago•12 comments

Kimi vendor verifier – verify accuracy of inference providers

https://www.kimi.com/blog/kimi-vendor-verifier
253•Alifatisk•13h ago•21 comments

Types and Neural Networks

https://www.brunogavranovic.com/posts/2026-04-20-types-and-neural-networks.html
13•bgavran•2h ago•2 comments

A mad undertaking: An undefinitive guide to the Aadam Jacobs collection

https://aadamjacobscollection.org/
11•wise_blood•2h ago•1 comments

Prediction markets are breaking the news and becoming their own beat

https://www.niemanlab.org/2026/04/prediction-markets-are-breaking-the-news-and-becoming-their-own...
38•gnabgib•6h ago•39 comments

Jujutsu megamerges for fun and profit

https://isaaccorbrey.com/notes/jujutsu-megamerges-for-fun-and-profit
220•icorbrey•11h ago•104 comments

Ternary Bonsai: Top Intelligence at 1.58 Bits

https://prismml.com/news/ternary-bonsai
139•nnx•3d ago•40 comments

Tim Davis – Probabilistic engineering and the 24-7 employee

https://www.timdavis.com/blog/probabilistic-engineering-and-the-24-7-employee
30•kiyanwang•1d ago•12 comments

Air is full of DNA

https://www.nature.com/articles/d41586-026-01099-2
86•howrude•2d ago•17 comments

ggsql: A Grammar of Graphics for SQL

https://opensource.posit.co/blog/2026-04-20_ggsql_alpha_release/
408•thomasp85•19h ago•80 comments

Using Changesets in a polyglot monorepo

https://luke.hsiao.dev/blog/changesets-polyglot-monorepo/
7•lwhsiao•2h ago•3 comments

Japan's cherry blossom database, 1,200 years old, has a new keeper

https://www.nytimes.com/2026/04/17/climate/japan-cherry-blossom-database-scientist.html
95•caycep•3d ago•11 comments

Quantum Computers Are Not a Threat to 128-Bit Symmetric Keys

https://words.filippo.io/128-bits/
219•hasheddan•15h ago•78 comments

Monero Community Crowdfunding System

https://ccs.getmonero.org/ideas/
88•OsrsNeedsf2P•11h ago•52 comments

Soul Player C64 – A real transformer running on a 1 MHz Commodore 64

https://github.com/gizmo64k/soulplayer-c64
122•adunk•12h ago•30 comments

Brussels launched an age checking app. Hackers took 2 minutes to break it

https://www.politico.eu/article/eu-brussels-launched-age-checking-app-hackers-say-took-them-2-min...
214•axbyte•23h ago•106 comments

Modern Rendering Culling Techniques

https://krupitskas.com/posts/modern_culling_techniques/
141•krupitskas•2d ago•33 comments

All phones sold in the EU to have replaceable batteries from 2027

https://www.theolivepress.es/spain-news/2026/04/20/eu-to-force-replaceable-batteries-in-phones-an...
1214•ramonga•18h ago•1003 comments

Corner-Case RCU Implementations

https://people.kernel.org/paulmck/stupid-rcu-tricks-corner-case-rcu-implementations
6•luu•1d ago•1 comments

Kefir C17/C23 Compiler

https://sr.ht/~jprotopopov/kefir/
149•conductor•3d ago•14 comments

WebUSB Extension for Firefox

https://github.com/ArcaneNibble/awawausb
239•tuananh•20h ago•207 comments
Open in hackernews

Writing your own CUPS printer driver in 100 lines of Python (2018)

https://behind.pretix.eu/2018/01/20/cups-driver/
203•todsacerdoti•11mo ago

Comments

roywashere•11mo ago
Pretix is a very interesting piece of open source software for selling event tickets. It’s nice to see them venturing out to writing printer drivers for ticket printers! All the best for them.
behnamoh•11mo ago
https://gimp-print.sourceforge.io/ which uses CUPS helped me resurrect an old Canon printer for which the company refused to provide updated drivers on macOS.

I was about to throw it in the recycling/trash, but I just couldn't accept that a perfectly fine hardware was crippled because the software was not updated to work on the latest macOS versions. Perplexity pointed me to Gutenprint and it worked wonderfully! The only thing that doesn't work is the scanner functionality.

asveikau•11mo ago
Many years ago I remember Windows support vanished on a bunch of printers at the 32 to 64 bit transition. That was around the time I learned how printing on Linux and BSD worked, to save a printer or two.
fsckboy•11mo ago
>support vanished on a bunch of printers at the 32 to 64 bit transition

that was after the win16 to win32 transition when every single cutting edge tech Sony product I owned, many of them quite expensive (and designed for win98/winME because that was cutting edge), stopped working. I've never bought anything Sony since, and no regrets.

Some time later, Sony Pictures wanted something from me and I said, "I boycott Sony" and they said "we're a different company" and I said "change your trademark then, that's the whole point of trademark, reputation"

sherr•10mo ago
It was the rootkit on a CDROM that did it for me. Ever since then, I avoid Sony. As you say: reputation.
LargoLasskhyfv•11mo ago
Did you try http://sane-project.org for the scanner part? They have support for some Canons, maybe you're lucky?
exhilaration•11mo ago
I bought VueScan in 2014 specifically for a Canon scanner, looks like it's still around: https://www.hamrick.com/
saltcured•11mo ago
This takes me waaaaaaaay back to when I did my first bit of practical low-level programming. I wrote a little C program that translated PNM bitmaps into the wire format for my dusty 24-pin Epson dot matrix printer. I don't remember the details, but I used it with some plugin system involving Ghostview to print postscript documents from my first Linux system in the early 90s.
whycome•11mo ago
Is there an LLM specifically for this use case scenario?
a-ungurianu•11mo ago
I’m not clear what you’re asking with this question.

Do you mean a LLM to write printer drivers? For that I think any of the coding LLMs should be able to help

Or do you mean using an LLM to do the raster -> FGL format translation? While I’m sure it might be possible, feels like an awful waste of resources, and when it comes to printers, you kinda want the guarantee that what comes out is the same that comes in.

whycome•10mo ago
I was wondering about “domain specific LLM” for printer drivers.
userbinator•11mo ago
However, the license of the BOCA driver forbids using their driver to control printers of other vendors.

Since this is a printer, I interpret those the same way as "you're not allowed to use third-party ink": I don't care.

ale42•11mo ago
Personally, I don't either. But if you're a business, you probably need to care even if you don't want to.
userbinator•11mo ago
Enforceability of EULAs has always been a rather open-ended question.
carlos22•11mo ago
Especially in non common law countries like Germany or France. Not sure about drivers and other vendors but 3rd party ink or even patches to counters, hw modifications to "repair" (better to remove the planned obsolescence) are legal.
ValdikSS•11mo ago
Oh!

Take a look at EPSON printer driver, which prohibits you from:

1. Sharing the printer you own with anyone else unless they agree to the license of the driver (incl. business setup)

2. Sharing the printer over the internet unconditionally, because this allows to use the driver for people who did not agree to the license

3. Incorporating the driver in any "revenue generating product or service"

https://download.ebz.epson.net/la/linux/inkjet_for_linux.htm...

1. Grant of License.

[…] provided that the Software is used (i) only in a single location (e.g., a home or office or place of business), or in the case of a mobile device, on a Device owned or otherwise controlled by you, and (ii) only in connection with Epson Hardware owned by you. You may allow other users of the Epson Hardware connected to your network to use the Software, provided that you shall ensure that such users use the Software only in accordance with this Agreement. You agree to be responsible for and indemnify Epson for liabilities incurred as a consequence of use by such users.

3. Other Rights and Limitations.

[…] Further, you agree not to place the Software onto or into a shared environment accessible via a public network such as the Internet or otherwise accessible by others outside the single location referred to in Section 1 above.

You may not rent, lease, distribute, lend the Software to third parties or incorporate the Software into a revenue generating product or service.

ivolimmen•11mo ago
I currently own 7 printers. 6 I got from a small business owner who wanted them gone. He asked me to check them and give them away to others who needs them. Maybe I just just grab one and hook it to the internet and let others print stuff. Would be a nice social experiment and a big middle finger to the manufacturer and those stupid EULA's.
CableNinja•10mo ago
Youd want some sort of filter and ocr in between to prevent things that were prevalent in the days of faxes. All black pages, endless printing, etc. And ofc youd want some csam filter because you dont want to end up having printed that. Gl proving it wasnt you.

That being said, it would be an interesting thing to see what people would decide to send to a random printer on the internet

ValdikSS•11mo ago
>Unfortunately, CUPS sends us grayscale values and our printer only supports pixels that are either fully black or white. Since we do not want to drop grayscale values compeltely, we want to apply Dither.

CUPS can send black-and-white 1 bit data, dithered. It's just a matter of proper option in a PPD file. It could also handle rotation by itself.

Other than that, pretty good and accurate article! I bet you can write the driver (filter) even in <50 lines of Python code :P

dale_huevo•11mo ago
This is great.

Until now I thought CUPS drivers had to be written in C in order to link against its internal APIs.

Most inexpensive Chinese thermal printers ship with blatantly GPL violating drivers and they are precompiled binaries. Which means half the time they won't work in your situation, assuming you trust their probable malware in the first place.

Havoc•11mo ago
Ideally don't buy a thermal printer at all. The paper usually contains BPA. You found one that says BPA free? Yep they switched to BPS. Also toxic and harmful to reproductive health.

If you absolutely must - use a European supplier - both are banned there for thermal paper.

zrobotics•11mo ago
I was about to write an incredulous comment accusing you of licking receipts, but I thought I'd look into it first. It does appear that just handling thermal paper can expose you to BPA [0].

Such a shame, thermal printers are the only printing device I don't suspect of being a plot by Satan to tempt us into wrathful thinking. Thermal printers are insanely reliable, I've worked IT for several businesses with shipping departments and thermal label printers are less troublesome than even keyboards, I struggle to think of a class of equipment that generated less issues. I guess I should have suspected there was something devious about them, they are printers after all and all other printers I've had to support have always just been constant sources of annoying issues.

[0] https://www.pca.state.mn.us/business-with-us/bpa-and-bps-in-...

dqv•11mo ago
That article has a good alternative though: ascorbic acid. I think the last time I looked into this I had a hard time finding thermal labels that used ascorbic acid, but they at least have receipt paper. I do still have concerns that even the ascorbic acid paper still has something bad in it absent any documentation going over the full ingredient list.
devmor•11mo ago
I had the same incredulity when BPA alarms started going off, thinking it was another Prop 65 warning type thing. Finding out that it is literally absorbed through the skin sent shivers down my spine. That stuff is scary.
0_____0•11mo ago
Oh man... I've definitely crumpled up and put a receipt in my mouth before... probably even eaten one at some point, probably to horrify a girlfriend in my younger days. I know, I'm a gremlin.
Havoc•11mo ago
Yeah knowledge of it seems pretty thin on the ground despite this being decade+ known. Haven't quite worked out why - unlikely say tobacco it doesn't seem like an industry that would have financial might behind it.
_rami_•11mo ago
There's completely safe thermal paper in Germany by this company: https://www.oekobon.de/ There's a similar company in France, I forgot the name
kiliankoe•11mo ago
I use these for printing my shopping lists, I like synced lists (in Todoist in my case), but hate walking through stores with a device in my hand. The Ökobons have the added benefit of me being able to scratch items off the list with my fingernail. Also the blue is cool.
th0ma5•11mo ago
CUPS was instrumental in me getting an old Commodore 64 printer working haha. It can do some amazing stuff.
_rami_•11mo ago
Author here. Funny this ended up here again!

These days, we don't use this any more. First, because we now use primarily original Boca printers and are allowed to use the official drivers, and second, because we do 99% of printing from Android devices, where we also handle the protocol conversion ourselves, but it's a lot simpler without CUPS. Still, was a fun ride doing this back then!