frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I got frustrated with SMILES, so I built one

https://github.com/sangeet01/script
1•sangeet01•1h ago
Hi HN, I'm an undergrad in Nepal.

For the last 35 years, computational chemistry and AI drug discovery have relied on SMILES to represent molecules. It was great for the 1980s, but today it is a massive bottleneck. It’s non-canonical, its stereochemistry parsing is fragile, and it completely breaks down when trying to represent organometallics, alloys, or polymers. To parse it reliably, you basically need a 300MB C++ dependency (RDKit) relying on decades of hard-coded heuristics.

I got frustrated and realized that representing matter isn't a graph theory problem—it’s a linguistics problem.

To fix it, I built SCRIPT (Structural Chemical Representation in Plain Text). I based the core parser on the generative linguistics of Pāṇini’s Sanskrit grammar. Instead of treating a molecule as a string of dumb nodes, SCRIPT treats it as a language of Roots, States (Vibhakti), and Relationships (Sandhi).

I just released V3 today for Pi Day.

How it works & what it fixes: • Aromaticity without the mess: SMILES uses lowercase letters (c1ccccc1), which causes endless parsing ambiguity. SCRIPT uses an Anubandha (governance marker) on the ring closure. C1CCCCC&6: explicitly tells the parser that the last 6 atoms in the DFS path are resonant.

• Vāk Order Stereochemistry: In SCRIPT, chirality is intrinsically resolved using the Depth-First Search sequence order as the native coordinate frame, making it mathematically order-invariant.

• Organometallics & Materials: Because of the grammar design, SCRIPT natively supports Haptic bonds (*5), fractional alloys (Ti<~0.9>N<~0.1>), crystal phases ([[Rutile]] Ti(O)2), and stochastic polymers ({[CC]}n).

• RDKit-Independent: The core engine uses a pure Python Lark grammar. It catches 6-valent carbons during parsing, generates a 100% native round-trip, and hits 95.9% RDKit InChI parity without relying on RDKit's C++ backend.

Examples: Aspirin (SMILES): CC(=O)Oc1ccccc1C(=O)O (or many other valid strings) Aspirin (SCRIPT): CC(=O)OC1=CC=CC=C1C(=O)O (Deterministic canonicalization) Cisplatin: Pt<sqp>(Cl)2(NH3)2@ (Preserves square-planar geometry and cis-configuration)

I'm just a daft undergrad splashing through code like a toddler (my wet-lab titrations are a mess, and yes, I've used my mouth to pipette). I would absolutely love your harshest technical feedback, especially from the parser nerds, chemoinformaticians, or anyone working in AI drug discovery. Happy to answer any questions about the grammar or the parser architecture!

Memory should decay. I've gotten pretty good at this with age

https://stackresearch.org/blog/memory-should-decay/
1•dnmacon•6m ago•0 comments

America and Israel built military targeting machines

https://www.economist.com/international/2026/03/11/how-america-and-israel-built-vast-military-tar...
1•edward•6m ago•0 comments

Show HN: AgentArmor – open-source 8-layer security framework for AI agents

https://github.com/Agastya910/agentarmor
2•AgastyaTodi•6m ago•0 comments

I prompt-injected a bot on social media to complain about Jira

https://bsky.app/profile/sheep-cat.bsky.social/post/3mgxjskxyj224
1•chadders13•9m ago•0 comments

The Lord of the Rings: an allegory of the PhD? (2003)

http://danny.oz.au/danny/humour/phd_lotr.html
1•stared•11m ago•0 comments

Building an AI startup in Bristol while working a regular job

https://www.indiehackers.com/post/building-an-ai-startup-in-bristol-while-working-a-regular-job-b...
1•nyataai•12m ago•0 comments

Mathematics Distillation Challenge – Equational Theories

https://terrytao.wordpress.com/2026/03/13/mathematics-distillation-challenge-equational-theories/
2•picafrost•12m ago•0 comments

Ask HN: When I submit my "Show HN" still toonew?

1•krishSingaria•21m ago•2 comments

The debt beneath the AI build out

https://om.co/2026/03/09/the-debt-beneath-the-dream/
2•rwmj•22m ago•0 comments

ChinaDocs – Official Government Documents of the People's Republic of China

https://www.chinadocs.org/
2•dluan•24m ago•0 comments

Starlink Militarization and Its Impact on Global Strategic Stability

https://interpret.csis.org/translations/starlink-militarization-and-its-impact-on-global-strategi...
3•msuniverse2026•36m ago•0 comments

Claude Code: 32K issues, 49% bot-closed – one bug cluster's lifecycle

https://gist.github.com/azkore/934e5387579efb17e1080402efedf13d
2•azcore•38m ago•1 comments

Ask HN: Is Another Editor Needed?

1•gethly•40m ago•0 comments

Chern Number

http://albi3ro.github.io/M4/QAHE.html
1•marysminefnuf•45m ago•0 comments

Megadev: A Development Kit for the Sega Mega Drive and Mega CD Hardware

https://github.com/drojaazu/megadev
2•XzetaU8•46m ago•0 comments

PowerSchool: Entry vs. Execution

1•Olsberg•52m ago•0 comments

'You are all worse than each other': anti-regime Iranians turn on Trump

https://www.theguardian.com/world/2026/mar/14/anti-regime-iranians-turn-on-trump-us
5•prmph•52m ago•0 comments

Fooorma: Open-Source Procedural Art Studio

https://github.com/elenatorro/fooorma
1•elenathor•55m ago•1 comments

China 15th 5 Year Plan (Official English Translation)

https://www.news.cn/politics/20260313/085af5de5a4b4268aa7d87d90817df2f/c.html
2•hunglee2•58m ago•0 comments

Age Verification Lobbying: Dark Money, Model Legislation, Institutional Capture

https://tboteproject.com
60•mefengl•59m ago•10 comments

Ask HN: How do you guys deal with enshittification mentally?

2•dvrp•1h ago•1 comments

James Nachtwey: War Photographer (2001) [video]

https://www.youtube.com/watch?v=FUiohIC1dYU
1•doener•1h ago•1 comments

Chinadocs: Public Database of Official Gov Documents of PRC

https://www.chinadocs.org/?v=2966bda86bca80f39001000c49fb5fee
1•hunglee2•1h ago•0 comments

Show HN: TriGame – Guess the area of a triangle made by cities

https://6kotnk.github.io/TriGame/
1•6Kotnk•1h ago•0 comments

Underwater data center powered by tidal energy proposed off the coast of Maine

https://www.quoddytides.com/proposed-tidal-project-would-power-underwater-ai-data-center/
1•giuliomagnifico•1h ago•0 comments

Show HN: Connections Game in 195 Languages

https://apps.apple.com/us/app/lingopop-language-learning/id6759921592
1•pnhoang•1h ago•0 comments

Psi-Commit – Cryptographic Commitments Anchored to Bitcoin via OpenTimestamps

https://psicommit.com
1•RayanROghabian•1h ago•1 comments

Room 641A

https://en.wikipedia.org/wiki/Room_641A
2•mxmilkiib•1h ago•0 comments

Show HN: HN Buddy – a Hacker News Chrome extension

https://github.com/karnagebitcoin/HN-Buddy
1•a1n•1h ago•0 comments

LearnCro Mobile and web application for learning the Croatian language– level B1

https://b1.ffzg.hr/
1•taubek•1h ago•0 comments