Readit News logoReadit News
gct commented on Everything I know about good API design   seangoedecke.com/good-api... · Posted by u/ahamez
zahlman · 3 days ago
Anyone else old enough to remember when "API" also meant something that had nothing to do with sending and receiving JSON over HTTP? In some cases, you could even make something that your users would install locally, and use without needing an Internet connection.
gct · 3 days ago
Everyone's decided that writing regular software to run locally on a computer is the weird case and so it has to be called "local first".
gct commented on Digg.com is back   digg.com/... · Posted by u/thatgerhard
haburka · 8 days ago
I think that social media has been a massive experiment where we asked, what if we let capital interests subvert our desire for community to get us to watch ads? And we have learned that it’s just not a good idea. I think perhaps Digg was one of the better ones but I solemnly wish social media was mostly illegal, especially advertising based, for profit sites.

I think hacker news manages to be ok since it doesn’t rely on advertising which makes it much more palatable.

gct · 8 days ago
Let's just start shifting the overton window: let's make all paid advertisement illegal y'all.
gct commented on LLM codegen go brrr – Parallelization with Git worktrees and tmux   skeptrune.com/posts/git-w... · Posted by u/skeptrune
gct · 3 months ago
No wonder software is so slow today when we're this profligate. "let's run four AIs and ignore 3/4 of them!" ugh.
gct commented on The FFT Strikes Back: An Efficient Alternative to Self-Attention   arxiv.org/abs/2502.18394... · Posted by u/iNic
bee_rider · 6 months ago
That seems like an odd comparison, specialty hardware is often better, right?

Hey, do DSPs have special hardware to help with FFTs? (I’m actually asking, this isn’t a rhetorical question, I haven’t used one of the things but it seems like it could vaguely be helpful).

gct · 6 months ago
They usually have dedicated acceleration hardware, yes: https://www.ti.com/lit/an/sprabb6b/sprabb6b.pdf?ts=174057874...
gct commented on Code reviews: A success story   blogsystem5.substack.com/... · Posted by u/mu0n
gct · 7 months ago
Mandatory CR is mostly a way for mediocre programmers to feel like they're contributing IMHO.
gct commented on When you search for ‚Google' on Bing, Bing masquerades as Google   daringfireball.net/linked... · Posted by u/ch_sm
gct · 8 months ago
Impossible, HN has assured me that Microsoft has changed.
gct commented on Forsp: A Forth+Lisp Hybrid Lambda Calculus Language   xorvoid.com/forsp.html... · Posted by u/xorvoid
pmarreck · a year ago
This looks really neat, although I'm still wrapping my head around it! It's funny how things that are even more fundamentally simple than what has been discovered, can be (initially) harder to reason about!

So you could presumably also write a Lisp interpreter AND a Forth interpreter using it?

(Might as well write a Turing machine interpreter too for the trifecta... assuming one can decide on the syntax...)

That plus some additional functionality to make it more usable in the general sense (adding math functions, string manipulation, maybe some basic I/O) and it might be a VERY interesting instructional tool.

I've heard the term "thunk" but I forget what it means...

gct · a year ago
A thunk is just a function with no arguments representing a computation. In C++:

  int a=1, b=2; auto thunk = [=]() { return a+b; }

gct commented on Fast Fourier Transform in Rust   github.com/QuState/PhastF... · Posted by u/logicalguess
O3marchnative · a year ago
Hi,

One of the authors of PhastFT here. Thank you for your interest.

We went out of our way to configure FFTW for AVX-512. The Rust bindings don't do it, but the FFTW itself in the benchmark does.

It's worth noting that with FFTW you have to choose between building it for your CPU and making it non-portable, or targeting the lowest common denominator of CPU features so that it runs everywhere but much slower. Meanwhile PhastFT detects the available CPU features at runtime, and will utilize the fastest CPU features without sacrificing portability.

Lastly, we are currently working on support for interleaved format [1]. That should ship in the next release.

[1] https://github.com/QuState/PhastFT/pull/27

gct · a year ago
FFTW will definitely query cpuid at runtime too, since it's piecing together kernels anyways it's not much more work for it to choose to ignore AVX, etc. If you use the [guru interface](https://www.fftw.org/fftw3_doc/Guru-vector-and-transform-siz...) to configure it to work with split arrays (and maybe use FFTW_MEASURE when planning) I think the benchmarks will be a lot more 1:1
gct commented on Fast Fourier Transform in Rust   github.com/QuState/PhastF... · Posted by u/logicalguess
gct · a year ago
This isn't really apples-to-apples comparing with FFTW.

  1. It's been my experience that distros don't configure AVX properly for it, and 
  2. PhastFT takes its inputs de-interleaved in separate real/imaginary arrays which is generally not how complex data is provided, so that overhead doesn't appear in PhastFT.

gct commented on Level of Gaussians: Real-Time View Synthesis for Millions of Square Meters   zju3dv.github.io/LoG_webp... · Posted by u/corysama
angusturner · a year ago
Can anyone familiar with 3d graphics speculate what would be required to implement this into a game engine?

I'm guessing that adding physics, collision-detection etc. on top of this is non-trivial compared to using a mesh?

But I feel like for stuff like tree foliage (where maybe you don't care about collisions?), this would be really awesome, given the limitations of polygons. + also just any like background scenery, stuff out of the player's reach.

gct · a year ago
Given they're indexing into a tree, animation will be a pain.

u/gct

KarmaCake day230June 2, 2014View Original