News for hackers. Stuff that matters.

an1sotropy

Re:The Art of Fugue – Contrapunctus I (2021) on Tuesday May 27, 2025 @09:21PM (#44112019)
Their Art of the Fugue is a multi-instrumental joy. Here's where Contrapunctus I starts: https://youtu.be/N6sUlZa-IrU?t=7
Re:Reviving a Modular Cargo Bike Design from the 1930s on Monday May 12, 2025 @10:31PM (#43969226)
The bummer is that the transmission is only unidirectional, but a unicycle needs bidirectional control, with very little backlash. Every economical planetary gear hub involves over-running pawls, alas.
Re:Pygfx on Saturday October 26, 2024 @11:04AM (#41955182)
Sorry, I'll try to be clearer. QRhi docs[1] say "The Qt Rendering Hardware Interface is an abstraction for hardware accelerated graphics APIs, such as, OpenGL, OpenGL ES, Direct3D, Metal, and Vulkan." And PySide6 includes a (python) wrapper for QRhi[2]. Meanwhile, pygfx builds on wgpu-py[3] which builds on wgpu[4] which is a "is a cross-platform, safe, pure-rust graphics API. It runs natively on Vulkan, Metal, D3D12, and OpenGL".

So, from the standpoint of someone using PySide6, QRhi and pygfx seem to be alternative paths to doing GPU-enabled rendering, on the exact same range of GPU APIs.

Thus my question: How do they compare? How should I make an informed comparison between them?

[1] https://doc.qt.io/qt-6/qrhi.html

[2] https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QRhiWidget...

[3] https://github.com/pygfx/wgpu-py/

[4] https://github.com/gfx-rs/wgpu

Re:Pygfx on Friday October 25, 2024 @09:20PM (#41951708)
Suppose I'm using PySide6 and starting to use QRhi[1]. Is there a way to compare the portability and speed of pygfx (as within PySide6) with QRhi?

[1] https://doc.qt.io/qtforpython-6/PySide6/QtWidgets/QRhiWidget...

Re:Tcl 9.0 on Friday September 27, 2024 @12:23AM (#41666232)
Sourceforge still works, and is (now) reliable. The awful DevShare malware stuff that Sourceforge started (under new ownership) in 2012 was stopped (under different new ownership) in 2016.
Re:LinkedIn is now using everyone's content to train their AI tool on Thursday September 19, 2024 @12:21PM (#41593479)
Thank you for sharing these links. They both worked for me (in the US); both were set to ON when I got there, and I was able to turn both OFF.
Fwiw the github page for that proposal isn't linking to what seems to be the most recent discussion *. I thought type-annotations-as-comments was a no-brainer, but it seems messy. The Sept 2023 discussion shows that it is complicated by the current variety of annotation schemes (TypeScript is not the only one), and the parsing subtleties, which gave rise to unresolved questions about what is the basic motivation. bummer.

* https://github.com/tc39/notes/blob/main/meetings/2023-09/sep...

Re:Herbie: Optimize Floating-Point Expressions on Tuesday June 04, 2024 @08:17PM (#40580223)
previous posts:

Herbie: Find and fix floating-point accuracy problems (uwplse.org) 6 months ago | 26 comments https://news.ycombinator.com/item?id=38451680

Herbie 2.0 Released (uwplse.org) 11 months ago | 0 comments https://news.ycombinator.com/item?id=36543214

Herbie – optimize floating-point expressions for accuracy (github.com/herbie-fp) 2 years ago | 2 comments https://news.ycombinator.com/item?id=30740880

Herbie: Automatically Improving Floating Point Accuracy (uwplse.org) 4 years ago | 17 comments https://news.ycombinator.com/item?id=24069465

Herbie: Automatically rewrites expressions to minimize floating point error (github.com/uwplse) 8 years ago | 19 comments https://news.ycombinator.com/item?id=10964617

Herbie: Automatically Improving Floating Point Accuracy (uwplse.org) 9 years ago | 3 comments https://news.ycombinator.com/item?id=9999438

What a sweet film. Thank you for the link. This whole time when I heard about work on the Voyager mission I assumed there was a larger team, with fewer single points of failure.
The beautiful "Bygone Visions of Cosmic Neighbors"* touches (at 13:13) on Sir William Herschel belief in life on the sun. Fun times.

* https://www.youtube.com/watch?v=LhfCietvDZo

Re:The Law of Leaky Abstractions (2002) on Wednesday March 06, 2024 @04:18PM (#39621613)
I first learned about "leaky abstractions" from John Cook, who describes* IEEE 754 floats as a leaky abstraction of the reals. I think this is a good way of appreciating floating point for the large group of people who's experience is somewhere between numerical computing experts (who look at every arithmetic operation through the lens of numerical precision) and total beginners (who haven't yet recognized that there can't be a one-to-one correspondence between a point on the real number line and a "float").

* https://www.johndcook.com/blog/2009/04/06/numbers-are-a-leak...

Re:Wintergatan Marble Machine (2016) on Saturday March 02, 2024 @01:55PM (#39574888)
He actually just posted a video in which he admits he lost the plot, and forgot that the real goal is something that is fun. I hope he finds his way back to that!

https://youtu.be/BpJYqC4PWEw

Re:Floats Are Weird on Monday February 19, 2024 @11:03AM (#39431256)
I love that that page is nearly the same as it when I saw it ~20 years ago. Things things are still the right way.
Re:Floats Are Weird on Monday February 19, 2024 @02:53AM (#39427167)
I guess "floats are weird" is a catchier title than "numerical computing is an acquired skill based in part on understanding the various consequences of value representation density being inversely proportional to the absolute value".
The author is sharing second thoughts about using the MIT license and yes, bad actors are going to break bad, but the point of licensing is to control re-use within the (enforceable) legal framework of copyright. Reciprocal licenses (thanks Lawrence Rosen[1] for that term less charged than copyleft or viral) cede less control, and provide more footholds for enforcement. Remember that GPL has (sometimes) worked as intended in adversarial commericial settings [2,3].

[1] https://www.oreilly.com/library/view/open-source-licensing/0...

[2] https://www.tp-link.com/us/support/gpl-code/

[3] https://www.zdnet.com/article/software-freedom-conservancy-w...

Re:Observable 2.0, a static site generator for data apps on Thursday February 15, 2024 @04:59PM (#39389656)
I'm looking forward to learning more about which one makes it easier to see how various possible changes in the data are mapped to legible changes in the visualization.
Re:Sex, aggression, and humour: responses to unicycling on Tuesday January 23, 2024 @09:27AM (#39103686)
Also tracks my experience as a unicyclist. When you keep poking at humanity with the same but unusual prompt, you glimpse how similar people can be. To the quip about losing a wheel, my sadly habituated response is "that was the training wheel!", and then they chuckle, because it's new to them ...
For great productivity
Seeing that crummy video of a mystery speck maybe floating reminded me of the floating frog video (thanks, diamagnetism)

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

Re:X, the moonshot factory on Monday July 24, 2023 @12:03PM (#36850132)
The last event in their timeline is 2020. Moon presumed shot.
Re:Sub-Pixel Distance Transform on Friday July 21, 2023 @01:33PM (#36816810)
Interesting - thanks dahart (hi again!) for pointing out these references. They do seem to be missing in the Cornell report.
Re:Sub-Pixel Distance Transform on Friday July 21, 2023 @09:00AM (#36813250)
I believe that Daniel Huttenlocher and Pedro Felzenszwalb should be credited for the multi-pass (first X, then Y) transform based on quadratic distance:

https://ecommons.cornell.edu/handle/1813/5663

Re:An Alerting Vista of macOS Sonoma on Sunday July 09, 2023 @05:55PM (#36659353)
I wonder if Apple will use this to annoy people who are still happily using the (admittedly old versions of) OpenGL, which has been deprecated for awhile but still working for people who want simple cross-platform graphics.
Thanks for the detailed info. I'm glad it's not me trying to craft this code. Good luck with the optimizations.
Thanks for sharing this. I was worried when I saw the rejection test at the end (around line 1749) that this could be slow, but I guess that for cases like a=0 and b=1, your code avoids that rejection ever happening, is that right? So the rejection only kicks in when the bounds are in the middle of range of one fixed exponent?
Others have previously pondered this, and the related issue of how to randomly select floats in [0,1). I found this to be a helpful account:

https://mumble.net/~campbell/2014/04/28/uniform-random-float

and there's working C code too:

http://mumble.net/~campbell/2014/04/28/random_real.c

well that's the article-wave duality in action.
Re:A Pixel Is Not a Little Square (1995) [pdf] on Thursday March 09, 2023 @03:50AM (#35079434)
I think Alvy Ray Smith understands both the fundamentals of sampling theory and the practicalities of real-world image synthesis and display, given his role in the creation of computer graphics.

Re "If they [displays] did [filtering] then anti-aliasing wouldn't be a thing" - that doesn't match my understanding of sampling theory. If the computer graphics process of image synthesis has folded down high frequencies in the hypothetical source signal, well above (half) the image sampling resolution, so that they now overlap with lower frequencies of the image -- i.e. the image generation suffers aliasing -- then no "filtering" downstream (at least in the traditional signal processing sense) can undo that, and the shape the display elements certainly won't save you either. The job of anti-aliasing is to prevent high-frequency energy from landing in the band-pass in the first place.

Re "plenty of cameras don't have any filtering": the physical act of counting photons that fall onto the areal extent of a CCD element (with an the associated directional distribution created by the prior optics) is absolutely a filtering of the incoming optical signal. That is independent of any subsequent digital filtering of the pixel data.

Re:The Mystery of the Dune Font on Friday January 27, 2023 @11:12AM (#34547617)
Suns ran Solaris, of course.

Older »