frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

OpenJDK Interim Policy on Generative AI

https://openjdk.org/legal/ai
47•blenderob•1h ago

Comments

SomeHacker44•56m ago
Seems short sighted for an interim policy, to me. Why not just require clear and detailed disclosure of the use of said tools, to generate data for which to make a properly informed non interim decision?
pron•53m ago
Because, as the FAQ section clearly states, the technical and management aspects are not the only ones. There are also legal issues, and until they are clarified or resolved it's best not to let code in that has the potential of causing problems later.

We're talking about one of the biggest and most critical open source projects in the world, and unless there's some immediate urgency, it's okay to wait before taking on some risk.

I should add that the potential loss here isn't big. For any fix, enhancement, or feature in the JDK, the cost of writing the code is rarely more than 10% of the total cost (which is easy to see if you compare the number of people involved in the project to the rate of code being added or changed), and the interim policy explicitly does allow the use of AI where it helps the most.

skwirl•34m ago
Oracle also has a vested interest in defending an expansive view of intellectual property rights. They lean very heavily on litigation as part of their business model and will want to reserve the right to sue anyone generating software that competes with theirs when the model may have been trained on anything they hold the copyright to.

If they held here that it is OK to use LLM generated code for OpenJDK it could kill these cases later as they will have established that they believe it is fair use.

ToucanLoucan•51m ago
I suspect one of the principle reasons for the blanket decline is specifically that AI generated PRs are already responsible for a substantial uptick in the amount of work required to be done by maintainers. Engaging in discussions about those PRs may be more fulfilling and useful for the developer but it also then increases that work yet again manifold, so that would likely be highly counter-productive.

What I don't understand is: if you, for example, are a heavily AI-using dev, who spots a problem in OpenJDK, and you use Claude to figure it out: ok, why can't you then write the solution and PR yourself? Write your own code to replicate the functionality that Claude did, in your own style. Have Claude explain why this fixes the issue (it probably already did) and test it. If it works, write your own explanation and submit it as a PR.

I've done this a handful of times for smaller projects, in languages I'm unfamiliar with. Nobody complained because I didn't just copy the shit out of Claude, paste, copy the explanation, paste, and make a PR. I used Claude to increase my understanding, if even a bit and in a necessarily incomplete way, and did it myself.

grodriguez100•43m ago
> why can't you then write the solution and PR yourself?

You can. The policy explicitly allows you to use AI for understanding the codebase, debugging, etc. It just says “no AI generated content”. So if you use Claude to increase your understanding but then write your own code, that’s fine.

ToucanLoucan•25m ago
My actual question got a bit lost in my own reply. What I'm really driving at is: Why do people chafe against this?
wildzzz•39m ago
It sounds like you did exactly what OpenJDK would have wanted you to do, be the human in the loop.
CBLT•51m ago
The interim policy you're proposing seems to have far different priors. The clearest indication of their stance is that they don't even want bug reports that have AI generate part of the text. You don't take a stand like that (imo) unless you've experienced some serious AI-related burnout.
streetfighter64•49m ago
> short sighted for an interim policy

Bit of an oxymoron, no?

> just require clear and detailed disclosure of the use of said tools

Do you mean disclosure of the use of tools used "privately to help comprehend, debug, and review" contributions? Or do you mean that they should not prohibit AI-generated contributions?

If the former I wonder how useful the data would be, and if the latter, they are probably not (yet) willing to allow such contributions because of the mentioned risks: "to reviewer burden, to safety and security, and to intellectual property."

bpicolo•49m ago
The copyright issue is an important one. Under the current law, you don’t own copyright on the output of GenAI.
hajile•49m ago
All "interim" AI contributions to OpenJDK can and will be sued to make big money off of Oracle if those court cases don't go a certain way.

This is ironic given how Oracle has bet almost everything on AI succeeding.

ofjcihen•46m ago
Past everything. Even the CEO is leveraged up to his neck in personal debt at this point.
pizlonator•50m ago
How do you enforce this?
stonogo•44m ago
As best as you can. I don't know why people keep asking this question, when the answer is obvious and exactly like all other contribution policies.

In this case, this is coming from Oracle, which holds the OpenJDK purse strings, so being found in violation is also likely to have financial consequences for the violator.

Marha01•29m ago
> I don't know why people keep asking this question

Asking how do you enforce a policy that is practically unenforceable is a legitimate question.

NitpickLawyer•25m ago
> I don't know why people keep asking this question

