Hacker Newsnew | past | comments | ask | show | jobs | submit | hyper_frog's commentslogin

I don't think its just, there's also the fact that if you're working with c or cpp or any systems level language, you typically do know how to read assembly because you've stumbled upon it for some reason, and if you're writing low level programs (which is typically what these languages are used for) you will definitely at some point need to know to read assembly and maybe even write some. But with LLMs the entire field has shifted. You don't need to know anything to write any language and you don't even need to have high level computer science knowledge nowadays to get something that works and the world increasingly just seems to want something that works.


Any reasons for not using odin? It seems great for gamedev


Odin has no destructors. That's a fatal flaw.


well neither does C or zig right? but zig and odin do offer defer, which should be good enough while maintaining simplicity right?


defer is not a proper replacement for destructors. One need to write it manually each time in each function where some cleanup is needed. It's easy to forget to do so or to do this in a wrong way. Destructors in the other hand are called automatically and all cleanup logic is written exactly once (within destructor body).


>One need to write it manually each time in each function where some cleanup is needed.

You can structure your code to not need cleanup in every function.

The biggest problem with destructors is, how do you handle errors? close() can fail you know?


Usually destructors can't fail. But for rare cases like with close() you can write a helper function (static method) which destroys the given object and returns an error if has one.


Is there a laptop that can outperform a macbook M4? Genuine question.


This project was inspired by a course offered by my university about the theory of computation. This got me interested in automata and other such machines and I wanted to play around and prototype with them. Although the project is still in a very immature state, I'd like to get suggestions about possible improvements and other ideas.

Thank you.



Oh alright, I wasn't familiar with it, my apologies


I'm working on a pixel art editor written in C++ with SDL2 and I'm looking for people who can contribute to this project. Please do keep in mind that, the project is very immature and doesn't have a proper name yet and things like that but the main focus for now is getting the first functional version out. Those who are interested can join the discord: https://discord.gg/2ZZPjT2R


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: