HNHacker News
TopNewBestAskShowJobs

wwwtyro

922 karma · joined October 23, 2011

website: wwwtyro.net
submissionscomments
wwwtyro··on Divers accidentally find a piece of the Challenger space shuttle
The odds of this seem astronomically small.
wwwtyro··on Stable Diffusion Public Release
Yeah, the fact that these models are necessarily based on existing works leaves me hopeful that humans will remain the leaders in this space for the time being.
wwwtyro··on Stable Diffusion Public Release
> Politics will be influenced. You can't trust anything you see anymore

I've been wondering for a while now if this will lead to an unexpected boon: perhaps people will be forced to pay attention to a speaker's content instead of simply who is speaking.

wwwtyro··on The GPU Banana Stand
Shameless plug - I wrote sdf-csg[1] as an attempt to have that cake and eat it too. Basically, build things out of SDFs, then create meshes out of them for efficient rendering.

[1] https://github.com/wwwtyro/sdf-csg

wwwtyro··on Show HN: Celody – A Music Network State
I assume this is an attempt at an implementation of Balaji Srinivasan's Network State idea: https://thenetworkstate.com/
wwwtyro··on Show HN: Procedural 2D space scene generator
You can try it out live here: https://wwwtyro.github.io/space-scene-2d
wwwtyro··on Keyboard lets people type so fast it’s banned from typing competitions
Make it mobile so that I can use it as a mouse without taking my hands off the keyboard, and I'll go through the trouble of learning to use it.

Could even make both halves mobile so that I can use each one as an independent mouse.

wwwtyro··on Instanced Line Rendering Part II: Alpha Blending
Nice catch, thank you! Fixed.
wwwtyro··on Procedurally generating a rounded box mesh
Thanks!
wwwtyro··on Researchhub: GitHub for Science
I'd love to see science become more decentralized. Is there any incentive for reproduction of experiments?
wwwtyro··on Show HN: CandyGraph, a flexible, fast-by-default WebGL plotting library
Enjoy :)
wwwtyro··on Show HN: CandyGraph, a flexible, fast-by-default WebGL plotting library
I've updated the examples to account for the device pixel ratio, it'll probably look better now.
wwwtyro··on Show HN: CandyGraph, a flexible, fast-by-default WebGL plotting library
Yeah, I neglected to account for device pixel ratio in the examples, so they will probably look blurry; I'll need to go back and fix those.
wwwtyro··on Show HN: CandyGraph, a flexible, fast-by-default WebGL plotting library
Yeah, I neglected to account for device pixel ratio in the examples, so they will probably look blurry; I'll need to go back and fix those.
wwwtyro··on Show HN: CandyGraph, a flexible, fast-by-default WebGL plotting library
Thanks!

That's a great write up. I used this approach: https://wwwtyro.net/2019/11/18/instanced-lines.html

wwwtyro··on Show HN: CandyGraph, a flexible, fast-by-default WebGL plotting library
Copying a twitter thread[1] here for more explanation

I built CandyGraph a few months ago to scratch an itch and never really got around to talking about it, but it's starting to get some use now, so here it is: https://github.com/wwwtyro/candygraph

I wanted a plotting library that was designed to not only plot a zillion points very fast, but also deal with changes to the presentation of that data at interactive framerates. If I zoomed in on the plot, for example, I wanted the axes to update fast enough that I wouldn't have to worry about the hit. If I changed an axis from linear to log, the rendered data would update immediately; I didn't want the CPU to churn through a million data points and ship them to the GPU again before it rerendered.

So CandyGraph was born. It adopts D3's elegant concept of scales, but it implements them on both the CPU and GPU. When data is rendered, the scaling takes place in the vertex shader. Changing a scale wont cause a missed frame.

On top of scales sits coordinate systems, also implemented for the CPU and GPU. These combine multiple scales into a system capable of dealing with 2D points. It has cartesian and polar coordinate systems, currently.

It renders everything on the GPU, even axes and text. No need to overlay your speedy WebGL plot with an SVG or another canvas for your axis rendering, and no need to take a perf hit for doing so. And of course, the data rendering itself is speedy; it's all instanced by default.

Finally, CandyGraph comes with a small but growing collection of optimized primitives and higher-level objects to simplify common plotting tasks.

If this sounds like it might scratch your itch, check out the tutorial and examples: https://wwwtyro.github.io/candygraph/tutorial/dist/ https://wwwtyro.github.io/candygraph/examples/dist/

CandyGraph is built on top of the embarassingly good regl library. CandyGraph is in major version zero, but it's usable (and in use) today.