Well, because it's going to lead to witch hunts and drama and so on. I mean, not necessarily on this project, but the same-ish discussion is going on on many community based projects (debian was recently on the front page with 4 proposals, etc).

functionmouse•43m ago
Subjectively; as 100% of all laws and rules throughout history have been enforced.
talon8635•37m ago
I suspect people keep asking because it’s becoming, with each passing day, increasingly difficult to distinguish what has been generated from what has not
kdavis•45m ago
While I understand the caution, the current policy seems too draconian.

It states in part:

> Until that policy is in place, the Governing Board has approved this interim policy:

> Contributions in the OpenJDK Community must not include content generated, in part or in full, by large language models...

Note, this would exclude most spell checkers, as they often are LLM based. That said, they do soften this with the addition:

> Q: Is it okay to continue using the spell-checking, grammar-checking, auto-completion, and refactoring features in my editor or IDE?

> A: Yes, so long as they are not based on large language models or similar deep-learning systems.

This addition will likely not help as most spell checkers are OS/IDE services and their implementation details are opaque to users.

malfist•42m ago
> this would exclude most spell checkers, as they often are LLM based

Who is using an LLM as a spell checker?

bpicolo•40m ago
Yeah - spell checking has been on device for literal decades.
kdavis•35m ago
My point is you might be when you wrote your comment or I might be in writing this comment.

However, I don't know if I am as I haven't seen, and will likely never see, the implementation behind the text box that is suggesting the next letter, word, or spelling correction as I type.

yjftsjthsd-h•18m ago
Can you point at a specific spell checker that is known to use an LLM?
effnorwood•42m ago
Oracle determining how to add more sypware while not violating their own TOS
pron•32m ago
What spyware is there in the JDK? It's open-source, so you can look for yourself.
abc42•33m ago
My prophecy is that in 3 years we'll see a complete reversal of this. Using GenAI to code will be the default and we'll see policies that put limits on human/artisan development. Possibly even projects that outright ban non-LLM development.
ACCount37•29m ago
At this point, I wouldn't be too surprised if LLMs just get better at "write understandable, maintainable code" than most developers are.

For now, LLMs are still bad at it, but they're already at "competitive with humans" tier of bad. I expect them to get better.

realusername•17m ago
I don't think they ever will on the "maintainable" part until their absolutely atrocious memory gets improved at least tenfold. (and no, the tricks we deployed until now aren't enough)

They already are better than most humans at writing code for sure but even the best SOTA model is worse than your average intern at memorization.

ACCount37•13m ago
That's the entire point of the "maintainable" part: someone with no "memory" of what was written where and why should be able to walk into the codebase, understand how it works, and be able to make a sensible change to it without setting things on fire.

Someone with "memory" should be able to do the same faster, but having that memory should not be a requirement.

Whether that "someone" is a freshly onboarded mid-level SWE or a mid-tier coding LLM is largely irrelevant.

realusername•11m ago
Depends what you mean by your comment then, if you want to say that you can direct LLMs to write maintainable code yes sure you can through very strict guardrails, if they can do it themselves, no they can't and need help because of their bad memory.
Viliam1234•31m ago
This makes sense.

AI contribution is basically just "prompt + AI work". Even if you are okay with AI work per se, you should accept prompts (after reviewing them) and let your own AI generate the code (and then also review the code)... rather then accept an output of someone else's AI with an unknown prompt, that may or may not include an instruction to create a vulnerability.

In the age of AI, the prompt is becoming the actual source code. Accepting AI-generated code would be like accepting binary code from unknown source.

this_user•25m ago
Not really though, since the result of the prompt is not deterministic. It greatly depends on the model, the version, the harness, even time of day if the provider's infrastructure is currently overloaded and is silently degrading performance. Some things also require multi-turn interactions.
kylemart•22m ago
100% agree with this. Was about to write the same thing.
lelanthran•1m ago
> Not really though, since the result of the prompt is not deterministic. It greatly depends on the model, the version, the harness, even time of day if the provider's infrastructure is currently overloaded and is silently degrading performance. Some things also require multi-turn interactions.

All of that are even more reasons to reject AI-generated code: if it cannot be trusted to produce same (or even similar) output just from the prompts, why accept it at all?

pennomi•24m ago
pron•5m ago
You can, and indeed that's what we JDK developers do.

But even aside from the fact that writing the code is only a very small portion of the effort in this particular project (you can see that the volume of code making its way into the JDK is very small compared to the number of people involved), I'm often amazed by the gap between how well a frontier model (GPT 5.6 Sol in my case) can comprehend code and investigate a bug, and how badly it writes code and documentation, even when it understands things well. So not only is writing the code not a large portion of the effort in this project, it also happens to be one of the things current models don't do as well as other things.

