HNHacker News
TopNewBestAskShowJobs

mmozeiko

698 karma · joined July 27, 2011

https://github.com/mmozeiko/
submissionscomments
mmozeiko··on Darktile – GPU rendered terminal emulator designed for tiling window managers
Try foot: https://codeberg.org/dnkl/foot

I believe it supports sixels and ligatures (but I haven't tried those, I don't care much about them).

It works on Wayland - I'm running it under Sway and I'm very happy with it. It also supports server/daemon mode where server does all the rendering and shares glyph cache between windows - lower memory usage & faster startup.

mmozeiko··on Create Vintage Videos Using FFmpeg in 4 Simple Steps
Try adding "-stream_loop -1" before first -i argument.
mmozeiko··on Kirc – A tiny IRC client written in POSIX C99
This source code seems tiny - just ~300 lines. What features of c11 do you think would be useful to use there?
mmozeiko··on Minimal LZMA Project (Minlzma)
I don't see any code on repo. Why this is on HN?
mmozeiko··on AMD Claims World’s Fastest Per-Core Performance with New EPYC Rome 7Fx2 CPUs
There is - Intel SPMD Program Compiler. https://ispc.github.io/
mmozeiko··on Khronos Group Releases Vulkan Ray Tracing
Yes. Driver/GPU handles that. It "just works". You just manage things on high level - what can be moved in world, what cannot and group the updates together.
mmozeiko··on Khronos Group Releases Vulkan Ray Tracing
To shoot rays in scene you create acceleration structure (internal to driver/GPU hardware). Input to this structure are vertex & index buffers & model transform matrix. Geometry is specified as triangles or AABB. You can update this structure later by providing new transform matrix. There are different flags that control performance/memory usage - fast tracing or updates vs less memory usage.

See following links:

* https://www.khronos.org/registry/vulkan/specs/1.2-extensions...

* https://www.khronos.org/registry/vulkan/specs/1.2-extensions...

mmozeiko··on What is wrong with all those AArch64 desktops?
On Raspberry "GPU" (VideoCore processor) is the main processor. ARM CPU is secondary in some sense.

Here's a good overview:

https://thekandyancode.wordpress.com/2013/09/21/how-the-rasp...

https://raspberrypi.stackexchange.com/a/10595

mmozeiko··on Libspng – C library for reading and writing PNG files
Wow, this is amazing. I did not know about these new API functions. It makes using libpng much more pleasant. Thanks!
mmozeiko··on MPEG1 Single file C library
Here's a rationale for this from an author of very popular many single-header libraries: https://github.com/nothings/stb#why-single-file-headers

As to how to use from two separate translation units - you need to define PL_MPEG_IMPLEMENTATION to actually include implementation. So you do that in one of your .c files. Rest of includes will have only declarations included.

mmozeiko··on Immediate Mode GUI
Here's an browser demo for dear imgui (https://github.com/ocornut/imgui) library:

https://pbrfrat.com/post/imgui_in_browser.html

For modal demo check "Popups & modal windows" -> "Modals" example.

This is how it looks in C++ code: https://github.com/ocornut/imgui/blob/master/imgui_demo.cpp#...

mmozeiko··on ARM and Intel have different performance characteristics: a case study
For 64-bit ARM there are no function calls when using clang: https://godbolt.org/z/IR2DIj
mmozeiko··on Ledger's Advanced Side Channel Analysis Repository
You'll be surprised, but yes - it can be measured. Not even on same computer, but across different computers on Internet, even with all the random latency in the middle.

The idea is that you don't measure only once. You measure thousands, tens of thousands of times and more. Then any difference however small it will be also multiplied thousand times and it will be possible to measure it. Even if you will have other random processes such as OS scheduler, network latency, etc - it will be pretty obvious after thousands of measurements which ones to ignore. For example, check the histogram graphs in this paper: https://mlq.me/download/netspectre.pdf

mmozeiko··on WireGuard for MacOS
I use TunSafe for something like a year. It is great. Everything is pretty seamless. And with it I get better speeds than OpenVPN when connecting to Linux machine across Atlantic ocean.
mmozeiko··on 24-core CPU and I can’t type an email
Probably "perf" would work here.
mmozeiko··on Understanding L1 Terminal Fault aka Foreshadow: What You Need to Know
Private keys for HTTPS certificates. API keys or different credentials for other systems.
mmozeiko··on WireGuarding the mainline
I'm using TunSafe every day for a while now. It is great. Thanks!