[1]https://twitter.com/wwwtyro/status/1396500134716973063

wwwtyro··on Smooth Voxel Terrain, Part 2 (2012)
The author, Mikola Lysenko, is a remarkable engineer. He's wildly prolific, but my favorite project of his is regl[1], which is an unparalleled WebGL library. I think it might be the best-in-class example of all OpenGL libraries, though I have admittedly fallen behind on the state-of-the-art of desktop OpenGL.

[1] https://github.com/regl-project/regl

wwwtyro··on China to inject $174B of liquidity on Monday as markets reopen
Here's a map with the latest coronavirus data: https://gisanddata.maps.arcgis.com/apps/opsdashboard/index.h...
wwwtyro··on Three New Longevity Startups
More on Underdog Pharma: https://www.fightaging.org/archives/2019/11/an-interview-wit...

"We've taken a well-known and extremely safe compound, and have created novel derivatives that can specifically target the toxic biomolecule that drives the development of atherosclerosis, the cause of most heart attacks and strokes."

I'm excited for this one. Seems like a reasonable possibility for success addressing a huge killer.

wwwtyro··on The International Space Station is growing mould, inside and outside
"The research touches on this, and it warns astronauts to follow recommended planetary protection protocols designed to prevent visiting spacecraft from contaminating other planets and moons in our solar system with microorganisms from Earth. The study suggests that, because of the risk of contamination, these fungal spores may need to be considered a more serious threat."

This makes me wonder if we've accidentally already started terraforming Mars.

wwwtyro··on Vixel: a WebGL path tracing voxel renderer
Sorry about that, I neglected to include the glslify transform. It should work in version 1.0.1 now.
wwwtyro··on Show HN: Convert article in current tab to readable form and upload it to IPFS
There's the Street Performer Protocol: https://www.schneier.com/academic/archives/1998/11/the_stree...
wwwtyro··on Fibre:A WebGL application for visualizing 3D vector fields and dynamical systems
Looks like it's spinning on checking the framebuffer status, which is probably not something that needs to be done as frequently as it is. Putting that in a better spot would likely make it much more interactive.
wwwtyro··on Python’s For - Else
Hold up. Stop. Read the parent closely.

This is a case where the right answer is only obvious once it's been stated.

> Its a great feature - but there should have been another keyword for it: "also"

SmirkingRevenge - !@#$ing brilliant. You've stepped outside the box and presented an answer that will click as soon as it's read.

Someone make a PEP.

wwwtyro··on Scientists think the cell nucleolus may play an important role in aging
> Immortality

No reasonable person is talking about immortality. The issue here is defeating the diseases of old age.

> will create a lot more problems than it will solve.

That's a massive unfounded claim you're holding up against saving the lives of a hundred thousand people per day.

wwwtyro··on Scientists think the cell nucleolus may play an important role in aging
That's a good point. We should probably murder any scientists once they reach about 50, so we can speed up progress.
wwwtyro··on Decades-Old Graph Problem Yields to Amateur Mathematician
If you haven't watched an Aubrey de Grey talk, you owe it to yourself to give the man a listen. Beyond the admittedly interesting topic, he's genuinely entertaining.
wwwtyro··on MIT severs ties to company promoting fatal brain uploading
Are you suggesting we not save lives so that we can avoid some unrealized fear of overcrowding?

Suppose humanity attains indefinite life spans in the near future. Would you then advocate murder in order to save space?

Should we outlaw antibiotics because they save lives, and those lives take up resources?

I find this argument both unimaginative (improving technology changes the nature of our challenges) and repulsive (it's advocating murder through inaction).

wwwtyro··on Show HN: Realtime WebGL path tracing demo
Happy to answer any questions.

Source: https://github.com/wwwtyro/caffeine

Tutorial: http://wwwtyro.net/2018/02/25/caffeine.html

wwwtyro··on WebGL2 Fundamentals
> you can just start hacking up something nontrivial on THREE.js and you'll come out of it knowing most of WebGL.

Sorry, but this is wildly untrue. I don't really know where to begin, but you wouldn't even need to touch shaders to accomplish that, so no, you wouldn't know most of WebGL. THREE.js is very much a thick abstraction over WebGL.

> And in doing so you'll eventually realize that even WebGL itself is quite "high level" -- there is a _huge_ amount of abstraction that you take for granted in the browser.

Also not accurate. WebGL is a -very- thin wrapper over OpenGL ES, which is itself as low level as you can go without stepping into something like Vulkan. There's almost no abstraction.

← PreviousPage 2 of 8Next →