realusername•22m ago
Open source maintainers just want to avoid slop PRs and it's very easy to distinguish them
functionmouse•13m ago
Look, if nobody knows, nobody cares.
asdfsa32•42m ago
Blockchain.
talon8635•39m ago
Almost spit my coffee out
rileymichael•27m ago
the same way they currently enforce authors own all copyright in their contributions, via the contributor agreement (OCA). in the real world, people aren’t going to intentionally sneak in LLM-authored code and potentially be legally liable.
htltzp•13m ago
Best effort, just like in the case of existing contributor agreements that demand you to be the copyright holder.

Or like in the case of checking that free range eggs are in fact free range eggs.

Or like in the case of Steam demanding AI disclosure, to the dismay of Tim Sweeney ...

Let's hope the dismay increases over time.

lelanthran•3m ago
> How do you enforce this?

It's not impossible - right now there are all these low-effort PRs. If the PR is indistinguishable from a normal human-written PR, that addresses some of their concerns.

In any case, a rule or policy that can be worked around is not a reason to do away with that rule or policy.

I mean, if we only ever catch 10% of murderers, do you really think it is reasonable to remove that law from the books?

ekidd•39m ago
Is anyone using even a tiny on-device language model for spelling? For grammar, I could almost imagine it.

But this also bans "simple" AI-powered auto-complete, like Zed's Zeta2 model. This is a very conservative model that rarely tries to propose more than a few obvious lines (at least in my use cases). If a developer accepts a three-line autocomplete that introduces a bug, that's kind of on them. Honestly, about the only thing that Zeta2 is good for is reducing the risk of RSI.

To be fair, it's also their project, and I completely support their right to set whatever policies they want.

kdavis•31m ago
The is not exactly my point.

I am speaking of spelling/grammar checkers are part of the IDE and/or OS.

You'd have to know your IDE and/or OS's implementation details to know you are not using an LLM based one.

Capricorn2481•19m ago
I'm fairly confident mine doesn't. There'd be 0 benefit to using an LLM for something we've had near perfect tooling around for decades.

LSPs vs LLM Autocomplete are a different story, but I can just turn that off.

raincole•29m ago
> Note, this would exclude most spell checkers, as they often are LLM based

?

Like, what? What are you even talking about? Most spell checkers used by programmers are certainly not LLM based. Spell-checking has always been instant for like two decades. It's such a solved problem.

xpct•18m ago
Why is it draconian? If we take Dec-2025 as the point where the models became good for real work (agreed by many), not even a year has passed since then. The world hasn't changed, and there are still many open legal questions.
rf15•10m ago
I think it's pretty clear how this was meant, not sure why you feel the need to split hairs here. I'm certain the intention is this:

- spell checkers: ok

- '.getC' autocompleting to '.getColor()': ok

- 'getC' autocompleting to 'getColor()' + five more lines based on preceding code and documentation: NO.

ACCount37•5m ago
Why would "memory" be relevant to that? I honestly don't see it be much more relevant to "write maintainable code" than it is to "play chess".
Sindisil•12m ago
You might well end up being right, but if you are, I believe it'll be because "most developers" will have become worse at programming, not because GenAI has become massively better.
Viliam1234•28m ago
Why would companies accept AI generated code, it they can generate their own (and review the prompt)?

It's like predicting that when compilers become more popular, accepting binary contributions will become the default.

kdavis•20m ago
I don't know the timeline, but I generally agree.

I think history agrees too, i.e. machine code > assembly language > high-level programming language > prompts.

htltzp•12m ago
Yes, I'm sure that insecure slop projects like Artifactory will ban human contributions.
Except prompts aren’t deterministic, source code is.
xpct•8m ago
I don't think we're approaching the limit of deterministic prompt -> source code mapping any time soon. Small variability in prompts produces medium variability in outputs. Building on previous outputs only extends the variability, where behavioral differences start appearing a few prompts down the line.

And the AI companies aren't focused on making this process any more deterministic, where repeated prompts are sampled using different seeds. I don't know if it's because the randomness makes the models explore a larger space and perform better, but it's probably intentionally done because it'd be quite easy to remove the stochasticity.

'VPNs are lawful technical tools,' says EU Court in landmark copyright ruling

https://remysharp.com/links/2026-07-23-35890312
165•speckx•1h ago•52 comments

