News for hackers. Stuff that matters.
Re:Approximating Pi Using a Cake? by arjvik on Wednesday March 15, 2023 @12:27AM (#35163876)
Anyone up to count sprinkles?

Let's see if this simulation worked in real life!

Re:Approximating Pi Using a Cake? by sargstuff on Wednesday March 15, 2023 @12:37AM (#35163932)
Are simulation results limited to data not ingested?
Re:Approximating Pi Using a Cake? by rob74 on Wednesday March 15, 2023 @05:37AM (#35165787)
I'm just imagining that someone really did this and after all that effort realized how spectacularly off the value they got is, then proceeded to doubt and redo their calculations, only to later realize that the method is at fault...
Re:Approximating Pi Using a Cake? by glapworth on Wednesday March 15, 2023 @06:10AM (#35165991)
I love this, but I thought that the sprinkles need to be the same length in order for the calculation to work? Looking at the image in the article, the length of the sprinkles seem to vary with some being just dots and the others are of a similar length. I wonder if it would work if you discounted those smaller dot sprinkles?
Re:Approximating Pi Using a Cake? by sargstuff on Wednesday March 15, 2023 @04:54PM (#35174570)
Think the follow up article addresses the sprinkle variations using lambda calculus.
Re:Approximating Pi Using a Cake? by eurasiantiger on Wednesday March 15, 2023 @09:33AM (#35168085)
Just take a better picture and code it up
Re:Approximating Pi Using a Cake? by sargstuff on Sunday March 19, 2023 @11:57PM (#35227098)
Way to much time/effort ;-)

1) use sprinkles of all one color shade (other than frosting color).

2) take picture with filter color of sprinkles.

3) either a or b

   a) print out the picture so that sprinkle spots allow light to shine through & non-sprinkle area blocks light shinning through.
   
   b) show picture full screen.
4) Use lens to focus light from 3a or 3b onto photo diode (generate sound or light intensity)

5) Figure out a chart showing the average size / number of sprinkles based on light intensity / generated sound.

chart calibration test case: use tape/paper to block more and more of a cake size screen holes in order to calibrate the light reduction ratio.

aka 3 meters of sprinkles gives 90% reduction in light for given cake size. ~1 screen hole (1mm average sprinkle size) over 3m -> 3000 sprinkles.

Re:Approximating Pi Using a Cake? by 29athrowaway on Wednesday March 15, 2023 @01:35AM (#35164320)
Use a pendulum and a clock
Re:Approximating Pi Using a Cake? by sargstuff on Wednesday March 15, 2023 @01:56AM (#35164446)
one true way to condense the tock, awk/print the relevant Unicode symbol related to number of tics.
Re:Approximating Pi Using a Cake? by sorokod on Wednesday March 15, 2023 @01:57AM (#35164453)
The author confuses circle and disk
Re:Approximating Pi Using a Cake? by eru on Wednesday March 15, 2023 @06:08AM (#35165973)
Colloquial English doesn't make as strict of a distinction as mathematical usage does. It doesn't introduce any ambiguity here.
Re:Approximating Pi Using a Cake? by sorokod on Wednesday March 15, 2023 @06:28AM (#35166119)
Given the subject matter colloquial English is not appropriate here.
Re:Approximating Pi Using a Cake? by eru on Wednesday March 15, 2023 @07:40AM (#35166693)
The article isn't even using π, but 'pi'. I don't think they strove for rigour and formality.
Re:Approximating Pi Using a Cake? by sargstuff on Wednesday March 15, 2023 @04:30PM (#35174308)
So, if the article was serving up on a raspberry pi instead of sprinkles on frosting, that would make things more rigourous/formal?

Or per 'simulating pi', what was done to rule out the article being baked & served using a qem rasberry pi?[0]

[0] emulating a rasberry pi with qem : https://gist.github.com/plembo/c4920016312f058209f5765cb9a3a...

Re:Approximating Pi Using a Cake? by eru on Wednesday March 15, 2023 @10:19PM (#35177375)
Huh? Sorry, I'm a bit dumbfounded.

What does the Raspberry Pi have to do with anything here?

Re:Approximating Pi Using a Cake? by sargstuff on Monday March 20, 2023 @11:44AM (#35233287)
Semiotic breakdown:

Ok, jumping into the deep end of the pool, potential semiotic [0] interpretations:

bug screen (Poisson) & computing grid (Fourier).

Permits one to crunch the numbers without eating the sprinkles. aka gets around the 'You can't have your cake and eat it'[1] issues.

symbolically supports the no formalism approach: a) Pi is irrational number. b)Raspberry is stand in for Bronx cheer [2][3].

Perhaps not being able to eat the cake & complete the project is a good idea (less sugar high & more realistic interpretations/results).

[0] : https://www.uvm.edu/~tstreete/semiotics_and_ads/terminology....

[1] : https://en.wikipedia.org/wiki/You_can%27t_have_your_cake_and...

[2] : https://www.collinsdictionary.com/us/dictionary/english/bron...

[3] : https://www.urbandictionary.com/define.php?term=Bronx%20Chee...

Re:Approximating Pi Using a Cake? by smcl on Wednesday March 15, 2023 @07:42AM (#35166706)
Well the subject matter is someone baking a cake for “pi day” - I think colloquial English is probably fine in this context :)
Re:Approximating Pi Using a Cake? by nh23423fefe on Wednesday March 15, 2023 @01:43PM (#35171989)
No, you refused to infer the plain meaning. Author uses words like on, outside, inside and you pretend they don't apply.
Re:Approximating Pi Using a Cake? by sargstuff on Wednesday March 15, 2023 @04:36PM (#35174375)
Plain logical references would imply no sprinkles on the frosting & one very uninteresting frosted topic.
Re:Approximating Pi Using a Cake? by sargstuff on Wednesday March 15, 2023 @05:12PM (#35174786)
Platters and donuts confusion would be more concerning, as typical hard drives take more than one byte to properly digest.

The article did take a top down approach, instead of a bottom [platter] up approach.

Re:Approximating Pi Using a Cake? by helsinkiandrew on Wednesday March 15, 2023 @02:58AM (#35164821)
Matt Parker on YouTube has done a number of videos calculating pi with pies, a balancing beam, a drifting car, a pendulum and probably more:

https://www.youtube.com/watch?v=ZNiRzZ66YN0

https://www.youtube.com/watch?v=S26_O2B8h8k

https://www.youtube.com/watch?v=_ZbUyS2IRMo

https://www.youtube.com/watch?v=qYAdXm69l8g