frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: LocalGPT – A local-first AI assistant in Rust with persistent memory

https://github.com/localgpt-app/localgpt
164•yi_wang•5h ago•51 comments

OpenClaw Is Changing My Life

https://reorx.com/blog/openclaw-is-changing-my-life/
8•novoreorx•1h ago•3 comments

Haskell for all: Beyond agentic coding

https://haskellforall.com/2026/02/beyond-agentic-coding
80•RebelPotato•5h ago•19 comments

SectorC: A C Compiler in 512 bytes (2023)

https://xorvoid.com/sectorc.html
270•valyala•13h ago•51 comments

Total surface area required to fuel the world with solar (2009)

https://landartgenerator.org/blagi/archives/127
33•robtherobber•4d ago•37 comments

Software factories and the agentic moment

https://factory.strongdm.ai/
209•mellosouls•16h ago•360 comments

Speed up responses with fast mode

https://code.claude.com/docs/en/fast-mode
172•surprisetalk•13h ago•165 comments

LLMs as the new high level language

https://federicopereiro.com/llm-high/
76•swah•4d ago•139 comments

The world heard JD Vance being booed at the Olympics. Except for viewers in USA

https://www.theguardian.com/sport/2026/feb/07/jd-vance-boos-winter-olympics
60•treetalker•21m ago•13 comments

Hoot: Scheme on WebAssembly

https://www.spritely.institute/hoot/
184•AlexeyBrin•19h ago•35 comments

Brookhaven Lab's RHIC concludes 25-year run with final collisions

https://www.hpcwire.com/off-the-wire/brookhaven-labs-rhic-concludes-25-year-run-with-final-collis...
76•gnufx•12h ago•60 comments

The Architecture of Open Source Applications (Volume 1) Berkeley DB

https://aosabook.org/en/v1/bdb.html
10•grep_it•5d ago•0 comments

Stories from 25 Years of Software Development

https://susam.net/twenty-five-years-of-computing.html
177•vinhnx•16h ago•18 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
331•jesperordrup•23h ago•99 comments

First Proof

https://arxiv.org/abs/2602.05192
139•samasblack•15h ago•81 comments

Substack confirms data breach affects users’ email addresses and phone numbers

https://techcrunch.com/2026/02/05/substack-confirms-data-breach-affecting-email-addresses-and-pho...
31•witnessme•2h ago•9 comments

Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version

https://github.com/Momciloo/fun-with-clip-path
87•momciloo•13h ago•18 comments

Wood Gas Vehicles: Firewood in the Fuel Tank (2010)

https://solar.lowtechmagazine.com/2010/01/wood-gas-vehicles-firewood-in-the-fuel-tank/
36•Rygian•2d ago•11 comments

Vouch

https://twitter.com/mitchellh/status/2020252149117313349
81•chwtutha•4h ago•22 comments

Al Lowe on model trains, funny deaths and working with Disney

https://spillhistorie.no/2026/02/06/interview-with-sierra-veteran-al-lowe/
109•thelok•15h ago•24 comments

Start all of your commands with a comma (2009)

https://rhodesmill.org/brandon/2009/commands-with-comma/
593•theblazehen•3d ago•214 comments

Show HN: A luma dependent chroma compression algorithm (image compression)

https://www.bitsnbites.eu/a-spatial-domain-variable-block-size-luma-dependent-chroma-compression-...
42•mbitsnbites•3d ago•5 comments

LineageOS 23.2

https://lineageos.org/Changelog-31/
6•pentagrama•1h ago•0 comments

The AI boom is causing shortages everywhere else

https://www.washingtonpost.com/technology/2026/02/07/ai-spending-economy-shortages/
316•1vuio0pswjnm7•20h ago•514 comments

FDA intends to take action against non-FDA-approved GLP-1 drugs

https://www.fda.gov/news-events/press-announcements/fda-intends-take-action-against-non-fda-appro...
116•randycupertino•8h ago•243 comments

OpenCiv3: Open-source, cross-platform reimagining of Civilization III

https://openciv3.org/
908•klaussilveira•1d ago•277 comments

Where did all the starships go?

https://www.datawrapper.de/blog/science-fiction-decline
161•speckx•4d ago•245 comments

