Readit News logoReadit News
moring commented on The Lucas-Lehmer Prime Number Test   scientificamerican.com/ar... · Posted by u/beardyw
squigz · a month ago
Math is not my strong suit at all, so I probably won't grok this, but that kind of blows my mind, so I'm curious... how?! That works for any arbitrarily large number?

Math is crazy!... still don't want to study it though!

moring · a month ago
Yes. A number like

123456 = 1 * 100000 + 2 * 10000 + 3 * 1000 + 4 * 100 + 5 * 10 + 6 = 1 * (99999+1) + 2 * (9999+1) + 3 * (999+1) + 4 * (99+1) + 5 * (9+1) + 6

When checking whether it is a multiple of some k, you can add/subtract multiples of k without changing the result, and those 99...9 are multiples of both 3 and 9.

So 123456 is a multiple of 3 (or 9) iff

1 * 1 + 2 * 1 + 3 * 1 + 4 * 1 + 5 * 1 + 6 * 1 = 1 + 2 + 3 + 4 + 5 + 6

is. Apply the same rule as often as you want -- that is, until you only have one digit left, because then it won't get simpler anymore.

moring commented on Programming the Commodore 64 with .NET   retroc64.github.io/... · Posted by u/mariuz
emptybits · a month ago
A generation of programmers might disagree with you.

Multiplication instructions and hash tables (!) are easily worked around, as evidenced by decades of art and innovation programmed on that "terrible" CPU. There are still 6502 programmers today delivering games, art, demoscene, etc.

That CPU was a foundation of the home computer and console revolution: BBC, Commodore, Atari (consoles and computers), Apple, and Nintendo (NES).

moring · a month ago
I don't think that games, art and the demoscene can be used as evidence here. Implementing something like C# means you have a spec to implement. You have to be creative with the implementation without violating that spec.

All the three of games/art/demoscene on something like the C64 have a rough idea as the spec, but then you'll get creative about how much of that "spec" you can bend and violate to meet the technical limitations of the C64, while still being fun.

moring commented on Sued by Nintendo   suedbynintendo.com/... · Posted by u/notepad0x90
Nursie · a month ago
> Namco had a patent on the idea of "a minigame playable during a loading screen".

When does that date from?

Because I remember playing "Invade-a-load" on the C64 in the 80s, while waiting for (I think) Slimey's Mine to load off tape. It was fun enough that sometimes I would stop the tape and just play space invaders for a while.

(edit - ah, and there it is, at the bottom of the fast-loader article on wikipedia: https://en.wikipedia.org/wiki/Fast_loader

"In 1995, Yoichi Hayashi of Namco Ltd. invented a variant of the Invade-a-Load technique for use with optical disc based platforms such as PlayStation and applied for a patent. U.S. patent 5,718,632 was granted in February 1998 and assigned to Namco despite the Invade-a-Load prior art."

Hey, I guess that means...

Edit again: got my timelines wrong, 1995 was 30 years ago, this thing is long-expired. Ugh, I am old...)

moring · a month ago
Spore (C64) also had that and was even a year earlier than Slimey's Mine. So even multiple instances of prior art are not a blocker towards getting a patent...
moring commented on I hate science (2021)   buttondown.com/hillelwayn... · Posted by u/todsacerdoti
kragen · 2 months ago
You think that's better than the work that preceded peer review, by people like Einstein, Bunsen, Kelvin, Planck, Darwin, Maxwell, Mendeleev, Michelson, Steinmetz, Faraday, Davy, Haber, Tesla, etc.? Because I have to say I find the pre-peer-review papers to generally be of much higher quality.
moring · 2 months ago
How did you come to the conclusion that those have not been peer-reviewed? Every uni course that presents the work of these people implicitly reviews it for consistency, and the advanced practices courses repeat their experiments.

Also, survivorship bias.

