frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

The Heat Mirage: My least-favorite internet maneuver

https://dynomight.net/heat/
1•surprisetalk•1m ago•0 comments

Measles vaccines save lives each year

https://ourworldindata.org/measles-vaccines-save-lives
2•surprisetalk•1m ago•0 comments

Claude Code: An Analysis

https://southbridge-research.notion.site/claude-code-an-agentic-cleanroom-analysis
1•amrrs•3m ago•1 comments

Harvard Has Trained So Many Chinese Officials, They Call It Their 'Party School'

https://www.wsj.com/world/china/china-communist-party-harvard-f855112b
1•mudil•3m ago•0 comments

My clerk landing page template, for free

https://twitter.com/TaylorHadfield4/status/1929341827410170353
1•Theoya•15m ago•0 comments

Show HN: Agno – A full-stack framework for building Multi-Agent Systems

https://github.com/agno-agi/agno
1•bediashpreet•30m ago•0 comments

New sonar tool is a 'game changer' for mapping the sea floor

https://www.science.org/content/article/new-sonar-tool-game-changer-mapping-sea-floor
3•ipunchghosts•31m ago•0 comments

TPDE: A Fast Adaptable Compiler Back-End Framework

https://arxiv.org/abs/2505.22610
2•npalli•31m ago•0 comments

Schulte Grid Training – Django app for attention/reaction speed training

https://schultetable.net/en/
1•AdamRichic•36m ago•0 comments

Future of Professionals Report (2024) [pdf]

https://www.thomsonreuters.com/content/dam/ewp-m/documents/thomsonreuters/en/pdf/reports/future-of-professionals-report-2024.pdf
3•gnabgib•38m ago•0 comments

Generative AI will probably make blogs better

https://www.pcloadletter.dev/blog/ai-will-make-blogging-better/
1•ronbenton•41m ago•0 comments

Structured Exercise After Adjuvant Chemotherapy for Colon Cancer

https://www.nejm.org/doi/full/10.1056/NEJMoa2502760
3•ckcheng•49m ago•1 comments

Sylvain Chomet Won't Be Using AI Anytime Soon

https://www.hollywoodreporter.com/movies/movie-news/sylvain-chomet-marcel-pagnol-cannes-film-a-magnificent-life-1236219593/
1•colinprince•56m ago•0 comments

How to name binary (inorganic) compounds given their chemical formula? (2018)

https://chemistry.stackexchange.com/questions/98159/how-to-name-binary-inorganic-compounds-given-their-chemical-formula-and-vice
1•susam•59m ago•0 comments

Lessons From Cursor's System Prompt

https://byteatatime.dev/posts/cursor-prompt-analysis/
2•ByteAtATime•1h ago•0 comments

Ask HN: Best GTM strategies to engage indie hackers as early users?

1•maxime_wellapp•1h ago•0 comments

US vets agency orders scientists not to publish in journals without clearance

https://www.theguardian.com/us-news/2025/jun/01/us-veterans-affairs-agency-doctors-scientists-research
8•mitchbob•1h ago•1 comments

Recency and geographic origin of the bat viruses ancestral to SARS-CoV and CoV-2

https://www.cell.com/cell/fulltext/S0092-8674(25)00353-8
1•gnabgib•1h ago•0 comments

Show HN: AI trip planner that starts with ideas, not destinations

https://travelaiplanner.com/
1•drisw•1h ago•0 comments

Ask HN: What should you ask to understand a new team and company?

2•laura2013•1h ago•1 comments

Thematic World Maps in the News: How Effective Are They on Smartphones?

https://www.tandfonline.com/doi/full/10.1080/00087041.2024.2447628#d1e497
1•gaws•1h ago•0 comments

Ru and W isotope systematics in ocean island basalts reveals core leakage

https://www.nature.com/articles/s41586-025-09003-0
4•temporalparts•1h ago•0 comments

InstantAd

https://www.instantad.ai/
1•handfuloflight•1h ago•0 comments

Global study debunks lab leak theory, finds Covid virus originated outside Wuhan

https://www.scmp.com/news/china/science/article/3311580/global-study-debunks-lab-leak-theory-finds-covid-19-virus-didnt-originate-wuhan
5•MilnerRoute•1h ago•2 comments

