9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] just FYI
@ 2007-02-13 16:00 ron minnich
  2007-02-13 16:12 ` erik quanstrom
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: ron minnich @ 2007-02-13 16:00 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

this is how you do hello world on OLPC:
http://wiki.laptop.org/go/Sugar_Activity_Tutorial

thanks

ron


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

* Re: [9fans] just FYI
  2007-02-13 16:00 [9fans] just FYI ron minnich
@ 2007-02-13 16:12 ` erik quanstrom
  2007-02-13 20:49 ` Jack Johnson
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: erik quanstrom @ 2007-02-13 16:12 UTC (permalink / raw)
  To: 9fans

i prefer the brian kernighan's much less obfuscated b version:

	main(){
		extrn a, b, c;
		putchar(a); putchar(b); putchar(c); putchar('!*n');
	}

	a 'hell';
	b 'o, w';
	c 'orld';

the only thing that's not exactly obvious is how '!*n' is a newline.  

also, they clearly haven't been paying attention.  it's spelled with a ",".

- erik


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

* Re: [9fans] just FYI
  2007-02-13 16:00 [9fans] just FYI ron minnich
  2007-02-13 16:12 ` erik quanstrom
@ 2007-02-13 20:49 ` Jack Johnson
  2007-02-14  9:56   ` Abhey Shah
  2007-02-14  0:46 ` LiteStar numnums
  2007-02-14  9:59 ` [9fans] " app
  3 siblings, 1 reply; 6+ messages in thread
From: Jack Johnson @ 2007-02-13 20:49 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 2/13/07, ron minnich <rminnich@gmail.com> wrote:
> this is how you do hello world on OLPC:
> http://wiki.laptop.org/go/Sugar_Activity_Tutorial

What's the minimum Hello World in, say, Limbo using Tk for the dialog?

-Jack


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

* Re: [9fans] just FYI
  2007-02-13 16:00 [9fans] just FYI ron minnich
  2007-02-13 16:12 ` erik quanstrom
  2007-02-13 20:49 ` Jack Johnson
@ 2007-02-14  0:46 ` LiteStar numnums
  2007-02-14  9:59 ` [9fans] " app
  3 siblings, 0 replies; 6+ messages in thread
From: LiteStar numnums @ 2007-02-14  0:46 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Aren't these the same OLPC people that say modern developers use way
too much memory? I agree, but does anyone know the amount of memory
wasted by Python + SVG + GTK? I like python, but I'm not fooled about
it's size...

On 2/13/07, ron minnich <rminnich@gmail.com> wrote:
> this is how you do hello world on OLPC:
> http://wiki.laptop.org/go/Sugar_Activity_Tutorial
>
> thanks
>
> ron
>


-- 
If work and leisure are soon to be subordinated to this one utopian
principle -- absolute busyness -- then utopia and melancholy will come
to coincide: an age without conflict will dawn, perpetually busy --
and without consciousness.

 -- Günter Grass


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

* Re: [9fans] just FYI
  2007-02-13 20:49 ` Jack Johnson
@ 2007-02-14  9:56   ` Abhey Shah
  0 siblings, 0 replies; 6+ messages in thread
From: Abhey Shah @ 2007-02-14  9:56 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

how about for the inferno shell
sh
load std tk
pctl newpgrp
wid=${tk window 'Hello world'}
tk onscreen $wid
tk $wid update
while {} {tk winctl $wid ${recv $wid}} &

not quite the same, it doesn't have a button.
The actual code isn't hugely shorter it just seems like there is a  
whole load of other inconsistently formatted boilerplate stuff to do.


On 13 Feb 2007, at 20:49, Jack Johnson wrote:

> On 2/13/07, ron minnich <rminnich@gmail.com> wrote:
>> this is how you do hello world on OLPC:
>> http://wiki.laptop.org/go/Sugar_Activity_Tutorial
>
> What's the minimum Hello World in, say, Limbo using Tk for the dialog?
>
> -Jack
>



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

* [9fans] Re: just FYI
  2007-02-13 16:00 [9fans] just FYI ron minnich
                   ` (2 preceding siblings ...)
  2007-02-14  0:46 ` LiteStar numnums
@ 2007-02-14  9:59 ` app
  3 siblings, 0 replies; 6+ messages in thread
From: app @ 2007-02-14  9:59 UTC (permalink / raw)
  To: 9fans

On Feb 13, 10:54 pm, knapj...@gmail.com (Jack Johnson) wrote:
> On 2/13/07, ron minnich <rminn...@gmail.com> wrote:
>
> > this is how you do hello world on OLPC:
> >http://wiki.laptop.org/go/Sugar_Activity_Tutorial
>
> What's the minimum Hello World in, say, Limbo using Tk for the dialog?
>
> -Jack

Haven't been using Limbo lately, but my standard first program for Tcl/
Tk teaching was:

(run wish tcl interpreter with tk loaded, up pops a canvas and a
command line interpreter in two windows)

set a "button not clicked"
entry .field_in_default_window -textvariable a
pack .field_in_default_window
button .button_under_it -text "Click here" -command {set a "you
clicked"}
pack .button


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

end of thread, other threads:[~2007-02-14  9:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-13 16:00 [9fans] just FYI ron minnich
2007-02-13 16:12 ` erik quanstrom
2007-02-13 20:49 ` Jack Johnson
2007-02-14  9:56   ` Abhey Shah
2007-02-14  0:46 ` LiteStar numnums
2007-02-14  9:59 ` [9fans] " app

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).