frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I made an esoteric programming language that's read like a spellbook

https://github.com/sirbread/spellscript
56•sirbread•8h ago
i made an esoteric programming language which i call spellscript. every program is a "spell" written in a "grimoire," and you have to use keywords like summon, enchant, inscribe, and conjure.

it's literally read like a spellbook because the syntax consists of all natural language, and newlines are optional. your code can now be an essay, like everybody wants!

for example, if you want to print something, you'd write: `begin the grimoire. inscribe whispers of "hello, world!". close the grimoire.`

it has variables, dynamic typing, arrays, functions, conditionals, loops, string manipulation, array manipulation, type conversion, and user input, among other (listed in the docs!)

but why? i wanted to see how far you could push natural language syntax while still being parseable. most esolangs are intentionally obtuse (BF, Malbolge), but i wanted something that's weird but readable, like you're reading instructions from a spellbook, which makes it incredibly easy to read and understand. like an anti-esolang? hmm...

github: https://github.com/sirbread/spellscript

docs: https://github.com/sirbread/spellscript/blob/main/resources/...

Comments

jzellis•4h ago
That's very silly. I like it. :-D
fpsvogel•2h ago
Reminds of Rockstar[1] and The Art of Code[2], a great talk by its creator.

1: https://codewithrockstar.com

2: https://youtu.be/6avJHaC3C2U

thaumasiotes•2h ago
> summon the result with essence of through ritual amplify with power

This is not natural language.

throwingrocks•1h ago
Literal eye roll. It’s close enough.
wewewedxfgdf•1h ago
Love it.

This is the true value of AI.

More such creative projects please.

tempodox•1h ago
Bewitch that repo with a clone incantation!
bsenftner•59m ago
You've got the basis of an entire alternative programming culture - locate a strong and understanding marketing partner, and you've got something potentially as big as Pokemon.
librasteve•52m ago
very silly indeed … to max out the silliness, you could implement this as a Raku grammar
christophilus•46m ago
I was expecting to see Haskell.
mckirk•1m ago
The ancient tongue of the IO Nomads...
lokimedes•38m ago
Add this to an open ended Morrowind sequel- with a tint of Minecraft and LLM driven narrative - and you would have caught the 18yo me in an infinite loop. Danger stuff, pure alchemy in fact…
sjclemmy•22m ago
And now imagine the future where code is embedded in the world all around. No one knows it’s there, except… the magicians! They’re the only ones who managed to RTFM before it was lost in the mists of time…
simpaticoder•3m ago
I feel invited by the light-hearted nature of this project (and the beauty of this particular Sunday) to make a light-hearted observation of my own. The idea of a programming language that reads like a spell book...but what about a programming language that reads like Principia Mathematica[0]? How would that work, and would it make sense?

Flipping through it just now I was struck with several observations. First, it has a very formal structure (Proposition N Theorem M Phenomena P etc). And also the sheer amount of work he did in (Euclidian) geometry prior to even discussing gravity or calculus. But most remarkably of all, how little a computer would have helped Newton in his work. Oh sure, a computer would have helped Kepler a great deal! And even Newton is not without his tables. Newton would have really enjoyed Mathematica, but even it would have been useless since it assumes what Newton sought to prove.

In any event, this all leads me to realize what a narrow place traditional computation has within the entire field of human communication. The optimist in me sees this as affirming the unique power of the human mind; the pessimist notes that there are always more ways to get a problem wrong than to get it right.

P.S. The Principia is as often a philosophical work as a scientific one. Consider this excerpt:

RULE I. We are i’o admit no more causes of natural things than such as are both true and sufficient to explain their appearances.

To this purpose the philosophers say that Nature does nothing in vain, and more is in vain when less will serve; for Nature is pleased with simplicity, and affects not the pomp of superfluous causes.

RULE II. Therefore to the same natural effects we must, as far as possible, assign the same causes.

As to respiration in a man and in a beast; the descent of stones in Europe and in America ; the light of our culinary fire and of the sun; the reflection of light in the earth, and in the planets.

RULE III. The qualities of bodies, which admit neither intension nor remission of degrees, and which are found to belong to all bodies within the reach of our experiments, are to be esteemed the universal qualities of all bodies whatsoever.

These Rules of Newton have become so far subsumed into the zeitgeist that we hardly ever repeat them. (It reminds me of the feeling I got reading Descartes math papers). Indeed, most modern physicists scoff at philosophy for just this reason, because to them it's been "solved" and remains only as a jobs program for verbally talented charlatans. This is deeply unfortunate for at least two reasons: first, it is dangerous to assume the basics will always be in place; civilizational drift is quite real. Second, you give up using those same tools to advance human knowledge further - if Newton was able to use philosophy to clarify his point and purpose, surely another scientist might as well.

0 - https://archive.org/details/IsaacNewtonPrincipiaEnglish1846/...

Macro Gaussian Splats

https://danybittel.ch/macro.html
125•danybittel•3h ago•16 comments

