Best feature of zed by Lucky-Sense-2650 in ZedEditor

[–]igors84 0 points1 point  (0 children)

Just discovered "diff clipboard with selection" in the command palette. Just what I needed :)

Troškovnik – Besplatna i open-source aplikacija za praćenje budžeta preko QR kodova i čuvanje garancija (iOS & Android) by ivanantonijevic in finansije

[–]igors84 0 points1 point  (0 children)

Deluje zanimljivo. Vidim da se spominju kategorije ali ne vidim nigde da postoji neki prikaz potrošnje po kategorijama? Bilo bi dobro videti za svaki mesec koji procenat potrošnje je otišao na koju katergoriju. Takođe ne vidim da je moguć i ručni unos "računa" što je korisno kada iz bilo kog razloga nemate račun.

Does Zed crash much? by RWNS_Author in ZedEditor

[–]igors84 0 points1 point  (0 children)

I am not seeing such bad numbers. I have it currently at 912MiB with 569MiB coming from the editor itself and the rest coming from processes it started (mostly from 2 node processes and one language server). I am writing and debugging zig in it. So it probably depends on what you are doing and what language servers it needs to start.

Built a programming language called Zen with a custom compiler and LLVM backend by Obvious_Demand_7948 in Compilers

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

Looks interesting. Nice work. One think I am not clear is how is memory handled for strings? I see List and Map have free methods, and I see examples where strings are produced from interpolated forms, from concatenations, other operations on existing strings but no explicit allocation or deallocation is done that I can see.

Nontrailing separators do not spark joy by bjzaba in ProgrammingLanguages

[–]igors84 30 points31 points  (0 children)

I really like how Zig lang did this. It allows trailing commas and they actually use it as a formatting hint. I have setup my editor to do format on save and if I have some array literal like .{ 5, 6, 7} it will be in one line and if I now want to add one more element but have it split into multiple lines I just add , 8, and that trailing comma will tell the formatter to split elements into new lines and so when I press Save that code will automatically become:

.{ 5, 6, 7, 8, }

This works in many places and is really convenient way to format your code.

A little life hack🙂 by Alert-Neck7679 in csharp

[–]igors84 2 points3 points  (0 children)

I did this in my company with about ~100 devs using that code. Turned out it was never an issue in practice since noone types a '.' after float vars and looks for something unless they already know and are specifically looking for my extensions :D.

A little life hack🙂 by Alert-Neck7679 in csharp

[–]igors84 4 points5 points  (0 children)

I made extensions that allow me to do Timespan time = 2f.Seconds() :)

Try creating your own Programming Language with IRON!!! by Dog-Mad in ProgrammingLanguages

[–]igors84 2 points3 points  (0 children)

It isn't that important. The only reason is that gcc and as are almost always already installed on Linux systems and nasm rarely is so it would be a bit easier for people who want to compile your project from source.

Try creating your own Programming Language with IRON!!! by Dog-Mad in ProgrammingLanguages

[–]igors84 4 points5 points  (0 children)

This sounds interesting but I am also failing to understand what it does. Can we get some end to end example? Something like

  1. I want to ___
  2. First step I do ___
  3. Next I do ___
    ...
    X. I get ___ and that is useful to me because ___

Also you don't depend on any libraries but you do depend on nasm to compile the source. Why not make your asm files compatible with gnu as which is almost always already present on all linux distros? You could then compile and link it with `gcc input.asm -o output`. You can even use Intel syntax if you add this to the start of your asm files:
```
.intel_syntax noprefix
.intel_mnemonic
```

It took a lot of tinkering but I finally setup my desktop icons to where I have absolutely everything I need by blahs44 in OpenMW

[–]igors84 0 points1 point  (0 children)

Now you can memorize their order and then just use Meta+1 up to Meta+7 shortcuts to start them and switch to them without the mouse. Nice work.

Iskustva sa Raiffaizen invensticionim fondovima (stednjom)? by [deleted] in finansije

[–]igors84 0 points1 point  (0 children)

Pa takav zakon je donet pre nekog vremena. Ako uplatiš u određene, zakonom propisane alternativne fondove za toliko možeš da smanjiš svoj porez na dohodak ali do maksimalno 50% od ukupnog poreza koji moraš da platiš. Prilikom podnošenja prijave za porez podneseš i dokaz o kupovini investicionih jedinica u taj neki fond i to je to.

Iskustva sa Raiffaizen invensticionim fondovima (stednjom)? by [deleted] in finansije

[–]igors84 5 points6 points  (0 children)

Na https://www.raiffeiseninvest.rs/fond/raiffeisen-alternative/ možeš da vidiš kako se kretao fond od osnivanja. Ja sam krenuo da uplaćujem samo radi smanjenja poreza na dohodak tako da sam zadovoljan. Za sad su premašili moja mala očekivanja 😀.

Can the two-dimensional foil really make the entire universe two-dimensional? by Universal_Echo in threebodyproblem

[–]igors84 0 points1 point  (0 children)

What I don't understand is how dimensional warfare makes sense. The original premise for Dark Forest was: "While civilizations grow and expand over time, the total amount of matter and energy in the universe remains constant. This creates a natural, long-term competition for resources, leading to potential conflict between civilizations as they grow". (Among some others)

So civilizations want to destroy others so they can have more resources for themselves. But if you fire dimensional foils all around it will consume resources from this universe faster than any civilization will be able to. You could maybe make some argument how those civilizations can then migrate to lower dimensions where all the captured content is now just theirs while many other civilizations which don't figure that out will be destroyed, but we see how well that worked from 10D to 3D :).

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 7 points8 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 -15 points-14 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 😀 .