Implementing TOTP two-factor authentication in 2025

https://feeding.cloud.geek.nz/posts/totp-in-2025/
1•pabs3•1h ago•0 comments

Yeah, it is on YouTube or LinkedIn and has cookies

https://berthub.eu/articles/posts/yeah-it-is-on-youtube-linkedin/
1•pabs3•1h ago•0 comments

Life-Changing Homes for healing, personal growth and starting over

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

Nissan launches new, mid-size PHEV pickup that undercuts $20K Slate in China

https://electrek.co/2025/06/01/nissan-launches-new-mid-size-phev-pickup-that-undercuts-20k-slate/
2•gnabgib•1h ago•2 comments

Rejoignez le jeu Le Petit Bac

https://petitbac.net/new-game.xhtml
1•yregf•1h ago•0 comments

Show HN: Mindly – One chat interface for GPT-4o, Claude, Gemini and more

https://mindly.chat
1•riley-wv•1h ago•0 comments
Open in hackernews

Using Ed(1) as My Static Site Generator

https://aartaka.me/this-post-is-ed.html
89•BoingBoomTschak•1d ago

Comments

BoingBoomTschak•1d ago
The quite cool journey of a hacker trying to find his favourite SSG itch scratching position.

What inspired me to post it is that I cobbled a fun HTML preprocessor using cpp to someone today: https://git.sr.ht/~q3cpma/html-cpp (I use a Common Lisp contraption for myself).

WD-42•1d ago
Fantastic. The Unix hackers are alive and well. Keep it real.
Rendello•1d ago
I did my resume in groff once, formatted like a man page. It didn't look half-bad either.
fiddlerwoaroof•1d ago
This is a great idea
DaSHacka•1d ago
100%, I'd love to see the template if GP ever makes a blog post about it
qartis•1d ago
I’m not GP but I also ported my resume from latex to groff a few years ago for fun: https://github.com/qartis/groff_resume/

I’m not experienced with groff so the code isn’t great but I was quite happy with the typesetting (and the compile times!)

Rendello•1d ago
I'll see if I can find it. I checked archive.org but it didn't save a copy (it saved the PDF version though, apparently that was good enough to save).

It wasn't the craziest resume I did. I applied for a company that made this UI tool for enterprises. It was a half-WHSIWYG, half-Lua tool. I downloaded the demo and spent a week building my resume as a UI, then sent it to the team. I got an interview with the top level guys and a team of programmers, and they excitedly asked me questions about how I made it and how I figured out certain features (like this image passthrough functionality that "none of their clients could figure out"). It was all very exciting but I wasn't ultimately hired (they were being acquired at the time, perhaps that had something to do with it). I have the video on the UI and the making of it, perhaps I'll post it one day once I anonymize the company's name in the video.

snackbroken•1d ago
> But then, ed is so simple and more or less standard

More or less? ED IS THE STANDARD TEXT EDITOR! [1]

[1] https://www.gnu.org/fun/jokes/ed-msg.html

01HNNWZ0MV43FF•1d ago
More? Less? Why are we talking about pagers? Who's on first?
fredoralive•1d ago
who on first? I don’t think you can use who as init.
Henchman21•1d ago
Not with that attitude!
staplung•1d ago
""" When I use an editor, I don't want eight extra KILOBYTES of worthless help screens and cursor positioning code! I just want an EDitor!! Not a “viitor”. Not a “emacsitor”. Those aren't even WORDS!!!! ED! ED! ED IS THE STANDARD!!! """
strogonoff•20h ago
> Of course, on the system I administrate, vi is symlinked to ed. Emacs has been replaced by a shell script which 1) Generates a syslog message at level LOG_EMERG; 2) reduces the user's disk quota by 100K; and 3) RUNS ED!!!!!!
wtetzner•1d ago
> Note the consistent user interface and error reportage. Ed is generous enough to flag errors, yet prudent enough not to overwhelm the novice with verbosity.
adamors•1d ago
Was hoping to see this here, still makes me laugh after discovering it 20 years ago.
EuAndreh•13h ago
Besides being the stardand, it also has a standard:

https://pubs.opengroup.org/onlinepubs/9799919799/utilities/e...

