frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Rubik's Cube in Prolog – Order

https://medium.com/@kenichisasagawa/i-am-preparing-material-for-a-prolog-book-af7580acfee7
16•myth_drannon•4d ago

Comments

phkahler•1h ago
I'm not sure if anyone has noticed, a rubiks cube can be represented by only the orientations of the pieces. You do this by defining their "correct" position in cube coordinates rather than piece coordinates (local about the piece center). In other words you might define a 3d model for each piece in world space assuming the cube as a whole is centered on the origin. With pieces offset from the origin like this, any rotation about an axis will appear to move the piece as well as rotate it. With 24 orientations, you'll find 3 that place a corner in the same position but colors rotated. Similarly edges have 2 orientations for each of 12 locations.

One does need to compute the traditional position of the pieces to determine which ones need to be rotated for a given move, but the total state is significantly reduced.

Tell me this isn't news to the cube world. It cant be. Can it?

dsfiof•53m ago
Unable to fully parse what you are trying to express.

> the total state is significantly reduced.

The minimal "state space" of a rubiks cube is a constant value. Any "reduction" would imply the model being reduced was inefficient.

On the topic of cool "alternative" views of rubiks I recently saw this and thought it was novel.

https://old.reddit.com/r/gifs/comments/z3okyv/the_only_way_t...

wowczarek•3m ago
That link. This is a Celtic Knot and 92 is half of 99. I had to.
taeric•1h ago
Fun article! Makes me want to play with prolog again.

I put together something looking at a rubik's cube as a permutation of numbers a while back. https://taeric.github.io/cube-permutations-1.html I remember realizing that my representation essentially had some permutations of numbers that it would never hit, but wasn't sure it was worth trying to more directly model the pieces of the cube. Curious if there are advantages here that I'm ignoring.

QuadmasterXLII•19m ago
one nice thing is that if you represent the state as a permutation matrix P, and have a matrix of starting piece locations x, rendering is just Px. Then, for smooth rotation animations, if your move is a permutation M, animation is just expm ( t logm( M)) P x with t going from 0 to 1

I blather about the permutation matrix of a rubiks cube for a long while at https://www.hgreer.com/TwistyPuzzle/

Claude Cowork Exfiltrates Files

https://www.promptarmor.com/resources/claude-cowork-exfiltrates-files
431•takira•5h ago•179 comments

Furiosa: 3.5x efficiency over H100s

https://furiosa.ai/blog/introducing-rngd-server-efficient-ai-inference-at-data-center-scale
38•written-beyond•54m ago•12 comments

Scaling long-running autonomous coding

https://cursor.com/blog/scaling-agents
107•samwillis•3h ago•59 comments

Anthropic Explicitly Blocking OpenCode

https://gist.github.com/R44VC0RP/bd391f6a23185c0fed6c6b5fb2bac50e
97•ryanvogel•1h ago•59 comments

The State of OpenSSL for pyca/cryptography

https://cryptography.io/en/latest/statements/state-of-openssl/
69•SGran•3h ago•15 comments

Ask HN: Share your personal website

397•susam•8h ago•1271 comments

Show HN: WebTiles – create a tiny 250x250 website with neighbors around you

https://webtiles.kicya.net/
116•dimden•5d ago•17 comments

Billion-Dollar Idea Generator

https://www.pivotgpt.ceo/
22•greenRust•1h ago•11 comments

Generate QR Codes with Pure SQL in PostgreSQL

https://tanelpoder.com/posts/generate-qr-code-with-pure-sql-in-postgres/
42•tanelpoder•4d ago•1 comments

Why some clothes shrink in the wash and how to unshrink them

https://www.swinburne.edu.au/news/2025/08/why-some-clothes-shrink-in-the-wash-and-how-to-unshrink...
432•OptionOfT•3d ago•238 comments

Sun Position Calculator

https://drajmarsh.bitbucket.io/earthsun.html
59•sanbor•4h ago•12 comments

SparkFun Officially Dropping AdaFruit due to CoC Violation

https://www.sparkfun.com/official-response
384•yaleman•11h ago•382 comments

Find a pub that needs you

https://www.ismypubfucked.com/
209•thinkingemote•10h ago•173 comments

ChromaDB Explorer

https://www.chroma-explorer.com/
22•arsentjev•3h ago•1 comments

Roam 50GB is now Roam 100GB

https://starlink.com/support/article/58c9c8b7-474e-246f-7e3c-06db3221d34d
245•bahmboo•9h ago•277 comments

I hate GitHub Actions with passion

https://xlii.space/eng/i-hate-github-actions-with-passion/
418•xlii•14h ago•297 comments

How can I build a simple pulse generator to demonstrate transmission lines

https://electronics.stackexchange.com/questions/764155/how-can-i-build-a-simple-pulse-generator-t...
11•alphabetter•5d ago•2 comments

Native ZFS VDEV for Object Storage (OpenZFS Summit)

https://www.zettalane.com/blog/openzfs-summit-2025-mayanas-objbacker.html
87•suprasam•6h ago•20 comments

Rubik's Cube in Prolog – Order

https://medium.com/@kenichisasagawa/i-am-preparing-material-for-a-prolog-book-af7580acfee7
17•myth_drannon•4d ago•5 comments

Anthropic is making a huge mistake

https://geohot.github.io//blog/jekyll/update/2026/01/15/anthropic-huge-mistake.html
16•swah•2h ago•5 comments

Show HN: Webctl – Browser automation for agents based on CLI instead of MCP

https://github.com/cosinusalpha/webctl
57•cosinusalpha•11h ago•18 comments

Ford F-150 Lightning outsold the Cybertruck and was then canceled for poor sales

https://electrek.co/2026/01/13/ford-f150-lightning-outsold-tesla-cybertruck-canceled-not-selling-...
438•MBCook•8h ago•592 comments

The hunt for a stolen Jackson Pollock

https://www.washingtonpost.com/entertainment/art/interactive/2026/jackson-pollock-theft-isaacs-fa...
16•prismatic•17h ago•1 comments

Is Rust faster than C?

https://steveklabnik.com/writing/is-rust-faster-than-c/
223•vincentchau•4d ago•255 comments

GitHub should charge everyone $1 more per month to fund open source

https://blog.greg.technology/2025/11/27/github-should-charge-1-dollar-more-per-month.html
216•evakhoury•9h ago•207 comments

Ski map artist James Niehues, the 'Monet of the mountains' (2021)

https://adventure.com/ski-map-artist-james-niehues/
121•gyomu•4d ago•15 comments

Ask HN: How do you safely give LLMs SSH/DB access?

57•nico•6h ago•81 comments

Every country should set 16 as the minimum age for social media accounts

https://www.afterbabel.com/p/why-every-country-should-set-16
145•paulpauper•5h ago•199 comments

So, you’ve hit an age gate. What now?

https://www.eff.org/deeplinks/2026/01/so-youve-hit-age-gate-what-now
298•hn_acker•8h ago•230 comments

You Can Just Buy Far-UVC

https://www.jefftk.com/p/you-can-just-buy-far-uvc
63•surprisetalk•4d ago•95 comments