Hacker News new | past | comments | ask | show | jobs | submit login
Let it snow() (julialang.org)
137 points by shmeano on Dec 26, 2023 | hide | past | favorite | 7 comments



Reminds me of the old code you'd type in from various magazines from the Holiday Issues (I think I remember one that displayed an ASCII turkey and pilgrims or whatever was the fashion at the time)

And various Holiday Demos (including, like 4th of July FireWorks, etc) on cassette with a boatload of hand selected and typed up newsletter from some guy with a PO box in the middle of the US.

Grandpa's gonna go take his nap now.


To me snowflakes should be random and not following some trigonometric function.


The trig function just varies the distribution of the random sampling to mimic temporal variations due to wind.


But it seems to have "rand()" calls. Also trigonometric functions can be used as a pseudo random generator (kind of): https://thebookofshaders.com/10/


El nino killed that function.


This is lovely, mob programming at its finest


Here is my version of this same idea from a year ago, updated for this year! :) Not Julia… but it feels very much on topic.

Edit: Don’t miss hitting ESC at some point (there is a virtual key in mobile browsers) to explore.

https://repl.endbasic.dev/?run=jmmv/flakes.bas




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: