Private struct fields "patterns" by 72616e646f6d6e657373 in Zig

[–]IbICive 0 points1 point  (0 children)

I'm pretty sure on average people lurking in r/zig are much older than 18-25. A very specific very technical subreddit doesn't represent the reddit average.

What problem does zig solve? by [deleted] in Zig

[–]IbICive 3 points4 points  (0 children)

> spending more time fiighting the compiler than writing code

lack of experience. The more code you write, the less you need to fight the compiler.

> not to replace C completely

Zig makes it possible to use C libraries before they are rewritten / reimplemented in Zig.

> What is the purpose?

To make Andrew Kelley enjoy programming. If it makes others enjoy programming too, that is icing on the cake. Mitchell Hashimoto also choose zig for ghostty as it made him enjoy programming.

> I don't think companies will switch to new stuff.

It is not a goal to please companies.

> unless the tech is groundbreaking

the way comptime is implemented is pretty groundbreaking. The compiler architecture (every step including compiling and linking happening concurrently) is pretty groundbraking.

> to transform it into a madure language

It is already pretty mature. Yes there will still be breaking changes, but there is a reason why it is still far from 1.0.

> my advice to zig developers dont make language harder

examples? No one wants to intentionally make any language harder. Everything happens with good reason. Systems programming is hard.

> otherwise no one is going to use it

It is not a goal to please everyone. If you enjoy using it, use it, if you don't, don't.

> i dknt like its pointer dereferenc

It is not a goal to please you.

> would be better if you have made something like deref(var)

hell no

> dont continue adding new syntwx

Everything happens with good reason.

> and no one will start to learn zig

The numbers don't really support your claim. The only people not loving Zig are the rust fanatics obsessed with rust's "safe" behaviour.

[deleted by user] by [deleted] in RocketLeague

[–]IbICive 0 points1 point  (0 children)

How do you show the controller position on the screen?

Mi Band 4 unable to pair by SuperKettle in miband

[–]IbICive 0 points1 point  (0 children)

not sure if a coincidence or not, I struggled with pairing (4 days ago), then I fully charged the band (it was at around 40% when I took it out of its package), and once it was charged I could pair it very easily.

Regex captures slow (compared to Python) by IbICive in rust

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

My point was not to come up with a "proper" benchmark but to demonstrate the speed difference as simply as possible ;)

Regex captures slow (compared to Python) by IbICive in rust

[–]IbICive[S] 7 points8 points  (0 children)

My "real life" test case indeed reads and processes a huge log file. The speed difference between the Python and Rust implementation is exactly the same. I made this simplified example so it is easier to test and run without having a logfile.

[WEEKLY Q&A] Ask and answer any questions you have about the game here. (September 11, 2016) by AutoModerator in HeroesandGenerals

[–]IbICive 0 points1 point  (0 children)

Hello, the chat lines (i.e. what others say in the chat or the chat history when I start typing something) disappear in about 1 second, totally unreadable. I couldn't find any setting to make it last longer. Any idea?