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

Slightly off topic: Is D a good language for creating tiny windows or Linux executables? There is an upcoming game jam (4mb jam 2025) which gives extra points for game submissions <= 8KB. With c you can fit a window with graphics update in an executable of less than 900 bytes[0]. Granted it's using crinkler for linking which does some compression.

0: https://gist.github.com/ske2004/336d8cce8cd9db59d61ceb13c1ed...


Yes. Just use the “better C” mode


... which is not D any more though.


It's like saying "C is no longer C if you don't link with libc", it just is not true at all, and honestly, a pretty stupid thing to say


Instead of being an ass, maybe you can take the time to educate me why you think I'm wrong?

I think that at least the garbage collection not being available qualifies my statement as somewhat being true. For game development, as it's closer to what grand-parent asked, classes not being usable would also be an issue...


What essential features are missing for you?


For game development? I imagine having to use only structs but not classes would be something that forces a "non idiomatic D" experience. Dynamic arrays sound like something that's very useful for a game. I don't know, there are plenty of features that are incompatible with better C that makes D, D. Generally speaking, garbage collection would be the biggest in my opinion.


You can still use classes in BetterC - you just have to allocate them yourself. D recently acquired "placement new" which makes that more convenient.


Yeah this person is asking how to make the smallest executable. They don’t want garbage collection.


Garbage collection was about what I would be missing. I mentioned before what could be missing from OP's point of view.


Ok. I think the better C mode is cool and I think it’s worth a try for his interest and project.


I fully agree with you, but I think that if you present it as an option to somebody you should write a line or two about the potential downsides, so they have a better picture. Sorry if I was too abrupt in my criticism of your post. :)


Though no further work is being done on the original and the FLOSS forks aren't ready yet (soldank++ and opensoldat) the game is still playable on modern PCs and even free on steam ;) (Disclaimer: former maintainer)


I had no idea it was in steam but we used to play that game all the time. We had probably 10 or 15 guys playing in the library lol.

Thanks for making such a fun game!

I'll check it out


I wonder how much work it is to check if Windows was installed with an account and terminate the program in that case.


In the meantime the repository moved to: https://github.com/opensoldat/opensoldat After MM sold the game to someone else I felt like it would be better to make sure the name is different as the new owner had different plans and did not want to continue releasing the source code.

Later someone unknown hijacked the original url and copied an outdated version of the repository (you can see the mention of OpenSoldat.)


Thx i didnt know that. Was actually wondering about why 2.


FYI Soldat used/uses PascalScript and had no classes in the beginning (they where added later to the ScriptCore.)

It's still around. The FLOSS version is called OpenSoldat now (I plan to get it back on track eventually as it became unstable with Version 1.8).

Really enjoyed the quick compile times :)


I think lobster does this.

"Compile time reference counting / lifetime analysis / borrow checker."[1]

"Reference Counting with cycle detection at exit, 95% of reference count ops removed at compile time thanks to lifetime analysis."[1]

[1] https://strlen.com/lobster/


A more up to date site about browser privacy is https://privacytests.org/


Adding all the words to the top of each file[0] and saving every file resolved it for me. Just need to pay attention to not change the casing when modifing/adding code.

[0] https://github.com/Soldat/polyworks/blob/37aaf471646fe4773e6...


Depends on what you need. For simple stuff Wrick Editor[0] might be good enough.

[0] https://www.wickeditor.com/


You can also link to proprietary apps statically if you provide the object files: https://softwareengineering.stackexchange.com/questions/3127...


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

Search: