Any cool C project to start with? by matthilde | tildeverse BBJ

>0 matthilde @ 2020/08/07 20:03

Hi,

I like to learn stuff by making projects and I would like to make a cool project in C to begin with but I don't have much ideas.

Any ideas or projects you have already done in C?

>1 Geo @ 2020/08/08 02:21

>>OP

I haven't actually finished it yet and it was originally in Java, but one cool project I've been working on recently has been a file downloader, but with the gimmick that it plays sounds in the background and dynamically changes those sounds based on download speed / status. So for example, if you're working on a large file with a good connection, it'd sound like a firehose. If the download speed dropped, the sound might change to a tapwater sink, or perhaps a garden hose, and if it was really slow, it might turn to a trickle or a gentle dribble. I figured it's a neat way to monitor your downloads without needing a pop up or any kind of visual distraction. C might make it a bit harder to implement than something like Java, but I imagine it's still totally doable!

Another idea worth exploring might be a basic emulator for an old system, like an original GameBoy emulator, if you enjoy digging into specs and stuff. Even if you only go so far as to emulate the bootscreen and/or a simple game like Tetris, it's pretty cool to think you can execute a game like that on a modern computer! :)

>2 matthilde @ 2020/08/08 18:24

The Gameboy emulation idea gave me an idea. Thanks anyways :D

>3 Geo @ 2020/08/17 22:44

>>2

No problem, glad it helped! :)

>4 ayko @ 2021/12/02 19:02

Hmm c is a kind a low level high level language so you shoud try coding stuff
thats closer to the os,a cool thing i found online is a shell like bash,also
vm stuff (basicly wyour own cpu arhitecture) is also a intresting idea.I like
networking so you can code some kind of server.idk :) just have fun!

>5 anonymous @ 2021/12/17 02:59

>>OP

You could also try making a CGI based game, all major tildes support CGI for their web server.
So all you have to do is write small C programs that can parse the CGI variables and generate and print an HTML page to the stdout.
HTML generation is hard, you could also go with Gemini CGI programming.
They are kinda the same.

>6 exxxxkc @ 2022/07/06 07:10

make your own build of suckless software

(that is how i start as using c btw)

>7 gtlsgamr @ 2022/07/08 18:02

>>OP

I am in the same boat! I started learning by writing a CGI script in C which functions as a guestbook/comments section for my website. Another I am working on tries to convert html to gemtext.

>8 anonymous @ 2022/08/25 19:56

>>1 

I think writing "malware" is a good introduction to C ... if you're interested in that sort of thing. 

https://github.com/0x00pf/0x00sec_code

This tutorial kinda walks you through things like creating droppers, key loggers, etc. 

Obviously, **don't do this to computers you don't have explicit permission to hack on.**

That said, you can learn a lot about file systems, the linux kernel, userland vs. kernelmode, etc. 

What this also prepares you for, again, if you're interested in that sort of thing, is malware analyis, reversing and other strange little oddities. It's fun if you're into it. :)

>9 anthk @ 2022/08/28 01:18

>>OP

For something completely different, learn 9front while you
code on plan9/9front's C.

Installing 9front in a VM is not a difficult task.

http://fqa.9front.org

Much simpler and easier than Unix' C. 
The book on programming for Plan9.

https://archive.org/details/plan9designintro

Different from Unix and POSIX standards, yes, but you 
can use your skills further on any Linux/BSD with
plan9port.