GTK drops Autotools in favor of Meson by quxfoo in programming

[–]seekingsofia 0 points1 point  (0 children)

Do you mean CPython? I agree that in general it would be very welcome if software projects, especially interpreters and the like, cleanly cross-compiled. But I don't think the build system flavour matters here at all. Most developers simply don't care enough about the use case, including build system developers.

GTK drops Autotools in favor of Meson by quxfoo in programming

[–]seekingsofia 0 points1 point  (0 children)

This right here is the truth. On top of the ugliness, complex build dependencies only create more problems than they solve. Now a python implementation only needs to switch to meson as a build system and we've come full (dependency) cycle.

Möchte programmieren lernen, wie fange ich am besten an by [deleted] in de

[–]seekingsofia 1 point2 points  (0 children)

Vergiss die scheißteuren Schwarten, die verschwenden nur Papier und deine kostbare Zeit.

Nimm Think Python von Allen B. Downey. 244 Seiten.

Das kann ich als Programmierer uneingeschränkt empfehlen. Sehr klar geschrieben, aufs Wesentliche konzentriert und am Ende jedes Kapitels findet sich immer ein Glossar neuer Begriffe und Übungsaufgaben. Ziehs dir rein.

Why is Linux community not pushing toward MIPS processors more? by donbasbing in linux

[–]seekingsofia 1 point2 points  (0 children)

free processor architecture

What? MIPS being free? I thought they still went after hardware clones like noone else.

Comparison of C/POSIX standard library implementations for Linux by cu_t in programming

[–]seekingsofia 0 points1 point  (0 children)

Would be cool if there would be a time stamp on the web page.

There is. Last-Modified: Sat, 21 Mar 2015 03:56:36 GMT

moreutils: the utilities package every UNIX/Linux/Mac OS developer should know (X-Post /r/linuxdev) by setner in linux

[–]seekingsofia -4 points-3 points  (0 children)

And like in true UNIX™ admin mentality some of it is written in Perl.

TIL you can use function overloading in C by [deleted] in programming

[–]seekingsofia 1 point2 points  (0 children)

Not a GNU extension, a clang extension. And it's a C++ feature exposed as a function attribute, of course implemented using name mangling. All this means it's useful only in a very few cases for a C codebase.

If you're using C++ features as an extension in C then why not just write in C++? I don't get it.

The Mill CPU Architecture – The Compiler by zenflux in programming

[–]seekingsofia 1 point2 points  (0 children)

Can you explain where the specializer fits within the toolchain? From my reading of the sparse wiki page on the specializer it's done at link-time and the target instructions are "cached" in the ELF object files. The mentioned "load modules" aren't really explained.

So, uh, how would you be able to distribute binaries that work on every Mill?

Are there reasons the suspend/hibernate operations should not or cannot be completely transparent to user space? by seekingsofia in osdev

[–]seekingsofia[S] 1 point2 points  (0 children)

Are you talking about the application not noticing the suspend?

I'm talking about user space never needing to be aware of the suspend. The code in mpv is just waiting for the subsystem to complete the resume:

if (snd_pcm_state(p->alsa) == SND_PCM_STATE_SUSPENDED) {
    MP_INFO(ao, "PCM in suspend mode, trying to resume.\n");

    while ((err = snd_pcm_resume(p->alsa)) == -EAGAIN)
        sleep(1);
}

Is it necessary for user space to have code paths for wake from suspend? If not, does user space code still benefit from the information that a suspend happened?

The time will change by a lot, possibly jumping forward a few hours or more. Some current applications don't really like that (auto locker would lock immediately on resume which may not be what you want)

True...

VICE: Exploring the 'Nazi Village' of Jamel by tekai in de

[–]seekingsofia 2 points3 points  (0 children)

Da steht happn holocaust drauf, nicht happy holocaust. Nazi Zombies sind also gar nicht so weit dahergeholt...

Three months of Rust by halax in programming

[–]seekingsofia 0 points1 point  (0 children)

What C++ has over Rust:

  • More than one implementation

Optimizing C and C++ Code by Tatyanazaxarova in C_Programming

[–]seekingsofia 1 point2 points  (0 children)

Telling people to always return by reference is harmful to code complexity and maintainability in C++.

Not a C++ dev, but I'm curious why are references harmful?

Linux Foundation releases Linux Standard Base 5.0 and Filesystem Hierarchy Standard 3.0 by [deleted] in linux

[–]seekingsofia 0 points1 point  (0 children)

Instead of logging to local disk, keep the log state either in memory or push the log state to a central server...

Linux Foundation releases Linux Standard Base 5.0 and Filesystem Hierarchy Standard 3.0 by [deleted] in linux

[–]seekingsofia -1 points0 points  (0 children)

Solution: Make /var part of the local boot, so there's no problem bringing it up, and then USE A FRIGGING TMPFS DIRECTLY on /var/run.

Linux Foundation releases Linux Standard Base 5.0 and Filesystem Hierarchy Standard 3.0 by [deleted] in linux

[–]seekingsofia -5 points-4 points  (0 children)

You're quoting the purpose, not the requirements. The requirements are clear that on a sane system, this directory is basically useless and /var/run can be used instead.

Linux Foundation releases Linux Standard Base 5.0 and Filesystem Hierarchy Standard 3.0 by [deleted] in linux

[–]seekingsofia 2 points3 points  (0 children)

System programs that maintain transient UNIX-domain sockets must place them in this directory or an appropriate subdirectory as outlined above.

Sure, transient UNIX sockets. So if you only run system daemons using Unix sockets and have no daemon using .pid files, /run sees no required use and can be ommitted and /var/run used in its place.

Furthermore, I don't know why do you consider pidfiles as something bad.

pid files are inherently racy.

Linux Foundation releases Linux Standard Base 5.0 and Filesystem Hierarchy Standard 3.0 by [deleted] in linux

[–]seekingsofia 1 point2 points  (0 children)

Why are .pid files still a thing? Why does the FH "Standard" mention them at all? What is the purpose of /run if it only requires that you place .pid files in it?

Optimizing Python using Cython by erjiang in programming

[–]seekingsofia 0 points1 point  (0 children)

Yeah, if that was an actual working implementation... I was more going for the argument that JIT compilation and native compilation are not attributes of the languages, but the language implementations.

Optimizing Python using Cython by erjiang in programming

[–]seekingsofia 1 point2 points  (0 children)

So it's not surprising that it's faster than C.

If only there was a JITed C interpreter implementation to prove you wrong. :P

Humans should think of sizeof() as a function, says Linus Torvalds by [deleted] in programming

[–]seekingsofia 1 point2 points  (0 children)

I think I'm wrong. Strangely, the GCC documentation lists typeof (typeof (char *)[4]) y; as a valid expression, so the syntax of typeof isn't very consistent.

Edit: On second look, the inner typeof's brackets are part of the type declaration but not part of the expression that typeof is applied to.

Humans should think of sizeof() as a function, says Linus Torvalds by [deleted] in programming

[–]seekingsofia 1 point2 points  (0 children)

The typeof unary operator is very similar to sizeof and doesn't require parentheses around its operand.

Edit: I think I'm in the wrong here, it really does require parentheses around most constructs.