frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: TFStudio – open-source design and optimization for optical thin films

https://github.com/aai2k/TFStudio
1•aai2k•58m ago
Hi HN. I'm an optical engineer, and TFStudio is a free optical thin-film coating design app.

Thin-film coatings are widely used for optics - lenses, mirrors, beamsplitters and more. Designing a coating is an inverse problem: given a target reflectance/transmittance spectrum one must find materials and thicknesses for thin layers to produce it. There's no closed form, so it's a numerical optimization task.

The market is currently dominated by proprietary software like OptiLayer, FilmStar or TFCalc. They cost thousands of dollars per seat, which puts them out of reach if you're a student, work in a small lab, or are just interested in the subject.

TFStudio is open-source and the code is MIT-licensed. Linux and Windows builds are available (no macOS build yet).

Features:

- Computing R, T, A values via transfer-matrix method (TMM) at any incidence angle, for absorbing and dispersive materials, both s- and p-polarization

- Full-system modeling: front coating, substrate (with absorption), and back coating, including incoherent substrate multiple reflections

- Optimization & synthesis: refinement optimizers (local - DLS, Newton, Newton-CG, SQP, conjugate-gradient; global - differential evolution, simulated annealing), needle variation, gradual evolution, and a structural optimizer that anneals over the layer count itself. It is multithreaded via web worker pool and is quite fast with wasm tmm kernel.

- Merit function editor for setting up various targets and constraints. Including default merit function generator and visual target editor (in Optical Evaluation window)

- Analysis tools: R, T, A calculation, color evaluation, ellipsometry angles, admittance, E-field, GD/GDD, refractive index (RI) profiler

- Material libraries: refractiveindex.info explorer (offline/online), OptiLayer materials, .AGF (Zemax) catalogs

- Deposition simulators (broadband, mono)

- Tolerancing features including Monte-Carlo analysis, scattering, inhomogeneities, layer sensitivities

- Import/export of coating data for Zemax OpticStudio

Under the hood: refinement uses an analytic Jacobian rather than finite differences - the characteristic matrix product can be differentiated with respect to each layer thickness in closed form, so where finite differences cost N+1 spectrum evaluations per step for an N-layer stack, this costs roughly one. Needle synthesis works off a similar analytic perturbation function that says where inserting an infinitesimally thin layer would most reduce the merit function, so designs can grow from a bare substrate.

The TMM kernel has JS and C versions and is also available as a package via npm install tmmcore. Validation and comparison to other TMM packages is here: https://aai2k.github.io/tmmcore/

Web version is fully functional and available here: https://tfstudio.xyz/demo/

Docs: https://docs.tfstudio.xyz

Show HN: Atomadic – Zero-LLM Sub-200us MCP Action Interlock

https://atomadic.tech/
1•Atomadic•36s ago•0 comments

The Coldcard Disaster Gets Worse: The Hack May Have Reached $88.6M

https://medium.com/mountain-movers/the-coldcard-disaster-gets-worse-the-hack-may-have-reached-88-...
1•paulpauper•5m ago•0 comments

Show HN: I added a client-side SQL sanitizer so schema never touches our servers

https://www.querytuner.com/
1•autoshiftops•6m ago•0 comments

Create Embedded Software with Swift

https://www.swift.org/get-started/embedded/
1•frizlab•8m ago•0 comments

Galaxy Research Coldcard hack update: 1,158.81 BTC stolen from 2,673 addresses

https://twitter.com/glxyresearch/status/2083560979128820105
2•paulpauper•8m ago•0 comments

Let Sand Think

https://magzimof.com/let-the-sand-think/
1•shaimagz•8m ago•0 comments

Show HN: MCP Emails – An MCP Server for Gmail and IMAP/SMTP Inboxes

https://github.com/Albretsen/MCPEmails/tree/main/self-host
2•asgeiralbretsen•9m ago•0 comments

Peter Principle

https://en.wikipedia.org/wiki/Peter_principle
2•num42•10m ago•0 comments

Is it time to stop using glue and labels on paper?

