frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Opening lines of famous literary works

https://www.verbaprima.com/
47•plicerin•1h ago
This came from an idea that had been knocking around in my head for several years. I had been collecting opening lines of famous works and thought it would be cool to see one everyday as I opened the browser. I tried different styles but landed on the simple background with the text, let the words speak for themselves. Over time i've added more quotes I believe now there are close to 60, so hopefully you can refresh a few times and get a fresh one every time. I hope you guys like it, enjoy!

Comments

semiversus•53m ago
Really cool idea! Add a possibility to send you tips for other books. Here is mine: "As GREGOR SAMSA awoke one morning from uneasy dreams he found himself transformed in his bed into a gigantic insect" Metamorphosis by Franz Kafka
1-more•46m ago
obligatory note that there's no great single translation for Ungezeifer. Vermin, pest, insect, arthropod, spider, bug, mouse, "animal unfit for sacrifice" all fit https://en.wiktionary.org/wiki/Ungeziefer
woopah•51m ago
What about making it a daily style game where you have to guess which book the opening is from?
piltdownman•51m ago
For reference, a famous Irish coffee-table (read: bathroom) book in a similar vein:

https://www.abebooks.com/Said-Duchess-First-Lines-Gemma-OCon...

And from a cursory few refreshes I didn't see the obvious one come up:

"It was a bright cold day in April, and the clocks were striking thirteen." Orwell, 1984

kwertyoowiyop•17m ago
It’s there.
zeroonetwothree•50m ago
It would be fun if you had to guess what book it’s from
rnd_mike•49m ago
this is nice, simple idea, but nice. I think the style of the site is also appropriate for what this is :)
diego_moita•38m ago
After trying a lot, I only saw lines from books written originally in English.

Therefore, I assume I'll not see my favorite:

> Muchos años después, frente al pelotón de fusilamiento, el coronel Aureliano Buendía había de recordar aquella tarde remota en que su padre lo llevó a conocer el hielo.

My translation:

"Many years later, in front of the firing squad, colonel Aureliano Buendía would remember that distant afternoon when his father took him to discover ice."

esafak•35m ago
Nevertheless, García Márquez preferred Rabassa's English translation to his original!

There's an okay Netflix mini series of it, FYI.

atulatul•24m ago
>I assume I'll not see my favorite

Your favorite was the first I saw. Just FYI.

xnorswap•37m ago
Frustrating without a way to get to the list of works, because it's not clear when you've seen them all.

You start having to guess how many there are, based on how many you have seen and how many have repeated, and the distance between seeing ones you haven't yet seen before.

A problem made worse, the more quotes there are, as if you have N quotes, then you expect to see the one you see the most often approximately e.ln(N) times ( iirc, for large N ).

( Or put another way: given N items, you expect the gap between discovering the penultimate one and the last one to be N. )

xnorswap•22m ago
I cheated and looked at the source:

There are 60 quotes.

So expect ~280 refreshes to collect 'em all.

stevetron•35m ago
It was a dark and stormy night.
preetham_rangu•32m ago
This reminds me how much weight a great opening sentence carries. Some of them are memorable decades later because they establish the tone immediately
tangenter•24m ago
Either that or they’ve been repeated by the audience so often as to lose all their appeal.
olooney•27m ago
> so hopefully you can refresh a few times and get a fresh one every time

If you randomly sample from only 60 quotes, then after 10 refreshes there will be a greater than 50% chance of at least one repeat, and by 20 refreshes it's up to 95%. This is an example of the birthday paradox[1].

On the flip side, if someone wants to see all 60 quotes, they will have to refresh the page an average of 281 times, mostly (~80%) seeing quotes they've already seen before. This is an example of the coupon collector's problem[2].

The way to avoid both these problems is to shuffle the quotes into a random order, just once, and remember that order. The first time a user comes to the page, start at a random index in that shuffled list, and from then on, simply move to the next item in the list. Every user will get a unique set of random quotes, but will see no repeats until the list is exhausted, and will be guaranteed to be able to see all available content in just 60 refreshes.

[1]: https://en.wikipedia.org/wiki/Birthday_problem

[2]: https://en.wikipedia.org/wiki/Coupon_collector%27s_problem

alansaber•22m ago
Make sure you fingerprint every user to make sure they're using the right index value /s
smashah•24m ago
wonderful project thanks for making it :)
DataDaoDe•19m ago
I'd be interested to know what everyone's favorite opening lines of all time are. (bonus - to see how much of it you can quote without looking :)

For me, its: Whann that aprill with hir shoures soote, The drought of march hath perced to the roote, And zepherus eek with his sweete breath, inspired hath in every holt and heth, the tendre cropes, and the sonne hath in the ram, hir halve cours ironne, Than preketh hem natur in hir courages, and longon folk to gon on pilgrimages.

Somehow that has always stuck with me, I'm sure I'm missing parts, but from the first time I ever heard these lines the just imprinted themselves like a song to me.

adrianN•16m ago
From memory: The sky was the color of a TV tuned to a bad channel
CharlesW•12m ago
Close! (I had to look it up.) "The sky above the port was the color of television, tuned to a dead channel." (Neuromancer, William Gibson)
drc500free•10m ago
"The war tried to kill us in the spring" from The Yellow Birds always stuck with me, for its complete decoupling of the war from the men who had come thousands of miles to fight it.

** ETA the full opening:

“The war tried to kill us in the spring. As grass greened the plains of Nineveh and the weather warmed, we patrolled the low-slung hills beyond the cities and towns. We moved over them and through the tall grass on faith, kneading paths into the windswept growth like pioneers. While we slept, the war rubbed its thousand ribs against the ground in prayer.

alvatar•14m ago
English literature heavily overrepresented
arkensaw•13m ago
> "I was born in the City of Bombay… once upon a time." > Midnight's Children > Salman Rushdie · 1981

