Comments (2)
$> scc (fd -t f -e h -e c)
───────────────────────────────────────────────────────────────────────────────
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
C 297 106736 9116 10148 87472 15459
C Header 219 52709 4699 13038 34972 4346
───────────────────────────────────────────────────────────────────────────────
Total 516 159445 13815 23186 122444 19805
───────────────────────────────────────────────────────────────────────────────
Estimated Cost to Develop (organic) $4,206,585
Estimated Schedule Effort (organic) 23.74 months
Estimated People Required (organic) 15.74
───────────────────────────────────────────────────────────────────────────────
Processed 4902161 bytes, 4.902 megabytes (SI)
───────────────────────────────────────────────────────────────────────────────
According to scc
, the code base is 122k lines long. It's going to be a fun experience for those who want to dive in. But bear in mind that it won't be trivial, because while C can easily be translated by hand into Zig, Zig offers new features that you need to be aware of to simplify the software architecture.
I support this approach, because I'm doing it myself on a relatively small C project and it's an excellent learning exercise. I also think that translating your C code to Zig will allow you to discover new bugs and help you fix them! I wish you the best of luck!
from cdogs-sdl.
Cheers :) Do note this particular comment from Congus above:
Personally I wouldn't rewrite existing C parts into zig unless there are significant benefits, like memory safety, much simpler code.
The game is already feature-complete. This issue is mainly about making it capable of being extended with Zig contributions by getting the build pipeline in order.
from cdogs-sdl.
Related Issues (20)
- Check for shared ENet if USE_SHARED_ENET is set HOT 5
- Shift to another hasmap implementation from the deprecated `c_hashmap` HOT 2
- Wrong blood animation HOT 3
- Original Release Campaign? HOT 7
- CVE-apply:In Nanopb before versions 0.3.9.8 and 0.4.5, decoding a specifically formed message can cause invalid `free()` or `realloc()` calls if the message type contains an `oneof` field, and the `oneof` directly contains both a pointer field and a non-pointer field. HOT 1
- Arch Linux x86_64: Segfault on startup HOT 7
- Assets revamp
- Compass arrow points just below objective HOT 1
- Fix ubuntu/clang release build
- Build error with tinydir inlining HOT 7
- Crash with invalid config HOT 1
- Feature request: Stable network ports HOT 3
- Problem running itch.io version on Ubuntu 22.04 HOT 1
- 2.0 64-bit builds are missing .dll's HOT 1
- List of linux package managers where C-Dogs SDL is available HOT 1
- Re-evaluate OARS categorization HOT 1
- Use single channel for actor voices
- Add mission briefing menu in pause menu
- Segfault on startup in PlayMusic HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cdogs-sdl.