Vrmac VS ish

Compare Vrmac vs ish and see what are their differences.

Vrmac

Vrmac Graphics, a cross-platform graphics library for .NET. Supports 3D, 2D, and accelerated video playback. Works on Windows 10 and Raspberry Pi4. (by Const-me)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
Vrmac ish
45 152
104 15,952
- 2.2%
3.6 9.6
over 2 years ago 4 days ago
C# C
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Vrmac

Posts with mentions or reviews of Vrmac. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-29.
  • New Renderers for GTK
    9 projects | news.ycombinator.com | 29 Jan 2024
    Couple times in the past I have implemented GPU-targeted GUI renderers, here’s an example: https://github.com/Const-me/Vrmac?tab=readme-ov-file#vector-... https://github.com/Const-me/Vrmac/blob/master/Vrmac/Draw/VAA...

    2D graphics have very little in common with game engines. The problem is very different in many regards. In 2D, you generally have Bezier and other splines on input, large amount of overdraw, textures coming from users complicate VRAM memory management. OTOH, game engines are solving hard problem which are irrelevant to 2D renderers, like dynamic lighting, volumetric effects, and dynamic environment.

  • Was Rust Worth It?
    18 projects | news.ycombinator.com | 25 Oct 2023
    > Part of Panama

    Most real-live C APIs are using function pointers and/or complicated data structures. Here’s couple real-life examples defined by Linux kernel developers who made V4L2 API: [0], [1] The first of them contains a union in C version, i.e. different structures are at the same memory addresses. Note C# delivers the level of usability similar to C or C++: we simply define structures, and access these fields. Not sure this is gonna be easy in Java even after all these proposals arrive.

    For a managed runtime, unmanaged interop is a huge feature which affects all levels of the stack: type system in the language for value types, GC to be able to temporarily pin objects passed to native code (making copies is prohibitively slow for use cases like video processing), code generator to convert managed delegates to C function pointers and vice versa, error handling to automatically convert between exceptions and integer status codes at the API boundary, and more. Gonna be very hard to add into the existing language like Java.

    > "Vector API" JEP

    That API is not good. They don’t expose hardware instructions, instead they have invented some platform-agnostic API and implemented graceful degradation.

    This means the applicability is likely to be limited to pure vertical operations processing FP32 or FP64 numbers. The rest of the SIMD instructions are too different between architectures. A simple example in C++ is [2], see [3] for the context. That example is trivial to port to modern C#, but impossible to port to Java even after the proposed changes. The key part of the implementation is psadbw instruction, which is very specific to SSE2/AVX2 and these vector APIs don’t have an equivalent. Apart from reduction, other problematic operations are shuffles, saturating integer math, and some memory access patterns (gathers in AVX2, transposed loads/stores on NEON).

    > most of these are not done / not in a stable LTS Java release yet

    BTW, SIMD intrinsics arrived to C# in 2019 (.NET Core 3.0 released in 2019), and unmanaged interop support is available since the very first 1.0 version.

    [0] https://github.com/Const-me/Vrmac/blob/master/VrmacVideo/Lin...

    [1] https://github.com/Const-me/Vrmac/blob/master/VrmacVideo/Lin...

    [2] https://gist.github.com/Const-me/3ade77faad47f0fbb0538965ae7...

    [3] https://news.ycombinator.com/item?id=36618344

  • Stable Diffusion in pure C/C++
    8 projects | news.ycombinator.com | 19 Aug 2023
    I have minimal experience with Rust. OTOH, programming C++ for living since 2000, with a few gaps when I used other languages like Obj-C and C#.

    I agree C++ is very hard to learn if you only have experience with higher-level languages like Python and Scala. I think there’re two reasons for that.

    C++ is unsafe. There’s no way around this one, it was designed that way, like C or assembly. Still, with modern toolset it’s not terribly bad. Compilers print warnings, BTW I typically ask them to treat warnings as errors to deliberately fail the build. On Windows, a combination of debug build, debug C runtime, and visual studio debugger helps tremendously. Linux compilers have these sanitizers (address, memory, thread, undefined behavior) which are comparable, they too sacrifice runtime speed for diagnostics and debuggability.

    Another reason, the language itself is very complicated, especially the templates. However, just because something is in the language doesn’t mean it’s a good idea to use it. You don’t need to be familiar with that stuff unless doing something very advanced, like customizing the Eigen C++ library. Don’t follow the patterns found in the standard library: unlike your code, that library has good reasons to use that template BS. If instead of templates you do something else, C++ becomes much easier to use, and most importantly other people will still be able to read and understand your code. Another reason to avoid excessive template metaprogramming, it slows down the compiler, because template-heavy code often needs to be in headers as opposed to cpp files.

    P.S. If you don’t need extreme levels of performance (defined as “approach the numbers listed in CPU specs”, the numbers are FLOPS or memory bandwidth), and you don’t need the ecosystem too much, consider C# instead of C++. Much faster than Python, often faster than Scala or Java, easy integration with C should you need that (same as Rust, much easier than Python or Java), the only downside is these ~100MB of the runtime. The reputation is weird, but technically the language and runtime are pretty good. For example, here’s a C# library which re-implements a subset of ffmpeg and libavcodec C libraries: https://github.com/Const-me/Vrmac/tree/master/VrmacVideo

  • Media Player Element now available for cross-platform apps everywhere dotnet runs
    2 projects | /r/dotnet | 6 Jun 2023
    BTW, I did that too for 32-bit ARM Linux on Raspberry Pi 4, back in 2020: https://github.com/Const-me/Vrmac/tree/master/VrmacVideo Unlike Uno, my implementation doesn’t use libVLC and is written mostly in C#, only audio decoders are in C++. To decode video, I directly consume V4L2 Linux kernel APIs.
  • Ask HN: Those making $0/month or less on side projects – Show and tell
    95 projects | news.ycombinator.com | 27 Jan 2023
    Doing that for decades.

    An app for Windows phone, downloaded 140k times: https://github.com/Const-me/SkyFM

    Cross-platform graphics library for .NET: https://github.com/Const-me/Vrmac

    Recently, offline speech-to-text for Windows: https://github.com/Const-me/Whisper

    At this point, I consider side projects like that as a hobby.

  • Minimal Cross-Platform Graphics
    11 projects | news.ycombinator.com | 24 Jan 2023
    I think this needs much more complexity to be useful.

    For the rendering, ideally it needs GPU support.

    Input needs much more work, here's an overview for Windows: https://zserge.com/posts/fenster/

    Windows' Sleep() function has default resolution 15.6ms, that's not enough for realtime rendering, and relatively hard to fix, ideally need a modern OS and a waitable timer created with high resolution flag.

    Here's my attempt at making something similar, couple years ago: https://github.com/Const-me/Vrmac

  • An MP4 file first draft
    7 projects | news.ycombinator.com | 26 Nov 2022
  • Cppfront, Herb Sutter's proposal for a new C++ syntax
    13 projects | news.ycombinator.com | 17 Sep 2022
    I agree about Python or PHP.

    However, for Java or modern C#, in my experience the performance is often fairly close. When using either of them, very often one doesn’t need C++ to be good enough.

    Here’s an example, a video player library for Raspberry Pi4: https://github.com/Const-me/Vrmac/tree/master/VrmacVideo As written on that page, just a few things are in C++ (GLES integration, audio decoders, and couple SIMD utility functions), the majority of things are in C#.

  • Vulkan update: version 1.2 conformance for Raspberry Pi 4
    7 projects | news.ycombinator.com | 3 Aug 2022
    To be fair, in modern GL versions they fixed some of these things. In GLES 3.1 which I used a lot on Pi4 https://github.com/Const-me/Vrmac/ GPU vertex buffers and shaders worked fine, GLSL compiler in the drivers worked fine too.

    However, others issues are still present. There’s no shaders bytecode, they have an extension to grab compiled shaders from GPU driver to cache on disk, but it doesn’t work. The only way to create shaders is separate compile and link API calls. Texture loading and binding API is still less than ideal.

  • Advice for the next dozen Rust GUIs
    14 projects | news.ycombinator.com | 15 Jul 2022

ish

Posts with mentions or reviews of ish. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-22.
  • Homelab Adventures: Crafting a Personal Tech Playground
    7 projects | dev.to | 22 Apr 2024
    iSH
  • Ente: Open-Source, E2E Encrypted, Google Photos Alternative
    23 projects | news.ycombinator.com | 1 Mar 2024
    They don't "allow" it, but most apps that need background execution just ask permission for geolocation tracking and pretend to use it, for example iSH[1]. There are a few activities that the app can do to prevent itself from being suspended when it goes out of focus, like playing sound, geolocation etc.

    [1] https://github.com/ish-app/ish/issues/249#issuecomment-54433...

  • How to copy a file between devices?
    32 projects | news.ycombinator.com | 14 Feb 2024
    Android: install termux, `pkg install openssh`, and preferably run `termux-setup-storage` to give it access to storage folders.

    iOS: I think https://ish.app/ ?

  • How Virtualisation came to Apple Silicon Macs
    6 projects | news.ycombinator.com | 11 Jan 2024
    This of course hasn't been true for years, eg: http://omz-software.com/pythonista/index.html

    And you can run a C compiler (or anything) inside https://ish.app/ too.

  • ScummVM officially released in the App Store
    4 projects | news.ycombinator.com | 30 Dec 2023
    False. iSH is an x86 "bytecode" emulator.

    "Possibly the most interesting thing I wrote as part of iSH is the JIT. It's not actually a JIT since it doesn't target machine code. Instead it generates an array of pointers to functions called gadgets, and each gadget ends with a tailcall to the next function; like the threaded code technique used by some Forth interpreters."

    https://github.com/ish-app/ish

  • Windows is now an app for iPhones, iPads, Macs, and PCs
    2 projects | news.ycombinator.com | 20 Nov 2023
    There is an x86 virtual machkne running Linux available on the App Store now.

    https://ish.app/

    Now would Apple allow a full blown Windows VM is a different question

  • Stop EU Chat Control
    1 project | news.ycombinator.com | 14 Oct 2023
    There are plenty of solutions for running Python in an IDE on the iPad. There is an even an x86 emulator and a Linux terminal built on top of it in the App Store.

    https://ish.app/

    It can run anything that you can run on an x86 in user mode. I downloaded the AWS CLI (which requires Python) to run some tests

    By the way, you were completely wrong about VSCode being written in .Net.

    > That's just compiling the code to a native binary, which you would then have to go submit through Apple's store. How does that help for an IDE expected to allow you to test (i.e. execute) and debug the code you've just written ten seconds ago?

    There is an existence proof that it could be done. If you ran iSH with remote VNC you could have a full IDE on a Mac.

    > We can see right there some examples of what isn't allowed:

  • ISH: Linux shell running on iOS/iPadOS, using usermode x86 emulation
    1 project | news.ycombinator.com | 25 Jul 2023
  • Lima: A nice way to run Linux VMs on Mac
    18 projects | news.ycombinator.com | 10 Jul 2023
  • Buying an iPad Pro for coding was a mistake
    7 projects | news.ycombinator.com | 29 Jun 2023
    Not making any statement regarding the mentioned workflow issues (I mostly agree with them), I really like iSH [1] for this sort thing.

    It’s a “good enough” solution for the “I just quickly need to do something in a terminal” problems.

    And because it’s an x86 Alpine Linux it can even run simple binaries if needed.

    But for me it still couldn’t replace a dedicated laptop for proper tasks.

    [1]: https://github.com/ish-app/ish

What are some alternatives?

When comparing Vrmac and ish you can also consider the following projects:

neutralinojs - Portable and lightweight cross-platform desktop application development framework

UTM - Virtual machines for iOS and macOS

nanovg - Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.

termux-packages - A package build system for Termux.

vello - An experimental GPU compute-centric 2D renderer.

box64 - Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices

rapidyaml - Rapid YAML - a library to parse and emit YAML, and do it fast.

AltStore - AltStore is an alternative app store for non-jailbroken iOS devices.

sokol - minimal cross-platform standalone C headers

Code-Server - VS Code in the browser

NanoGUI - Minimalistic GUI library for OpenGL

Blizzard-Jailbreak - An Open-Source iOS 11.0 -> 11.4.1 (soon iOS 13) Jailbreak, made for teaching purposes.