Readit News logoReadit News
legobmw99 commented on A simple way to generate random points on a sphere   johndcook.com/blog/2025/0... · Posted by u/piinbinary
torrance · 3 days ago
The simplest way to do this is described here: https://mathworld.wolfram.com/SpherePointPicking.html

Essentially:

1. Generate uniformly random values u,v between 0 and 1.

2. Then find their spherical coordinates as:

theta = 2 pi u; phi = acos(2 v -1)

Honestly I’m unsure why you’d choose a method any more complicated.

legobmw99 · 3 days ago
Does this generalize to higher dimensions? I’m realizing my mathematics education never really addressed alternative coordinate systems outside of 2/3 dimensions
legobmw99 commented on WebR – R in the Browser   docs.r-wasm.org/webr/late... · Posted by u/sieste
uniqueuid · 4 days ago
I wonder what kind of edge cases you deal with when blas is your bottleneck in R. Stan code aside, I’ve seen few problems that are neither instant (i.e. sub hours) nor impossible (I.e years of compute).
legobmw99 · 4 days ago
Since you mentioned Stan, feels relevant to mention https://stan-playground.flatironinstitute.org/, which lets you run Stan in WASM and analyze the results using WebR
legobmw99 commented on OCaml as my primary language   xvw.lol/en/articles/why-o... · Posted by u/nukifw
sestep · 14 days ago
No, the problem is that dune=3.7.0 got removed from the registry entirely.
legobmw99 · 13 days ago
Yes, the opam repository has recently been working on an archival policy to reduce the size of the checkout and hopefully ease pressure on the dependency resolver by pruning 'obviously' wrong choices. However, the heuristic they chose seems to have mainly assumed that the things in the repository are libraries, and used dependencies for tracking usages. For executables like dune, this is obviously the wrong idea, and I think they're still deciding how to proceed while adding back most versions
legobmw99 commented on OCaml as my primary language   xvw.lol/en/articles/why-o... · Posted by u/nukifw
hawk_ · 13 days ago
How do you use Rust without lifetimes?
legobmw99 · 13 days ago
Either a lot of clones or a lot of reference counted pointers. Especially if your point of comparison is a GC language, this is much less of a crime than some people think
legobmw99 commented on GitHub was having issues   githubstatus.com/incident... · Posted by u/rock_artist
legobmw99 · 15 days ago
Day one of the new management structure off to a rocky start
legobmw99 commented on The Big Oops in type systems: This problem extends to FP as well   danieltan.weblog.lol/2025... · Posted by u/ksymph
jam0wal · 24 days ago
Godel's incompleteness theorem indicates illegal states as unrepresentable is impossible at a fundamental level.
legobmw99 · 23 days ago
This is a misinterpretation equivalent to saying "The halting problem indicates it is impossible to say if this loop terminates: while true: break "

It is true that it is impossible in general, but that says nothing about whether or not it is possible in almost every useful case

legobmw99 commented on The Big Oops in type systems: This problem extends to FP as well   danieltan.weblog.lol/2025... · Posted by u/ksymph
totallykvothe · 24 days ago
Aaaaand now it's an ECS lol
legobmw99 · 23 days ago
Not sure if you've watched the (entertaining but long) lecture by Casey Muratori linked at the start of this article, but I think this is sort of his point. ECS are powerful not just because of how modern computers schedule and execute code, but they also force you to break the traditional OOP encapsulation ideas, allowing more systems to 'reach across' systems.

He has a interesting discussion about how this 'omniscience' is viewed as a bad thing by many, but it is also incredibly powerful for business logic, especially with heavy user interaction like games.

legobmw99 commented on Commissioner of labor statistics fired after weaker-than-expected jobs figures   cnbc.com/2025/08/01/trump... · Posted by u/belter
inamberclad · a month ago
Firing your subordinates because you don't like the number they report to you is how you obliterate the functioning machinery of government.
legobmw99 · a month ago
Hard to imagine that isn’t part of the goal at this point
legobmw99 commented on Anaconda Raises $150M Series C   anaconda.com/press/anacon... · Posted by u/diverted247
throwaway3646 · a month ago
If you are in a commercial environment, I can only warn to think that using alternative conda clients will be safe. Condaforge for instance will happily download from the main channel if the recipe requires it. It's pretty hard to make sure this does not happen, best solution is to block access on a network level.
legobmw99 · a month ago
That can only happen if you as a user have the 'defaults' channel still configured as available, and conda-forge considers it a user error whenever this happens (the official line is `conda-forge is incompatible with the packages provided in defaults`). Many bug reports are closed simply by telling the user to fix their channel priorities and stop mixing the two
legobmw99 commented on “Good first issues” are usually not good first issues   am17an.bearblog.dev/why-g... · Posted by u/am17an
legobmw99 · a month ago
There’s an additional difficulty here which is the actually good first issues tend to be completed early in their existence, so the long-term steady state is issues that are much more difficult for some reason or another (even if they aren’t stale)

u/legobmw99

KarmaCake day509January 10, 2021View Original