HNHacker News
TopNewBestAskShowJobs

anshargal

141 karma · joined August 20, 2011

submissionscomments
anshargal··on The Unsung Hero of the Lord of the Rings (2025)
see also (which is a much better writing): https://news.ycombinator.com/item?id=32263535
anshargal··on AnduinOS
It's fun to see new waves of Linux UI polish attempts (like DHH's Ubuntu/Arch scripts, or this project). The Linux desktop could use some care -- and it's the kind of work a single (talented) person can actually do.

The harder problem is the underlying drivers and app ecosystem. Will some third-party package actually run, or will it require qt-2 and then crash on launch? Why is the laptop's webcam upside down, or why is wi-fi dropping every 11 minutes?

One-man distros rarely fix this (unless the person actually has same trouble). It takes a company, that would be willing to invest the sheer human-hours. We had Red Hat, Ubuntu -- companies that did a lot, but eventually capped their investment in the desktop. We need a new one. Until then, we'll keep getting the same experience under a new label.

anshargal··on Is it possible to write plain C iOS app in 2025?
Obj-C apps are not deprecated yet, so the approach in that GitHub repo must still work. That app is indeed written in C, but a big chunk is about building Obj-C classes and using other Obj-C objects - so it’s not quite C. You won't get much performance benefits or additional flexibility this way.

C is Turing-complete, so you can technically write anything in it. But on iOS, you'd need to build your own C library for application-level Apple SDKs, since Apple doesn't provide one. For simple apps (like small games or toy utils) - a minimal wrapper in Objective-C or Swift could be just a few hundred lines.

anshargal··on Purelymail: Cheap, no-nonsense email
there are not a lot of options to get a virtual server under $1 per month, especially with IPv4 address
anshargal··on WASM-4: Build retro games using WebAssembly for a fantasy console
I wonder if anyone is working on a fantasy console with PS3-level graphics. A lot of games on Steam today have retro aesthetics and aren’t very demanding. A game runtime that works on Linux, macOS, and Windows would solve portability and digital preservation.
anshargal··on Two never-before-seen tools, from same group, infect air-gapped devices
About 20 years ago, I was setting up a shared PC at my university. I googled for a way in Windows XP (via registry or group policy) to only let specific programs run. I added stuff like explorer.exe, iexplore.exe, winword.exe, acroread.exe, and a few others.

Fast forward a few years, and the computer was still running great. The desktop and downloads folders were full of messengers, "flash players" and other malware - but all binaries were throwing cryptic error. Since no one in IT was around or cared, nobody figured out how to edit the allow list. The computer was deemed half-broken. But when neighboring PCs were completely infested, this one could still open, edit, and print office docs flawlessly.

It felt like a magic fix for shared Windows PC security.

anshargal··on Linux/4004: booting Linux on Intel 4004 for fun, art, and no profit
I wonder if there is a simple chip, similar to the 4004, 8080, or Z80, that can run at modern high frequencies — 4–5 GHz, or even higher due to its simplicity? Not much of a practical use, but it could be fun for emulation projects. 100x slower with emulation - still fast enough for retro platforms.
anshargal··on Ask HN: What are you working on (August 2024)?
I'm working on QA Sphere https://qasphere.com/ - a lightweight tool for managing software testing. It’s built for QA engineers to document functional test cases and track execution, manually or via automation.

Test management tools are nothing new, but I’m focused on making this one fast and easy to use, without the bloat. The goal is to help smaller teams adopt solid QA practices without the hassle.

anshargal··on 1989 Networking: NetWare 386
This may be a bit unrelated, but it is actually possible to run Xenix in a browser: https://www.pcjs.org/software/pcx86/sys/unix/ibm/xenix/1.0/
anshargal··on Documentation for the JSON Lines text file format
There is also a similar thing for CSV files encoded as JSON arrays - csvj.org
anshargal··on Homemade Pasta. Now Is the Time (2021)
Can somebody share (potentially adjusting for IKEA effect) if homemade pasta really tastes better than pre-made one? Barilla? De Secco? Artisan brands?
anshargal··on Tour of new custom M1 macOS runners racks with Christina Warren [video]
The days of x86 macOS are numbered. I don't think there are good ways for running ARM macOS on non-Apple ARM CPUs and I am not even sure there are ARM servers comparable with M1 in single-core performance (maybe latest AWS Graviton?)
anshargal··on HTTP/2 zero-day vulnerability results in record-breaking DDoS attacks
So is nginx with http2 enabled vulnerable too? Caddy? I should I not worry about this, because a small (by Cloudflare scale) botnet may DDoS a single server completely anyway?
anshargal··on Amazon has more than half of all Arm server CPUs in the world
Interesting. I never even considered the instance stability to be a risk when using ARM CPUs on Amazon. Anybody else can share their experience?
anshargal··on Quick VPN Setup with AWS Lightsail and WireGuard
I wrote a TUI tool (runs over SSH in a terminal) for managing simple WireGuard configuration on the server: https://github.com/andrianbdn/wg-cmd

