frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

At the end you use Git bisect

https://kevin3010.github.io/git/2025/11/02/At-the-end-you-use-git-bisect.html
52•_spaceatom•1h ago•35 comments

"Why don't you use dependent types?"

https://lawrencecpaulson.github.io//2025/11/02/Why-not-dependent.html
90•baruchel•3h ago•24 comments

Tongyi DeepResearch – open-source 30B MoE Model that rivals OpenAI DeepResearch

https://tongyi-agent.github.io/blog/introducing-tongyi-deep-research/
142•meander_water•6h ago•38 comments

Rats filmed snatching bats from air for first time

https://www.science.org/content/article/rats-filmed-snatching-bats-air-first-time
46•XzetaU8•5d ago•26 comments

Autodesk's John Walker Explained HP and IBM in 1991

https://www.cringely.com/2015/06/03/autodesks-john-walker-explained-hp-and-ibm-in-1991/
71•suioir•4d ago•37 comments

X.org Security Advisory: multiple security issues X.Org X server and Xwayland

https://lists.x.org/archives/xorg-announce/2025-October/003635.html
51•birdculture•5h ago•22 comments

URLs are state containers

https://alfy.blog/2025/10/31/your-url-is-your-state.html
216•thm•7h ago•113 comments

Writing FreeDOS Programs in C

https://www.freedos.org/books/cprogramming/
34•AlexeyBrin•4h ago•11 comments

Anti-cybercrime laws are being weaponized to repress journalism

https://www.cjr.org/analysis/nigeria-pakistan-jordan-cybercrime-laws-journalism.php
14•giuliomagnifico•15m ago•0 comments

Mock – An API creation and testing utility: Examples

https://dhuan.github.io/mock/latest/examples.html
90•dhuan_•6h ago•17 comments

Backpropagation is a leaky abstraction (2016)

https://karpathy.medium.com/yes-you-should-understand-backprop-e2f06eab496b
249•swatson741•13h ago•109 comments

New South Korean national law will turn large parking lots into solar farms

https://electrek.co/2025/11/02/new-national-law-will-turn-large-parking-lots-into-solar-power-farms/
60•thelastgallon•3h ago•31 comments

Notes by djb on using Fil-C (2025)

https://cr.yp.to/2025/fil-c.html
210•transpute•12h ago•108 comments

A prison of my own making

https://jsteuernagel.de/posts/a-prison-of-my-own-making/
32•todsacerdoti•5h ago•5 comments

Go Primitive in Java, or Go in a Box

https://donraab.medium.com/go-primitive-in-java-or-go-in-a-box-c26f5c6d7574
49•ingve•1w ago•19 comments

Visopsys: OS maintained by a single developer since 1997

https://visopsys.org/
424•kome•20h ago•102 comments

Welcome to hell; please drive carefully

https://2earth.github.io/website/20251026.html
65•2earth•5d ago•23 comments

A man who changes the time on Big Ben

https://www.mylondon.news/news/zone-1-news/meet-man-who-changes-time-32715300
19•simmerup•1w ago•12 comments

Matched Clean Power Index

https://matched.energy/blog/matched-clean-power-index-is-live
28•bensg•6h ago•21 comments

Claude Code can debug low-level cryptography

https://words.filippo.io/claude-debugging/
407•Bogdanp•23h ago•190 comments

OpenBSD 7.8 Highlights

https://rsadowski.de/posts/2025/openbsd-78/
17•zdw•1w ago•2 comments

Updated practice for review articles and position papers in ArXiv CS category

https://blog.arxiv.org/2025/10/31/attention-authors-updated-practice-for-review-articles-and-posi...
475•dw64•1d ago•222 comments

How I use every Claude Code feature

https://blog.sshh.io/p/how-i-use-every-claude-code-feature
402•sshh12•18h ago•145 comments

HyperRogue – A non-Euclidean roguelike

https://roguetemple.com/z/hyper/
108•stared•6h ago•28 comments

Pomelli

https://blog.google/technology/google-labs/pomelli/
240•birriel•19h ago•108 comments

FlightAware Map Design

https://andywoodruff.com/posts/2024/flightaware-maps/
79•marklit•6d ago•22 comments

LM8560, the eternal chip from the 1980 years

https://www.tycospages.com/other-themes/lm8560-the-eternal-chip-from-the-1980-years/
99•userbinator•14h ago•34 comments

