frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Looking for someone to help implement RFIM into a system simulation

2•sks38317•9mo ago
Hi HN,

I'm working on a small system simulation project that explores how instability can emerge from the interaction of various variables over time. (Repo linked in the comments.)

Recently, I’ve been trying to incorporate the RFIM (Random Field Ising Model) into the logic—but I’ve hit a wall. It’s not the math or the concept itself, but rather the total lack of Korean-language resources or beginner-friendly guides that’s been challenging.

I’d really appreciate it if anyone:

has experience with RFIM and would be open to helping via a PR

knows of any well-documented codebases I could learn from

or could point me toward approachable explanations or tutorials

I’m still relatively new to GitHub and trying to improve this simulation step-by-step, so any support would go a long way.

Thanks for reading—and for any help you can offer!

Comments

sks38317•9mo ago
Sorry if this sounds basic—English isn’t my first language, and I don’t have a technical background. I’ve had a hard time understanding RFIM unless it’s explained in Korean. Here’s the repo I’m working on, in case it helps: https://github.com/sks38317/-Why-the-System-Breaks-Before-An...
andrewfromx•9mo ago
You should start with a Monte Carlo implementation using the Metropolis algorithm.

1. Create a grid with random up/down spins

2. Add random magnetic fields at each point

3. Pick points randomly on the grid

4. Calculate energy changes if you were to flip a spin

5. Decide whether to accept the flip based on temperature and energy differences

https://github.com/tjacovich/Ising_Model

https://github.com/prtkm/ising-monte-carlo/blob/master/ising...

sks38317•9mo ago
Thanks so much—this really helps me get a better sense of how to approach it. Starting from the Ising model with Monte Carlo makes a lot of sense now that you’ve explained it this way. I’ll go through the repos you shared and try implementing it step-by-step. Really appreciate you taking the time to break it down!
andrewfromx•9mo ago
sure but all I did was use these prompts:

"I'm working on a small system simulation project that explores how instability can emerge from the interaction of various variables over time. Recently, I’ve been trying to incorporate the RFIM (Random Field Ising Model) into the logic—but I’ve hit a wall. It’s not the math or the concept itself, but rather the total lack of Korean-language resources or beginner-friendly guides that’s been challenging. any well-documented codebases I could learn from or could point me toward approachable explanations or tutorials"

"put this into simpler english: You should start with a Monte Carlo implementation using the Metropolis algorithm. You now create a lattice with random initial spins... make random fields for each site... randomly selecting sites. Then calculating energy changes for potential spin flips. Accepting/rejecting changes based on energy differences and temperature"

sks38317•9mo ago
Thanks again for your explanation. Just to clarify—what I understood is that the Monte Carlo method (using something like the Metropolis algorithm) is useful because it introduces probabilistic decision-making into the system. That helps prevent extreme or unrealistic outcomes, since not every spin flips deterministically.

Also, by having each spin affected by neighboring spins and external random fields, it naturally simulates interaction between variables. So it reflects both local dependencies and external noise, which is exactly the kind of behavior I want in my simulation.

I had been trying to account for interactions between variables, but I ran into a lot of frustration due to extreme or unstable outputs. Thanks to your guidance, though, I was finally able to break through that wall— and I’ve started thinking of ways to restructure and improve the model accordingly.

Let me know if I misunderstood anything.

Thanks a lot.

andrewfromx•9mo ago
I guess the point I'm making is why are you not just asking AI these questions?

------------ This probabilistic approach allows the system to:

Escape local energy minima (preventing the system from getting stuck in unrealistic configurations)

Properly sample the thermodynamic equilibrium states according to their Boltzmann weights

Model thermal fluctuations realistically

The beauty of the RFIM specifically is its balance between:

Ordered tendencies (through the J parameter controlling spin-spin interactions)

Disorder and frustration (through the random fields)

Thermal noise (through the temperature parameter)

This combination creates the complex behaviors you're looking for in your simulation - like phase transitions, hysteresis, and avalanche effects. The random fields introduce "frustration" into the system, where different forces compete and create rich, emergent behaviors. --------

that's all from ai

Seedance2 – multi-shot AI video generation

https://www.genstory.app/story-template/seedance2-ai-story-generator
1•RyanMu•2m ago•1 comments

Πfs – The Data-Free Filesystem

https://github.com/philipl/pifs
1•ravenical•6m ago•0 comments

Go-busybox: A sandboxable port of busybox for AI agents

https://github.com/rcarmo/go-busybox
1•rcarmo•6m ago•0 comments

