Lurker News
A command line trick, a random factoid, anything that’s interesting to you.

Comments (762) 128 threads

Earlier comments
Beldin1 reply#
White dwarfs and neutron stars are both "stellar corpses", the remnant of stars. White dwarfs roughly cram the Sun's mass into an Earth-sized sphere, neutron stars cram that amount of mass into a sphere of about 10km diameter.

Oh, and neutron stars have mountains: height differences on their crust of a few centimeters or less. Scaling that height difference takes more energy than scaling Mount Everest. Gravity is weird.
(Armchair interest in astrophysics; this is roughly correct but I'm sure others can point out nuances better).

mikelevins#
It's one of my favorite books.

Another great Forward read is Rocheworld.
Forward was a physicist, and created settings that only a physicist would be likely to think of.

jasfi2 replies#
Nim (https://nim-lang.org/) is a fast, compiled language that is as easy to use as Python. It doesn't have the same ecosystem or user-base of Python though, although Python and Nim can be bridged via nimpy.
mordechai90001 reply#
I've been itching to pick up a new language, and Nim is high on the list of choices. But I'm leaning towards Rust, just because it has more recognition and a more evolved ecosystem.
jasfi#
The small ecosystem is Nim's downfall for now, sadly. It really is a much easier language to learn and write in.

I'm working on some Nim modules which will be Open Sourced soon. This will provide a web framework with an ORM. It will be a batteries-included framework.
It will also easily plug-in to a Flutter powered front-end engine which can use Nim defined back-end UI code (not just Nim actually). Also to be Open Sourced soon.
The landing page with a wait-list you can sign-up for: https://nexusdev.tools

ajot#
A very fine and useful project written in Nim is Nitter, a super fast, no-JS, reading-only Twitter frontend.
bluepoint#
There are two possible extensions of the rational numbers: the reals and the p-adic numbers. This is because of Ostrowski’s theorem which states that any norm defined for rationals, can either be the normal absolute value or the p-adic norm. For p being a prime, n and d being integers relatively prime to p and e being an integer, a rational can be written as r=p^e*n/d. And p-adic norm is p^(-e). Then in 3-adic numbers you can write 1/2 = 2 + 3 + 3^2 + 3^3 + 3^4 + …

which actually converges because the norm has the negative of the exponent.
pari/gp has a native p-adic calculator, where you can type 1/2 + O(3^5) and get the first p-adic digits.
I don’t know why this impresses me, but it is probably because there are just two ways of extending the rationals, and the p-adic numbers are like the lesser known brothers of reals. I feel, I should have known this for ages. And no, I don’t know if there are known applications, outside number theory, but still, its cute.

Dowwie#
One of the most deceptively dangerous projects that a DIYer can take on is bathroom wall tiling re-grouting. Tiles may not have a strong bond to their substrate and once you remove the grout may fall into the tub/floor, usually breaking. Then, when you search for tile replacements you find no perfect match for your old tile. Always put a heavily padded rug or blankets over the tub before doing tile work so that fallen tile do not break. Also, if you re-tile, buy a lot of extras and keep them stored safely. Oscillating multi-tools are the best for removing old grout, but their vibrations will shake the wall, loosing tiles that you've removed grout from.

Load more comments