Context engineering

https://chrisloy.dev/post/2025/08/03/context-engineering
65•chrisloy•9h ago•34 comments

GHC now runs in the browser

https://discourse.haskell.org/t/ghc-now-runs-in-your-browser/13169
337•kaycebasques•1d ago•116 comments

Show HN: Anki-LLM – Bulk process and generate Anki flashcards with LLMs

https://github.com/raine/anki-llm
6•rane•4h ago•1 comments
Open in hackernews

Mock – An API creation and testing utility: Examples

https://dhuan.github.io/mock/latest/examples.html
90•dhuan_•6h ago

Comments

ruguo•6h ago
Does it support Windows? I don’t see a Windows version on the GitHub releases page.
debuggingCode•6h ago
looks like based on linux is the reason
n0n0n4t0r•6h ago
With wsl (or docker desktop), for non production tooling, I don't think it's relevant anymore.

(I'm not saying it's on par with linux, I'm just saying it's usable)

dhuan_•5h ago
Hi! Not yet, unless you use it with containers.
a2800276•5h ago
Wonderful little tool! Something similar has been swirling aronud my head for a while. Thank you for sharing, it looks very useful.
dhuan_•5h ago
Hi, thanks for the feedback! I hope it's useful to you.
BinaryIgor•5h ago
Interesting, a few questions: 1. How hard/easy is it to make responses dynamic, i.e. to use something from the request data like query/path param or a body to execute function instead of hardcoding the response 2. What's the main motivation for creating this tool? I feel like every programming language have similar tool already - WireMock for Java etc. Why should people switch?
dhuan_•5h ago
Hi thanks for the feedback checking out the project.

> What's the main motivation for creating this tool?

Similar tools exist out there for sure, but they are either complex (more than I wish they'd be) or somehow require you to use a specific programming languages. Mock lets you accomplish this without telling you which language you should use.

Also if you're using mock inside CI pipelines, it also helps the fact that you can just download a executable tool that does not require you the java platform or any other dependency.

> How hard/easy is it to make responses dynamic, i.e. to use something from the request data like query/path param or a body to execute function instead of hardcoding the response

With mock you can use shell scripts as "request handlers". With that said, capturing a query param or a JSON field from the request body is as simple as:

> $ USER_NAME=$(mock get-payload user.name)

> $ SOME_QUERY_STRING_PARAM=$(mock get-query foo)

You can see more of this topic here: https://dhuan.github.io/mock/shell_scripts.html

> I feel like every programming language have similar tool already - WireMock for Java etc. Why should people switch?

True. If people are happy with these tools and needing to use java (or any other lang the tool pulls you into), then there's not much reason to switch.

cozzyd•5h ago
the name mock has also been used for the RPM build environment tool (https://github.com/rpm-software-management/mock)
dhuan_•5h ago
Hi, thanks for the feedback!

That's true, it's not a very unique name. I started building it, but only months later I thought of making it public. And then never thought of renaming it.

siva7•5h ago
> Making an existing API slow can be easily accomplished combining mock’s Base APIs and the delay option.

Ah, it's the "billable hours" variable.

calrain•4h ago
It frustrates me no end when large commercial web sites fail to store state in URLs. It should be updated when the user clicks the 'submit' button of a page, especially when related to searching.

Some products have these fancy KQL style search parameters but if you forget to 'save the search' within the applications 'Save Search' facility, then when you duplicate a tab the search is lost.

It feels rude when sites ignore the UX improvement by not leveraging the power of URLs to store current state.

rirze•3h ago
Did you comment on the wrong post? There’s another post talking about storing state in URLs
dhuan_•3h ago
I think you intended to post here: https://news.ycombinator.com/item?id=45789474
fhduksbegd•3h ago
How does this differ from swagger?
dhuan_•2h ago
Swagger is a tool for API design and documentation.

Mock on the other hand is an actual API creation utility with which you can define endpoints, execute some logic for each endpoint and then return some data to the client. There are other similar features which are covered in the user guide.

Mock is not: - A tool for API Specs or documentation - A GUI tool.

I admit explaining the usefulness of this tool is not the easiest thing.

Any feedback is welcome!

hnBTsd•2h ago
What a great tool! Writing simple scriptable mock apis all for the command line. Very easy to include commands straight into documentation.