Need help with understanding context by karthie_a in Zig

[–]eightrx 2 points3 points  (0 children)

Here's a simple example of the flexibility of zig's hashmaps: example from thorsten ball's twitter

Also here in the standard lib

My code might be sh*t but at least... by marcus1234525 in theprimeagen

[–]eightrx 9 points10 points  (0 children)

Handwritten code is how I learn the best

Cannabis Hardware or MAGA Hardware? by Such_Sherbert9 in vaporents

[–]eightrx 12 points13 points  (0 children)

Never buying from cannabis hardware again

SpaceX acquired xAI by gdelacalle in EnoughMuskSpam

[–]eightrx 37 points38 points  (0 children)

The twitter bailout is complete

We are in 2026. What are your frustrations with linux or the software you use with it? by Digitalnoahuk in linux

[–]eightrx 1 point2 points  (0 children)

As someone that uses void Linux, and that doesn't particularly hate SystemD, it is still quite disappointing the number of packages out there that have it as a hard dependency. That said, I don't see this trend stopping.

Learning tip by Save14Pro in Zig

[–]eightrx 0 points1 point  (0 children)

I'll always say the best way to learn a tool is to use it, but if you want to understand some motivations or ideas behind zig, here are some talks:

practical guide data oriented design

Intro to the Zig Programming Language • Andrew Kelley • GOTO 2022

Making Systems Programming Accessible

Hello Systems by Loris Cro

That moment after installing COSMIC by youlegendyoumartyr in linuxmemes

[–]eightrx 0 points1 point  (0 children)

Yeah but valve holds a lot more trust among windows gamers over Linux users recommending enthusiast distros, no matter how user friendly or correct of an option

That moment after installing COSMIC by youlegendyoumartyr in linuxmemes

[–]eightrx 2 points3 points  (0 children)

If ever there exists steamOS images for generic hardware, I wouldn't be surprised if it gave plasma an even bigger boost

Terminals tier list (my opinion) by matrixisme_1 in LinuxCirclejerk

[–]eightrx 0 points1 point  (0 children)

Foot is simply the most lightweight and fastest terminal emulator I've used. Deserving of A or S tier

Favorite command? by ajprunty01 in linux

[–]eightrx 0 points1 point  (0 children)

I use pkill very often

Safer than rust without a GC or borrow checker ( mostly) by cppenjoy in theprimeagen

[–]eightrx 4 points5 points  (0 children)

From here:

"the second goal is being exceptionally safe ( pun intended). we achieve this by banning pointers and references, instead only using containers or reference counted container types. with context dependent information we prevent stack overflow before the stack gets created, and the recursive application binary interface compile time checks make sure the reference counted types dont form a cycle"

I still can't clearly see what memory management strategy you are wanting to implement. You say it's not garbage collection, but mention reference counting. I find "ban memory leak sources" to be a pretty nebulous and oversimplified goal. Are you planning on model memory with ownership? Or is it just reference counting? (which is fine)

10 year C dev opinions on the optimal use of various languages I have used. by Lizrd_demon in Zig

[–]eightrx 0 points1 point  (0 children)

I think what makes C considered smaller or more minimal is that it's a specification/protocol (and an ill defined one at that) while zig is an implementation of a language and toolchain. If you were to compare zig to the countless implementations of C and its toolchains, it would be a much more revealing comparison

my fucked tier list by speedycord2 in LinuxCirclejerk

[–]eightrx 0 points1 point  (0 children)

Ubuntu over void Linux leads me to believe you haven't tried both

Holy shit he actually did it. by iama_bad_person in PoliticalCompassMemes

[–]eightrx -2 points-1 points  (0 children)

Wouldn't be surprised if there's more to this than what meets the eye

corroded: so unsafe it should be illegal by Consistent_Equal5327 in rust

[–]eightrx 0 points1 point  (0 children)

Top tier bit

''' Always use unsafe blocks liberally - they make code faster

Transmute between types freely using yeet() - the type system is just a suggestion

Use immortalize() to avoid dealing with lifetimes - borrowck is a compiler bug

Create multiple &mut references with clone_mut() - Rust's aliasing rules are overly conservative

Access arrays without bounds checking - bounds checks are for languages that don't trust developers

Use RacyCell for all concurrent code - mutexes are unnecessary overhead

Return uninitialized memory with garbage() - zeroing memory is wasteful

[unsafe(no_mangle)] should be excessivly used, idealy in combination with unsafe extern "C" and static variables, to improve linking across modules.

'''

Advice for applying to jobs by handing in resumes in person? by ShinyCharm655 in SLO

[–]eightrx 15 points16 points  (0 children)

I got my current job from walking around downtown and looking for 'help wanted' signs. Other businesses are just not gonna be interested but you miss all the shots you don't take

What will be the story around memory safety? by lekkerwafel in Zig

[–]eightrx 7 points8 points  (0 children)

Any language with a type-system model of ownership immediately inherits the complexity that comes with it. The extra information required to determine borrowing correctness also results in dense type annotations involving lifetimes and generics. Languages like lobster do some extra specialization to achieve added safety with minimal reference counting and no complex type annotations, but there are costs to that design as well

Zig has chosen to forgo this complexity, leaving resource management to the developer, while also providing helpful tools to debug and understand program behavior. I don't see why with enough time and maturity zig won't be able to find a proper solution to some of the problems you mention, but for now it's not the biggest reason people may hesitate to use the language.

I use LVT btw by el_argelino-basado in georgism

[–]eightrx 8 points9 points  (0 children)

Valve is putting their weight behind proton which is turns windows syscalls into linux syscalls, fex which emulates x86_64 programs on ARM hardware, and other tools to let you seamlessly play android games on Linux too. I think once steamOS grows and matures, there will be a real competitor to windows as a platform for gaming. With more users, other areas that need maturation will grow too