4x faster LLM inference (Flash Attention guy's company)

https://www.together.ai/blog/adaptive-learning-speculator-system-atlas
84•alecco•5h ago•22 comments

Why it took 4 years to get a lock files specification

https://snarky.ca/why-it-took-4-years-to-get-a-lock-files-specification/
59•birdculture•4h ago•35 comments

Loko Scheme: bare metal optimizing Scheme compiler

https://scheme.fail/
33•dTal•5d ago•2 comments

Nostr and ATProto (2024)

https://shreyanjain.net/2024/07/05/nostr-and-atproto.html
30•sph•4h ago•4 comments

Meta Superintelligence's surprising first paper

https://paddedinputs.substack.com/p/meta-superintelligences-surprising
331•skadamat•14h ago•178 comments

Blood test detecting Long Covid in kids with 94% accuracy microclots

https://www.researchsquare.com/article/rs-7483367/v1
82•thenerdhead•2h ago•56 comments

The Flummoxagon

https://n-e-r-v-o-u-s.com/blog/?p=9827
62•robinhouston•4d ago•10 comments

C++ Reflection and Qt MOC

https://wiki.qt.io/C%2B%2B_reflection_(P2996)_and_moc
39•coffeeaddict1•3d ago•7 comments

Pipelining in psql (PostgreSQL 18)

https://postgresql.verite.pro/blog/2025/10/01/psql-pipeline.html
118•tanelpoder•9h ago•19 comments

Django: One ORM to rule all databases

https://www.paulox.net/2025/10/06/django-orm-comparison/
19•pauloxnet•6d ago•12 comments

Show HN: I made an esoteric programming language that's read like a spellbook

https://github.com/sirbread/spellscript
56•sirbread•8h ago•13 comments

I/O Multiplexing (select vs. poll vs. epoll/kqueue)

https://nima101.github.io/io_multiplexing
75•pykello•3d ago•23 comments

Ask HN: Abandoned/dead projects you think died before their time and why?

187•ofalkaed•15h ago•533 comments

Extreme weather caused more than $100B in damage by June

https://www.livescience.com/planet-earth/climate-change/extreme-weather-caused-more-than-usd100-b...
4•geox•20m ago•0 comments

Anthropic's Prompt Engineering Tutorial

https://github.com/anthropics/prompt-eng-interactive-tutorial
235•cjbarber•19h ago•44 comments

Vancouver Stock Exchange: Scam capital of the world (1989) [pdf]

https://scamcouver.wordpress.com/wp-content/uploads/2012/04/scam-capital.pdf
109•thomassmith65•14h ago•47 comments

Coral Protocol: Open infrastructure connecting the internet of agents

https://arxiv.org/abs/2505.00749
35•joj333•10h ago•7 comments

A Guide for WireGuard VPN Setup with Pi-Hole Adblock and Unbound DNS

https://psyonik.tech/posts/a-guide-for-wireguard-vpn-setup-with-pi-hole-adblock-and-unbound-dns/
111•pSYoniK•18h ago•20 comments

Show HN: A Lisp Interpreter for Shell Scripting

https://github.com/gue-ni/redstart
72•quintussss•3d ago•17 comments

CamoLeak: Critical GitHub Copilot Vulnerability Leaks Private Source Code

https://www.legitsecurity.com/blog/camoleak-critical-github-copilot-vulnerability-leaks-private-s...
73•greyadept•15h ago•14 comments

Show HN: Rift – A tiling window manager for macOS

https://github.com/acsandmann/rift
164•atticus_•13h ago•86 comments

Paper2Video: Automatic Video Generation from Scientific Papers

https://arxiv.org/abs/2510.05096
64•jinqueeny•14h ago•14 comments

Why Wikipedia cannot claim the Earth is not flat

https://en.wikipedia.org/wiki/Wikipedia:Why_Wikipedia_cannot_claim_the_Earth_is_not_flat
93•duncanjbrown•3h ago•51 comments

The World's 2.75B Buildings

https://tech.marksblogg.com/building-footprints-gba.html
88•marklit•4d ago•42 comments

Microsoft only lets you opt out of AI photo scanning 3x a year

https://hardware.slashdot.org/story/25/10/11/0238213/microsofts-onedrive-begins-testing-face-reco...
684•dmitrygr•19h ago•267 comments

A New Algorithm Makes It Faster to Find the Shortest Paths

https://www.wired.com/story/new-method-is-the-fastest-way-to-find-the-best-routes/
16•quapster•2h ago•7 comments

LineageOS 23

https://lineageos.org/Changelog-30/
273•cdesai•14h ago•106 comments

Testing two 18 TB white label SATA hard drives from datablocks.dev

https://ounapuu.ee/posts/2025/10/06/datablocks-white-label-drives/
192•thomasjb•6d ago•119 comments

The World Trade Center under construction through photos, 1966-1979

https://rarehistoricalphotos.com/twin-towers-construction-photographs/
224•kinderjaje•5d ago•106 comments