frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Git-am applies commit message diffs

https://lore.kernel.org/git/bcqvh7ahjjgzpgxwnr4kh3hfkksfruf54refyry3ha7qk7dldf@fij5calmscvm/
1•rkta•1m ago•0 comments

ClawEmail: 1min setup for OpenClaw agents with Gmail, Docs

https://clawemail.com
1•aleks5678•8m ago•1 comments

UnAutomating the Economy: More Labor but at What Cost?

https://www.greshm.org/blog/unautomating-the-economy/
1•Suncho•15m ago•1 comments

Show HN: Gettorr – Stream magnet links in the browser via WebRTC (no install)

https://gettorr.com/
1•BenaouidateMed•16m ago•0 comments

Statin drugs safer than previously thought

https://www.semafor.com/article/02/06/2026/statin-drugs-safer-than-previously-thought
1•stareatgoats•17m ago•0 comments

Handy when you just want to distract yourself for a moment

https://d6.h5go.life/
1•TrendSpotterPro•19m ago•0 comments

More States Are Taking Aim at a Controversial Early Reading Method

https://www.edweek.org/teaching-learning/more-states-are-taking-aim-at-a-controversial-early-read...
1•lelanthran•20m ago•0 comments

AI will not save developer productivity

https://www.infoworld.com/article/4125409/ai-will-not-save-developer-productivity.html
1•indentit•25m ago•0 comments

How I do and don't use agents

https://twitter.com/jessfraz/status/2019975917863661760
1•tosh•32m ago•0 comments

BTDUex Safe? The Back End Withdrawal Anomalies

1•aoijfoqfw•34m ago•0 comments

Show HN: Compile-Time Vibe Coding

https://github.com/Michael-JB/vibecode
5•michaelchicory•37m ago•1 comments

Show HN: Ensemble – macOS App to Manage Claude Code Skills, MCPs, and Claude.md

https://github.com/O0000-code/Ensemble
1•IO0oI•40m ago•1 comments

PR to support XMPP channels in OpenClaw

https://github.com/openclaw/openclaw/pull/9741
1•mickael•41m ago•0 comments

Twenty: A Modern Alternative to Salesforce

https://github.com/twentyhq/twenty
1•tosh•42m ago•0 comments

Raspberry Pi: More memory-driven price rises

https://www.raspberrypi.com/news/more-memory-driven-price-rises/
1•calcifer•48m ago•0 comments

Level Up Your Gaming

https://d4.h5go.life/
1•LinkLens•52m ago•1 comments

Di.day is a movement to encourage people to ditch Big Tech

https://itsfoss.com/news/di-day-celebration/
3•MilnerRoute•53m ago•0 comments

Show HN: AI generated personal affirmations playing when your phone is locked

https://MyAffirmations.Guru
4•alaserm•54m ago•3 comments

Show HN: GTM MCP Server- Let AI Manage Your Google Tag Manager Containers

https://github.com/paolobietolini/gtm-mcp-server
1•paolobietolini•55m ago•0 comments

Launch of X (Twitter) API Pay-per-Use Pricing

https://devcommunity.x.com/t/announcing-the-launch-of-x-api-pay-per-use-pricing/256476
1•thinkingemote•55m ago•0 comments

Facebook seemingly randomly bans tons of users

https://old.reddit.com/r/facebookdisabledme/
1•dirteater_•57m ago•1 comments

Global Bird Count Event

https://www.birdcount.org/
1•downboots•57m ago•0 comments

What Is Ruliology?

https://writings.stephenwolfram.com/2026/01/what-is-ruliology/
2•soheilpro•59m ago•0 comments

Jon Stewart – One of My Favorite People – What Now? with Trevor Noah Podcast [video]

https://www.youtube.com/watch?v=44uC12g9ZVk
2•consumer451•1h ago•0 comments

P2P crypto exchange development company

1•sonniya•1h ago•0 comments

Vocal Guide – belt sing without killing yourself

https://jesperordrup.github.io/vocal-guide/
2•jesperordrup•1h ago•0 comments

Write for Your Readers Even If They Are Agents

https://commonsware.com/blog/2026/02/06/write-for-your-readers-even-if-they-are-agents.html
1•ingve•1h ago•0 comments

Knowledge-Creating LLMs

https://tecunningham.github.io/posts/2026-01-29-knowledge-creating-llms.html
1•salkahfi•1h ago•0 comments

Maple Mono: Smooth your coding flow

https://font.subf.dev/en/
1•signa11•1h ago•0 comments

Sid Meier's System for Real-Time Music Composition and Synthesis

https://patents.google.com/patent/US5496962A/en
1•GaryBluto•1h ago•1 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.