frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Ask HN: Help with GLSL Bi-Laplacian

1•danwills•5h ago
Can anyone help me with any hints about writing (in glsl) a bi-laplacian function that can take a neighborhood size? (I am not a mathematician, but I heard that the bi-laplacian of X is the laplacian-of-the-laplacian of X)

I have these existing implementations for laplacian and bilaplacian and they work great, but are fixed-size (basically the smallest-possible) and don't have any weighting because I guess that's close-to-meaningless for the smallest-possible neighborhood?:

vec3 laplacian = ( a_n + a_e + a_s + a_w - 4.0 * a ) / ( h * h );

vec3 bilaplacian = ( a_n2 + a_e2 + a_s2 + a_w2 + 2.0 * ( a_ne + a_se + a_sw + a_nw ) - 8.0 * ( a_n + a_e + a_s + a_w ) + 20.0 * a ) / ( h * h * h * h );

I already have a 'laplaceSize' function that I can pass a size to, to get a larger neighborhood - it iterates in 2D over the cells that are covered by the specified half-width, and weights them with a smoothstep. Works great, but I want a bi-laplacian equivalent.

So far I haven't been able to work out how to do an arbitrarily-sized bi-laplacian for the life of me! I'd really like to have one though because I'd like to use it in my playful KSE (Kuramoto Sivashinsky Equation) experiments.

If anyone's keen to help, I am happy to send some fun example RD/KSE-simulation glsl shaders that I've been working on (and want to be able to make use a larger neighborhood) that should work in the 'Shader Editor' Android app by Markus Fisch (here's the source but it's also on the App-Store):

https://github.com/markusfisch/ShaderEditor

Comments

danwills•5h ago
Here's a screenshot of what one of the KSE-based shaders I've been playing with usually looks like:

https://photos.app.goo.gl/NnfjxUwR5ZuH4KkJ6

It's basically KSE but with hue-rotation happening in various-ways so it's really more like 3 separate KSE sims that feed into each other in a cycle. I think it's pretty fun! Happy to share code if it is of interest!

Future-Proofing Junior Devs in the LLM Era

https://michaelbastos.com/blog/future-proofing-junior-devs-llm-era
1•mbastos•1m ago•1 comments

JavaScript scope hoisting is broken

https://devongovett.me/blog/scope-hoisting.html
1•whatever3•2m ago•0 comments

The CIA faces a new AI-powered spy game

https://www.washingtonpost.com/opinions/interactive/2025/cia-ai-technology-spies/
1•herbertl•2m ago•0 comments

RCE found in diagnostic app affecting Android devices and connected vehicles

https://www.nowsecure.com/blog/2025/07/16/remote-code-execution-discovered-in-xtool-anyscan-app-risks-to-phones-and-vehicles/
1•press-ntr•4m ago•0 comments

Hackers Can Tamper with Train Brakes Using Just a Radio, Feds Warn

https://gizmodo.com/hackers-can-tamper-with-train-breaks-using-just-a-radio-feds-warn-2000629522
1•almost-exactly•5m ago•0 comments

Payment processors pressure Valve into banning porn games with themes of incest

https://bsky.app/profile/steamdb.info/post/3lu32vdlsmg27
3•notthemessiah•11m ago•2 comments

Provably-Correct Vibe Coding

http://provablycorrectvibecoding.com/
1•GasStationLab•11m ago•0 comments

US-founded terrorist group says it was involved in killing of officer in Kyiv

https://www.theguardian.com/world/2025/jul/16/the-base-terrorist-group-ukraine-assassination
3•consumer451•14m ago•0 comments

AtCoder Finals Problem Statement

https://atcoder.jp/contests/awtf2025heuristic/tasks/awtf2025heuristic_a
1•11thEarlOfMar•14m ago•0 comments

YouTuber faces jail time for showing off Android-based gaming handhelds

https://arstechnica.com/gadgets/2025/07/youtuber-faces-jail-time-for-showing-off-android-based-gaming-handhelds/
1•jtokoph•14m ago•1 comments

