5,828 karma · joined Feb 16, 2010 (16y ago) · 420 submissions
Blog: https://phoboslab.org/
comment 3y ago · link · parent
Also, the distinct style of the last episode is easily explained by the fact that all of its maps were built by Sandy Petersen. E3 was mostly American McGee, while John Romero and Tim Willits worked on E1 and E2.
I'm not a fan of Petersen's maps either, but they are regarded (and liked) as quite unique, compared to the rest of the game.
comment 3y ago · link · parent
[1] https://github.com/phoboslab/qoa/blob/master/qoa.h#L324-L336
comment 3y ago · link · parent
I haven't done any formal benchmarks, but with a simple `time` on the command line QOA encodes 10x faster and decodes 7x faster than Opus.
QOA should be quite suitable for SIMD optimizations, which would improve performance even more. Still on my todo list.
comment 3y ago · link · parent
- Original, 4039kb: https://phoboslab.org/files/qoa-samples/adpcm_comp/orig.wav
- MS ADPCM, 1022kb: https://phoboslab.org/files/qoa-samples/adpcm_comp/ms_adpcm....
- QOA, 812kb: https://phoboslab.org/files/qoa-samples/adpcm_comp/qoa.wav
IMA ADPCM is in the same ballpark as MS ADPCM. ADX (not listed) comes close to QOA, but at 1136kb is also larger than those traditional ADPCM flavors.
36.
Ladybird (SerenityOS Browser) Now Passes the Acid2 Test(twitter.com ↗)
4 points · by phoboslab · 3y ago · discuss
comment 3y ago · link · parent
The benchmark suite[1] I compiled contains many different types of images. The "industry standard" sets like the Kodak and Tecnick Photos, texture packs and icons are complete. No images have been removed from these sets. Some of the other collections (photos and game screenshots from Wikipedia and those from pngimg.com) are a random sample. I did not remove any images just because they compressed badly.
Also, the fact that some images compress badly is a non issue, if the whole set of assets that you need for your game/app combined have an acceptable compression ratio. If that's not the case, by all means, chose another image format.
On average, for a lot of assets types, QOI usually performs quite ok.
comment 4y ago · link · parent
uval = (val<<1) ^ (val>>31);
Variations of this have probably been used countless of times in other libraries.[1] https://github.com/LordJZ/libflac/blob/master/src/libFLAC/bi...
comment 4y ago · link · parent
We are moving towards a solid state future where no user interaction directly drives mechanics. Physical media has largely disappeared, few cars are sold with a manual transmission and everything is wireless.
Maybe folding phones will fill the gap. For now, at least my toaster remains!
comment 4y ago · link · parent
You only ever hear about it when he gets high profile cases wrong.
When my project was targeted by him, he ended up going down some conspiracy rabbit hole and doxed all the wrong people. This forced me to issue a correction - mission accomplished, I guess.
During his "investigation" he accidentally sent an email that was meant for his business partner to some of my friends. It offered a glimpse into his sensationalist mindset. I don't have much respect for that guy.
comment 4y ago · link · parent
So for everyone as ignorant as myself, I guess it's referring to this[1]:
> Expect is a tool for automating interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc.
comment 4y ago · link · parent
It's a crutch, but at least you don't need to stuff the shader into multiple "strings" or have string continuations (\) at the end of every line. Plus you get some syntax highlighting from the embedding language. I.e. the shader is highlighted as C code, which for the most part seems to be close enough.
[1] https://github.com/phoboslab/pl_mpeg/blob/master/pl_mpeg_pla...
comment 4y ago · link · parent
For MPEG-1 this is not true anymore. All patents have expired. It's also far less computationally expensive and easier to implement/integrate than more modern codecs. This makes MPEG-1 a "good enough" solution for (e.g.) short video clips in a game.
Disclaimer: I wrote pl_mpeg[1], so my opinion is biased.
comment 4y ago · link · parent
[1] https://phoboslab.org/log/2015/04/reverse-engineering-wipeou...
comment 4y ago · link · parent
Related: here's some PHP code I wrote 14 years ago that does something similar, but tries to generate aesthetically pleasing avatars:
comment 4y ago · link · parent
Sometimes it's an uphill battle to even explain to business owners why being on takeaway.com is stupidly expensive - after all, at the end of the month they _receive_ money from them, instead of paying a monthly subscription fee.
Congratz to your unicorn status :)
comment 4y ago · link · parent
Note that pagenode is not a ready made blog system, but rather a library to build a blog, portfolio site or anything else that does not have user-generated content.
comment 4y ago · link · parent
I wanted a simple format that allows you to load/save images quickly, without dealing with the complexity of JPEG or PNG. Even BMP, TIFF and other "legacy" formats are way more complicated to handle when you start looking into it. So that's what QOI aims to replace.
There's a lot of research for a successor format ongoing. Block based encoding, conversion to YUV, more OP-types etc. have all shown improved numbers. Better support for metadata, different bit-depths and allowing restarts (multithreading) is also high on the list of things to implement.
But QOI will stay as it is. It's the lowest of all hanging fruits that's not rotten on the ground.
comment 4y ago · link · parent
if [ $(xdotool search --name "calc repl") ]; then
xdotool search --name "calc repl" windowraise
else
xfce4-terminal \
--title="calc repl" \
--color-bg=#123 \
--color-text=#fec \
--hide-scrollbar \
--font="Deja Vu Sans Mono 14px" \
--geometry 40x14 \
--execute node -i -e "$JSREPL"
fi
($JSREPL just contains some extra functions that I want in a calculator)I can easily go back to previous calculations and results, define vars, run loops whatevs. Having it on a key combo and launching the terminal with a distinct text/bg color really makes a difference. It also launches faster than most other calculators I tried. For my purposes (non-scientific, mostly programming stuff), it's been great.
comment 4y ago · link · parent
[1] https://github.com/phoboslab/qoi/blob/master/qoifuzz.c
[2] https://qoiformat.org/benchmark/
[3] https://github.com/phoboslab/qoi/blob/master/qoibench.c#L440...
comment 4y ago · link · parent
The only places where it matters is the header's width/height and order of RGB(A) data. Storing RGBA as ABGR is not a great choice, imho. If you want to be endian independent, you have to read one byte at a time anyway (or swap).
comment 5y ago · link · parent
When you are big enough to worry about the other issues, you surely are big enough to handle the requirements in-house. I see the dependence on some specific companies as the bigger threat to reliability.
comment 5y ago · link · parent
The answer is "one". If you have less than 10k req/s you shouldn't even start to think about multiple DB servers or migrating from bog-standard MySQL/MariaDB or Postgres.
I will never understand this obsession with "scaling". Modern web dev seriously over-complicates so many things, it's not even funny anymore.