Selection rather than prediction

https://voratiq.com/blog/selection-rather-than-prediction/
36•languid-photic•4d ago•18 comments

Show HN: Look Ma, No Linux: Shell, App Installer, Vi, Cc on ESP32-S3 / BreezyBox

https://github.com/valdanylchuk/breezydemo
304•isitcontent•1d ago•39 comments

Monty: A minimal, secure Python interpreter written in Rust for use by AI

https://github.com/pydantic/monty
314•dmpetrov•1d ago•159 comments
Open in hackernews

URL in C (2011)

https://susam.net/url-in-c.html
92•birdculture•2mo ago

Comments

gblargg•2mo ago
I do this to embed shell commands at the beginning of short one-file C/C++ programs to execute when hitting an F key in my text editor. I usually put very basic compile-and-run commands. It's wrapped in #if and #endif which are comments in many shells. I end the commands with exit so it doesn't try to execute the code as commands.
writebetterc•2mo ago
This is why you should only use /* */ as your comment style.
danhau•2mo ago
How is this related to the article?
wkjagt•2mo ago
Solve the puzzle and you'll know :-)
dxroshan•2mo ago
It's a puzzle. Nobody is going to put a URL amid your code. There is no harm in using // for comments.
writebetterc•2mo ago
It's a joke
dxroshan•2mo ago
My bad, I thought you are serious.
p0w3n3d•2mo ago
Quite a time ago, my colleague accidentally committed a Youtube url to our Java codebase (middle-click accidental paste, no code review at that time). We had some laughing moments when we discovered it, as it was compelling evidence that he was watching videos during work, and even we knew what he was watching at that time.
raverbashing•2mo ago
Of all the (ahem, not as many as hoped) things C++ got right, // comments are one of the best ones

And I'm glad it now is part of C as well

dhosek•2mo ago
I remember working on some code back in ’99 when the other dev on the project used // comments in C code which, it turned out, were supported by the C compiler we were using, but which broke the embedded SQL preprocessor.
anonnon•2mo ago
Clearly, the "http:" is parsed as a label (for goto), and the subsequent "//", as a C++ or C99 comment. This shouldn't give you more than a moment's pause if you know C.
pwdisswordfishy•2mo ago
Or if you use a syntax highlighter.
anonnon•2mo ago
Yes, I don't know why people are downvoting me. Have these people never seen C code using goto-based error handling?
NackerHughes•2mo ago
I wouldn't be surprised if a fair majority of them have been taught to see goto as nothing but a vestige of the 70s which should never be used under any circumstances except as a meme or to deliberately obfuscate code.

I have recently become quite fond of goto-based error handling and find it a lot cleaner and more readable than the if-else-mountains you otherwise end up with. I just make sure to leave a comment with a link to xkcd.com/292 so anyone else reading it knows I'm aware of what I'm doing. Now with this URL trick I can do both in one line. :)

elcapitan•2mo ago
And the corresponding `goto http` is the chef's kiss :D love it
dhosek•2mo ago
I mean, I’ve not written C code in decades¹ and this didn’t cause a second’s pause.

⸻

1. Long enough ago that the only practical way to get syntax highlighting was to run a separate program on the source code to generate a TeX document.

tromp•2mo ago
You can only have one URL for each scheme though, else your compiler will report something like

error: redefinition of label 'https'

rplnt•2mo ago
This puzzle would become extra trivial with syntax highlighting.
eps•2mo ago
Nice.

Another neat comment-based construct is the good old:

  //*
     foo
  /*/
     bar
  //*/
It yields 'foo' as is, and 'bar' if the first slash is removed.
pwdisswordfishy•2mo ago
It's not as needed in C given that you can use #if 1

It is handy in C derivatives, though.

askl•2mo ago
At least when using -Wall the compiler will give you the warning

  <source>:5:5: warning: label 'https' defined but not used [-Wunused-label]
as a hint.
rts_cts•2mo ago
That's exactly how we found an accidental copy/paste of an internal URL in our source code.
1vuio0pswjnm7•2mo ago
Wouldn't there be a warning about an unused goto label
alilikestech•2mo ago
This is very neat.