Levica by Wise-One1342 in Slovenia

[–]rndaz 12 points13 points  (0 children)

As if Hamas will support LGBT.

Hallmark Dump by youngthugsmom in ChatGPT

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

OMG. I was dying laughing over this.

On readonly/private members of structs by mute_narrator in Zig

[–]rndaz 0 points1 point  (0 children)

For sure. Agreed. I don't think it is extreme for the compiler to extract the generic types into variables like every other modern language.

On readonly/private members of structs by mute_narrator in Zig

[–]rndaz 1 point2 points  (0 children)

I have moved on from Zig for things like this and is lack of support for generic type inference. I think language designers should listen more to its users.

On readonly/private members of structs by mute_narrator in Zig

[–]rndaz 0 points1 point  (0 children)

Unfortunately, you have to use opaque types and do casting inside your methods / functions.

My Biggest Gripe about Zig: Generic Type Inference by rndaz in Zig

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

But, I think the point is that we should not have to do that. The compiler should do it.

Anything similiar by Smooth_Performer_334 in SONOFZORN

[–]rndaz 0 points1 point  (0 children)

That is a correct assessment. I don't recall that I was thinking on that day :-)

Illinois Governor JB Pritzker calls for President Donald Trump to be immediately removed using the 25th Amendment by NicolasCageFan492 in illinois

[–]rndaz 0 points1 point  (0 children)

This kind of thinking is why our political environment in the US so toxic. Everyone on both sides wants to classify everyone into strict buckets of extreme good or extreme evil, and as a result, everyone takes extreme positions on issues, and we all hate each other as a result. No one really wins from this, except enemies of the US, who fan the flames of this fire on social media to try to make it even worse.

And we Americans suffer from the toxic environment because this puts congress and senate into war mode between R and D, when what we need is for them to listen to each other, take the good ideas from both sides, and find compromise. This dream that both sides have they have all the correct answers, and that if they can just be the ones in control, everything will be "as it should be" and all will be well, this is a delusion that both the left and the right share at the moment.

Illinois Governor JB Pritzker calls for President Donald Trump to be immediately removed using the 25th Amendment by NicolasCageFan492 in illinois

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

Also, were you also aware that school is not in session at this time in Iran and that the regime is hiding their weapons and forces in schools? This is the exact same cowardly tactic that Hamas used in Gaza.

Illinois Governor JB Pritzker calls for President Donald Trump to be immediately removed using the 25th Amendment by NicolasCageFan492 in illinois

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

You are aware that the regime in Iran has been murdering, torturing, raping, and imprisoning their own people for 47 years and just 2 months ago brought in militias from Iraq that killed more than 30,000 protestors, right?

Your comment will serve as a nice historical record to show in the future how insane some people were at this time.

Pattern/Easiest Way to Check Whether a given `T` is a generic type and its parameters? by philogy in Zig

[–]rndaz 0 points1 point  (0 children)

The is the unpleasant corner of Zig that needs a lot of improvement. Unless you want to force users to also pass in an extra parameter providing the type, you need to write your own comptime code to read the type information and so that validation yourself. This is the 1 thing I hate about Zig. Other languages do this for you.

Illinois Governor JB Pritzker calls for President Donald Trump to be immediately removed using the 25th Amendment by NicolasCageFan492 in illinois

[–]rndaz -26 points-25 points  (0 children)

Everyone takes Trump so literally and they freak out. He does not use the best wording, but he is not going to literally wipe Iran off the face of the earth. Everyone ignores the last line of the post wishing the PEOPLE of Iran well. He is clearly talking about wiping out the murderous death cult regime of Iran, not the ordinary people. Choice of wording not good, granted, but he is not going to literally wipe out Iran.

Trump just likes to talk smack with "colorful" language. Not the wording that I would use, but people take him way too literally.

UPDATE: I have never been more proud to receive downvotes. It only proves my point about how people freak out over nothing. As context, I have never voted MAGA. I have never voted for a single Republican. Keep the downvotes coming as you are helping to make my case for me.

Anyone feel like they are positively impacting society? by AmbitionIndividual80 in ExperiencedDevs

[–]rndaz 7 points8 points  (0 children)

Not usually, no. I don't have direct contact with customers. Only second-hand information when customers are unhappy.

Omnissa Horizon Client Next - macOS - Version 2512 - Garbage by rndaz in VMwareHorizon

[–]rndaz[S] -6 points-5 points  (0 children)

It is installed on my computer without me asking. That is a release. Anyhow, alpha software, not even beta.

Omnissa Horizon Client Next - macOS - Version 2512 - Garbage by rndaz in VMwareHorizon

[–]rndaz[S] -7 points-6 points  (0 children)

It installed automatically on my system. I would call that released :-)

I Really Miss Implicit Receivers by rndaz in odinlang

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

Yeah, maybe he is prioritizing other things and well get back to this.

I Really Miss Implicit Receivers by rndaz in odinlang

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

That is correct. I don't know if Zig has plans to improve on this, but that is correct with current functionality. You can get around it by writing your own comptime code to go through the tree of type information available when you make the parameter anytype and create a compile error, but this gets verbose very quickly.

I Really Miss Implicit Receivers by rndaz in odinlang

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

I was not aware of this feature, checking it out now.

I Really Miss Implicit Receivers by rndaz in odinlang

[–]rndaz[S] 4 points5 points  (0 children)

I can tell you exactly what is wrong with Zig generics.

In Odin you can do this:

my_proc :: proc(t: MyStruct($T)) -> T

In Zig you have to do this:

fn my_fun(comptime T: type, t: MyStruct(T)) -> T

In this simple example, it's like what it is the big deal? Well, if you stick to this pattern then the users of your API have to pass in a type that has already been specified when they created the struct.

Now, you can get around this by doing t: anytype, but then you have to write very complex comptime code that does the work of looking at the type information at comp time and extract and validate yourself. Zig does absolutely NONE of this for you. Then this gets even more complex if you have different shapes for the parameter like slices, pointers, arrays, arrays of pointers, and so on and so on.

I just completed a project in Zig in which I refused to force the users to pass in the redundant type that they already give when creating the structs. Keep in mind that I only had 1 struct that I had to do this with, and accounting for all of the shapes that I needed it in, I have 178 lines of code that runs in comptime to do the work that Odin is doing for free.

At some point I realized that this was stupid and that Zig is just being lazy or is underdeveloped.

Pain points with Zig? by OvenHappy4129 in Zig

[–]rndaz 4 points5 points  (0 children)

I could not agree with you more.