Computational chemistry, Locally? My rant on SSH

(chillphysicsenjoyer.substack.com)

27 points | by crescit_eundo 2 days ago

10 comments

  • fxwin 3 hours ago
    OP is not ready for corporate environments if "VPN + ssh + 2FA" already "feels like too much" lol

    I also wonder how they didn't come across X Forwarding at all? When i used a remote machine for my thesis that was one of the first things i set up, just so i could do small experiments on GPU and look at results more easily.

    Basically every issue they seem to have is solved by using VSCode + Remote development (Transferring files, Customizing hotkeys, looking at outputs)

    >And as for compute, I also realised that there are many small tasks that can actually be run on my machine

    Yes, if you have a $3000 Computer, you can do many things that other people would need to use remote compute for. Depending on the "Cluster" they are talking about, the mac might even have better specs lol

    • _notreallyme_ 3 hours ago
      Most issues can be solved by RTFM. They don't seem to have ever considered that...
  • NullifyNAN 3 hours ago
    It seems like you’re so close but yet so far. It’s interesting that you concluded that Claude makes it easier to run tasks locally but did not conclude that claude makes it easier to use the cluster. Feels we’re in need of a part 2 where you use CC to automate all of the mundane cluster work.

    Also just a hot tip, if you’re able to keep any always-only PC on a university subnet (your PI should have some form of a server) you can use tailscale as a jump proxy and bypass the whole VPN dance.

    • whinvik 2 hours ago
      Yeah I came to the same conclusion.

      Universities use all kinds of hard to setup stuff which are often custom built. Slurm configs, custom configured HPC servers etc. All of this pays off though if you need to do heavy computations which a local machine won't do.

      IMO it would be better to make Claude build out something that makes interacting with the HPC much easier. A web UI, Tailscale whatever.

  • JR1427 2 hours ago
    > You know those really annoying shower controls in fancy hotels when you need to adjust two separate knobs for the pressure and temperature separately? That's clunky.

    I like being able to control those two variables separately.

  • dtj1123 17 minutes ago
    A modern terminal emulator like Ghostty or Kitty can render images, even over ssh. And a tui editor like Neovim or Helix works over ssh just fine. If you need something more interactive, open a Jupyter or Marimo notebook.

    Working on a cluster can be a pleasure if you use the right tools.

  • n4r9 1 hour ago
    Recently Claude Code said my authentication credentials had become invalid and I needed to log in again. I recorded the ridiculous number of steps this took:

    - Copy-paste link to browser

    - Wait several minutes while page load hangs

    - Click refresh a couple of times, page finally loads

    - Type in work email

    - Redirect to work portal, type in work email again

    - Asked for work password: open KeepassXC and type in Keepass database password

    - KeepassXC additionally demands that I enter my laptop PIN

    - Copy work password into work portal

    - Asked for Authenticator code: go look for phone

    - Find phone, load up authenticator app, type into work portal

    - Wait several minutes while page load hangs

    - Click refresh a couple of times, eventually get code to paste back into Claude session.

  • Qem 1 hour ago
    > There is also a layer of friction between doing the computations and then analysing the logs that comp chemistry programs spit out. If you want to visualise orbitals or look at the outputs of your simulations, it's really awkward to run Python whilst being in the cluster, and the cluster has no GUI display.

    By the description it appears computational chemistry is stuck in batch processing era. They are yet to discover their equivalent to REPL tight feedback loop workflow.

    • sseagull 1 hour ago
      I’m a computational chemist who has been working on this kind of stuff for a while, and I will say it’s just a weird field. The overall issue is that it’s still very academic and very very fragmented. People have tried to make businesses out of this stuff but it has rarely worked, and there isn’t enough money/funding to sustain the level of work needed to really advance the field in that way. Especially now that government funding is drying up and business are reluctant to spend on fundamental research like this.
    • selimthegrim 1 hour ago
      You can fly by wire SLURM via Claude Code and bash fairly easily or run MATLAB batch over ssh tunnel etc
  • iyihz 3 hours ago
    i think instead of trying to do more of the work locally, it might be worth considering trying to work more frictionlessly within the cluster environment instead? e.g. using claude to script visualizing the results and transferring them to your local environment for convenient inspection, or even designing a local GUI for running the jobs and inspecting the results?

    it doesn't handle the VPN/2FA friction I guess, but I'd think unless most work can be done locally it would be better to invest in making cluster work more convenient

  • smitty1e 3 hours ago
    Living this dream with the CI/CD pipeline deploying to a cloud system.

    It's really, really hard to shrink the problem and troubleshoot with large, opaque, containerized chunks of functionality and services.

    Can I just connect to a DB in a terminal and run some SQL to figure out the problem?

    Why, no: no, you cannot.

  • krautburglar 1 hour ago

        man 5 ssh_config
        /ControlMaster
    • tjoff 1 hour ago
      how would multiplexing ssh connections help for this?
      • angry_octet 1 hour ago
        Not a help for the VPN part, but I have to 2FA for SSH, with an app or YubiKey, and that would be tedious to set up with multiple shells. With a control channel it's instant login for subsequent shells, sshfs mounts, etc.
  • gosub100 2 hours ago
    My work has the vpn simplified to just typing a single code from an app, just an 8 digit number. It's not that bad, but I despise the additional latency the VPN adds.