Better HN
topnewbestaskshowjobs
Log inSign up

kjeetgill

3,957 karma · joined Apr 30, 2018 (8y ago) · 1,258 submissions

Submissions

1.

InfiniBand, RoCE, and All That(fergusfinn.com ↗)

4 points · by kjeetgill · 5mo ago · discuss

2.

Super Zsnes: GPU Powered SNES Emulation(youtube.com ↗)

4 points · by kjeetgill · 7mo ago · discuss

3.

Stride and prejudice: How a 32-bit overflow corrupted a CUDA kernel(ai21.com ↗)

2 points · by kjeetgill · 7mo ago · discuss

4.

Desperately Seeking Squircles (2018)(figma.com ↗)

18 points · by kjeetgill · 10mo ago · 8 comments

5.

Making a game engine based on dynamic signed distance fields(youtube.com ↗)

1 points · by kjeetgill · 10mo ago · discuss

comment 12mo ago · link · parent

Depending on what your working on, it's actually super nice to know very clearly what lives on the stack vs the heap for performance and compactness reasons. Basically anything that didn't come from malloc or a function calling malloc lives on the stack and doesn't live past the function it was allocated in.

And these days, if you're bothering with C you probably care about these things. Accidentally promoting from the stack to the heap would be annoying.

comment 1y ago · link · parent

I'm pretty soft on this subject but one thing that's always bugged me when I see bivectors represented as a parallelograms is that different coplanar parallelograms of the same area are the same bivector algebraically but visually very different. It just feels confusing when you're trying to learn what it "is".

8.

An interactive introduction to rotors from geometric algebra (2018)(marctenbosch.com ↗)

39 points · by kjeetgill · 1y ago · 3 comments

comment 1y ago · link · parent

Aren't we talking about Waymo? It's not perfect everywhere but it's definitely already better than most people driving around SF. That's pretty full to me.

I guess they haven't been allowed on freeways yet?

comment 1y ago · link · parent

I mirror the previous posters experience: the Waymos drive better than a good amount of people I know and to the the best of my knowledge haven't had any issues with pedestrians except being attacked by them once or twice.

So I'm not sure what you're referring to? Did I miss a story?

comment 1y ago · link · parent

Because the parent-most post from quertox was:

> That's great news! I thought the project had died and that this meant that V8 was the only serious JavaScript engine for the future.

The person you're responding to was basically clarifying what you want to too.

comment 1y ago · link · parent

The free non-logged in chatGPT didn't produce an answer for either for me.

13.

Crafting a Better Shader for Pixel Upscaling [video](youtube.com ↗)

2 points · by kjeetgill · 1y ago · discuss

14.

Giving Personality to Procedural Animations Using Math [video](youtube.com ↗)

2 points · by kjeetgill · 1y ago · discuss

comment 1y ago · link · parent

Stripping out Maps/Lists with boxed keys and values is the first easy thing to do when perf tuning a piece of code. It's so frequently impactful that it's worth doing immediately without any measurement.

You just swap them out with fastutils or trove and call it a day.

comment 2y ago · link · parent

Unfortunate typo. I assume you meant ethnically not ethically.

comment 2y ago · link · parent

The poster is basically proposing something like always doing:

  def all(lis: List[T], mapf: Callable [[T], bool]) -> bool:
    for e in (mapf(l) for l in lis):
       if e is False: return False
    return True
At least that's my take on avoiding Truthy and Falsy via a mapping closure (or function?). But I don't see it solving OPs issue here when lis is empty... So maybe I'm missing something too.

comment 2y ago · link · parent

I'm totally with you for processes should probably use glibc/platform API calls, but procfs is nothing short of brilliant and a great validation of the power of the "everything is a file".

19.

Desperately Seeking Squircles (2018)(figma.com ↗)

15 points · by kjeetgill · 2y ago · 4 comments

comment 2y ago · link · parent

I'm not sure that's the case. I don't think people are responding to the "redneck in a pick-up" stereotypes as much as that "pavement princess" owner trying to "cosplay" truck culture stereotypes.

Sidenote - I'm finding my vocabulary pretty lacking now that so much stereotyping is done in images and memes.

21.

Exploring and building the LLaMA 3 Architecture(medium.com ↗)

2 points · by kjeetgill · 2y ago · discuss

comment 2y ago · link · parent

Huh, TIL - though

> A tree which is not rooted is sometimes called a free tree, although the unqualified term "tree" generally refers to a free tree.

I wonder if that was once the case but no longer is. I'm learning I think of trees mostly through the lens of data structures and not graph theory and I imagine more people do than not.

comment 2y ago · link · parent

Tree's are subsets of DAGs — A DAG where each node has a single parent except for a specific root element which has none.

comment 2y ago · link · parent

Not OP but between Java and C# it's hard to not to lean Java for the absolutely massive lead in high quality libraries and ecosystem support. C# still feels like the new kid in open source circles though the languages are 90% the same.

comment 2y ago · link · parent

Probably a cheeky response but certainly!

We can say most positive integers are greater than 5. Or most real numbers are irrational. Half of all integers are even — even though there's just as many of both!

comment 3y ago · link · parent

I haven't heard about this, can you elaborate on this?

comment 3y ago · link · parent

Vore's comment was critical of revskill's comment that was just ChatGPT output — not your article.

Maybe you can't see dead comments?

comment 3y ago · link · parent

A ton of comments are missing the point of this complaining about list/map syntax etc. I'm not sure if the kotlin lazy addresses this.

The point is that static final variables interact especially well with the JIT's constant folding machinery. But lazy loading a constant necessitates that it can't be final: it's initially null until it's effectively final after the first lazy load. This finality is clear to the developer but not to the JVM.

This is introduces a way to implement lazy constants via a blessed class that solves this.

The article is pretty clear about what the point is — but does require some careful reading and context.

comment 3y ago · link · parent

I'm not sure if we're taking about different time periods, but weren't they at the forefront of chariot warfare during the bronze age?

And I vaguely recall that inventing bellows to melt iron took a long time too, so steam machinery seems pretty far off if all you have is bronze and stone.

12345
42