https://www.bbc.co.uk/news/articles/c872nj1n4xyo
2•edward•10m ago•0 comments

AI learns language from skewed sources. It could change how humans speak/think

https://www.theguardian.com/commentisfree/2026/apr/14/ai-language-human-speech
1•fzeindl•10m ago•0 comments

Show HN: LLM Tools that I made that I cant live without

1•dleech•11m ago•0 comments

Don't grab any seat on a rocket ship

https://hunterwalk.com/2026/08/02/why-grab-any-seat-on-the-rocketship-is-a-bad-career-strategy-th...
1•andsoitis•13m ago•0 comments

The Debate of Mockist vs. Classicist TDD Is Like OOP vs. FP

https://fagnerbrack.com/the-debate-of-mockist-classicist-tdd-is-like-oop-fp-c9124185f3d2
1•theanonymousone•15m ago•0 comments

Why Gen Z is nostalgic for a world it never knew

https://bigthink.com/mind-behavior/why-gen-z-is-nostalgic-for-a-world-it-never-knew/
3•LordAtlas•19m ago•0 comments

Show HN: NixOS-DGX-Spark – Nix and NixOS on the DGX Spark

https://github.com/graham33/nixos-dgx-spark
6•graham33•19m ago•2 comments

Yahoo Finance rate-limits you harder if you spoof a browser User-Agent

https://github.com/AdityaSBisht/finance-mcp
2•adityabisht2700•21m ago•0 comments

Feedback wanted: Reflex – A low-cost retrieval API for recurring documents

https://aivax.net/blog/reflex-retrieval-built-for-recurring-documents/
1•cypherpotato•22m ago•0 comments

Poles of Inaccessibility in the San Gabriel Mountains

https://notes.secretsauce.net/notes/2015/05/06_poles-of-inaccessibility-in-the-san-gabriel-mounta...
1•dima55•22m ago•0 comments

How fast is C++26's std:hive?

https://lemire.me/blog/2026/08/02/how-fast-is-c26s-stdhive/
2•usdogu•22m ago•0 comments

Pushes to arch AUR are suspendended right now.

https://lists.archlinux.org/archives/list/aur-general@lists.archlinux.org/message/YPJ3FQYJTJXXY3R...
6•EbNar•22m ago•0 comments

Best Office Chairs of 2026– We Tested 70 to Pick Them

https://www.wired.com/gallery/best-office-chairs-button-1/
1•joozio•24m ago•0 comments

Prevent cognitive debt by manually retyping LLM-generated code

https://ankursethi.com/blog/prevent-cognitive-debt-by-manually-retyping-llm-generated-code/
2•philipportner•25m ago•0 comments

Epipe on write might mean you're doing it wrong

https://rachelbythebay.com/w/2026/07/09/pipe/
1•mpweiher•25m ago•0 comments

Understanding VC signals part I

https://www.admnt.com/blog/understanding-vc-signals-part-1
2•kekqqq•26m ago•0 comments

GNU Hurd News 2026-Q2

https://www.gnu.org/software/hurd/news/2026-q2.html
3•plaguna•28m ago•0 comments

The Secret Thrill of Paying to Open Someone Else's Unwanted Package

https://www.bloomberg.com/news/features/2026-07-31/why-amsterdam-s-mystery-parcel-shops-are-sprea...
3•p1anecrazy•28m ago•1 comments

NASA's Curiosity rover finds a field of honeycomb-textured ground on Mars

https://www.nasa.gov/missions/mars-science-laboratory/curiosity-rover/nasas-curiosity-mars-rover-...
4•MarcoDewey•30m ago•1 comments

Put a Tag on It

https://tedium.co/2026/08/01/pricing-guns-vs-barcodes-history/
2•Brajeshwar•31m ago•0 comments

Pepper-spraying drones deploying against school shooters, not everyone approves

https://theweek.com/crime/pepper-spraying-drones-school-shooters
2•mdp2021•33m ago•2 comments

Anyone used Agent Reach yet? any good?

https://github.com/Panniantong/Agent-Reach/blob/main/docs/README_en.md
1•artur_makly•34m ago•0 comments