Ok so I guess it is literally just openings of famous literary works, and not great first lines

atulatul•4m ago
May I submit these? Didn't see these after many refreshes:

"Into the face of the young man who sat on the terrace of the Hotel Magnifique at Cannes there had crept a look of furtive shame, the shifty, hangdog look which announces that an Englishman is about to talk French." - Wodehouse, The Luck of the Bodkins

"When he was nearly thirteen my brother Jem got his arm badly broken at the elbow." - Harper Lee. To Kill A Mockingbird

"Scarlett O'Hara was not beautiful, but men seldom realized it when caught by her charm as the Tarleton twins were."- Margaret Mitchell. Gone With the Wind

Show HN: Opening lines of famous literary works

https://www.verbaprima.com/
49•plicerin•1h ago•27 comments

I'm a USB-C Maximalist

https://shkspr.mobi/blog/2026/07/im-a-usb-c-maximalist/
31•speckx•1h ago•34 comments

Your 'app' could have been a webpage (so I fixed it for you)

https://danq.me/2026/07/09/your-app-could-have-been-a-webpage/
309•MrVandemar•3d ago•240 comments

Are we offloading too much of our thinking to AI?

https://www.artfish.ai/p/offloading-thinking-to-ai
110•yenniejun111•1h ago•99 comments

Launch HN: Agnost AI (YC S26) – Extract user feedback from agent conversations

https://agnost.ai
10•laalshaitaan•29m ago•0 comments

Beautiful Type Erasure with C++26 Reflection

https://ryanjk5.github.io/posts/rjk-duck/
67•RyanJK5•3h ago•29 comments

Show HN: Juggler – an open-source GUI coding agent, by the creator of JUCE

https://github.com/juggler-ai/juggler
76•julesrms•1d ago•40 comments

How to stop Claude from saying load-bearing

https://jola.dev/posts/how-to-stop-claude-from-saying-load-bearing
117•shintoist•4h ago•188 comments

Paxos Made Simple (2001)[pdf]

https://lamport.azurewebsites.net/pubs/paxos-simple.pdf
29•grep_it•4d ago•2 comments

Punch yourself in the face with reality

https://adi.bio/reality
112•AdityaAnand1•5h ago•56 comments

A tiny cell that broke a big rule of biology

https://grist.org/science/nitrogen-cycle-cell-discovery-nitroplast-science-fertilizer-algae-bacte...
27•gumby•5d ago•4 comments

New York becomes the first state to impose a data center moratorium

https://www.reuters.com/world/new-york-becomes-first-state-impose-data-center-moratorium-2026-07-14/
127•granfalloon•2h ago•86 comments

Agnes Callard’s theory of the uni-context

https://www.derekthompson.org/p/a-philosophers-one-word-theory-to
64•FinnLobsien•2h ago•51 comments

How the FSF sysadmins block botnets with reaction

https://www.fsf.org/blogs/community/blocking-botnets-with-reaction
100•pseudolus•2d ago•17 comments

Superoptimizer – A Look at the Smallest Program

https://dl.acm.org/doi/epdf/10.1145/36177.36194
10•linggen•3d ago•0 comments

Show HN: I RL-trained an agent that trains models with RL (for –$1.3k)

https://github.com/Danau5tin/ai-trains-ai
60•Danau5tin•3h ago•23 comments

Australian energy retailers must provide three hours of free daytime electricity

https://lenergy.com.au/free-daytime-electricity-is-coming-heres-how-it-actually-works/
212•i2oc•12h ago•302 comments

European "age verification" "app" forcing everyone to use Android or iOS

https://github.com/eu-digital-identity-wallet/av-doc-technical-specification/discussions/19
206•roundabout-host•8h ago•139 comments

The Agentic Loop: Three loops in a trench coat

https://www.bobbytables.io/p/the-agentic-loop-three-loops-in-a
9•btables•1h ago•2 comments

Differentiable Fortran with LFortran and Enzyme

https://docs.pasteurlabs.ai/projects/tesseract-core/latest/blog/2026-07-09-enzyme-lfortran-autodi...
32•dionhaefner•4h ago•10 comments

Alternative(s) to run CUDA on non-Nvidia hardware

https://www.hpcwire.com/2026/07/09/spectral-compute-aims-to-set-cuda-free-will-it-succeed/
103•alok-g•8h ago•53 comments

Tensor Is the Might

https://zserge.com/posts/tensor/
33•eatonphil•3h ago•15 comments

Our Amish Language

https://www.thedial.world/articles/news/amish-pennsylvania-dutch
71•NaOH•13h ago•56 comments

Germany set to restrict its Freedom of Information Act

https://www.dw.com/en/germany-freedom-of-information-act/a-77939695
198•robtherobber•4h ago•125 comments

Indian scientists produce most detailed 3D atlas of the human brainstem

https://www.bbc.com/news/articles/cg53l737v1qo
153•BaudouinVH•9h ago•19 comments

Demis Hassabis has a plan to harness AI safely

https://twitter.com/demishassabis/status/2076957440109625718
90•asiergoni•7h ago•88 comments

A metallurgist's doubts about self-replicating probes

https://www.centauri-dreams.org/2026/07/10/a-metallurgists-doubts-about-self-replicating-probes/
103•EA-3167•1d ago•18 comments

Codex starts encrypting sub-agent prompts

https://github.com/openai/codex/issues/28058
374•embedding-shape•5h ago•226 comments

What did SFFA vs. Harvard reveal about admissions?

https://sorting-machine.pages.dev/
44•StrageMusik•16h ago•77 comments

No Spanish reading crisis?

https://www.commonreader.co.uk/p/no-spanish-reading-crisis
47•jruohonen•5h ago•78 comments