How and where will agents ship software?

https://www.instantdb.com/essays/agents
7•stopachka•17m ago•0 comments

MongoDB Sues FerretDB over Patents, Misinformation, and Trademark Misuse [pdf]

https://storage.courtlistener.com/recap/gov.uscourts.ded.89247/gov.uscourts.ded.89247.1.0.pdf
4•the_precipitate•18m ago•0 comments

A Mile-Long Gateway to Hell Opens Up in Iceland

https://gizmodo.com/a-mile-long-gateway-to-hell-opens-up-in-iceland-2000630127
2•DocFeind•20m ago•0 comments

Ticket management system for IT professionals

https://github.com/Evolve-03/Ticket-Management-System
1•Evolve03•21m ago•0 comments

Green Tea GC: How Go Stopped Wasting 35% of Your CPU Cycles

https://siddharthav.medium.com/green-tea-garbage-collector-63233aa5a9b5
1•jasonthorsness•21m ago•0 comments

Ellen Ullman's "Close to the Machine: Technophilia and Its Discontents"

https://pluralistic.net/2025/07/16/beautiful-code/#hackers-disease
1•NotInOurNames•22m ago•0 comments

I built a real AI-first OS solo – with a functional, learning "brain system"

1•chargenorris•22m ago•1 comments

Molecules with Silly or Unusual Names

https://www.chm.bris.ac.uk/sillymolecules/sillymols.htm
1•fanf2•23m ago•0 comments

Ask HN: What's the Point of llms.txt?

1•nonvibecoding•23m ago•2 comments

Astronomers observe birth of a solar system for first time

https://www.rte.ie/news/newslens/2025/0716/1523852-birth-solar-system/
1•austinallegro•23m ago•1 comments

Mozilla ships WebGPU in Firefox 141, unlocking a new generation of web graphics

https://winbuzzer.com/2025/07/16/mozilla-ships-webgpu-in-firefox-141-unlocking-a-new-generation-of-web-graphics-xcxwbn/
11•astlouis44•25m ago•0 comments

Anthropic Hires Back Two Coding AI Leaders from Cursor Developer Anysphere

https://www.theinformation.com/briefings/anthropic-hires-back-two-coding-ai-leaders-cursor-developer-anysphere?rc=bnfi9o
1•coloneltcb•25m ago•0 comments

From the Abes to the Ohtanis: How siblings shape athletic development

https://www.japantimes.co.jp/sports/2025/07/08/more-sports/japan-sibling-sports-development/
1•PaulHoule•25m ago•0 comments

Ask HN: Cases where MCP is useful, has anyone used it in production?

2•fazkan•27m ago•1 comments

NASA Software Catalog Puts Agency Solutions at Innovators' Fingertips

https://www.nasa.gov/news-release/nasa-software-catalog-puts-agency-solutions-at-innovators-fingertips/
2•DocFeind•27m ago•0 comments

A retro gaming YouTuber faces possible jail time for reviewing gaming handhelds

https://www.androidauthority.com/once-were-nerd-youtuber-copyright-lawsuit-3577995/
3•GaggiX•28m ago•0 comments

Why Markets Can't Defend a Nation

https://mateopetel.substack.com/p/the-public-good-paradox
1•MADEinPARIS•28m ago•1 comments

Show HN: A memory for Claude & ChatGPT with custom data types, sharing, and GUI

https://dry.ai/showhn-memory-for-claude-chatgpt
7•nickcassimatis•28m ago•0 comments

Customizing Memory in LangGraph Agents for Better Conversations

https://focused.io/lab/customizing-memory-in-langgraph-agents-for-better-conversations
1•austinbv•29m ago•0 comments

Google Launches Agentic Calls

https://techcrunch.com/2025/07/16/google-rolls-out-ai-powered-business-calling-feature-brings-gemini-2-5-pro-to-ai-mode/
2•andrewstetsenko•29m ago•0 comments