tincholio•12h ago
?
sgt•1d ago
I once used m4 to generate my blog. Worked like a charm!
smlavine•1d ago
I once used m4 to generate my blog. Hated it. Escaping was a nightmare and I was always afraid I'd quote something wrong.
PhilipRoman•1d ago
I use m4 with -P option and m4_changequote({{,}})

Personally I find it quite reasonable for code that you don't plan on changing any time soon.

kragen•1d ago
Those seem like they would make it bearable. Also GNU m4 has an extension to standard m4 which doesn't replace builtin macro names that take arguments if you omit the (). Without that, every unquoted occurrence of words like format, index, join, quote, builtin, define, copy, or capitalize silently vanishes. It's a nightmare. You can also avoid this problem with changeword or -P.
somat•1d ago
Oh man massive nostalgia hit.

When I was younger I was trying to learn the traditional unix tools, so I sat down with a copy of openbsd and made a wiki using only what was found in the base system, and perl was cheating. The templating engine was m4, web server in shell, page history in rcs, a really neat back reference system in awk(when you square linked to another page, it would put a link back in the backreference section of that other page, inspired by everything2) ...

Now I am trying to see if I have any of the code saved... It was probably one huge pile of injection vectors... but they were my injection vectors.

Hah, found it, Apologies for inflicting it on everyone, But I was having too much fun trying to figure out what past me was on.

https://nl1.outband.net/fossil/gami/dir?ci=tip&type=tree

djoldman•1d ago
> Should You Use ed As Site Generator?

> No, not at all.

Well, it (totxt.ed) looks pretty inscrutable to me:

  H
  !# Include proxy title
  !# Insert fallback values
  ?<head>?a
  <SUBTITLE></SUBTITLE>
  <DESCRIPTION></DESCRIPTION>
  <IMAGE></IMAGE>
  <IMAGE_ALT></IMAGE_ALT>
  .
  w
  !# Include the template files via script
  g/\(<!--\)*[<#]include \(file=\)*"*\([^">]*\)"* *-*\/*>*/s//&\
  \/[<#]include\/d\
  -1r \3\
  wq\
  /
  g/[<#]include "*\([^">]*\)"*\/*>*/d\
  .,+3w !ed %
  E
  !# Repeat the second time for recursive includes
  g/\(<!--\)*[<#]include \(file=\)*"*\([^">]*\)"* *-*\/*>*/s//&\
  \/[<#]include\/d\
  -1r \3\
  wq\
  /
rahen•1d ago
It still looks a lot more legible than a TECO script. ed was a big improvement in ergonomics.
kragen•1d ago
Huh, I didn't know you could do that in ed. It doesn't look inscrutable to me, just confusing.
regus•1d ago
I really like the idea of ed. I tried using it recently but having to constantly reprint the block of code you are editing was really tedious.
skydhash•1d ago
I think the idea of ed is to embrace the edit-compile-cycle. So the error tell you the specific line to go to. Then after the obvious errors are out, you do a full printout to handle logic errors.
cardiffspaceman•1d ago
It’s always fun to figure out the path through the error messages that changes the error line numbers the least, so you don’t have to search or recompile.
Avshalom•1d ago
The idea of Ed is that you have a large spool of paper and you make little editing marks on the printout until you decide you've reached some threshold and then print out a fresh up-to-date copy
susam•1d ago
Impressive! Only three leaps away from using butterflies as static site generator!
xelxebar•23h ago
Nice! Another tantalizing rabbit hole.

I go full in on ed sporadically. It requires a bit of a brain rewire, but tye UX is closer to pencil and paper, which is hard to beat for encouraging deeper thought, IMHO.

Also, check out edbrowse for a line-oriented browser:

https://en.wikipedia.org/wiki/Edbrowse

It's developed by a blind coder and has a nice core following.

kevin_thibedeau•22h ago
> It has no file inclusion, for one. So C Preprocessor's #include is no longer accessible. I manage without it

m4 is always there with better macros than CPP.

tonymet•9h ago
I love how much utility 60+ year old Unix commands have. Very powerful, requiring only a few kB of ram, and even 20+ years later, I’m still discovering new utilities.

I did something similar for https://isgithubipv6.web.app/ . Most static site generators are huge ( I was aiming for < 5mb docker container) . I went with `envsubst` , env vars and a simple HTML template.