0
43
paperplane

@lemmy.world

paperplane 47 points 2 years ago

JS is fine, it's more that people overdo it and bundle their heavy, deeply layered frameworks with thousands of npm dependencies for the web. Often times analytics/tracking/ad libraries are a major contributor of bloat, I once shrunk down a package-lock from thousands of lines to a few hundred just by stripping the telemetry libraries from an open-source app.

Use the right tool for the job. Sometimes it's a static page, sometimes a server-rendered dynamic page and sometimes a single-page application, all of those can be made performant.

path: 0 16158476, hotness: undefined, score: 47, children: 0
paperplane 26 points 2 years ago

CMake can also emit its own errors during the configure step though, particularly if you have complicated build logic and/or lots of external packages.

path: 0 11783047 11784009, hotness: undefined, score: 26, children: 0
paperplane 16 points 3 years ago

How so? It's a polished Unix desktop that runs most open-source and a bunch of proprietary apps, including Final Cut and Logic. It's natively POSIX and has a proper shell.

path: 0 5197487 5202023 5202127 5204046 5204608, hotness: undefined, score: 16, children: 3
paperplane 16 points 2 years ago

When case insensitivity is the default I always wonder how many apps unknowingly rely on that due to typos somewhere. I encountered this once while porting a Windows/macOS app to Linux that someone imported a module with the wrong case and nobody noticed

path: 0 14832794 14833305 14834041, hotness: undefined, score: 16, children: 2
paperplane 11 points a year ago

A good reason to pick GPL is if you want to allow GPL software to integrate yours and you don't care that much about the AGPL clauses (e.g. because your app isn't a server).

CC0 might be a good fit for trivial template repos where you don't want to burden downstream projects with having to include copyright notices.

path: 0 16803942 16805892, hotness: undefined, score: 11, children: 8
paperplane 9 points 2 years ago

VSCode + CodeLLDB is great (and FOSS), surprised no one mentioned this yet

path: 0 15634046, hotness: undefined, score: 9, children: 1
paperplane 9 points a year ago

I wonder why a permission-based approach wouldn't be feasible. Most websites don't need GPU access anyway, so why couldn't a game or simulation just prompt the user quickly for granting access to the GPU?

path: 0 18334193 18336389, hotness: undefined, score: 9, children: 3
paperplane 7 points 2 years ago

As long as you limit yourself to a subset of modern C++, it's actually a decent language. Less guardrails than Rust, but more syntactic sugar (think overloading, default parameters, implicit this, implicit reference-taking, implicit conversions). You could argue those are anti-features, but even as someone who really likes Rust, I gotta admit C++ is occasionally more ergonomic.

path: 0 15964712 15967289 15971173 15977316 15978168, hotness: undefined, score: 7, children: 3
paperplane 7 points 3 years ago

That article tells you how to set up syntax highlighting and run the command-line compiler by hand, not really comparable to IntelliJ... The article feels like a generic SEO post

path: 0 4201496 4213902, hotness: undefined, score: 7, children: 0
paperplane 6 points 3 years ago

In principle you can, the Mach-O format is openly documented and implemented in the major compilers. The issue is that you need a sysroot (aka SDK) of the frameworks and headers for your target OS, which in Apple's case are proprietary and cannot be redistributed legally (you could probably rip them out of a macOS installation yourself though). For iOS apps you'd also need to sign the binaries and install the app to the device which is non-trivial to impossible to do on other platforms.

path: 0 3863174 3863519 3868424 3878900, hotness: undefined, score: 6, children: 0
paperplane 6 points 3 years ago

It's open source though and they plan on adding Linux/Windows support in the future

path: 0 7711304 7711389 7716531, hotness: undefined, score: 6, children: 0
paperplane 6 points 3 years ago

Side note: Rust is the only of the three to have an ML-style type system, which is generally agreed upon as one of the most theoretically sound foundations. Also the point is that Rust does it precisely without requiring dynamic allocation, as opposed to Go, for example.

path: 0 6791300 6809143, hotness: undefined, score: 6, children: 1
paperplane 5 points 2 years ago

Tbh rust-analyzer is still pretty great. What bothers me more is that Kotlin is pretty much the only language without an official language server, because it doesn't align with their business interests...

path: 0 13083436 13084564 13088223, hotness: undefined, score: 5, children: 0
paperplane 5 points 3 years ago

Did you focus the popup containing the Touch ID symbol? Often times it opens defocused and you have to click it to actually use Touch ID.

path: 0 2535220 2580716, hotness: undefined, score: 5, children: 0
paperplane 5 points 3 years ago

A nice example of this is Ardour: A DAW that's free in the sense that the source code is GPL, but the prebuilt official binaries have to be paid for.

path: 0 5505636 5506277 5506585 5506775 5508828, hotness: undefined, score: 5, children: 0
paperplane 5 points 2 years ago

Seriously. There are a lot of parallels between GPUs (or NPUs for ML inference) and quantum processors in terms of being architected towards a more specialized form of computation and I could totally see QPUs being a thing in the future, probably mostly for number cruncing (see Grover/Shor's algorithms). Though if Grover search suddenly becomes the way of quickly searching for files or something, who knows, maybe this might be more useful for general computing than we think.

In the 80s no one thought computers would be something normal people would use at home, they were seen as a tool for mathematicians and nerds. Now look at the world today. Who knows what the future will hold.

path: 0 15396609 15399026 15400343 15401697, hotness: undefined, score: 5, children: 0
paperplane 5 points 2 years ago

Not that specific tbh, most newer native languages these days are compiled and memory safe (Rust, Swift, Go, Kotlin Native, etc)

path: 0 12736050 12743197, hotness: undefined, score: 5, children: 0
paperplane 4 points 3 years ago

Just wanted to point that rust-analyzer is the fantastic language server that powers the language support, and it runs in a lot of editors (VS Code, Emacs, Neovim, ...)

path: 0 4105121 4110777, hotness: undefined, score: 4, children: 0
paperplane 4 points 3 years ago

This is all fun and games until you try moving a backup to a file system that's case-insensitive

path: 0 3990862 3991786 3992133 3998491 4003493, hotness: undefined, score: 4, children: 0
paperplane 4 points 2 years ago

I know a bunch of larger C++ apps that use vcpkg for cross-platform (Windows/macOS/Linux) builds of their dependencies and it seems to work pretty well

path: 0 14919931 14920479 14920747, hotness: undefined, score: 4, children: 0

thanks for using Leebra!

go to feed...