~andrewrk/ziglang

5 5

AdventOfCode

Details
Message ID
<DBAP190MB09829DBAEE3FAD72EF6336BAF9149@DBAP190MB0982.EURP190.PROD.OUTLOOK.COM>
DKIM signature
pass
Download raw message
Will there be anyone doing the challenges in Zig this year?  I find 
learning the language in isolation is difficult, and it would be nice to 
see what some more idiomatic Zig code looks like :)
Details
Message ID
<2C93CA8E-5A6F-4C57-9217-F20ABF3B5964@scazzosi.com>
In-Reply-To
<DBAP190MB09829DBAEE3FAD72EF6336BAF9149@DBAP190MB0982.EURP190.PROD.OUTLOOK.COM> (view parent)
DKIM signature
pass
Download raw message
> Will there be anyone doing the challenges in Zig this year?  I find learning the language in isolation is difficult, and it would be nice to see what some more idiomatic Zig code looks like :)


Time and work schedule permitting (hectic days around here), I’d love to do it. I’m a complete beginner, though, and I fully subscribe to this. Having a chance to follow a seasoned dev as they go through the challenge would be awesome. 

J.
Ganesan Rajagopal <rganesan@gmail.com>
Details
Message ID
<CALeQYX3kneMXBA3dpkhaoXKhNp5RbTaTszrtcSLYKefKQQ7=9g@mail.gmail.com>
In-Reply-To
<DBAP190MB09829DBAEE3FAD72EF6336BAF9149@DBAP190MB0982.EURP190.PROD.OUTLOOK.COM> (view parent)
DKIM signature
pass
Download raw message
On Thu, Dec 1, 2022 at 2:53 PM Peter Bridge <peter_bridge@hotmail.com> wrote:
>
> Will there be anyone doing the challenges in Zig this year?  I find
> learning the language in isolation is difficult, and it would be nice to
> see what some more idiomatic Zig code looks like :)

I am a beginner too and do plan to attempt at least the initial easy
exercises in Zig.

Ganesan

-- 
Ganesan Rajagopal
Details
Message ID
<CAAP90jOUPqmjin=Hto88wjMAk=KN5kxS3cOF=dqkQVJHMiBDaw@mail.gmail.com>
In-Reply-To
<CALeQYX3kneMXBA3dpkhaoXKhNp5RbTaTszrtcSLYKefKQQ7=9g@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
I am doing it in Zig for the third year -- love to exercise my zig
chops. I cannot say if my code is idiomatic or not; let me know if you
want to take a peek and I can share the repo with you.

Cheers and good luck!


On Thu, 1 Dec 2022 at 05:15, Ganesan Rajagopal <rganesan@gmail.com> wrote:
>
> On Thu, Dec 1, 2022 at 2:53 PM Peter Bridge <peter_bridge@hotmail.com> wrote:
> >
> > Will there be anyone doing the challenges in Zig this year?  I find
> > learning the language in isolation is difficult, and it would be nice to
> > see what some more idiomatic Zig code looks like :)
>
> I am a beginner too and do plan to attempt at least the initial easy
> exercises in Zig.
>
> Ganesan
>
> --
> Ganesan Rajagopal



-- 
Gonzalo Diethelm
gonzalo.diethelm@gmail.com
Details
Message ID
<CALxLQm8OZpRPM4P5xeSCTB9T=0DywUoy+SkeUJRKVYR9-cNTEg@mail.gmail.com>
In-Reply-To
<DBAP190MB09829DBAEE3FAD72EF6336BAF9149@DBAP190MB0982.EURP190.PROD.OUTLOOK.COM> (view parent)
DKIM signature
pass
Download raw message
On Thu, Dec 1, 2022 at 11:02 PM Peter Bridge <peter_bridge@hotmail.com> wrote:
>
> Will there be anyone doing the challenges in Zig this year?  I find
> learning the language in isolation is difficult, and it would be nice to
> see what some more idiomatic Zig code looks like :)

I do not know if my code is idiomatic or not, but here it is anyway:

https://nest.pijul.com/voroskoi/aoc2022-zig

You can find some other years under my account in zig too. I am happy
to answer/help here or in private if You have question.

Have fun!

bufPrint u32 to hex 'X' deprecated...?

Details
Message ID
<DBAP190MB0982C9C55214E14BBE32CF15F939A@DBAP190MB0982.EURP190.PROD.OUTLOOK.COM>
In-Reply-To
<CALxLQm8OZpRPM4P5xeSCTB9T=0DywUoy+SkeUJRKVYR9-cNTEg@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
Hi all, Bit of a strange one, but the format specifier 'X' is showing as 
deprecated, however it causes a compile time error, not a warning...  So 
does that mean it has actually been removed?

I am using vscodium with 0.10.1 and the ZLS plugin (btw which seems to 
ignore the 'checkforupdate' flag being set to false, so it might be that 
it has somehow changed versions beneath my feet.

Anyway I checked the documentation 'master' version (and 10.1 docs) and 
there is nothing at all regarding this change.

The recommendation is to use fmtSliceHexUpper, but I dont find this 
mentioned anywhere on modern useless search engines.  Any help please?

I could go back a version, but I needed the new packed struct(u32) for 
some low level PinePhone programming, what a great feature btw, thanks 
:) and I love that I can nest a enum(u2) for some of the register flags 
I am using, great work!

Cheers, Peter
Reply to thread Export thread (mbox)