frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Show HN: ReviewReact – AI review responses inside Google Maps ($19/mo)

https://reviewreact.com
1•sara_builds•28s ago•0 comments

Why AlphaTensor Failed at 3x3 Matrix Multiplication: The Anchor Barrier

https://zenodo.org/records/18514533
1•DarenWatson•1m ago•0 comments

Ask HN: How much of your token use is fixing the bugs Claude Code causes?

1•laurex•5m ago•0 comments

Show HN: Agents – Sync MCP Configs Across Claude, Cursor, Codex Automatically

https://github.com/amtiYo/agents
1•amtiyo•5m ago•0 comments

Hello

1•otrebladih•7m ago•0 comments

FSD helped save my father's life during a heart attack

https://twitter.com/JJackBrandt/status/2019852423980875794
2•blacktulip•9m ago•0 comments

Show HN: Writtte – Draft and publish articles without reformatting, anywhere

https://writtte.xyz
1•lasgawe•11m ago•0 comments

Portuguese icon (FROM A CAN) makes a simple meal (Canned Fish Files) [video]

https://www.youtube.com/watch?v=e9FUdOfp8ME
1•zeristor•13m ago•0 comments

Brookhaven Lab's RHIC Concludes 25-Year Run with Final Collisions

https://www.hpcwire.com/off-the-wire/brookhaven-labs-rhic-concludes-25-year-run-with-final-collis...
2•gnufx•15m ago•0 comments

Transcribe your aunts post cards with Gemini 3 Pro

https://leserli.ch/ocr/
1•nielstron•19m ago•0 comments

.72% Variance Lance

1•mav5431•20m ago•0 comments

ReKindle – web-based operating system designed specifically for E-ink devices

https://rekindle.ink
1•JSLegendDev•22m ago•0 comments

Encrypt It

https://encryptitalready.org/
1•u1hcw9nx•22m ago•1 comments

NextMatch – 5-minute video speed dating to reduce ghosting

https://nextmatchdating.netlify.app/
1•Halinani8•23m ago•1 comments

Personalizing esketamine treatment in TRD and TRBD

https://www.frontiersin.org/articles/10.3389/fpsyt.2025.1736114
1•PaulHoule•24m ago•0 comments

SpaceKit.xyz – a browser‑native VM for decentralized compute

https://spacekit.xyz
1•astorrivera•25m ago•0 comments

NotebookLM: The AI that only learns from you

https://byandrev.dev/en/blog/what-is-notebooklm
1•byandrev•25m ago•1 comments

Show HN: An open-source starter kit for developing with Postgres and ClickHouse

https://github.com/ClickHouse/postgres-clickhouse-stack
1•saisrirampur•26m ago•0 comments

Game Boy Advance d-pad capacitor measurements

https://gekkio.fi/blog/2026/game-boy-advance-d-pad-capacitor-measurements/
1•todsacerdoti•26m ago•0 comments

South Korean crypto firm accidentally sends $44B in bitcoins to users

https://www.reuters.com/world/asia-pacific/crypto-firm-accidentally-sends-44-billion-bitcoins-use...
2•layer8•27m ago•0 comments

Apache Poison Fountain

https://gist.github.com/jwakely/a511a5cab5eb36d088ecd1659fcee1d5
1•atomic128•29m ago•2 comments

Web.whatsapp.com appears to be having issues syncing and sending messages

http://web.whatsapp.com
1•sabujp•29m ago•2 comments

Google in Your Terminal

https://gogcli.sh/
1•johlo•30m ago•0 comments

Shannon: Claude Code for Pen Testing: #1 on Github today

https://github.com/KeygraphHQ/shannon
1•hendler•31m ago•0 comments

Anthropic: Latest Claude model finds more than 500 vulnerabilities

https://www.scworld.com/news/anthropic-latest-claude-model-finds-more-than-500-vulnerabilities
2•Bender•35m ago•0 comments

Brooklyn cemetery plans human composting option, stirring interest and debate

