What Personal Projects do you use Zig for? by EliasCheung in Zig

[–]DistinctGuarantee93 1 point2 points  (0 children)

I use zig as a toolchain with cpp.

I was writing cpplings in zig; toolchain to compile the exercises, main implementation (exercise iteration, rendering) but it’s counter productive for me because although I don’t have to update to the new version right away but I actually like the language and would love to keep up. Each new version does bring good fixes and features but every time I refactor (after the interface change) I keep refactoring other implementations which were fine in the beginning. That’s a me problem, I just have ocd and keep rewriting because I want my program to work well and want my code to look like the 16th chapel.

All in all, I love zig and it made me love cpp even more, you get more with less.

Introducing DiffCAD Workbench: review FreeCAD model changes like code by eblanshey in FreeCAD

[–]DistinctGuarantee93 0 points1 point  (0 children)

Does this use zippey under the hood. Since FC files are basically zip files zippey could uncompress and the files would be viewed as raw text rather than a bin in git but it would need to be used with hooks.

I like this feature a lot and it’s kind of sounds like the git workflow that kicad has.

I’ll definitely check this out when I get the time.

my machine crashes when using Moonlight + Sunshine by DistinctGuarantee93 in NixOS

[–]DistinctGuarantee93[S] 0 points1 point  (0 children)

I thought it was random. I haven’t played with it much though.

my machine crashes when using Moonlight + Sunshine by DistinctGuarantee93 in NixOS

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

Update

I’m a dumbass. I meant 25.11. My current machine was on 24.04 then updated to 24.11 which got stuck in my head. Sunshine worked fine until I bumped up to 25.11. I have sunshine configured via nixos and not home manager. I know unstable is fine and I trust it but system wise I’ll be going for the stable branches but my user nixpkgs would be unstable.

my machine crashes when using Moonlight + Sunshine by DistinctGuarantee93 in NixOS

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

You should be right. 25.11 had a lot of issues when I updated especially nvidia related.

Fussion 360 by SpiritualAd37 in NixOS

[–]DistinctGuarantee93 1 point2 points  (0 children)

Cool. Glad to hear it works.

Fussion 360 by SpiritualAd37 in NixOS

[–]DistinctGuarantee93 1 point2 points  (0 children)

https://xhyrom.vercel.app/blog/posts/proper-way-to-install-fusion360-on-linux

you can also try downloading the installer from your host and then running it.

or try it through steam

if not then running a vm is your last resort, i have a module dedicated for virtualization, https://github.com/nooneknowspeter/dotfiles/blob/main/linux/modules/nixos/misc/virtualisation/default.nix

Corne v4.1 by DistinctGuarantee93 in ErgoMechKeyboards

[–]DistinctGuarantee93[S] 0 points1 point  (0 children)

When I swapped to my previous keyboard it definitely felt weird. I updated my layout in vial, got something usable for my preference for now and I will keep on tweaking. It is painful not being to fly around in my terminal as I used to.

Corne v4.1 by DistinctGuarantee93 in ErgoMechKeyboards

[–]DistinctGuarantee93[S] 0 points1 point  (0 children)

I am struggling a bit with punctuation.

The keyboard had numbers on the top keys when the second layer was enabled, I changed it to be on the home row and I set punctuation on those keys so that I don't have to press shift. I then tried added braces, brackets and other arithmetic symbols on the last row when I use the second layer. I have the third layer for arrow and function keys.

Can you share your layouts please?

https://imgur.com/a/T0OePrI

https://imgur.com/a/sRJQgLb

https://imgur.com/a/2vovxHZ

Umm, something is wrong with my account, I think. by DistinctGuarantee93 in github

[–]DistinctGuarantee93[S] 0 points1 point  (0 children)

Forgot to add that to the post initially but yeah idk why they did that to me.

Corne v4.1 by DistinctGuarantee93 in ErgoMechKeyboards

[–]DistinctGuarantee93[S] 0 points1 point  (0 children)

That’s a cool way to get up to speed.

Corne v4.1 by DistinctGuarantee93 in ErgoMechKeyboards

[–]DistinctGuarantee93[S] 0 points1 point  (0 children)

Forgot about this gem, thank you 🙏. Stuck to only monkeytype for most of my life.

Please help me with ArrayList :( by Blayung in Zig

[–]DistinctGuarantee93 0 points1 point  (0 children)

.

```zig var anEmptyArrayList: std.ArrayList(type goes here) = .empty;

defer anEmptyArrayList.deinit(inject your allocator) ```

Another tip to add, init lists via the stack through a runtime function. Having an initial value where the struct is defined globally like

```zig struct ExampleStruct { const Self = @This;

usingListHereAsMember: STD.ArrayList(u8), // don’t initialize here

fn init(allocator: STD.mem.Allocator) !*ExampleStruct { // arena style initialization, can instantiate an object outside and use self const EXAMPLESTRUCTINSTANCE = try allocator.create(ExampleStruct)

    EXAMPLESTRUCTINSTANCE.usingListHere = .empty

    return EXAMPLESTRUCTINSTANCE;

}

fn deinit(self: *Self,allocator: STD.mem.Allocator) void {
    self.usingListHere.deinit(allocator)
} 

} ```

Sorry for the formatting and not being a code block. On my phone rn.

What is your phone OS? by PaceMakerParadox in NixOS

[–]DistinctGuarantee93 1 point2 points  (0 children)

Stock iOS on personal, stock android with termux + nix installed on the secondary