You just run it on your server and it does most of things, including generating WireGuard keys for clients and showing QR codes.

anshargal··on Dusk OS Demo
Indeed, TempleOS had a dynamic runtime C (HolyC) compiler too. Perhaps when people see the world differently, they try to compile C code on fly.
anshargal··on Dusk OS Demo
Once I've read "Its primary purpose is to be maximally useful during the first stage of civilizational collapse," my mind started to wonder away from this blend of Forth and C. It is quite weird to think about such future. Is the novel simple and efficient OS going to be useful in this scenario?
anshargal··on Homebrew 4.0.0
Thank you for clarifications and thank you for your work on Homebrew. I hope that Homebrew approach is sufficient to make security risks acceptable.
anshargal··on Homebrew 4.0.0
It is not feasible to avoid installing any third-party software. Moreover I admitted that I use Homebrew.

However I don’t understand what makes Homebrew reliable. Homebrew is a non-profit project run entirely by unpaid volunteers.

I trust repositories controlled by corporations (RHEL, Ubuntu) or properly(?) governed non-profit organizations (Debian) more. Also I trust App Store more, because of sandboxing, static and dynamic analysis.

anshargal··on Homebrew 4.0.0
While I use Homebrew on my Mac — it is a major risk. I am afraid that the project is not following strict security policies and will be compromised at some point. Evil package or evil version of brew can steal or modify my data.

I think this will also hurt the Mac platform. I wish Apple would invest some effort into building an App Store for cli programs. While it may be complicated for the community(require signing, sandboxing, developer effort), it is likely to have better security guarantees than Homebrew.

anshargal··on Can I exec a new process without an executable file? (2015)
That's cool - I wonder why exit code is not set to 42 in practice? binary still returns 0, must be a bug somewhere.
anshargal··on Can I exec a new process without an executable file? (2015)
I had to add

  #define _GNU_SOURCE
  #include <sys/mman.h>
  #include <unistd.h>
I've tested in Fabrice Bellard JSLinux with tcc (x86 arch) and on https://replit.com/languages/c (x64). I failed to see any side effect at all. gdb "catch syscall" doesn't show anything interesting too. Looks like TINY_ELF_PROGRAM is not doing anything.
anshargal··on Git ignores .gitignore with .gitignore in .gitignore
The following .gitignore is my favorite way to commit an (almost) empty folder to git:

  # Ignore everything in this directory 
  *
  # Except this file
  !.gitignore
.gitignore can be present in any directory and there is a way to unignore a wildcard
anshargal··on Kiss Linux (2020)
Some of it sounds similar to now defunct Crux Linux https://crux.nu/ but with rolling release
anshargal··on Making an old USB printer support Apple AirPrint using a Raspberry Pi
I have 20 years experience using Linux (user and administrator). Couple of years ago I tried doing roughly the same using Pi and old cheap Xerox laser printer (required some additional CUPS tinkering). It was very unstable, both network-wise and printing-wise, especially when someone was trying to print without me nearby.

New printer with AirPrint was way better than this. So while this 'hack' reviving old equipment might be useful for some people, don't expect it to do miracles in every case.

anshargal··on Time to retire the CSV?
CSVJ open standard addresses many common problems of CSV. It is basically a CSV where rows are encoded as a JSON.

Unfortunately it is not widely adopted yet and the language support is yet to be improved.

anshargal··on Writing my first Gameboy Emulator
If you want to write a game console emulator, but prefer to start with something simple — I suggest to look into https://en.wikipedia.org/wiki/CHIP-8 It could be implemented in a couple of evenings in any language.
anshargal··on Virtualized iOS builds at Shopify
I wonder how much the software costed in total.
anshargal··on GPU-equipped Ryzen Pros give AMD what it needs to conquer the corporate desktop
I would appreciate Intel NUC-style box with GPU equipped Ryzen Pro. I know about NUCs with Intel CPU and Vega M GPU but they seem to be too expensive.
anshargal··on Tinc VPN: Secure Private Network Between Hosts
Like other people answered I am connecting from my Macbook to my Windows gaming PC at home and play games on it. This feature is called 'Steam In-Home Streaming' and it works only over local network (or VPN in my case). 30Mbit is sufficient to remotely play at full HD.
Page 1 of 2Next →