Parsing with ReadOnlySpan and first try of OBJ reader

C#, Performance, Unmanaged, Parser, Span, 3D, .NET Core,

Hi Everyone.
I think every one of us at least one time did your parser of some text format csv/xml/html/ etc. to learn format or to learn language approach to do that or just for fun.

I did that many times, but always I didn't have enough time or/and patience to lead it to production-ready or just find better implementation. Nevertheless, I got the experience and have no regrets about it.

For your attention, my way to implement parser with Span and some tricks.

All things I demonstrate below were used for implementing 3D OBJ format reader.

Read More →

Векторная алгебра в примерах С#

3D, C#, Vector algebra,

Всем привет.
3Д очень интерестно, динамично, красиво и сложно! Как подступится если математика не является сильной стороной (как в моем случае)? Никак! Но всегда можно начать "покуривать" статьи в данном направлении.
Цель статьи: много примеров, немного кода, минимум математики.
Для примеров буду использовать библиотеку System.Numerics.

Read More →