News for hackers. Stuff that matters.
Re:That Time I Recreated Photoshop in C++ by yndoendo on Sunday March 16, 2025 @11:38AM (#43379861)
That is one of the reasons I like GO language. Single executable, which makes tooling easier for others to use. My alternative method is using single executable packaged with NSIS that extracts everything to a temp directory before running.

Sorry, Window Registry is a cornucopia of inconsistency and poor design. Gnome's Registry is well designed, comparatively. Key descriptions, value options with limitations and which is the default is a quality User Interface design. Just look at the Windows group policy to registry mappings, they are all over the place for the same logic layout with double negatives for keys.

Re:That Time I Recreated Photoshop in C++ by airstrike on Sunday March 16, 2025 @12:42PM (#43380325)
Obligatory comment saying you can do the same in Rust
Re:That Time I Recreated Photoshop in C++ by eptcyka on Sunday March 16, 2025 @02:49PM (#43381202)
I can’t target msvc or aarch-64-apple-* and compile a binary on Linux, without resorting to significant amounts of rectal dentistry.
Re:That Time I Recreated Photoshop in C++ by iknowstuff on Sunday March 16, 2025 @05:24PM (#43382468)
Can’t you just replace the “cargo” command with “cross”

    cross build —-target=…
https://github.com/cross-rs/cross
Re:That Time I Recreated Photoshop in C++ by demurgos on Monday March 17, 2025 @07:13AM (#43387239)
Cross-building for Apple is possible, but it's far from smooth with many steps that you have to figure out by yourself unfortunately.
Re:That Time I Recreated Photoshop in C++ by cooljacob204 on Monday March 17, 2025 @10:49AM (#43389141)
I use this which seems to work well for my projects. Particularly their docker image.

https://github.com/rust-cross/cargo-zigbuild

Re:That Time I Recreated Photoshop in C++ by jeroenhd on Sunday March 16, 2025 @06:48PM (#43383300)
I've built .exes for Windows just fine on Linux. I don't know about Apple stuff, though, I don't think there's any built-in Linux tooling to submit an executable for Apple's signature scheme.
Re:That Time I Recreated Photoshop in C++ by IshKebab on Sunday March 16, 2025 @01:55PM (#43380828)
It's not quite as seamless as in Go to be fair. But it does mean you can write Rust instead of Go.
Re:That Time I Recreated Photoshop in C++ by p_ing on Sunday March 16, 2025 @03:43PM (#43381574)
And .NET
Re:That Time I Recreated Photoshop in C++ by delusional on Sunday March 16, 2025 @01:55PM (#43380830)
You can in fact also do it in C
Re:That Time I Recreated Photoshop in C++ by djfobbz on Sunday March 16, 2025 @06:04PM (#43382900)
Yeah, that's why Go is a solid win - single binary, no installer headaches, just build and run. Rust's powerful but comes with build complexity and dependency juggling. Go keeps it clean, fast, and dead simple to deploy.