moring commented on Free software scares normal people   danieldelaney.net/normal/... · Posted by u/cryptophreak
phendrenad2 · 2 months ago
I'm optimistic that the rise of vibe coding will allow the people who understand the user's wants and needs to fix the world's FOSS UIs.
moring · 2 months ago
I'm sceptical about fixing (in the sense of a lasting solution), but it might be a very powerful tool to communicate to devs what the UI should look like.
moring commented on Board: New game console recognizes physical pieces, with an open SDK   board.fun/... · Posted by u/nicoles
pstuart · 2 months ago
> they have a conductive pattern built into the surface using specialized materials and a manufacturing technique we developed in house.

Would this be something a home 3D printer could do? I'm not a maker but I could see the value of others being able to quickly build a universe of playing pieces if that was possible.

moring · 2 months ago
It would sound more logical to me to buy a stack of pre-made patterns (e.g. coin or cube form-factor) and glue them into a like-shaped slot in a 3d-printed playing piece. Assuming that is possible, and you'd still have to make a conductive path to the person touching the piece, but this would be much easier than printing the pattern yourself.
moring commented on Kafka is Fast – I'll use Postgres   topicpartition.io/blog/po... · Posted by u/enether
hyperbolablabla · 2 months ago
I for one really dislike Kafka and this looks like a great alternative
moring · 2 months ago
I'll soon get to make technology choices for a project (context: we need an MQTT broker) and Kafka is one of the options, but I have zero experience with it. Aside from the obivous red flag that is using something for the first time in a real project, what is it that you dislike about Kafka?
moring commented on Birth of Prettier   blog.vjeux.com/2025/javas... · Posted by u/garretruh
foofoo12 · 2 months ago
My love for Prettier went to hate when they started fucking up my parenthesis in calculations. Still an open issue from 2017: https://github.com/prettier/prettier/issues/187
moring · 2 months ago
That Github issue doesn't really stress how serious he problem is. They make it sound like unnecessary parentheses get removed when they should be kept for clarify. What actually happens is that necessary parentheses get removed, altering the meaning of the expression. The example I encountered myself was this or similar to it (can't remember exactly):

(a || b) && c --> a || b && c

which then gets interpreted as

a || (b && c)

moring commented on Go ahead, write the “stupid” code   spikepuppet.io/posts/writ... · Posted by u/spikepuppet
brunooliv · 3 months ago
I both agree and disagree with this post, but I might be misunderstanding it. Near the end, it states:

“Enjoy writing it, it doesn’t have to be nice or pretty if it’s for you. Have fun, try out that new runtime or language.”

It doesn’t have to be nice or pretty EVEN if it’s NOT for you. The value in prototyping has always been there and it’s been very concrete: to refine mental models, validate assumptions, uncover gaps in your own thinking (or your team’s), you name it.

Unfortunately it feels that the pendulum has swung in the completely opposite direction. There’s a lot of “theatre” in planning, writing endless tickets and refining them for WEEKS before actually starting to write code, in a way that’s actively harmful for building software. When you get stuck in planning mode you let wrong assumptions grow and get baked in into the design so the sunken cost keeps rising.

Simply have a BASIC and SHARED mental model of the end goal with your team and start prototyping. LLMs have made this RIDICULOUSLY CHEAP. But, the industry is still stuck in all the wrong ways.

moring · 3 months ago
I feel like this is the time to mention "How Big Things Get Done", by Bent Flyvbjerg. "Long planning vs. start prototyping" is a false dichotomy. Prototyping IS planning.

Put another way, refining tickets for weeks isn't the problem; the problem is when you do this without prototyping, chances are you aren't actually refining the tickets.

Planning stops when you take steps that cannot be reverted, and there IS value in delaying those steps as much as possible, because your project then becomes vulnerable to outside risk. Long planning is valuable because of this; it's just that many who advocate for long planning would just take a long time and not actually use that time for planning.

moring commented on Investigating a Forged PDF   mjg59.dreamwidth.org/7331... · Posted by u/teddyh
fshafique · 3 months ago
It feels like you need to sue them for scamming you with fake documents. Their attempts didn't work on you, but it might've scammed many others.
moring · 3 months ago
Or, if you don't want to fight this battle in lieu of other tenants, _threaten_ to sue to either force the agency to reveal the name and address of the landlord, or ideally, have them put pressure on the landlord to return the security deposit.

u/moring

KarmaCake day1031January 19, 2018View Original