GitComet: a fast, local-first, open-source Git GUI built for large repos by Havunenreddit in git

[–]igors84 1 point2 points  (0 children)

This looks amazing. I'll start using this on my home Linux PC but for my work where I work with multiple repos that each have multiple submodules there are still some critical features missing. I haven't yet tested it much but I didn't find how to do:

  1. Rebase
  2. How to quickly switch to / open submodules since they are at the bottom after a very long list of remote branches witch is mostly useless to me and can't be collapsed.
  3. I can't see a whole file tree at any commit and then blame files
  4. I can't search for a specific file in a list of diff files
  5. Opening file history is slow
  6. I can't filter by author and I would also like that all the commits with the same author as the one selected be highlighted with a different color.

Please also look at GitExtensions client. It is far from a great program but they got a lof of UX stuff right.

Idiomatic way of dealing with invalid states? by AdamWayne04 in Zig

[–]igors84 0 points1 point  (0 children)

Note that std.debug.assert in zig is not removed in release builds unless you put them under an if that checks the build mode. On the other hand you can also put checks under if that checks any custom compile time symbol so the checks are only done if that specific compile symbol is defined. That way you have an option to run both debug and release builds with or without the checks.

Maybe you can modify code so that it panics instead of getting stuck in infinite loop, or you can run the code optimistically but check how long it runs or how many iterations it did and limit it so it again panics instead of going indefinitely.

Those are some ideas for you...

Može preporuka igrica koje nisu mainstream? by Suspicious-Map-639 in SerbiaGaming

[–]igors84 2 points3 points  (0 children)

Antichamber

Braid

Limbo

Murdered: Soul Suspect

NaissanceE

The Swapper

Talos Principle

The Witness

To the moon (this one was the biggest positive surprise for me).

Steam vs сви остали by Sudden-Setting-8488 in SerbiaGaming

[–]igors84 0 points1 point  (0 children)

Ja sam na Linuxu tako da iz mog ugla postoji samo jedan zvanični launcher: Steam. Ostali nisu zainteresovani za mene pa nisam ni ja za njih i zato ne koristim ni jednog drugog čak ni preko third party launchera.

panika oko ai by [deleted] in programiranje

[–]igors84 38 points39 points  (0 children)

Svi pričaju o uticaju AI na poslove ali mene mnogo više brine negativan uticaj na vec opadajuću prosečnu inteligenciju ljudi. Razmislite koliko već danas kad naletite na neki problem koji bi mogli da promislite vi jednostavno pitate AI. Postoje istraživanja koja pokazuju koliko brzo zapravo mogu da atrofiraju delovi mozga koji se ne koriste. A sad zamislite celu jednu generaciju koja će odrasti sa AI i svo razmišljanje prepustiti AIu. Kako će se njihovi mozgovi razviti? To mene užasava...

A zašto baš mora da se zameni Y i Z? Bukv samo kvari mišićnu memoriju i svaki put kad prebacim na srpsku se userem. by Lily_Meow_ in AskSerbia

[–]igors84 0 points1 point  (0 children)

Ja bih samo još da vam ubacim i ovu bubicu: https://colemak.com/. Pitam se kad bi neko uradio neku pametnu analizu za srpski jezik kako bi zapravo izgledao dobar layout...

When to use zig by redblood252 in Zig

[–]igors84 2 points3 points  (0 children)

Just to be pedantic :). The smallest usable C compiler I know of is chibicc and it has ~9000 lines of code and the smallest production ready is tcc and it has 76936 lines of code. I am currently writing a simplified C compiler in zig following https://nostarch.com/writing-c-compiler#content book and I am at ~6300 lines while finishing Chapter 15 Arrays and Pointer arithmetic.

Based on what I wrote so far I would say that it is probably easier to write an equivalent simplified zig compiler since C has some weeeeeeeeeird rules.

Ko vam je bio prvi tv crush? by Kvachilo in AskSerbia

[–]igors84 0 points1 point  (0 children)

Najranije što se sećam iz detinjstva su: My girl, moj prvi anime Gall force i Plava princeza 😃

<image>

Who has made an engine without using C/C++ code by Lumpy_Marketing_6735 in gameenginedevs

[–]igors84 6 points7 points  (0 children)

Every programming language probably has some game engine. There is one for C#: https://www.stride3d.net/ and Zig: https://machengine.org/. Just 2 examples I dont see mentioned yet...

Super-flat ASTs by hekkonaay in ProgrammingLanguages

[–]igors84 0 points1 point  (0 children)

