Tutorials

Programming, for all ages and all languages.
Schol-R-LEA

Tutorials

Post by Schol-R-LEA »

I was wondering, how many people here read the Scheme tutorial I wrote a while back, and what they thought of it. I was also wondering how many people were following the Language Design threads (Basis, Sibilance, and Obscene), and their opinions on those. I've been considering writing more things along these lines, and I wanted to know what people wanted help in most.

Keep in mind, any tutorials here are going to be really limited, given the post sizes here and other factors. They would be little more than a basic overview at most, esp. for a large topic. Any thoughts?
DennisCGc

Re:Tutorials

Post by DennisCGc »

Compilers and Interpreters
What do you mean with that ? How to use that compiler/interpreter, or how to write a compile/interpreter ?
Anyway, if this is made clear, I'm going to vote ;)
beyondsociety

Re:Tutorials

Post by beyondsociety »

I really like the scheme tutorial you wrote. At the moment Im trying to learn perl, but when the time comes, I'll give it a try. I have it bookmarked on my computer for further references. Keep up the good work.

Also, the posts on the language design threads is intresting. At the moment, I personly havent looked at them in a while. If I have time, I'll take another look at them and give you some incite.
Schol-R-LEA

Re:Tutorials

Post by Schol-R-LEA »

DennisCGc wrote:
Compilers and Interpreters
What do you mean with that ? How to use that compiler/interpreter, or how to write a compile/interpreter ?
Good point. I was thinking in terms of developing them, but something on how to use some of the more common development tools would be a really good idea. Something covering gcc, ld, and make in particualr would be useful, as questions about those arise fairly often (more in the OS forum, where the details of the compiling and linking are particularly crucial, but it's come up in General Programming as well).

Also, I'm not sure if the tutorials should be posted to the message board itself, esp. the longer ones; it might be better to host them somewhere and have a feedback thread here. I'm intending to eventually rewrite the Scheme tutorial, and I probably won't post it here as it is likely to be even longer than the original.
DennisCGc

Re:Tutorials

Post by DennisCGc »

Also, I'm not sure if the tutorials should be posted to the message board itself, esp. the longer ones; it might be better to host them somewhere and have a feedback thread here. I'm intending to eventually rewrite the Scheme tutorial, and I probably won't post it here as it is likely to be even longer than the original.
Of course, there's the possibility that I would host it ;)
Sure, if you mail it to me, or IM it to me, I can put it on my website ;)
Good point. I was thinking in terms of developing them, but something on how to use some of the more common development tools would be a really good idea. Something covering gcc, ld, and make in particualr would be useful, as questions about those arise fairly often (more in the OS forum, where the details of the compiling and linking are particularly crucial, but it's come up in General Programming as well).
I don't know what to prefer ;) , but if anyone here has some suggestions..., you could post them ;)
chris

Re:Tutorials

Post by chris »

I too enjoyed your Scheme tutorial. Personaly, I'd be interested in seeing compiler and interpreter tutorials, and C tutorials. I'm not talking about a "Learning C" tutorial, but more advanced stuff (pointers, memory management or something?). I'd have to admit that an Assembly tutorial would be nice too, but I'm probably asking too much :-\. Of course, in the end, it's entirely up to you.

I've been following the Lanaguage Design threads but personaly I'm not really interested in a BASIC-like systems programming language (and the others havn't been as active). I havn't had much time to get into language design myself (yet) because I'm still working on other stuff (Unix internals/programming, OS development). So much to do, so little time :(.

Suggestion: Maybe it would be better to find another method to display the tutorials instead of using posts. I see that the Wiki seemed to work well with the OS FAQ...
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:Tutorials

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 10:58 pm, edited 1 time in total.
DennisCGc

Re:Tutorials

Post by DennisCGc »

Well, as I can see, you all want to see the compiler development, right ?
Well, I'm pretty curious about that either ;)
So, if Schol-R-Lea will agree too... ;D
I don't think you should keep the tutorials as posts here on this forum. I think you should host them separately on an internet site (and of course link to them from this forum). There are plenty of free hosts out there (that is, if you are wanting to host the tutorials on a free server), it's just a matter of finding a good one. Since you're only going to be hosting tutorials, it shouldn't be much of a problem. The pages probably won't be picture crouded or offer any huge downloads, so bandwidth isn't a huge problem and since they'll probably be just plain-text HTML pages, space isn't that much of a problem either. I just suggest you look for a host that doesn't have too much advertising.
I already said that I can do the hosting, if it is wanted to have PHP, I also can arrange that ;) .
Schol-R-LEA

Re:Tutorials

Post by Schol-R-LEA »

OK, then a compiler tutorial it is. I'll have to give some thought on just how to write it, but it should be all good. Given what Perica said, I'll probably use a subset of C for both implementation and target language, though I am open to other suggestions (Python looks like it would be a good language to implement in, though it would likey be a bit slow). Also, I'll probably do an interpreter first, since that in some ways is easier and a lot of the material would apply equally to both.

I'll give some thought to a some tutorials on advanced C issues as well, though it would probably be a few separate monographs on specific issues (i.e., bit fields) rather than a single large tutorial. In all honesty, Solar may be a better choice to do those than I, though he seems to have his hands full. He'd definitely be a better choice when it comes to C++.
chris

Re:Tutorials

Post by chris »

I'd cast my vote for Python :)
elweird71

Re:Tutorials

Post by elweird71 »

Hi everybody! I'm one of new members here. :)

Deeply interested to learn how *compilers and interpreters* work, so i cast my vote for it.
AGI1122

Re:Tutorials

Post by AGI1122 »

chris wrote: I'd cast my vote for Python :)
Nobody voted for python... which means you didn't vote at the top of this topic. ;)
srg

Re:Tutorials

Post by srg »

The tutorial on compilers and interpreters would be very interesting!

I personally would also like to see a C++ one, as I would like to switch my application and applet prorgamming from Delphi to g++ and wxWidgets.

srg
chris

Re:Tutorials

Post by chris »

Chris Cromer wrote:
chris wrote: I'd cast my vote for Python :)
Nobody voted for python... which means you didn't vote at the top of this topic. ;)
I was refering to Schol-R-LEA's post just above mine.
mystran

Re:Tutorials

Post by mystran »

Hmmh. I could also write some thoughs at least, if not a complete tutorial on compiling Scheme/Lisp-like language, since it's somewhat different from compiling a C-like language.

That is, if anyone is interested ofcourse =)
If I write something, I'll promise to put a link here.

PS. A sticky "request a tutorial" thread might be nice.
Post Reply