https://www.cbsnews.com/newyork/news/brooklyn-green-wood-cemetery-human-composting/
1•geox•35m ago•0 comments

Why the 'Strivers' Are Right

https://greyenlightenment.com/2026/02/03/the-strivers-were-right-all-along/
1•paulpauper•37m ago•0 comments

Brain Dumps as a Literary Form

https://davegriffith.substack.com/p/brain-dumps-as-a-literary-form
1•gmays•37m ago•0 comments

Agentic Coding and the Problem of Oracles

https://epkconsulting.substack.com/p/agentic-coding-and-the-problem-of
1•qingsworkshop•38m ago•0 comments

Malicious packages for dYdX cryptocurrency exchange empties user wallets

https://arstechnica.com/security/2026/02/malicious-packages-for-dydx-cryptocurrency-exchange-empt...
1•Bender•38m ago•0 comments
Open in hackernews

ASCIIMoon: The moon's phase live in ASCII art

https://asciimoon.com/
270•zayat•7mo ago

Comments

treve•7mo ago
Could use an ANSI version!
bombcar•7mo ago
and available over telnet!
julienchastang•7mo ago
That would be cool!
flymasterv•7mo ago
https://wttr.in/Moon
_joel•7mo ago
curl https://wttr.in/Moon
supportengineer•7mo ago
finger moon@hostname
_aavaa_•7mo ago
While cool it’s a bit of a cop out to use a bitmap as a mask for both the circular shape and the shading of the earth’s shadow.
emptybits•7mo ago
I agree. And if you copy and paste the ASCII moon they have there, it does already have a perfectly good circular shape to it. Well done.

It's ASCII art. Drop the bitmap mask.

ludicrousdispla•7mo ago
Lunar phase should be showing the moon's shadow (on itself) which will not be circular from our perspective on Earth except during the new moon phase.

This looks more like what is seen during a solar eclipse.

eichin•7mo ago
Yeah, this rendering is Just Wrong - moon phase is viewing a half-lit sphere from different angles, no external shadows are involved. Maybe look at https://github.com/chubin/pyphoon instead, which claims a history including Jef Poskanzer code going back to the 1970s...
way_stone•7mo ago
If "live in ASCII art" is the pitch, it's reasonable to expect ASCII itself being the part that is "live".
_aavaa_•7mo ago
But the vectors/bitmaps aren’t needed. The moon circle is already done in ascii. And the shading could at least be done with font color.
mlindner•7mo ago
The moon doesn't have the Earth's shadow on it though. So it's wrong in that respect too.
JKCalhoun•7mo ago
Very cool.

I want the shadow that progresses across the moon to match reality. A crescent shape that always goes through the north and south poles — that flattens as it approaches a quarter moon....

wompapumpum•7mo ago
very cool
absurdwebsite•7mo ago
Cool project!
p1mrx•7mo ago
The current shadow looks physically impossible... or it would only be possible during a lunar eclipse.

At least there are no stars in the shadow, so they get partial credit.

omoikane•7mo ago
See also: https://xkcd.com/1738/
divbzero•7mo ago
Also not possible: common representations of the star and crescent.

https://en.wikipedia.org/wiki/Star_and_crescent#Contemporary...

quuxplusone•7mo ago
See also: "Little-Known Types of Eclipse."

https://slatestarcodex.com/2019/05/02/little-known-types-of-...

spicybright•7mo ago
Seeing the shadow whip across from the css animation rule when going between waxing and waning gibus is real janky looking.
D___R___•7mo ago
I remember going to a planetarium as a kid and seeing a booth where you could “buy land” on the Moon (or any other planet) and get a fancy certificate to prove it This project totally brings back that kind of charm, but with a digital twist.

It took me straight back to childhood.