Quantization-Aware Distillation for NVFP4 Inference Accuracy Recovery [pdf]

https://research.nvidia.com/labs/nemotron/files/NVFP4-QAD-Report.pdf
1•gmays•7m ago•0 comments

xAI Merger Poses Bigger Threat to OpenAI, Anthropic

https://www.bloomberg.com/news/newsletters/2026-02-03/musk-s-xai-merger-poses-bigger-threat-to-op...
1•andsoitis•7m ago•0 comments

Atlas Airborne (Boston Dynamics and RAI Institute) [video]

https://www.youtube.com/watch?v=UNorxwlZlFk
1•lysace•8m ago•0 comments

Zen Tools

http://postmake.io/zen-list
1•Malfunction92•11m ago•0 comments

Is the Detachment in the Room? – Agents, Cruelty, and Empathy

https://hailey.at/posts/3mear2n7v3k2r
1•carnevalem•11m ago•0 comments

The purpose of Continuous Integration is to fail

https://blog.nix-ci.com/post/2026-02-05_the-purpose-of-ci-is-to-fail
1•zdw•13m ago•0 comments

Apfelstrudel: Live coding music environment with AI agent chat

https://github.com/rcarmo/apfelstrudel
1•rcarmo•14m ago•0 comments

What Is Stoicism?

https://stoacentral.com/guides/what-is-stoicism
3•0xmattf•15m ago•0 comments

What happens when a neighborhood is built around a farm

https://grist.org/cities/what-happens-when-a-neighborhood-is-built-around-a-farm/
1•Brajeshwar•15m ago•0 comments

Every major galaxy is speeding away from the Milky Way, except one

https://www.livescience.com/space/cosmology/every-major-galaxy-is-speeding-away-from-the-milky-wa...
2•Brajeshwar•15m ago•0 comments

Extreme Inequality Presages the Revolt Against It

https://www.noemamag.com/extreme-inequality-presages-the-revolt-against-it/
2•Brajeshwar•15m ago•0 comments

There's no such thing as "tech" (Ten years later)

1•dtjb•16m ago•0 comments

What Really Killed Flash Player: A Six-Year Campaign of Deliberate Platform Work

https://medium.com/@aglaforge/what-really-killed-flash-player-a-six-year-campaign-of-deliberate-p...
1•jbegley•17m ago•0 comments

Ask HN: Anyone orchestrating multiple AI coding agents in parallel?

1•buildingwdavid•18m ago•0 comments

Show HN: Knowledge-Bank

https://github.com/gabrywu-public/knowledge-bank
1•gabrywu•23m ago•0 comments

Show HN: The Codeverse Hub Linux

https://github.com/TheCodeVerseHub/CodeVerseLinuxDistro
3•sinisterMage•25m ago•2 comments

Take a trip to Japan's Dododo Land, the most irritating place on Earth

https://soranews24.com/2026/02/07/take-a-trip-to-japans-dododo-land-the-most-irritating-place-on-...
2•zdw•25m ago•0 comments

British drivers over 70 to face eye tests every three years

https://www.bbc.com/news/articles/c205nxy0p31o
31•bookofjoe•25m ago•11 comments

BookTalk: A Reading Companion That Captures Your Voice

https://github.com/bramses/BookTalk
1•_bramses•26m ago•0 comments

Is AI "good" yet? – tracking HN's sentiment on AI coding

https://www.is-ai-good-yet.com/#home
3•ilyaizen•27m ago•1 comments

Show HN: Amdb – Tree-sitter based memory for AI agents (Rust)

https://github.com/BETAER-08/amdb
1•try_betaer•27m ago•0 comments

OpenClaw Partners with VirusTotal for Skill Security

https://openclaw.ai/blog/virustotal-partnership
2•anhxuan•28m ago•0 comments

Show HN: Seedance 2.0 Release

https://seedancy2.com/
2•funnycoding•28m ago•0 comments

Leisure Suit Larry's Al Lowe on model trains, funny deaths and Disney

https://spillhistorie.no/2026/02/06/interview-with-sierra-veteran-al-lowe/
1•thelok•28m ago•0 comments

Towards Self-Driving Codebases

https://cursor.com/blog/self-driving-codebases
1•edwinarbus•28m ago•0 comments

VCF West: Whirlwind Software Restoration – Guy Fedorkow [video]

https://www.youtube.com/watch?v=YLoXodz1N9A
1•stmw•29m ago•1 comments

Show HN: COGext – A minimalist, open-source system monitor for Chrome (<550KB)

https://github.com/tchoa91/cog-ext
1•tchoa91•30m ago•1 comments