Without any extra tuning I see much better speeds than OpenVPN - something like 20MB/s vs 5MB/s when transferring between EU and US locations.

mmozeiko··on WireGuarding the mainline
What are the current security issues with TunSafe?
mmozeiko··on GitHub Commit Forgery
This is nothing github specific. It will work with any git repository. Author is just a text attached to commit. Anybody can set it to anything.

You don't even need to edit ~/.gitconfig file. Just set GIT_AUTHOR_NAME / GIT_AUTHOR_EMAIL / GIT_AUTHOR_DATE env variables to anything you want. See https://git-scm.com/book/en/v2/Git-Internals-Environment-Var... for more variables.

mmozeiko··on Improving the fast inverse square root (2010)
That is not quite true. You don't need to use GCC __builtin functions for this. GCC supports SSE1 intrinsics like _mm_rsqrt_ss exactly same as MSVC - it is declared in xmmintrin.h header. Just include it and _mm_rsqrt_ss/ps will be available for you in gcc and msvc.
mmozeiko··on Improving the fast inverse square root (2010)
Inverse sqrt approximation is available since SSE1 with rsqrtss & rsqrtps instructions.
mmozeiko··on Youtube-dl: Command-line program to download videos
--no-osc will disable any OSD in mpv. osc=no in mpv.conf
mmozeiko··on Blender is testing PeerTube after YouTube blocks their videos worldwide
From https://github.com/Chocobozzz/PeerTube/blob/develop/support/...

> Please don't install PeerTube for production on a small device behind a low bandwidth connection (example: a Raspberry PI behind your ADSL link) because it could slow down the fediverse.

mmozeiko··on Adding BigInts to V8
MSVC also can do this with _mul128 intrinsic.
mmozeiko··on Running FFmpeg on AWS Lambda for 1.9% the Cost of AWS Elastic Transcoder
Most YT videos use DASH protocol to serve you video and audio separately. That's because you can use same audio stream with different resolution videos. "youtube-dl" script can download just the audio file, without downloading video data.
mmozeiko··on Intel Compiler Intrinsics Guide
"Simple encoding" doesn't mean its RISC. There are simple encoding instruction sets that are CISC. For example - PDP-10, it has fixed size, simple encoding, but is "classically" known as CISC.

CISC vs RISC for modern CPUs (last 20 or 30 years) doesn't mean anything. Any modern ARM or Intel is partially RISC and a CISC at the same time.

Think this way:

1) modern x86 micro-ops can be viewed as RISC. So x86 is RISC?

2) ARM1 (from 1985) had an micro-ops, that means user visible opcodes are not reduced enough. So ARM it CISC? http://www.righto.com/2016/02/reverse-engineering-arm1-proce... Not talking even about modern 64-bit arm cores.

mmozeiko··on Intel Compiler Intrinsics Guide
I would not call ARM a RISC. What is RISC in your opinion? Lack of memory addressing except load and store? Not true for ARMv8.1. Lack of microops? ARM1 (from 1985) has microops.
mmozeiko··on Aarch64 support added
Not really. You can debug i386 code just fine, right? It also doesn't have PC mapped to register file.
mmozeiko··on Marta, file manager for macOS, goes beta
I pretty much write, compile & run a large chunk of my C, C++, Python and other code in FAR every day.

I use it because I can do so many things in FAR so much faster than any other alternative (or my colleagues). I can view/navigate file/folder structure. View/Edit/Copy/Move/Archive files. And search recursively. Either by file name/extension or in contents. Also run command-line stuff (make, python, git). Inspect output from commands, quickly select text - copy&paste between contents of file, command-line and output of command. And much more. All that with just a few of keyboard shortcuts. No mouse.

And when I'm showing/explaining something to my colleague, I often hear "wait, what just happened?" or "how did you do that so fast?"

// not russian, but using FAR every day (started with Norton Commander, then used Volkov Commander, then Dos Navigator for a long time)

mmozeiko··on Rent out GPUs to AI researchers and make ~2x more than mining cryptocurrencies
Which can be defeated with SgxSpectre: https://arxiv.org/abs/1802.09085
← PreviousPage 2 of 5Next →