UARTman

u/UARTman


r/Zig•

Is there any mechanism by which a value could be guaranteed not to move in memory? In particular, I want to have an init function return a structure containing references to itself.

Right now the initializer function receives the structure by pointer, which means a list is impossible to declare by-value. This is pretty problematic, especially since that structure is an intrusive linked list that will need to be a field of its elements (and no, I can't use the std one, it can't do some things I need).

var list: List;
list.init();

var obj: OtherStructure = .{
  // initializing the object's fields...
};
obj.listNode.init(); // Must do that, or else the list breaks

Yo

13

r/gnome•

As libadwaita gets its own flat theme, distinct from the default Adwaita, and explicitly states no support for any other themes, I find myself unable to make all the apps look like each other.

Currently, a gnome desktop has three different themes: 1) One for QT apps, where Gnome doesn't do anything at all and you're at the distro's mercy

  1. Gtk3/4 theme set via Gnome-Tweaks or the light-datk mode choice

  2. Flat libadwaita theme that's not supposed to be overridden

As 3) can't be changed, this means that 1) and 2) need to be brought into conformance with it. Are there currently working tools to do it and if not, is there any effort by the Gnome developers or users to create them?

I wasn'

3214

r/linuxhardware•

I am a university student planning to buy myself a new laptop. I am operating with a budget of approximately $1500.

My main requirements for a laptop are:

  • Compatible with Linux
  • Powerful enough to make using Gentoo as a daily driver practical
  • Lightweight enough to make taking it everywhere in a backpack practical
  • The SSD and RAM can be easily replaced

My secondary requirements (would be good to have, but can live without)

  • GPU that doesn't suck (discrete AMD, if such a miracle exists, probably not)
  • Thunderbolt/USB3 charging port
  • FHD+ or better screen

Are there any laptops that roughly fit into my requirements? How well do those fit into my budget?

75

r/motheroflearning•

On my this year's re-reading of Mother of Learning (after I got an ADHD diagnosis) I've seen some aspects of the book in a new light. Namely, I can't help but notice a lot of neurodivergent themes, the most prominent being:

  1. Zorian talks about how the mental pressure from his empath abilities he felt was an ever-present nuisance in his life which he couldn't associate with a supposed boon of empathy. This rings very true for my pre-diagnosis self-perception, when I rationalized away all the symptoms as "quirks of my character".

  2. Psychic abilities manifesting differently in Daimen, echoing how neurodivergence is a spectrum and how it can affect people in both positive and negative ways,

511

r/hackintosh•

My setup is ThinkPad T430 (CPU: Intel Core i3 Ivy Bridge, GPU: Intel HD Graphics 4000) with OpenCore. The system boots and works fine, graphics work okay, audio works, but when I try opening App Store, the system freezes and requires a reboot to work again. I've seen people having a similar problem online, but I haven't found a working solution yet.

Does anyone else have this problem? What could be causing it? How do I solve it?

21

r/canadaleft•

I am a Russian CS student who's extremely dissatisfied with political climate of my own country (right-wing in the mainstream, socially conservative left wing, rampant anti-intellectualism) and I've been digging around to find opportunities for immigration with a clear path to full citizenship.

Canada is certainly talked about as a good country to immigrate to and that it has easier requirements for citizenship than other countries.

However, I want to see you guys comment on the state of affairs from the leftist perspective critical of the establishment. What's your opinion on the current situation with immigration in Canada? What do you think a person who's immigrating should know that o

83

r/Zig•

When I try to compile this: https://pastebin.com/Z4sPpcBm using the command zig build-exe main.zig -lc I get this error:

Build Dependencies...clang -cc1as: error: unknown target triple 'unknown', please use -triple or -arch

The following command failed:
/usr/bin/zig clang -c -nostdinc -fno-spell-checking -target x86_64-unknown-linux-gnu -g -fno-omit-frame-pointer -D_DEBUG -Og -fno-stack-protector -fPIC -o /home/uartman/.cache/zig/stage1/tmp/VeK2D2hz_VF6-start.o /usr/lib/zig/libc/glibc/sysdeps/x86_64/start.S -I /usr/lib/zig/libc/glibc/include -I /usr/lib/zig/libc/glibc/sysdeps/unix/sysv/linux/x86_64 -I /usr/lib/zig/libc/glibc/sysdeps/unix/sysv/linux/x86 -I /usr/lib/zig/libc/glibc/sysde
72


r/Zig•

Are there any particularly good plugin/language server combinations for Zig?

183

r/lfg•

[Online][GMT+3][5e] A player seeking a game

Post seeking player(s) and GM

I'm a relatively (played 3 campaigns, tried to DM one) new player and I'd like to join some group. I'd like not to be constrained by PhB if possible (to be able to choose different races/(sub)classes/etc.)

10

r/rust•

I'm trying to use sqlx, and its query macro in particular. This macro requires a DATABASE_URL to be set to, well, database url during macro expansion, so it can check whether on not the queries are possible. As a result, Intellij Rust Plugin's macro expansion module can't properly expand the macro and shows it as an error.

Is there a way to pass an environmental variable to it so it can correctly expand the macro?

14

r/Osana•

Is there any point in time or space where YanSim gives us a license agreement? If no, then would forking a decompiled code of the game, editing it and licensing with, for instance, GPL, legal? I know for sure that you can create large open-source projects from leaked closed-source ones (Space Station 13).

This is a purely theoretical question - I don't want to do this and don't really want anybody to do this, but I'm just really curious about this.

385

r/Jetbrains•

I use Fira Code font. In PyCharm I can tick "enable font ligatures" and it works. However, in Clion and Idea there is a warning sing beside the checkbox and it's not available. Did anybody encounter same problem?

UPD: Problem solved itself.

31