HackerTrans
TopNewTrendsCommentsPastAskShowJobs

farzher

no profile record

Submissions

Fuzzysort v3 release – Fast, Tiny, & Good fuzzy search for JavaScript

github.com
2 points·by farzher·2 anni fa·0 comments

[untitled]

1 points·by farzher·4 anni fa·0 comments

Amazon reviews rating doesn't add up

amazon.com
5 points·by farzher·4 anni fa·5 comments

Bunnymark GL in Jai – 200k sprites at 200fps [video]

youtube.com
106 points·by farzher·4 anni fa·68 comments

Building an open source operating system without errors

youtube.com
2 points·by farzher·4 anni fa·0 comments

YouTube blocks this comment even when translated to Japanese or binary encoded

youtube.com
21 points·by farzher·4 anni fa·5 comments

comments

farzher
·4 anni fa·discuss
Faster than the LuaJIT's interpreter... with the JIT disabled. would've been nice to make that more clear.
farzher
·4 anni fa·discuss
the answers are more absurd than the questions
farzher
·4 anni fa·discuss
> 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
farzher
·4 anni fa·discuss
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
farzher
·4 anni fa·discuss
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
farzher
·4 anni fa·discuss
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
farzher
·4 anni fa·discuss
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
farzher
·4 anni fa·discuss
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
farzher
·4 anni fa·discuss
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
farzher
·4 anni fa·discuss
> 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
farzher
·4 anni fa·discuss
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
farzher
·4 anni fa·discuss
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.
farzher
·4 anni fa·discuss
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
farzher
·4 anni fa·discuss
sorry to hear you got scammed out of $5000 /:
farzher
·4 anni fa·discuss
farzher
·4 anni fa·discuss
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 ...
farzher
·4 anni fa·discuss
my windows computer has trouble sleeping. it always randomly wakes up :( quite annoying waste of power
farzher
·4 anni fa·discuss
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)
farzher
·4 anni fa·discuss
this is the worst experience ever on a gaming mouse that scrolls 1 tick at a time
farzher
·4 anni fa·discuss
l hate this type of sliding puzzle. but the site is very nice. it's alike a rubik's cube for babies