9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Basic limbo programming help
@ 2015-06-27  4:58 Roswell Grey
  2015-06-27 10:35 ` Charles Forsyth
  0 siblings, 1 reply; 3+ messages in thread
From: Roswell Grey @ 2015-06-27  4:58 UTC (permalink / raw)
  To: 9fans

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

Hello fellow 9fans! I'm currently trying to learn limbo programming for fun
and profit. I'm experienced in java and other languages, but I'd like to
learn limbo because I want to (wait for it, drumroll please!) build a
distributed agent-based system. The agents themselves aren't anything
complicated; I've already written a prototype in java. However, limbo
offers a vastly superior communications system than java (and windows for
that matter), so I believe inferno is going to be a great choice in the
desired platform. However, first thing's first, is learning the language.
So, I'm reading "A descent into Limbo." And the first program example runs
fine. However, the second, the graphical hello world, does not. I'm having
a problem with the line:

t := tk->toplevel(ctxt.screen "");

The compiler is telling me that screen isn't a reference of ctxt, and it
expected display instead. But if I change the reference from context to
display, well... It will compile and run, but I don't get a button. The
example pictures show a different inferno button than what is in the
current version, so maybe it's an outdated example? Or is ctxt really the
author telling me "don't copy and paste, think about what goes here!"
Because I'm finding those hinted in other example codes as well. So, if
there are any limbo programmers out there, would you mind giving me a hand?
Thanks!

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

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

* Re: [9fans] Basic limbo programming help
  2015-06-27  4:58 [9fans] Basic limbo programming help Roswell Grey
@ 2015-06-27 10:35 ` Charles Forsyth
  2015-06-27 13:38   ` Charles Forsyth
  0 siblings, 1 reply; 3+ messages in thread
From: Charles Forsyth @ 2015-06-27 10:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

On 27 June 2015 at 05:58, Roswell Grey <orangecalx01@gmail.com> wrote:

> So, if there are any limbo programmers out there, would you mind giving me
> a hand?


I'll have a look at your example. The online doc was tested at the time,
but perhaps something else changed after that.

There's a dedicated Google group for Inferno/Limbo
https://groups.google.com/forum/#!forum/inferno-os

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

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

* Re: [9fans] Basic limbo programming help
  2015-06-27 10:35 ` Charles Forsyth
@ 2015-06-27 13:38   ` Charles Forsyth
  0 siblings, 0 replies; 3+ messages in thread
From: Charles Forsyth @ 2015-06-27 13:38 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs, inferno-os

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

On 27 June 2015 at 11:35, Charles Forsyth <charles.forsyth@gmail.com> wrote:

> The online doc was tested at the time, but perhaps something else changed
> after that.


Use the examples in /doc/descent/descent.pdf (/doc/descent/descent.ms),
which was updated to reflect language and window system changes.
The html version online wasn't updated for some reason, but I'll see to
that.

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

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

end of thread, other threads:[~2015-06-27 13:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-27  4:58 [9fans] Basic limbo programming help Roswell Grey
2015-06-27 10:35 ` Charles Forsyth
2015-06-27 13:38   ` Charles Forsyth

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