Better HN
topnewbestaskshowjobs
Log inSign up

farzher

137 karma · joined May 6, 2015 (11y ago) · 62 submissions

Submissions

1.

Google Compute shut down my server for distributing malware

2 points · by farzher · 2mo ago · discuss

2.

Fuzzysort v3 release – Fast, Tiny, & Good fuzzy search for JavaScript(github.com ↗)

2 points · by farzher · 2y ago · discuss

comment 4y ago · link · parent

Faster than the LuaJIT's interpreter... with the JIT disabled. would've been nice to make that more clear.

comment 4y ago · link · parent

the answers are more absurd than the questions

comment 4y ago · link · parent

> Amazon calculates a product's star rating using machine-learned models instead of a simple average.

lmao! i thought you linked me to an April fools page for a second .-.

"63% of reviews are 5 stars" but when you filter to 5 star reviews, there's zero. small indie company. i'm guessing this is all just an excuse for Amazon to inflate their numbers

comment 4y ago · link · parent

anyone have an explanation for this? this isn't an issue of fake/bot reviews.

why does Amazon say the product is 4/5 stars even though no reviews are saying that... ?

https://i.imgur.com/vTOiujc.png

7.

Amazon reviews rating doesn't add up(amazon.com ↗)

5 points · by farzher · 4y ago · 5 comments

comment 4y ago · link · parent

i'm just starting learning directx and noticed it can render a triangle at 12,000 fps! i had no clue this was possible. i don't think there's any room for input delay there, but i'll find out

comment 4y ago · link · parent

jai's irrelevant to the performance here, but it's very relevant to how easy this was to make. i'm not a systems programmer. i've tried writing hardware accelerated things like this in C++ but have failed to get anything to compile for years. the only reason i was able to get this working is because of jai. this is my first time successfully using openGL directly, outside of someone else's game engine

comment 4y ago · link · parent

just used raw GL calls from #import "GL". although i did #import "Simp" as well for Simp.Texture and Simp.Shader, which Simplified things quite a bit

comment 4y ago · link · parent

writing 100% of the code on the gpu can render 10,000,000 triangles per frame at 60fps ... even in the web browser! (because there's no javascript running) https://www.youtube.com/watch?v=UNX4PR92BpI

but yes, that's cheating, since it's impractical to work with

comment 4y ago · link · parent

you can write 100% of the code on the gpu. but that's impractical to work with. i did that here to see how fast webgl can go, since javascript is so slow https://www.youtube.com/watch?v=UNX4PR92BpI

for this bunnymark i have 1 VBO containing my 200k bunnies array (just positions). and 1 VBO containing just the 6 verts required to render a quad. turns out the VAO can just read from both of them like that. the processing is all on the CPU and just overwrites the bunnies VBO each frame

comment 4y ago · link · parent

> One fun thing I discovered is just how low latency a pure CPU rasterizer can be compared to a full CPU-GPU pipeline

i'm definitely going to have to test that! always trying to minimize input delay

comment 4y ago · link · parent

you're not missing anything, it's not impressive. i was just checking how fast computers are and sharing the results. my original title was "an optimized 2d game engine can render 200k sprites at 200fps" but the mods changed it to match my youtube title (which made it a lot more popular). and the fact it's written in jai isn't relevant, it's just what i happened to use

comment 4y ago · link · parent

it's a lot of fun! jai is my intro to systems programming. so i haven't tried this in C++ (actually i have tried a few times over the past few years but never successuflly).

this is just a test of opengl, C++ should be the same exact performance considering my cpu usage is only 7% while gpu usage is 80%. but the process of writing it is infinitely better than C++, since i never got C++ to compile a hardware accelerated bunnymark.

the only bunnymarks i'm aware of are slow https://www.reddit.com/r/Kha/comments/8hjupc/how_the_heck_is...

which is why i wrote this, to see how fast it could go.

comment 4y ago · link · parent

i finally got around to writing an opengl "bunnymark" to check how fast computers are.

i got 200k sprites at 200fps on a 1070 (while recording). i'm not sure anyone could survive that many vampires

17.

Bunnymark GL in Jai – 200k sprites at 200fps [video](youtube.com ↗)

106 points · by farzher · 4y ago · 68 comments

comment 4y ago · link · parent

sorry to hear you got scammed out of $5000 /:

comment 4y ago · link · parent

in California the fastest internet available to me is 50Mb/s. and it constantly spikes to 1000ms pings.

i saw a dude living miles off-grid in Sweeden with a fiber connection routed to his tiny house in the woods ...

comment 4y ago · link · parent

my windows computer has trouble sleeping. it always randomly wakes up :( quite annoying waste of power

21.

Building an open source operating system without errors(youtube.com ↗)

2 points · by farzher · 4y ago · discuss

comment 4y ago · link · parent

wtf is the color of 0cf4c7.png ? it's different in every browser, and even when you download the file, it's again different in every program that opens it. this is not just a browser issue.

the Photos app on Windows 11 renders it as 01f4c7. almost 0 red. (although come to think of it, maybe the Windows 11 Photos app is an embedded browser, lol)

comment 4y ago · link · parent

this is the worst experience ever on a gaming mouse that scrolls 1 tick at a time

comment 4y ago · link · parent

l hate this type of sliding puzzle. but the site is very nice. it's alike a rubik's cube for babies

25.

YouTube blocks this comment even when translated to Japanese or binary encoded(youtube.com ↗)

21 points · by farzher · 4y ago · 5 comments

comment 4y ago · link · parent

turn back on the computer and play elden ring. touch grace

comment 4y ago · link · parent

the article gives a bunch of examples where gpt-3 gives a bad answer, until the next day where if you ask the same exact question now it has a good answer ready

> Gary: Does grape juice taste better if you add sour milk?

> GPT-3, March 18: I’m not sure if grape juice tastes better if you add sour milk.

> GPT-3, March 19: No, grape juice does not taste better if you add sour milk.

123