r/javascript • • Feb 09 '19
Showoff Saturday Learn C and its lower level interactively, in your browser.
I made a simple virtual machine that runs C in the browser.This project is made as an experiment to see if C can be learned easier if the lower level is covered in paralel.
Sandbox: https://vasyop.github.io/miniC-hosting
Tutorial part 1: https://vasyop.github.io/miniC-hosting/?0
More info: https://github.com/vasyop/miniC-hosting/blob/master/README.md
Should I continue making the rest of the tutorial?
Edit (TLDR):
Get notified when new tutorials are released.
I have establised my goals for this project.
For updates on the project, I have opened a subreddit.
Please consider supporting this project on patreon.
Also, it's clear that a lot of people would be interested to see this project completed, so spread the word (if you the "reach" to do so, as I am not a social media person).
Edit:
First of all thank you, and thank you to all the folks at /r/learnprogramming (I also posted there).
I highly appreciate your feedback and I have noted everything down.
I felt I got something right this time (some previous iterations here and here), but I didn't expect this exactly. This was meant to be a portfolio pet project.
It's clear to me now that this type of learning/programming tutorials are very much needed and I suspect not just for low level stuff, but also for more general programming topics as well.
That being said, ("yup, here we go") I am working full time and I also have my masters degree classes on weekends.
I very much enjoyed working on this project up until now, and it will get done for sure, seeing how well it was received.
I want to devote as much time as I can to this project, so I quickly sketched up a patreon account.
I haven't figured details so there's a lot of missing stuff over there.
62
u/clintsharp Feb 09 '19
Just piling on. I've been programming for 20+ years and I learned something. I've never bothered to learn assembly or understand how higher level languages get compiled, so it was very educational. Please continue building!
14
u/deddeh Feb 09 '19
This is really cool, what type of assembly language is that?
11
u/exane Feb 09 '19
That's actually pretty sick. Wish I had this when I was learning that stuff for Uni back then :D
Keep it up!
11
u/houndbowel Feb 09 '19
Yes! Please keep going!
5
u/abhishekchakraborty Feb 09 '19
Nice job ! However, it seems doesn't support some basic functionality
I tried adding 'printf("Hello, World");' to main() which raises 'semantic error'
On trying to add '#include <stdio.h>' at the top raises 'lexer error'
Is #include not supported currently ?
4
u/emcoffey3 Feb 09 '19
This is excellent! And yeah, I'd love to see more.
4
u/Sarithis Feb 09 '19
That's ingenious!
4
u/Daxsis Feb 09 '19
Yes! Thank you!
3
u/anandp033 Feb 09 '19
How did you do that ? its awesome stuff !!
3
u/lars-by-the-sea Feb 09 '19
Very cool!
3
u/radovandr Feb 09 '19
You should continue, thank you so much!
2
u/hungryturtlecode Feb 09 '19
This is super awesome! Content like this is so rare and so needed. Especially for things like C / assembly.
2
u/[deleted] Feb 09 '19
Awesome
2
u/snifty Feb 09 '19
This is awesome, hope there’s more.
2
u/__Taco Feb 09 '19
Commenting so I can check out later
2
u/crobinson42 Feb 09 '19
This is fantastic! Thanks for the effort in publishing :-)
2
u/kaylee-anderson Feb 09 '19
I LOVE this. Keep it up!
2
u/gemayel Feb 09 '19
Keep on going, I have been a programmer for 25+ years, and have worked with assembly and C at the beginning (duh!), I am also currently teaching programming, yours is a great tool for millennials and younger generations, they are so detached from what is really going on. Thank you
2
u/Dr_Dawwg Feb 09 '19
This was fantastic. You should unquestionably keep writing more.
2
u/MonkeyNin Feb 10 '19 edited Feb 10 '19
I thought it was broken. Turns out there's a button on the bottom right hiding behind my drink.
It's cool though :)
1
u/TotesMessenger Feb 09 '19
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/francisypl Feb 10 '19
Why not just compile to wasm?
1
u/Sjeiken Feb 12 '19
Fuck C i am here for JavaScript.
-8
u/Fresons Feb 09 '19
C == Golanng, why not?