frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Redefining Go Functions

https://pboyd.io/posts/redefining-go-functions/
25•todsacerdoti•2h ago

Comments

pstuart•57m ago
Yikes, I don't see any legitimate use for this, other than hacking for the sake of hacking. Interesting read though.
maccard•55m ago
Hot reloading for development loops is _the_ canonical use case for this.
throwa356262•16m ago
Well, we are on Hacker News after all...
antonvs•11m ago
wdym, now it will be possible to implement Wordpress in Go
jerf•33m ago
Other prior art: https://github.com/bouk/monkey with accompanying blog post https://bou.ke/blog/monkey-patching-in-go/
MadVikingGod•31m ago
This is all possible and quite neat to dive into the specifics, but if you really want to be able swap a std lib call, just turn it into a variable and change it.

  // code.go
  var now = time.Now

  // code_test.go
  func TestCode(t *testing.T) {
      nowSwap := now
      t.Cleanup (func() {
          now = nowSwap
      }
      now = func() time.Time {
          return time.Date(...)
      }
  }

Examples Code: https://github.com/open-telemetry/opentelemetry-go/blob/main... Test: https://github.com/open-telemetry/opentelemetry-go/blob/490f...
antonvs•12m ago
The point of the OP is that it changes calls to `time.Now` regardless of whether the code that's calling it uses your variable or not.

Show HN: Verifly – Email verification API at $5/10k (vs $75 for competitors)

https://verifly.email
1•alisher_sib•33s ago•0 comments

Cadence ChipStack AI Super Agent Demo Overview [video]

https://www.youtube.com/watch?v=p_U-4-jKgcU
1•blufish•1m ago•1 comments

Should Memory and Learning layer be built in-house?

https://medium.com/versanova/memory-and-learning-layer-be-built-in-house-or-bought-externally-426...
1•gauravsc•2m ago•0 comments

Show HN: Open sourcing our ERP (Sold $500k contracts, 7k stars)

https://github.com/adenhq/hive
1•AdelAden•2m ago•0 comments

Large tech companies don't need heroes

https://www.seangoedecke.com/heroism/
1•birdculture•4m ago•0 comments

National Lab of the Rockies, formerly NREL, lays off more than 130 employees

https://www.cpr.org/2026/02/09/nrel-layoffs-2026/
3•toomanyrichies•5m ago•0 comments

Show HN: A design collaboration layer for local LLM CLIs

https://github.com/popmelt/core
1•reb•6m ago•0 comments

The Case for Scaling Venture

https://www.a16z.news/p/the-case-for-scaling-venture
1•7777777phil•6m ago•0 comments

Show HN: I built a visual node system for CI/CD that supports GitHub Actions

https://www.actionforge.dev
3•sebastian_io•9m ago•0 comments

Superlinear Returns (2023)

https://paulgraham.com/superlinear.html
1•jbwmj•10m ago•0 comments

Surf's Up in Slop City

https://countercraft.substack.com/p/surfs-up-in-slop-city
1•crescit_eundo•11m ago•0 comments

Digital Iris [video]

https://www.youtube.com/watch?v=Kg_2MAgS_pE
1•pbshgthm•12m ago•1 comments

Frost Bros, Rope Makers and Yarn Spinners

https://spitalfieldslife.com/2026/02/09/frost-bros-rope-makers-yarn-spinners-x/
1•zeristor•13m ago•0 comments

Ask HN: Are automated tests (Selenium) still relevant today?

1•ohitsujiza•13m ago•0 comments

IP Address Space for Outer Space

https://datatracker.ietf.org/doc/html/draft-li-tiptop-address-space
1•greyface-•13m ago•0 comments

122

https://upload.wikimedia.org/wikipedia/ru/thumb/0/09/Jeeves-n-wooster2.jpg/231px-Jeeves-n-wooster...
1•adm_adm•14m ago•0 comments

Novo Nordisk sues Hims after $49 weight-loss pill sparks FDA backlash

https://www.reuters.com/sustainability/boards-policy-regulation/novo-nordisk-shares-rise-hims-aba...
2•randycupertino•14m ago•2 comments

Brain train game may help protect against dementia for up to 20 years

https://www.nbcnews.com/health/aging/brain-training-game-protect-dementia-research-decades-alzhei...
1•randcraw•15m ago•0 comments

Autonomous AI Agents for Business Automation

https://lightrains.com/blogs/autonomous-ai-agents-business-automation/
2•niksmac•15m ago•0 comments

Tri leverages Toyota factories for robotics learning

https://robotsandstartups.substack.com/p/humanoids-platform-urdf-kitchen-nvidias
1•robotlaunch•16m ago•0 comments

Dynamic type systems are not inherently more open

https://lexi-lambda.github.io/blog/2020/01/19/no-dynamic-type-systems-are-not-inherently-more-open/
3•Munksgaard•17m ago•0 comments

Show HN: ClawKit|Open-source toolkit to configure and debug OpenClaw AI agents

https://getclawkit.com
2•KingBor•18m ago•1 comments

Notes to myself: 65 principles distilled from 10k posts

https://seths.blog/2025/07/65-thoughts/
1•7777777phil•18m ago•0 comments

The Megaprocessor Laughs at Your Puny Integrated Circuits (2016)

https://spectrum.ieee.org/the-megaprocessor-laughs-at-your-puny-integrated-circuits
1•tosh•18m ago•0 comments

Most Watched Java Conference Talks of 2025

https://www.techtalksweekly.io/p/100-most-watched-java-conference
2•techtalksweekly•18m ago•0 comments

The Blurry Boundaries Between Programming and Direct Use

https://joshuahhh.com/paper-plateau-2026-blurry/
1•surprisetalk•19m ago•0 comments

Zen HN

https://solomon.io/zen-hacker-news/
1•surprisetalk•19m ago•0 comments

Taylor's Media Criticism System (2023)

https://taylor.town/media-criticism-system
1•surprisetalk•19m ago•0 comments

Show HN: Impulse AI – I built an MLE agent that placed in top 2.5% on Kaggle

https://app.dev.impulselabs.ai/guest-of-hackernews
3•ecballer17•19m ago•2 comments

Stellarium Web Online Star Map (2021)

https://stellarium-web.org/
2•surprisetalk•19m ago•0 comments