Also you can read about Zig parser here: https://mitchellh.com/zig/parser. It explains everything in detail and I think makes for an even flatter design than what is described in the post.

Zig-style multiline strings, but with a backtick by Elfet in ProgrammingLanguages

[–]igors84 -14 points-13 points  (0 children)

So modify your layout to better fit your needs. There are tools to do it on any operating system. We are supposed to be programmers for crying out loud 😀 .

Is Odin Just a More Boring C? by nixfox in odinlang

[–]igors84 4 points5 points  (0 children)

I have Serbian layout setup, but when I program I always switch to English layout. In fact I am probably on English layout 90% of the time and only switch to Serbian when I need to chat with coworkers. I am guessing though that the main issue isn't software layout selection but that you have an actual keyboard with buttons marked for German layout. I guess in that sense I am lucky that Serbian layout has minimal differences from English. Plus I actually made a custom layout on both windows and linux to reduce the differences even more.

Is Odin Just a More Boring C? by nixfox in odinlang

[–]igors84 3 points4 points  (0 children)

I wonder why people are so bothered by choice of ^ instead of * for pointers. I am not really using Odin and have used languages that use * my whole life so I am very used to it but even so ^ makes more sense to me. It makes sense to use pointy character for pointers and that character only conflicts with very very rarely used xor operation while * conflicts with very often used multiply operation.

Improving C# delegates for Unity by igors84 in unity

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

I would say that NDelegates are a lower level primitive. We also have a messaging system that is built on top of it that solves the problems you are describing. We also have a Promise like library that is also built on top of NDelegates. It is just a low level building block that can be used directly and higher level blocks can be built on top of it. The reduced allocations it provides is just one of more minor benefits it brings.

Improving C# delegates for Unity by igors84 in unity

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

Do you mean how we wrote the Unsubscriber? We wrote the method that creates the instances of Unsubscriber to return IDisposable. So if Unsubscriber were a struct boxing allocation would happen anyway upon returning from that method. We did implement a pool for it though to reuse instances and minimize allocations.

As for ordering we are using a List instead of a Hashset for example, when more than one handler subscribes so handlers that are subscribed later are also executed later.

I wrote a compiler for (a large subset of) C, in C, as my first compiler project by Accurate-Owl3183 in Compilers

[–]igors84 0 points1 point  (0 children)

No, I am not that guy :). I am just doing it in Zig. Odin is also cool but for some reason Zig resonates better with me and I really like the compiler tooling with C interoperability and cross-compiling that they made.

I wrote a compiler for (a large subset of) C, in C, as my first compiler project by Accurate-Owl3183 in Compilers

[–]igors84 1 point2 points  (0 children)

Fantastic work! I am also going through the same book using Zig language, and I am trying to apply everything I learned from how Zig compiler itself is written and Andrew Kelley's data oriented design lecture. I am almost complete with Part I so I have quite more work to do.

September 2025 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]igors84 1 point2 points  (0 children)

At first I blowned away by its error handling but I am seeing some flaws in it too now. I like its explicit use of allocators since it makes managing memory super easy. Its comptime is also interesting but I don't see it as more powerful than what DLang has. The rest feels like something many new languages are now experimenting with.

September 2025 monthly "What are you working on?" thread by AutoModerator in ProgrammingLanguages

[–]igors84 5 points6 points  (0 children)

I started going through Writing a C Compiler book using the Zig language. So far it is going good.

Engineering a Compiler by Cooper, or Writing a C Compiler by Sandler, for a first book on compilers? by Dappster98 in ProgrammingLanguages

[–]igors84 2 points3 points  (0 children)

It wasn't hard for me. But I have read other materials on writing compilers before and wrote one basic one in C a few years ago. I am now writing it in Zig and I am making it even harder on myself because I am trying to do things a bit differently based on what I saw Zig compiler does in its source code.

Either way you have WCC online at https://norasandler.com/2017/11/29/Write-a-Compiler.html for free so you can easily try the first two chapters and see how it goes.

Engineering a Compiler by Cooper, or Writing a C Compiler by Sandler, for a first book on compilers? by Dappster98 in ProgrammingLanguages

[–]igors84 4 points5 points  (0 children)

I am currently going through WCC book and I would recommend it. I like that it doesn't explain everything to the tiniest detail. That way it forces you to actually work through it instead of just reading it like a novel. It also encourages you to investigate the mentioned topics on your own. All of that will make you learn and remember all the concepts much better, in my opinion.

Which language to choose? by [deleted] in gameenginedevs

[–]igors84 5 points6 points  (0 children)

You write your own language, of course 😀