frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Seeking advice on a licensing gray area: "Derivative work" or not?

1•ototsu_yume•2h ago
Hi everyone,

I've hit a tricky licensing situation while developing a new open-source tool and would appreciate your guidance.

My project is a plugin for an ecosystem that typically uses static linking. It needs to communicate with a popular C library. Initially, I tried using an existing, well-regarded Rust wrapper for this C library, but it's licensed under LGPL. This would force the LGPL terms onto any app that uses my plugin, which is a major issue in our ecosystem.

To solve this, I decided to write my own FFI wrapper from the ground up, aiming for a more permissive license like MIT. It's important to note that when I was first trying to use the existing LGPL library, I had of course looked at parts of its code to understand how to integrate and use it properly.

As I built my own independent implementation, I found that the structure of my code (how I handled events, properties, contexts, etc.) became very similar to the LGPL library. This happened organically, not by copying, but because the underlying C library's API heavily constrains how any safe, ergonomic wrapper can be designed. The "best practices" for wrapping this specific C API seem to lead down a single path.

This similarity made me uncomfortable. Even though it's an independent implementation, it feels heavily inspired by the original work. Out of respect for the original author, we decided the most ethical path was to also license our plugin as LGPL.

But this brings me back to square one with the licensing problem for my users.

In a situation where the C API itself dictates the wrapper's structure, where do you draw the line between an independent work and a derivative one?

Was choosing LGPL the correct and only ethical option? Or could we have used MIT/Apache while giving prominent credit to the original project for its foundational design?

For those who've built FFI wrappers in similar situations, how did you navigate this?

Thanks for any insights you can share. This is a real gray area, and I'd love to learn from the community's experience.

Comments

terminalbraid•2h ago
> For those who've built FFI wrappers in similar situations, how did you navigate this?

You talk to a lawyer who specializes in this topic. Anyone who is not a lawyer telling you anything is not to be trusted and can land you in legal trouble with no recourse.

There is literally no other discussion to be had you can trust.

I am not a lawyer and this is not legal advice.

Edward T. Blake, 80, Dies; Forensic Expert Sparked Innocence Movement

https://www.nytimes.com/2025/10/01/science/edward-t-blake-dead.html
1•bookofjoe•1m ago•1 comments

Writing FJRD by Farbrausch

https://github.com/LeStahL/tech-write-ups/blob/main/writeups%2Fmaking_of_fjrd_by_farbrausch%2Fwri...
1•z303•2m ago•0 comments

How to Get Your Kids into Stem Even When Its Future Is Uncertain

https://www.wired.com/story/the-importance-of-getting-kids-into-stem-when-its-future-is-uncertain/
1•Brajeshwar•3m ago•0 comments

Your creativity is benevolent, and you can always return to it

https://buttondown.com/ashsmash/archive/your-creativity-is-benevolent-and-you-can-always/
1•herbertl•7m ago•0 comments

In a Toxic World, Pets Could Be Vital Health Watchdogs

https://www.nytimes.com/2025/10/07/science/pets-health-pollution.html
1•Brajeshwar•8m ago•0 comments

The 'typhoon-proof' wind farms powering China's coast

https://www.bbc.com/future/article/20251006-the-typhoon-proof-wind-farms-powering-chinas-coast
1•Brajeshwar•13m ago•0 comments

Notes from the Git Contributor's Summit, 2025

https://lwn.net/ml/all/aOQVeVYY6zadPjln@nand.local/
1•chmaynard•14m ago•0 comments

Software for Hardware – Digitizing the Physical World

https://www.generalcatalyst.com/stories/software-for-hardware
1•pbd•15m ago•0 comments

Suspected Chinese operatives used ChatGPT to shape mass surveillance proposals

https://www.cnn.com/2025/10/07/politics/china-chatgpt-surveillance
1•breve•15m ago•0 comments

Dragon Hatchling: Neural Network That Thinks Like a Brain (and Runs on Your GPU)

https://medium.com/@FuturistAI/the-dragon-hatchling-a-neural-network-that-thinks-like-a-brain-and...
1•Kaibeezy•19m ago•0 comments

13-year-old level-10 bug in Redis could allow RCE

https://www.theregister.com/2025/10/06/perfect_10_redis_rce_lurking/
1•LorenDB•20m ago•0 comments

I am building an API that gives you bounding boxes for every answer

https://ninjadoc.ai
1•dbvitapps•21m ago•1 comments

ChatGPT Won't Replace Writers

https://substack.com/home/post/p-175510532
1•ignacioadiaz•22m ago•0 comments

Three CNN reporters on three continents wore chemical-tracking wristbands

https://www.cnn.com/2025/10/07/climate/chemicals-plastic-wristbands-phthalates-bisphenols
1•breve•23m ago•0 comments

U.S. vs. Google: What Each Side Argued For

https://www.nytimes.com/2025/10/06/technology/google-ad-tech-arguments.html
1•redm•23m ago•0 comments

Beginner's guide to making AI useful in production

https://medium.com/@akshitdayal99/the-missing-piece-that-makes-ai-actually-work-in-production-22e...
1•akrypt•25m ago•0 comments

Migrating from Jenkins to GitLab

1•steevivo•26m ago•0 comments

How to make your AI twin

https://markgreville.ie/2025/10/06/how-to-make-your-ai-twin/
1•mohi-kalantari•27m ago•0 comments

Show HN: Possible World Wikis – fictional, generative wikis

https://www.possibleworldwikis.com/
1•ruthvik947•28m ago•0 comments

1970: Black Tot Day (End of the Royal Navy Rum Ration) [video]

https://www.youtube.com/watch?v=5gh5PCghfbs
1•i5heu•33m ago•0 comments

Show HN: Not AI, open-source Typeform clone

https://forms.md
1•darkhorse13•33m ago•0 comments

Android developer verification [video]

https://www.youtube.com/watch?v=A7DEhW-mjdc
1•aestetix•33m ago•0 comments

'Almost unheard of': experts find more music by English composer Henry Purcell

https://www.theguardian.com/music/2025/oct/07/experts-find-music-english-composer-henry-purcell
2•alkyon•35m ago•0 comments

Amazon's Hits and Misses

https://richardreis.me/amazon
1•richardreeze•39m ago•0 comments

Stopping email trackers in Gmail: What Works?

2•jacopo_beschi•40m ago•0 comments

Dan Brown releases his most ambitious book yet

https://www.latimes.com/entertainment-arts/books/story/2025-09-09/dan-brown-new-book-secret-of-se...
1•mathgenius•40m ago•0 comments

CADR Lisp Machine Emulator in WASM

https://lispcafe.org/cadr/
2•xkriva11•40m ago•0 comments

OpenCQRS 1.0 Has Landed

https://docs.opencqrs.com/
1•goloroden•40m ago•0 comments

Why Aren't We Partying Like It's 1999? – Paul Krugman

https://paulkrugman.substack.com/p/why-arent-we-partying-like-its-1999
5•rbanffy•41m ago•0 comments

Step by step guide to becoming a Rust developer in 2025

2•Mamarhh•44m ago•0 comments