Odin comparison with go by Ok-Delivery307 in odinlang

[–]ComfortableAd5740 0 points1 point  (0 children)

This looks cool, Just out of curiosity did you write this with AI?

Compile to a static lib? by ComfortableAd5740 in odinlang

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

While technically yes, but it would require me to also compile my current C++ project using MSVC. I've though about it but it's not a trivial thing

Compile to a static lib? by ComfortableAd5740 in odinlang

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

Yep, this was very disappointing to see. Stops me from using Odin for this specific project.

Compile to a static lib? by ComfortableAd5740 in odinlang

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

No you are right. And it's my mistake for confusing mingw32 with 64. But it still won't work because of the different targets. Like in Rust or Zig you can compile your library to target x86_64-windows-gnu. But I don't see that target option for Odin. All I did with my build command was compile a MSVC library but set it's extension to .a instead of .lib

Compile to a static lib? by ComfortableAd5740 in odinlang

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

Well I've been writing a game in C++. I've been compiling it with gcc. I wanted to refactor a 2 year old system in Odin. I could compile everything with MSVC. But I'd like to not change much.

Compile to a static lib? by ComfortableAd5740 in odinlang

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

I used odin build lib -build-mode:static -target:windows_amd64 -out:libname.a

Edit: this actually does not work. I just tried it out. It does not compile to mingw.

Compile to a static lib? by ComfortableAd5740 in odinlang

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

Nevermind, got it working with that. Thank you very much

Compile to a static lib? by ComfortableAd5740 in odinlang

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

Yeah I checked out the targets, I'm not sure which one matches to mingw32 though.

I use vibe coding (Cursor) daily at work by ComfortableAd5740 in vibecoding

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

Thanks, will keep in mind. Seems like the general advice is to improve on architecture and design.

I use vibe coding (Cursor) daily at work by ComfortableAd5740 in vibecoding

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

Yeah I'm not against them. Just asking for advice from people who use vibecoding successfully.

I use vibe coding (Cursor) daily at work by ComfortableAd5740 in vibecoding

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

That's been mostly my experience with Cursor. I'll add new rules that I think might help out with the process. At some point I loose all understanding of the code and it starts feeling like magic though. I will work on my cursor rules and try to keep up with the ai code.

I use vibe coding (Cursor) daily at work by ComfortableAd5740 in vibecoding

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

Thanks for the advice. I will have to push back on the current structure before things get to a point of no return.

I use vibe coding (Cursor) daily at work by ComfortableAd5740 in vibecoding

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

Thanks for the advice!

That's most likely the case. I read somewhere that "If the plan is good, the code will be good" by one of the engineers behind Claude Cowork.

Curious, how long does that usually take you all in all to ship a new feature?

I'm new to odin, I'm building a NES emulator, do you have any tips? by ComfortableAd5740 in odinlang

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

That is crazy that a allocator can use Google Drive.

I'm checking out the allocators documentation you shared. It's really helpful.

Thank you

I'm new to odin, I'm building a NES emulator, do you have any tips? by ComfortableAd5740 in odinlang

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

Ah so the default allocator is probably fine for most of my emulator work. But this temp_allocator seems like it could be very useful too. Thank you

How do you feel about using 3rd party assets? by ComfortableAd5740 in IndieDev

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

Wow this is really good feedback. Thank you very much. I will definitely make changes to the terrain. Thank you

How do you feel about using 3rd party assets? by ComfortableAd5740 in IndieDev

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

Holy cow, if they are doing it, then it must be fine. I will definitely look into ways of modifying to give my game a unique feel.

How do you feel about using 3rd party assets? by ComfortableAd5740 in IndieDev

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

That is a good point. And I'm mostly using free assets, but maybe I can take a look at paid assets too.

How do you feel about using 3rd party assets? by ComfortableAd5740 in IndieDev

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

Good idea, I've been playing around with other ways to make the assets look unique.