supportengineer•7mo ago
That's absolutely beautiful!
dandrino_•7mo ago
A gibbous moon shouldn't look like it had a bite taken out of it
bainganbharta•7mo ago
`phoon' exists
jpecar•7mo ago
Reminds me of ACME phoon ... I used to have this in my .bashrc ;) https://acme.com/software/phoon/
classichasclass•7mo ago
Likewise! That's what I was expecting to see.
SlowTao•7mo ago
While I love the ASCII art, yeah... thats not how the moon phase works. At half moon it should be exactly half occluded, so like it was cut in half, not just a weird circle cut out.

This is something that partially bothered me about GTA San Andreas on Ps2. They used the same trick as here but I would give them a pass because it was just a small detail on a large simulation on an already very limited system.

There are some great bones here on the site, just need to tweak the shadow and it can be a 10 out of 10.

kingstnap•7mo ago
Yeah they seem to have drawn it as a dark circle going across for some reason.

But earth's shadows aren't what create moon phases IRL. The real moon phases are from the sun lighting the moon from different angles so this is just super weird.

andreareina•7mo ago
Some reason probably being that it's easier
noduerme•7mo ago
yet an incredibly basic and stupid oversight when the only point of your site is to show the phase of the moon.

I'm voting that this was vibe-coded by an LLM on behalf of someone who not only didn't write the code but didn't bother to look at a picture of the moon or look at the sky before deploying it. If so, it's almost the perfect Platonic example of "what could possibly go wrong?"

bstsb•7mo ago
in this case the code is publicly available on github and it doesn't have any obvious hallmarks of LLM generation.

(for example the comments are all capitalized, there's inconsistent indentation)

kingstnap•7mo ago
The math isn't that bad if anyone wants to do it properly.

Assume y vertical and x horizontal and z out of the page.

The moon is a disk. x^2 + y^2 <= R^2

For all the points, calculate z = sqrt(R^2 - y^2 - x^2)

Let the vector v(theta) = <sin(theta), 0, cos(theta)> point to the Sun.

Points <x,y,z> • v(theta) >= 0 should be bright, The rest dim.

JdeBP•7mo ago
Now achieve that when your implementation constraint is that you're using JavaScript to style a <div/> element. (-:

* https://github.com/Sean-93/asciimoon/blob/main/src/component...

echelon•7mo ago
That's a great suggestion for a more accurate render, but I want the author to know that I still think they did an amazing job. It's fun and it looks great. (Your feedback was really constructive, and I don't think the author will misinterpret it. Some of the other commenters here, on the other hand...)

I have two additional feature requests:

1. Persistent URLs (replaceState)

2. Lunar eclipses

SlowTao•7mo ago
Absolutely they did a fantastic job, already a hundred times better than any web stuff I have ever done.
panzi•7mo ago
Yeah, was about to write the same comment.
HumblyTossed•7mo ago
Yeah instead of moving a dark circle over the moon, it needs to be hinged at the north and south and rotated.
JdeBP•7mo ago
It's amusing that it isn't truly a circle. It's a box with rounded corners and the corner rounding radius chosen to be half the box width. There is probably not a simple CSS trick like that for doing the correct 2D projection of a hemisphere.
dclowd9901•7mo ago
Another suggestion: API so I can curl and get this in my terminal.
namanyayg•7mo ago
no api needed https://acme.com/software/phoon/
panki27•7mo ago
`curl wttr.in/moon`
bravesoul2•7mo ago
https://xkcd.com/1738/
thih9•7mo ago
This is also the standard way to present moon phases in watch complications:

> One of the objections raised to a conventional moonphase display, which shows the visible part of the Moon via an aperture in the dial, is that it is not an accurate representation of what you see when you actually look at the Moon over the course of a month.

https://www.hodinkee.com/articles/the-beautifully-pointless-...

crtasm•7mo ago
I enjoyed the next part with the solution

>To address this problem, moonphase displays were invented which use a spherical miniature Moon

Joker_vD•7mo ago
Well, let's hope nobody drills a hole in the Moon (or blows the Moon up) in the next couple thousands of years, for the sake of those watches' usability.
thih9•7mo ago
It’s actually safe to do that, watch owners would be distracted by global cataclysms ;)

> Tides would be much smaller (…) But the movement of tides underpins the balance of ecosystems the world over, and an impact that widespread would cause global biological collapse across oceans and, in turn, the whole Earth.

https://www.popularmechanics.com/space/moon-mars/a43633761/b...

shagie•7mo ago
> let's hope nobody drills a hole in the Moon

https://what-if.xkcd.com/46/ - while it deals more with the Earth (which has a more molten core), its still applicable. There's still molten material ( https://science.nasa.gov/moon/composition/ ) but it's a lot deeper.

> (or blows the Moon up)

As a classic Neal Stephenson (great world building, good plot... and it ends)... Seveneves starts with:

> THE MOON BLEW UP WITHOUT WARNING AND FOR NO APPARENT reason. It was waxing, only one day short of full. The time was 05:03:12 UTC. Later it would be designated A+0.0.0, or simply Zero.

... and given the book and the "what happens"... a watch surviving (much less keeping the phase of the moon) would be impressive.

There's also the Dr. Who take ("Spoilers") https://youtu.be/pHOnGSFzd3Y

layer8•7mo ago
The match between the ASCII part and the clipping circle breaks when zooming out too much on a desktop browser.

Also, given sufficient character "resolution", ASCII art approximates pixel art. This isn't very far from it, with (on my screen) characters of 3x7 pixels. And would require a 200x78 character terminal to fully display.

wang_li•7mo ago
Two observations.

First, there comes a point when it’s not ascii art, it’s just dithering. The use of different colors for the characters goes even further from ascii art.

Second, opening this on my iPad results in a moon with a black crescent on the bottom and an oddly shaped dark green crescent on the left. What star system is this moon in?

Nition•7mo ago
This looks really nice (apart from the shape of the gibbous moon, but others have already pointed that out).

Could you possibly detect the user's approximate location and rotate the whole thing 180 degrees if they're in the southern hemisphere? Down here, the moon looks technically the same, but it's 180 degrees* rotated because we're standing upside-down when we look at it. The craters are flipped and the light comes from the opposite side.

*Actually it's only rotated a full 180 degrees at opposite poles, and the exact rotation depends on your latitude. But perfect is the enemy of good etc.

LAC-Tech•7mo ago
Down here, the moon looks technically the same, but it's 180 degrees rotated because we're standing upside-down when we look at it.

We are standing the right way up your northernist simp.

They are the ones who are wrong. Never forget it.

Nition•7mo ago
This is correct of course but we would only confuse the Americans.
JdeBP•7mo ago
Only the North Americans. (-:
divbzero•7mo ago
Why is the bottom edge of the ASCII moon a black crescent? Is that a real lunar phenomenon or just a rendering artifact in my browser?
thot_experiment•7mo ago
I feel like ascii art loses something when it's not sized to a standard text mode (at least to width, like 132x132 is fine). At some point you're just using weird pixels and this is approaching that for me. Same goes for changing the color of the characters continuously; terminal colors are cool. I'm probably just a crazy purist
aylons•7mo ago
It's not even just that: the shadows go mid-character, instead of using characters as pixels. It is just not ASCII ART at all, just some ASCII characters used as a filler.
noduerme•7mo ago
oooh. Good point. I didn't even noticd that at first glance as I was floored that anyone would show off something so totally wrong. But yes, not responsive ascii art if you're just throwing a transparent circle over the same bunch of characters.
Wowfunhappy•7mo ago
I actually feel like using color at all is cheating. I'm okay with a wider width than 132 px, but it needs to be sized such that you can clearly make out the letters, which I can't in the TFA.
pimlottc•7mo ago
And it's within a circular mask. Half the challenge of ASCII art is creating the illusion of smooth curves and edges when you mostly just have blocky letters. There's barely any attempt at smoothing the edges at all.

https://www.roysac.com/tutorial/rowanasciiarttutorial.html

CommenterPerson•7mo ago
Man this is a tough crowd to impress! (yeah I know it's off but still).
867-5309•7mo ago
there's no cow jumping over it. author's notepad.exe licence should be revoked
shagie•7mo ago
From the about page... https://asciimoon.com/about/

> ASCIIMoon is a small web app that tracks the moon's phases and uses ASCII art to create a basic visual representation of the moon's current appearance based on light percentage.

> This is a personal project, and is in no way a precise representation.

https://www.moongiant.com/phase/today/ is what it should look like. The moon for July 2nd should be something that is a half circle illuminated and a half circle in the dark.

The image on asciimoon shows a circle occluding the moon where it appears that the circle occluding the moon's edge is at 50%.

I'd have to sit down and do the math, but there is way more than 51.79% illuminated in today's rendering.

While I recognize that this is a personal project and not a precise representation... it has a fair amount of work to do to make it so that the correct percentage is illuminated.

This does have some interesting JavaScript and css tricks... but it needs some more math done.

chaoskitty•7mo ago
Is it just me, or is the site not working right now? It loads, but it doesn't show the date, and the buttons don't seem to change anything...
burnt-resistor•7mo ago
Nice start, but it doesn't look or feel right somehow. Keep improving bit by bit. :thumbs up emoji:
adzm•7mo ago
I really wish this had libration and a way to watch it animate through the phases.
tingletech•7mo ago
I made a moon phase with javascript and SVG once https://github.com/tingletech/moon-phase

I think this is my most popular repo on github.

fractallyte•7mo ago
Very nice - I used a similar technique with SVG elliptical arcs to display Moon phases!
dylan604•7mo ago
I was really hoping this would have been a CLI command
hungmung•7mo ago
As others have mentioned, check out phoon.

https://www.acme.com/software/phoon/

mlindner•7mo ago
What the heck is the shape of that moon. It's completely wrong.
aussieguy1234•7mo ago
Now we need "console moon". I type "moon" in my console, out comes the moon phase with the ascii art.
shagie•7mo ago

    $ phoon
                       -------.
                         . .   `--.
                         .       . `-.
                        .  @@@@@      `-.
                          @@@@@@@   .    \
                          @@@@@@@       . \.
                       .   @@@@@@@   O      \
                          @@@@@@@@@@     @@@ \
                       . @@@@@@@@@@@@@ o @@@@|
                          @@@@@@@@@@@@    @@  \  First Quarter +
                       o     @@@@@@@@ @@@@    |  0  8:26:49
                           .  @@   . @@@@@@@  |  Full Moon -    
                       .-.     @@@   @@@@@@@  |  7 16:41:45
                       `-'   . @@@@   @@@@  o /
                                @@   .       |
                         .  O    .     o   . /
                               .    .       /
                       _   .      .   .-. /'
                                     `-' /
                         o    O   .   .-'
                              .    .-'
                        .      .--'
                       -------'
    $
