frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

uget – stupid get-file-over-HTTP program/function

https://github.com/troglobit/uget
2•peter_d_sherman•1h ago

Comments

peter_d_sherman•1h ago
The author bills this C source code as a "Really stupid get-file-over-http program/function".

I wholeheartedly disagree!

I claim, much to the contrary, that it is very, very intelligent!

See in terms of simplicity, in terms of understandability, in terms of the codebase, there are only 4 C source files here: https://github.com/troglobit/uget/tree/master/src .

Now, two of those are header (.h) files, because in C the programmer typically splits units of code into headers (aka declarations), and body (aka implementation), unlike say, Pascal, where headers and implementations typically share the same file.

That is, there are really just two pieces of functionality here.

One is the file getting (uget.h, uget.c), and the other is the SSL interface to OpenSSL (ssl.h, ssl.c):

#ifdef ENABLE_SSL

#include <openssl/x509v3.h>

#include <openssl/ssl.h>

#include <openssl/err.h>

[etc.]

Now those files (and the OpenSSL dependency) are only required only because the modern web predominantly uses the encrypted SSL protocol (i.e., https) -- compare to the earlier web which predominantly used unencrypted http, where all of that extra code is basically unnecessary (but of course, you lose encryption -- that's the trade-off).

As a commercial, production-ready tool, the author is quite right that you should probably use 'wget' or 'curl' instead, but as a teaching tool (or tool to be included on a minimal educational operating system), one where simplicity, understandability and minimal lines of code are virtuous, I believe that 'uget' is quite good, heck, I'd go as far as to say 'quite excellent' at achieving the smallest codebase and the greatest understandability for the purpose!

While other HN readers may disagree with me (and are free to do so!), I have to commend the author for a great minimal utility, and job well done!

Well done, uget author, well done!

(Related: https://suckless.org/ https://en.wikipedia.org/wiki/Suckless.org)

Apple Is Holding My Pictures Hostage Until I Accept Their New Terms of Service

https://probablydance.com/2026/05/01/apple-is-holding-my-pictures-hostage-until-i-accept-their-ne...
1•akkartik•42s ago•0 comments

Thousands of Pentagon Civilian Workers Will Be Fired Next Week as Purge Begins

https://www.military.com/daily-news/2025/02/21/pentagon-fire-5400-civilian-employees-first-step-t...
3•Bender•6m ago•0 comments

Gut bacteria may play a role in the rise in colon cancer in young adults

https://www.npr.org/sections/shots-health-news/2025/04/25/g-s1-62623/colon-cancer-gut-health-micr...
2•littlexsparkee•6m ago•0 comments

There's a lot of hype about Chinese EVs, is any of it true?

https://arstechnica.com/cars/2026/05/theres-a-lot-of-hype-about-chinese-evs-is-any-of-it-true/
1•Bender•12m ago•0 comments

Show HN: Transparent Tor Proxy – Route all Linux system traffic through Tor

https://github.com/onyks-os/TransparentTorProxy
1•onyks•14m ago•0 comments

xAI Has Used OpenAI's Models to Train Its Own

https://www.wired.com/story/elon-musk-distill-openai-models-partly-xai/
1•bhouston•17m ago•0 comments

Show HN: MemHub, Turn Your GPT/Claude/Gemini History into LLM-Wiki Mindmap

https://github.com/XTraceAI/memhub-llm-wiki-guide
2•TristanX•20m ago•0 comments

Hobson vs. Hansen and the Decline of D.C. Schools

https://www.educationprogress.org/p/hobson-v-hansen-and-the-decline-of
1•barry-cotter•25m ago•1 comments

Finny – AI trading agent that runs in your terminal

https://www.finnyai.tech/
1•jaimin67•36m ago•0 comments

Kubernetes Secret Extraction via ArgoCD ServerSideDiff

https://github.com/argoproj/argo-cd/security/advisories/GHSA-3v3m-wc6v-x4x3
1•milkglass•46m ago•0 comments

TanStack Start: Full-Stack Framework Powered by TanStack Router for React+Solid

https://tanstack.com/start/latest
1•doener•47m ago•0 comments

TanStack Router: modern router designed for type safety, data‑driven navigation

https://github.com/TanStack/router
1•doener•48m ago•0 comments

Show HN: Hackamaps – A global hackathon map I build after hitting Lovable Limits

1•ostenjap•48m ago•0 comments

So, About That AI Bubble

https://www.theatlantic.com/economy/2026/05/ai-bubble-revenue-anthropic/687022/
1•JumpCrisscross•48m ago•1 comments

Vite: Next Generation Front End Tooling

https://github.com/vitejs/vite
1•doener•49m ago•0 comments

Agsist – free real-time grain market dashboard for US producers

https://agsist.com/
1•dnilgis•50m ago•0 comments

The Half of CI We Forgot to Automate

https://blog.sebastiansastre.co/posts/the-half-of-ci-we-forgot-to-automate/
1•sebastianconcpt•51m ago•1 comments

GitHub Enshittification

https://pablotron.org/2026/04/30/github-enshittification/
2•birdculture•59m ago•0 comments

Russian forces defeated in Saharan stronghold after wave of attacks

https://www.ft.com/content/e40ba9d0-7430-4545-8c26-c99cde5caf33
3•JumpCrisscross•1h ago•1 comments

Good developers learn to program. Most courses teach a language

https://evilgeniuslabs.ca/blog/good-developers-learn-to-program-not-a-language
4•andsoitis•1h ago•0 comments

Probability Sampling

https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch13/prob/5214899-eng.htm
1•firasd•1h ago•0 comments

History of Visual Basic (Chapter 1)

https://evilgeniuslabs.ca/books/visual-basic-history
2•andsoitis•1h ago•0 comments

A Physics Engine with Incremental Rollback for Multiplayer Games

https://easel.games/blog/2026-rollback-physics
1•BSTRhino•1h ago•1 comments

What did you love about VB6?

https://evilgeniuslabs.ca/blog/vb6-modern-dotnet-question
36•andsoitis•1h ago•30 comments

London's First RL Long Horizon Hackathon [video]

https://www.youtube.com/watch?v=oYFWsYcd0NY
1•dominiconorton•1h ago•0 comments

Notes on a non-profit indicted for bank fraud

https://www.bitsaboutmoney.com/archive/nonprofit-indicted-bank-fraud/
2•Redoubts•1h ago•0 comments

Show HN: Passages – Read long-form articles on you E-Ink

https://www.passages.ink/
1•tbueno•1h ago•0 comments

U.S. to Withdraw 5k Troops from Germany, Pentagon Says

https://www.nytimes.com/2026/05/01/us/politics/us-troops-germany.html
29•mikhael•1h ago•7 comments

uget – stupid get-file-over-HTTP program/function

https://github.com/troglobit/uget
2•peter_d_sherman•1h ago•1 comments

Visual Studio 2026 still ships the form designer Alan Cooper drew in 1987

https://evilgeniuslabs.ca/blog/winforms-still-ships-in-visual-studio-2026
5•jordand•1h ago•0 comments