frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: Identifier for files and directories (like ISBN for Books)

https://github.com/skorotkiewicz/fsid
1•modinfo•1m ago•0 comments

Show HN: Holy Grail: Open-Source Autonomous Development Agent

https://github.com/dakotalock/holygrailopensource
1•Moriarty2026•8m ago•1 comments

Show HN: Minecraft Creeper meets 90s Tamagotchi

https://github.com/danielbrendel/krepagotchi-game
1•foxiel•15m ago•1 comments

Show HN: Termiteam – Control center for multiple AI agent terminals

https://github.com/NetanelBaruch/termiteam
1•Netanelbaruch•15m ago•0 comments

The only U.S. particle collider shuts down

https://www.sciencenews.org/article/particle-collider-shuts-down-brookhaven
1•rolph•18m ago•1 comments

Ask HN: Why do purchased B2B email lists still have such poor deliverability?

1•solarisos•19m ago•2 comments

Show HN: Remotion directory (videos and prompts)

https://www.remotion.directory/
1•rokbenko•21m ago•0 comments

Portable C Compiler

https://en.wikipedia.org/wiki/Portable_C_Compiler
2•guerrilla•23m ago•0 comments

Show HN: Kokki – A "Dual-Core" System Prompt to Reduce LLM Hallucinations

1•Ginsabo•23m ago•0 comments

Software Engineering Transformation 2026

https://mfranc.com/blog/ai-2026/
1•michal-franc•24m ago•0 comments

Microsoft purges Win11 printer drivers, devices on borrowed time

https://www.tomshardware.com/peripherals/printers/microsoft-stops-distrubitng-legacy-v3-and-v4-pr...
3•rolph•25m ago•1 comments

Lunch with the FT: Tarek Mansour

https://www.ft.com/content/a4cebf4c-c26c-48bb-82c8-5701d8256282
2•hhs•28m ago•0 comments

Old Mexico and her lost provinces (1883)

https://www.gutenberg.org/cache/epub/77881/pg77881-images.html
1•petethomas•31m ago•0 comments

'AI' is a dick move, redux

https://www.baldurbjarnason.com/notes/2026/note-on-debating-llm-fans/
4•cratermoon•33m ago•0 comments

The source code was the moat. But not anymore

https://philipotoole.com/the-source-code-was-the-moat-no-longer/
1•otoolep•33m ago•0 comments

Does anyone else feel like their inbox has become their job?

1•cfata•33m ago•1 comments

An AI model that can read and diagnose a brain MRI in seconds

https://www.michiganmedicine.org/health-lab/ai-model-can-read-and-diagnose-brain-mri-seconds
2•hhs•36m ago•0 comments

Dev with 5 of experience switched to Rails, what should I be careful about?

1•vampiregrey•39m ago•0 comments

AlphaFace: High Fidelity and Real-Time Face Swapper Robust to Facial Pose

https://arxiv.org/abs/2601.16429
1•PaulHoule•40m ago•0 comments

Scientists discover “levitating” time crystals that you can hold in your hand

https://www.nyu.edu/about/news-publications/news/2026/february/scientists-discover--levitating--t...
2•hhs•42m ago•0 comments

Rammstein – Deutschland (C64 Cover, Real SID, 8-bit – 2019) [video]

https://www.youtube.com/watch?v=3VReIuv1GFo
1•erickhill•42m ago•0 comments

Tell HN: Yet Another Round of Zendesk Spam

4•Philpax•42m ago•0 comments

Postgres Message Queue (PGMQ)

https://github.com/pgmq/pgmq
1•Lwrless•46m ago•0 comments

Show HN: Django-rclone: Database and media backups for Django, powered by rclone

https://github.com/kjnez/django-rclone
2•cui•49m ago•1 comments

NY lawmakers proposed statewide data center moratorium

https://www.niagara-gazette.com/news/local_news/ny-lawmakers-proposed-statewide-data-center-morat...
2•geox•50m ago•0 comments

OpenClaw AI chatbots are running amok – these scientists are listening in

https://www.nature.com/articles/d41586-026-00370-w
3•EA-3167•50m ago•0 comments

Show HN: AI agent forgets user preferences every session. This fixes it

https://www.pref0.com/
6•fliellerjulian•53m ago•0 comments

Introduce the Vouch/Denouncement Contribution Model

https://github.com/ghostty-org/ghostty/pull/10559
2•DustinEchoes•55m ago•0 comments

Show HN: SSHcode – Always-On Claude Code/OpenCode over Tailscale and Hetzner

https://github.com/sultanvaliyev/sshcode
1•sultanvaliyev•55m ago•0 comments

Microsoft appointed a quality czar. He has no direct reports and no budget

https://jpcaparas.medium.com/microsoft-appointed-a-quality-czar-he-has-no-direct-reports-and-no-b...
3•RickJWagner•56m ago•0 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.