Better HN
topnewbestaskshowjobs
Log inSign up

JCWasmx86

1,264 karma · joined Feb 23, 2021 (5y ago) · 211 submissions

Submissions

comment 1y ago · link · parent

I use Signoz for my private purposes, it's not a 100% match, but you can do Prometheus metrics, logs analysis, dashboards, alerts, OTEL spans so depending on your usecase it can be enough

comment 1y ago · link · parent

Or meson is a serious alternative to cmake (Even better than cmake imho)

comment 1y ago · link · parent

If the GDPR is simplified, the fines should be drastically raised. (At least for companies) E.g. to minimum 20% of the global last years revenue, for bigger companies (FAANG-Scale) to minimum 70% of the revenue. The GDPR must make companies afraid of breaking the law.

comment 2y ago · link · parent

The biggest symbol of a statically linked swift binary that I have, is icudt_swift65_dat with 27.98MB, so I think that's not so easy to remove (nm v3.1.2 --size-sort --radix=d|swift demangle) And I think if you strip debuginfo it will be smaller (For a statically linked program of mine: 98MB -> 56MB)

But I think for a distribution it makes more sense to link swift programs dynamically against the runtime libraries, like it's the case for e.g. the C standard library, OpenSSL etc., as you can assume they all work with the same version and are ABI-compatible.

I tested it with a nearly static build (Still links against glibc and friends): 55MB get stripped to 44MB, so not that much. 27MB of that is icudt_swift65_dat, so I guess you would have to optimise that first

comment 3y ago · link · parent

Yes, but people still have the right to say "Pay us $X and ensure safe working conditions or we strike" Tesla can either withdraw or negotiate. Nobody's right is infringed here, it's just free market. Especially as usually the workers have it worse than companies.

comment 3y ago · link · parent

One is a business decision, the other one is people exercising their rights.

comment 3y ago · link · parent

You can do that with m3u8 files. This is done for example by Pluto TV. Sure it is easily circumvented by simply stripping out these URLs, especially if they are marked as ads (And removing a m3u8 tag)

But in the end it would be again an arms race of adblockers and Google, so it would change basically nothing.

comment 3y ago · link · parent

Wouldn't even be checking Microsoft's server be an unnecessary connection? You could argue, that VSCode would still work, as updates are basically optional and could be triggered manually, too

comment 3y ago · link · parent

It's easy to install on ArchLinux and Fedora. The build process seems to be just standard CMake, so calling it "borderline impossible" is really a stretch.

comment 3y ago · link · parent

A lot of editors have available integrations for Shellcheck. VSCode and IntelliJ have a plugin, GNOME Builder comes with the plugin included, etc.

11.

Introducing GNOME 45, “Rīga”(release.gnome.org ↗)

8 points · by JCWasmx86 · 3y ago · discuss

comment 3y ago · link · parent

This really makes me reconsider buying an iPhone instead of some android phone in the future.

The only thing left is that jail-breaking an iPhone seems to be harder than rooting an android phone.

comment 3y ago · link · parent

It's just a liability and risk. Imagine you have some mission-critical system written in such language, the vendor goes bankrupt or creates absolutely unacceptable terms. Then you have a problem.

Sure if something similar happened to an open-source project, you would still have to either hire engineers to work on the compiler/tooling/language or to rewrite it in a more supported language, but I would consider it a little less riskier as you aren't dependent on one vendor

comment 3y ago · link · parent

No, you just have to follow the regulations. It's no "war on US companies" or anything like that. They wrote some good law (Albeit it has a few weaknesses), and enforce it now. And if you want to do business in the EU, you have to follow them.

I would say it's more a problem of the US companies, if they can't do business without violating EU regulations.

comment 3y ago · link · parent

Would you say buying e.g. a Mac mini for 2.3k€ just to run Asahi Linux is worth it?

comment 3y ago · link · parent

Yeah agreed. They will simply continue to violate the GDPR. If the last years global revenue was 116 Billion USD, the fine should be at least 200 Billion. Otherwise companies just will see the fine as cost of doing business.

comment 3y ago · link · parent

Maybe something like gitweb? https://git-scm.com/docs/gitweb

I have not used it before, but it seems like it follows your requirements (Except auth using SSH keys maybe, but that could be a task for e.g. Nginx)

comment 3y ago · link · parent

Does it respect DNT headers? If no, it does not respect users.

comment 3y ago · link · parent

I recently installed Windows 10 in a VM to port a program to Windows (Was a horror story). On the left side in the start menu I have ads and other crap: "Trending searches", "Trending videos from the web", "Games for you", "Trending news" and some other stuff like a reminder for the International day for Monuments and Sites.

On the right side I have a weather/news widget from some really shady or local newspapers about "celebrities", a lot of clickbait, stock data etc.

And obviously the first time I opened Edge I was greeted with some annoying banner, that I should login etc.

A default installation of an OS should only come with the bare amount of software necessary. If they had asked: "Do you want to have news/recommendations? - Yes/No,never ask again" it would be really okay as there was no forced consent, but installing it by default is simply a bad decision. (From a users' perspective, it probably makes sense from a corporate perspective as otherwise they wouldn't do it)

comment 3y ago · link · parent

Companies should really accept a "No" from their users. No I don't want to use a microsoft account just to use my computer. (Without jumping through hoops) Don't ask me again the moment I say "No".

You can see the same with all those dialogs that only have "Yes, do $THING" and "Remind me later".

comment 3y ago · link · parent

Nowadays you can even use JS for GTK Applications

comment 3y ago · link · parent

Reproducible builds. Sure not every project can be built in a reproducible manner, but it at least reduces the chances of getting shady binaries

comment 3y ago · link · parent

Open source does not mean "I take random projects, integrate them into my product, without any credits, without any acknowledgments". It means "I take projects, integrate them into my product and follow the minor implications of the license"

For example the MIT-License has a rule:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

And as far as I can see from this article, there was no acknowledgment. According to tldrlegal (Sadly don't have the time to read through the entire AGPL license): https://www.tldrlegal.com/license/gnu-affero-general-public-..., you have to include the license and copyright

comment 3y ago · link · parent

You could take it a step further and make the user download a small stub Actually Portable Executable (https://justine.lol/ape.html) which downloads the real binaries.

comment 3y ago · link · parent

At least for me, pkg-config has auto completion (Fedora), so typing e.g. `pkg-config open<TAB>` would give probably give me some results. But I agree that's one weakness of pkg-config, that you have to guess the name a bit

comment 3y ago · link · parent

You can use pkg-config for that. E.g. if you want to compile with glib-2.0, you can run `pkg-config --cflags glib-2.0`: -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread (E.g. for compiling to object code, but not linking yet)

Add `--libs` to link against it, too: -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -pthread -lglib-2.0

With meson that is basically `dependency('glib-2.0')` that you add to your executable/library.

> you expect your users to install your app dependencies for you, and you have to figure out the path of your own dependencies.

If you use a good buildsystem, it will find those dependencies automagically or you can e.g. use wrap dependencies: https://mesonbuild.com/Wrap-dependency-system-manual.html Those do automatically download the dependencies and compile them for you

12345
8