frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: A shell-native cd-compatible directory jumper using power-law frecency

https://github.com/jghub/sd-switchdir
13•jghub•14h ago
I have used this tool privately since 2011 to manage directory jumping. While it is conceptually similar to tools like z or zoxide, the underlying ranking model is different. It uses a power-law convolution with the time series of cd actions to calculate a history-aware "frecency" metric instead of the standard heuristic counters and multipliers.

This approach moves away from point-estimates for recency. Most tools look only at the timestamp of the last visit, which can allow a "one-off" burst of activity to clobber long-term habits. By convolving a configurable history window (typically the last 1,000+ events), the score balances consistent habits against recent flukes.

On performance: Despite the O(N) complexity of calculating decay for 1,000+ events, query time is ~20-30ms (Real Time) in ksh/bash, which is well below the threshold of perceived lag.

I intentionally chose a Logical Path (pwd -L) model. Preserving symlink names ensures that the "Name" remains the primary searchable key. Resolving to physical paths often strips away the very keyword the user intends to use for searching.

MacBook Neo

https://www.apple.com/newsroom/2026/03/say-hello-to-macbook-neo/
1507•dm•10h ago•1838 comments

Building a new Flash

https://bill.newgrounds.com/news/post/1607118
279•TechPlasma•4h ago•69 comments

Something is afoot in the land of Qwen

https://simonwillison.net/2026/Mar/4/qwen/
505•simonw•9h ago•238 comments

Dario Amodei calls OpenAI’s messaging around military deal ‘straight up lies’

https://techcrunch.com/2026/03/04/anthropic-ceo-dario-amodei-calls-openais-messaging-around-milit...
99•SilverElfin•1h ago•26 comments

Humans 40k yrs ago developed a system of conventional signs

https://www.pnas.org/doi/10.1073/pnas.2520385123
58•bikenaga•8h ago•20 comments

Moss is a pixel canvas where every brush is a tiny program

https://www.moss.town/
175•smusamashah•14h ago•21 comments

BMW Group to deploy humanoid robots in production in Germany for the first time

https://www.press.bmwgroup.com/global/article/detail/T0455864EN/bmw-group-to-deploy-humanoid-robo...
68•JeanKage•4h ago•57 comments

NanoGPT Slowrun: Language Modeling with Limited Data, Infinite Compute

https://qlabs.sh/slowrun
119•sdpmas•7h ago•23 comments

The View from RSS

https://www.carolinecrampton.com/the-view-from-rss/
69•Curiositry•4h ago•18 comments

Picking Up a Zillion Pieces of Litter

https://www.sixstepstobetterhealth.com/litter.html
9•colinbartlett•3d ago•1 comments

“It turns out” (2010)

https://jsomers.net/blog/it-turns-out
235•Munksgaard•10h ago•75 comments

An interactive map of Flock Cams

https://deflock.org/map#map=5/37.125286/-96.284180
497•anjel•6h ago•188 comments

Qwen3.5 Fine-Tuning Guide – Unsloth Documentation

https://unsloth.ai/docs/models/qwen3.5/fine-tune
268•bilsbie•13h ago•64 comments

Was Windows 1.0's lack of overlapping windows a legal or a technical matter?

https://retrocomputing.stackexchange.com/questions/32511/was-windows-1-0s-lack-of-overlapping-win...
45•SeenNotHeard•4h ago•29 comments

Data Has Weight but Only on SSDs

https://cubiclenate.com/2026/03/04/data-has-weight-but-only-on-ssds-blathering/
63•LorenDB•6h ago•40 comments

NRC Issues First Commercial Reactor Construction Approval in 10 Years [pdf]

https://www.nrc.gov/sites/default/files/cdn/doc-collection-news/2026/26-028.pdf
33•Anon84•3h ago•11 comments

Glaze by Raycast

https://www.glazeapp.com/
193•romac•11h ago•118 comments

Daemon (2006)

https://en.wikipedia.org/wiki/Daemon_(novel)
9•solomonb•8h ago•3 comments

Raspberry Pi Pico as AM Radio Transmitter

https://www.pesfandiar.com/blog/2026/02/28/pico-am-radio-transmitter
64•pesfandiar•4d ago•28 comments

Making Firefox's right-click not suck with about:config

https://joshua.hu/firefox-making-right-click-not-suck
256•mmsc•7h ago•174 comments

Roboflow (YC S20) Is Hiring a Security Engineer for AI Infra

https://roboflow.com/careers
1•yeldarb•7h ago

Show HN: Vertex.js – A 1kloc SPA Framework

https://lukeb42.github.io/vertex-manual.html
35•LukeB42•3d ago•22 comments

Libre Solar – Open Hardware for Renewable Energy

https://libre.solar
205•evolve2k•3d ago•62 comments

Extending single-minus amplitudes to gravitons

https://openai.com/index/extending-single-minus-amplitudes-to-gravitons/
7•telotortium•1h ago•2 comments

Show HN: A shell-native cd-compatible directory jumper using power-law frecency

https://github.com/jghub/sd-switchdir
13•jghub•14h ago•0 comments

Faster C software with Dynamic Feature Detection

https://gist.github.com/jjl/d998164191af59a594500687a679b98d
55•todsacerdoti•6h ago•2 comments

Flip Distance of Convex Triangulations and Tree Rotation Is NP-Complete

https://arxiv.org/abs/2602.22874
10•nill0•4d ago•0 comments

MyFirst Kids Watch Hacked. Access to Camera and Microphone

https://www.kth.se/en/om/nyheter/centrala-nyheter/kth-studenten-hackade-klocka-for-barn-1.1461249
108•jidoka•12h ago•31 comments

Does that use a lot of energy?

https://hannahritchie.github.io/energy-use-comparisons/
179•speckx•4h ago•152 comments

To understand our fascination with crystals, researchers gave some to chimps

https://www.nytimes.com/2026/03/04/science/chimpanzees-crystals.html
89•jimnotgym•17h ago•60 comments