frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Vibecoding is scarily powerful: minutes to get C and Python recursive pdf-to-txt

1•adinhitlore•2h ago
I know at first glance pdf-to-txt doesn't mean someone is senior dev, but since it's done in minutes and:

* 180 lines of code ~120 of which in C; * it's actually recursive and has pseudo-try-catch + memory liberation so it's more professionally coded than a total noob. * my fingers rest, i type nothing. * Because it was painfully easy i added 'ok chatgpt, thanks yeah all works but you know...sometimes pdf text is too 'tight' on the left side and i want it to be wide super formatted, can this be done? ' - of course it can..i now have wide version and tight version...

And here's the best part:

Since i decided as usual to stick to Cygwin for portability and avoid RAM overhead rather than switching to linux (dual boot) or vmware (ram) or rdp on aws (money!) chatgpt 4 (not even 5!) told me easily how to compile it and what to do to make it work on cygwin, it worked flawlessly.

Now...if i was trying to get it to work without LLM...this is what it looks like:

gcc -std=c99 -Wall -O2 pdfer_dir.c -o pdfer_dir `pkg-config --cflags --libs poppler-glib`

so where the journey starts: i had older version of cygwin and downloading it resulted in full reinstall (why not right?), then of course i needed to install 'poppler' (i had no idea what this is) which also depended on glib and even devel part of poppler or whatever that if it wasn't for chatgpt i would've never have guessed.

I also have now version which only extracts couple of pages and not the whole doc.

Sure given the cyygwin reinstall and all the options variations it was longer but the whole process can easily fit in 10 minutes or less. No one can convince me that senior Python and C developer who never works with pdf files can do it in less even if you ghost-type code, the whole process of researching on stakcoverflow, coming up with compiler options and doing it professionally with nice user-friendly output would've been hours work + energy lost. But with vibecoding and chatgpt now i have 2 programs in different languages each of which enters a specified dir and recursively converts every single pdf in each found directory to txt while the output txt retains the same name as the original pdf file.

And because it's so damn easy i may as well try to do it in c# or why not even f# (this one actually might fail since f# isn't too used for training these days).

The point is to highlight the ridiculous simplification of coding work, if you can even claim that i "coded". Vibecoding is great power and i hope it stays that way.

Show HN: Pgdbtemplate – fast PostgreSQL test databases in Go using templates

https://github.com/andrei-polukhin/pgdbtemplate
1•andrei-polukhin•52s ago•0 comments

What's Got into Stephen King?

https://notoneoffbritishisms.com/2025/09/10/whats-got-into-stephen-king/
1•jjgreen•3m ago•0 comments

A GitHub Co-Founder's Next Commit

https://opensourcepledge.com/blog/scott-chacon-github-gitbutler/
2•coloneltcb•7m ago•0 comments

Psychologist for Founders

https://www.marcosander.com
2•MarcoSander•7m ago•1 comments

Israel is forcing us to leave Gaza City. We know they may never let us return

https://www.theguardian.com/world/2025/sep/10/israel-is-forcing-us-to-leave-gaza-city-we-know-the...
4•hebelehubele•8m ago•0 comments

From Org Charts to Work Charts: Building Clarity in the New Work World

https://www.clearwork.io/blog-posts/from-org-charts-to-work-charts-building-clarity-in-the-new-wo...
1•abrooks43•8m ago•1 comments

Show HN: TimeCopilot, forecasting agent with LLMs and foundation models

https://github.com/AzulGarza/timecopilot
3•azulgarzar•9m ago•0 comments

Show HN: Flox – Nvidia CUDA available for the Nix ecosystem

https://flox.dev/blog/the-flox-catalog-now-contains-nvidia-cuda/
6•ronef•12m ago•0 comments

Microsoft has become like an arsonist

https://arstechnica.com/security/2025/09/senator-blasts-microsoft-for-making-default-windows-vuln...
2•worik•19m ago•0 comments

Tufts Offers Free Tuition for Families Making Under $150k a Year

https://www.bloomberg.com/news/articles/2025-09-10/tufts-university-offers-free-tuition-for-famil...
2•toomuchtodo•21m ago•0 comments

The Amphora of Great Intelligence (AGI)

https://framapiaf.org/@davidrevoy/115180874986726269
1•goffi•26m ago•0 comments

Zero Trust in Reverse: Why the Definition of Zero Trust Is Only Half Full

https://threatresearch.ext.hp.com/zero-trust-in-reverse-why-the-current-definition-of-zero-trust-...
3•dexter_it•29m ago•0 comments

HN: Arambh Labs: agentic platform for cyber defense

https://arambhlabs.com/
1•nehagarg1209•30m ago•1 comments

San Francisco Gets an Invasive Billionaire-Bought Surveillance HQ

https://www.eff.org/deeplinks/2025/09/san-francisco-gets-invasive-billionaire-bought-surveillance-hq
4•Improvement•31m ago•0 comments

Network of agents collaborating through a publication/review system

https://github.com/spolu/srchd
1•spolu•33m ago•0 comments

Anonymity is dead and we're all content now

https://www.theverge.com/internet-culture/775740/anonymity-privacy-filming-viral-tiktok
4•ecliptik•34m ago•1 comments

Linter for Your Docs

4•gitgallery•40m ago•3 comments

Designing software architecture for parallel AI sessions

https://rashidazarang.com/c/software-architecture-for-parallel-ai
4•rashidae•40m ago•2 comments

OpenAI argues Canadian news publishers' lawsuit should be heard in U.S.

https://toronto.citynews.ca/2025/09/10/openai-argues-canadian-news-publishers-lawsuit-should-be-h...
4•harwoodr•40m ago•0 comments

Cease and Desist: Cami Research wants me to pay $100k

https://www.youtube.com/watch?v=BX6nUwDeHps
2•SilverElfin•40m ago•0 comments

Firefox Is Falling Behind (not in market share)

https://blog.velocifyer.com/Posts/0,1,2025-8-9,Firefox+is+falling+behind.html
2•Velocifyer•45m ago•0 comments

"The Irish Enlightenment". What was it?

https://twitter.com/patrickc/status/1965030023859253257
1•adriancooney•46m ago•0 comments

Ask HN: Were programmers more surprised than general public by ChatGPT in 2022?

3•amichail•49m ago•2 comments

Show HN: Package Search MCP – enable agents to search dependency source code

https://trychroma.com/package-search
11•HammadB•50m ago•0 comments

The Point of Politics Is to Convince People, Not Grandstand

https://jacobin.com/2025/08/left-politics-maximalism-socialism-reform/
4•PaulHoule•51m ago•0 comments

OpenAI mulls data center construction in Korea

https://www.koreatimes.co.kr/business/tech-science/20250910/openai-mulls-data-center-construction...
1•giuliomagnifico•54m ago•0 comments

What's New in Kotlin 2.2.20

https://kotlinlang.org/docs/whatsnew2220.html
3•Bogdanp•54m ago•0 comments

'Clearest sign' yet of ancient life on Mars

https://www.nature.com/articles/s41586-025-09413-0
45•stevenjgarner•54m ago•4 comments

Life, Maybe, on Mars, Unless We Change Our Minds

https://www.science.org/content/blog-post/life-maybe-mars-unless-we-change-our-minds
3•worldvoyageur•55m ago•0 comments

NASA discovers 'clearest sign of life that we've ever found on Mars'

https://www.washingtonpost.com/technology/2025/09/10/life-on-mars-rocks-mudstones-rover/
7•lisper•55m ago•0 comments