Better HN
topnewbestaskshowjobs
Log inSign up

an1sotropy

843 karma · joined May 3, 2021 (5y ago) · 336 submissions

Submissions

comment 1y ago · link · parent

Their Art of the Fugue is a multi-instrumental joy. Here's where Contrapunctus I starts: https://youtu.be/N6sUlZa-IrU?t=7

comment 1y ago · link · parent

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.

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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...

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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...

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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...

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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".

comment 2y ago · link · parent

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...

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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 ...

comment 3y ago · link · parent

For great productivity

comment 3y ago · link · parent

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

comment 3y ago · link · parent

The last event in their timeline is 2020. Moon presumed shot.

comment 3y ago · link · parent

Interesting - thanks dahart (hi again!) for pointing out these references. They do seem to be missing in the Cornell report.

comment 3y ago · link · parent

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

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Thanks for the detailed info. I'm glad it's not me trying to craft this code. Good luck with the optimizations.

comment 3y ago · link · parent

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?

comment 3y ago · link · parent

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

comment 3y ago · link · parent

well that's the article-wave duality in action.

comment 3y ago · link · parent

which is here: https://www.patreon.com/physicsgirl

comment 3y ago · link · parent

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.

comment 3y ago · link · parent

Suns ran Solaris, of course.
12345
12