https://github.com/Distrotech/phoon

https://formulae.brew.sh/formula/phoon

curl https://wttr.in/Moon

tolerance•7mo ago
The astronomical criticism here is warranted. But where are the usual defenders of "art" here to take arms for this project's interpretation of "ASCII Art"?

It looks cool and I imagine it wasn't easy to do. And the color of the moon changes when you reload the page.

angry_albatross•7mo ago
It seems misleading to say that this is "rendered in ASCII art"... more like the phase is being rendered, and it has an ASCII art moon background. If I copy and paste the moon text into a text editor, the phase is gone, so it's not actually part of the text.

And as others have pointed out, phases don't work like that.

codezero•7mo ago
Only a little disappointed this didn't render cleanly in my terminal when curled.
lifthrasiir•7mo ago
Besides from usual solutions like phoon, there is a winning IOCCC entry that exactly does this: https://github.com/ioccc-src/winner/blob/master/2000/natori/...
librasteve•7mo ago
this may help https://raku.land/zef:librasteve/Moonphase
ale42•7mo ago
we do we need a web site for an ASCII art display? I just want a command I can locally can in my terminal. And if I want it online, just a telnet server ;-)
jmclnx•7mo ago
Nice!

You can also use xphoon(6) on Linux/*BSD to show a kind of ASCII moon on your root window.