9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] Tips or guides to start programming on 9front?
@ 2024-10-22 15:27 Jacobo Da Riva Muñoz
  2024-10-22 17:15 ` Romano
  2024-10-23 17:31 ` Noam Preil
  0 siblings, 2 replies; 7+ messages in thread
From: Jacobo Da Riva Muñoz @ 2024-10-22 15:27 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 282 bytes --]

Hi!

I want to learn a c programing on 9front. I know the basic about C (I studied it over two decades ago) and I've read some man pages, and some code. I started some little programs to do some basic things... Is there any tips or any guide to use to learn more about?

Regards

[-- Attachment #2: Type: text/html, Size: 353 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Tips or guides to start programming on 9front?
  2024-10-22 15:27 [9front] Tips or guides to start programming on 9front? Jacobo Da Riva Muñoz
@ 2024-10-22 17:15 ` Romano
  2024-10-23  9:01   ` umbraticus
  2024-10-23 17:31 ` Noam Preil
  1 sibling, 1 reply; 7+ messages in thread
From: Romano @ 2024-10-22 17:15 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 425 bytes --]

Maybe this will be helpful: https://wiki.9front.org/programming

On Tue, Oct 22, 2024, at 8:27 AM, Jacobo Da Riva Muñoz wrote:
> Hi!
> 
> I want to learn a c programing on 9front. I know the basic about C (I studied it over two decades ago) and I've read some man pages, and some code. I started some little programs to do some basic things... Is there any tips or any guide to use to learn more about?
> 
> Regards

[-- Attachment #2: Type: text/html, Size: 839 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Tips or guides to start programming on 9front?
  2024-10-22 17:15 ` Romano
@ 2024-10-23  9:01   ` umbraticus
  2024-10-23 10:18     ` sirjofri
  0 siblings, 1 reply; 7+ messages in thread
From: umbraticus @ 2024-10-23  9:01 UTC (permalink / raw)
  To: 9front

If you want to do graphical stuff,
Amavect wrote some nice docs:

http://wiki.9front.org/libdraw-tips
http://wiki.9front.org/programming-gui

Other than that, just make yourself cozy.
Use a generic mkfile in your src dir like:

</$objtype/mkfile
TARG = `{ls | sed -n 's/\.c$//p'}
BIN = /$objtype/bin
</sys/src/cmd/mkmany

so you can just touch newproj.c and have a
quick mk 6.newproj && 6.newproj cycle,
then hook it straight into sam:

^echo w; window -cd src 'mk 6.newproj && 6.newproj; rc'

add it to the menu with the new M command
and you have a nice tight workflow. Get used
to the conventions. After a few basic programs,
the traditional learner project is to write a filesystem.

umbraticus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Tips or guides to start programming on 9front?
  2024-10-23  9:01   ` umbraticus
@ 2024-10-23 10:18     ` sirjofri
  0 siblings, 0 replies; 7+ messages in thread
From: sirjofri @ 2024-10-23 10:18 UTC (permalink / raw)
  To: 9front

23.10.2024 11:03:12 umbraticus@prosimetrum.com:
> </$objtype/mkfile
> TARG = `{ls | sed -n 's/\.c$//p'}
> BIN = /$objtype/bin
> </sys/src/cmd/mkmany

I also use this script a lot:
https://sirjofri.de/oat/rc/mkonemk
(There's also mkmanymk for multiple programs and mkwikifs for wikis)

sirjofri

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Tips or guides to start programming on 9front?
  2024-10-22 15:27 [9front] Tips or guides to start programming on 9front? Jacobo Da Riva Muñoz
  2024-10-22 17:15 ` Romano
@ 2024-10-23 17:31 ` Noam Preil
  2024-10-23 17:48   ` adventures in9
  1 sibling, 1 reply; 7+ messages in thread
From: Noam Preil @ 2024-10-23 17:31 UTC (permalink / raw)
  To: 9front

I'd say, start by reading the system documentation / papers, the intro
manpages, and figuring out what you want to work on, and then go from
there.

Basically, "just do it," but... figure out what you want to do, then
what you need to know to do that, then ask specific questions here or in
the grid or in #cat-v, and experiment and play around :)

- Noam Preil

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Tips or guides to start programming on 9front?
  2024-10-23 17:31 ` Noam Preil
@ 2024-10-23 17:48   ` adventures in9
  2024-10-24  7:24     ` Jacobo Da Riva Muñoz
  0 siblings, 1 reply; 7+ messages in thread
From: adventures in9 @ 2024-10-23 17:48 UTC (permalink / raw)
  To: 9front

This book is a solid intro to programming in a Plan 9 environment.

http://doc.cat-v.org/plan_9/9.intro.pdf

Covers some basic system libraries, how the compilers and linkers
work, touches on using acid for debugging, and a little graphical
stuff.

Besides the man pages and the papers in /sys/doc, the source code
itself is really good.

On Wed, Oct 23, 2024 at 10:35 AM Noam Preil <noam@pixelhero.dev> wrote:
>
> I'd say, start by reading the system documentation / papers, the intro
> manpages, and figuring out what you want to work on, and then go from
> there.
>
> Basically, "just do it," but... figure out what you want to do, then
> what you need to know to do that, then ask specific questions here or in
> the grid or in #cat-v, and experiment and play around :)
>
> - Noam Preil

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [9front] Tips or guides to start programming on 9front?
  2024-10-23 17:48   ` adventures in9
@ 2024-10-24  7:24     ` Jacobo Da Riva Muñoz
  0 siblings, 0 replies; 7+ messages in thread
From: Jacobo Da Riva Muñoz @ 2024-10-24  7:24 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 962 bytes --]

Hi,

Thanks to all!!!!



El 23 de octubre de 2024 19:48:57 CEST, adventures in9 <adventuresin9@gmail.com> escribió:
>This book is a solid intro to programming in a Plan 9 environment.
>
>http://doc.cat-v.org/plan_9/9.intro.pdf
>
>Covers some basic system libraries, how the compilers and linkers
>work, touches on using acid for debugging, and a little graphical
>stuff.
>
>Besides the man pages and the papers in /sys/doc, the source code
>itself is really good.
>
>On Wed, Oct 23, 2024 at 10:35 AM Noam Preil <noam@pixelhero.dev> wrote:
>>
>> I'd say, start by reading the system documentation / papers, the intro
>> manpages, and figuring out what you want to work on, and then go from
>> there.
>>
>> Basically, "just do it," but... figure out what you want to do, then
>> what you need to know to do that, then ask specific questions here or in
>> the grid or in #cat-v, and experiment and play around :)
>>
>> - Noam Preil

[-- Attachment #2: Type: text/html, Size: 1509 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-24  7:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-22 15:27 [9front] Tips or guides to start programming on 9front? Jacobo Da Riva Muñoz
2024-10-22 17:15 ` Romano
2024-10-23  9:01   ` umbraticus
2024-10-23 10:18     ` sirjofri
2024-10-23 17:31 ` Noam Preil
2024-10-23 17:48   ` adventures in9
2024-10-24  7:24     ` Jacobo Da Riva Muñoz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).