RFC 8890 – The Internet is for End Users (2020)

https://mnot.net/blog/2020/for_the_users
28•notarobot123•1h ago•7 comments

Why Is Everyone Trying to Build a Solid-State Battery?

https://www.construction-physics.com/p/why-is-everyone-trying-to-build-a
30•crescit_eundo•1h ago•21 comments

How Old Is Ann?

https://quuxplusone.github.io/blog/2026/07/29/how-old-is-ann/
25•ibobev•1h ago•13 comments

Gpiozero Flow

https://bennuttall.com/blog/2026/07/gpiozero-flow/
91•benn_88•3h ago•28 comments

Launch HN: Prized (YC S26) – Let non-engineer staff build secure internal tools

https://prized.dev
10•marinoseliades•43m ago•0 comments

Why Don't People Use Formal Methods?

https://www.hillelwayne.com/post/why-dont-people-use-formal-methods/
33•Thom2503•1h ago•19 comments

Ron Gilbert started production on Thimbleweed Park 2

https://www.grumpygamer.com/twp2_announce/
119•alberto-m•6h ago•42 comments

AI's top startups are barely publishing their research

https://www.science.org/content/article/ai-s-top-startups-are-barely-publishing-their-research
559•YeGoblynQueenne•16h ago•291 comments

Mbodi AI (YC P25) Is Hiring Robotics/Research Engineers

https://www.ycombinator.com/companies/mbodi-ai/jobs
1•chitianhao•2h ago

Agent-Manager: A Tmux TUI for Running Claude Code, Codex and OpenCode

https://github.com/YoanWai/agent-manager
57•yoanwaidev•4h ago•40 comments

I made a game where you build a CPU from logic gates

https://select.supply/game/chipbuilder
29•laurentiurad•2h ago•18 comments

Carolina Cloud pays SOFR on unused prepaid credits

https://docs.carolinacloud.io/organizations/prepaid-interest/
50•bojangleslover•4h ago•29 comments

The coolest use for the Vision Pro

https://christianselig.com/2026/07/vision-pro-house/
766•robbiet480•17h ago•289 comments

3D Pinball for Windows (1995)

https://98.js.org/programs/pinball/space-cadet.html
15•mushstory•2h ago•4 comments

The Glass Famine

https://edconway.substack.com/p/the-glass-famine
54•baud147258•2d ago•21 comments

Go LLM SDK for streaming, tool-calling AI backends (plus frontend React lib)

https://github.com/grafana/ai-sdk
21•matryer•2h ago•5 comments

LLM Honeypot

https://llm2human.pages.dev/
341•8thom•15h ago•94 comments

Google will expand age checks on Android worldwide till the end of the year

https://android-developers.googleblog.com/2026/07/google-play-age-signals-api-safer-experiences.html
192•dmantis•3h ago•220 comments

The first watch featuring computer functions

https://by.seiko-design.com/140th/en/topic/58.html
52•stefanv•4d ago•24 comments

GCC steering committee announces AI policy

https://lwn.net/Articles/1086041/
143•arto•2h ago•153 comments

You can't solve computer use by ignoring the interface

https://steelmanlabs.com/blog/computer-use-is-far-from-solved
18•mpavlov•2h ago•1 comments

The Productivity Mirage

https://frantic.im/mirage/
305•msephton•14h ago•135 comments

Azulejo

https://en.wikipedia.org/wiki/Azulejo
96•Amorymeltzer•1d ago•33 comments

Are We Stuck with Lean?

https://mathoverflow.net/questions/513742/are-we-stuck-with-lean
13•jjgreen•2h ago•1 comments

CosmosEscape: Taking over Every Database in Azure Cosmos DB

https://www.wiz.io/blog/cosmosescape-taking-over-every-database-in-azure-cosmos-db
13•uvuv•1h ago•5 comments

ChatGPT, Roblox to Fall Under Strictest EU Rules for Platforms

https://www.bloomberg.com/news/articles/2026-07-29/chatgpt-roblox-to-fall-under-strictest-eu-rule...
43•ch_sm•2h ago•28 comments

The Alice and Bob After Dinner Speech (1984)

https://hex.ooo/library/alicebob.html
3•kamma4434•3d ago•1 comments

Anatomy of a Frontier Lab Agent Intrusion: A Timeline of the July 2026 Incident

https://huggingface.co/blog/agent-intrusion-technical-timeline
432•artninja1988•1d ago•234 comments

The Cold Email

https://zachholman.com/posts/cold-email
264•holman•17h ago•102 comments