Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #50911

Re: Rosetta Code: Zig-zag matrix

Path csiph.com!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Paul Rubin <no.email@nospam.invalid>
Newsgroups comp.lang.forth
Subject Re: Rosetta Code: Zig-zag matrix
Date Mon, 12 Sep 2016 13:12:48 -0700
Organization A noiseless patient Spider
Lines 8
Message-ID <87y42wg9mn.fsf@jester.gateway.pace.com> (permalink)
References <nr558f$3l8$1@dont-email.me> <87oa3thfmd.fsf@jester.gateway.pace.com> <nr64qr$jbm$1@cherry.spenarnc.xs4all.nl>
Mime-Version 1.0
Content-Type text/plain
Injection-Info mx02.eternal-september.org; posting-host="590ea01354cf4bcbcd857d7ebbd88128"; logging-data="6012"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HHC7tOeBzP7JgGvKSfDi8"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Cancel-Lock sha1:13XCoqVnpmP8+HXkJdEYpm6R3U0= sha1:Prjg4t2z0MwB3dIgn1j58YsRZ/0=
Xref csiph.com comp.lang.forth:50911

Show key headers only | View raw


albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) writes:
> That is not enough context.
> Remember most of us have WJ kill-filed.

He posted dozens of lines of crazy Ruby code that built up that table as
a matrix in memory before printing it, i.e. using memory space quadratic
in the number of rows.  Mine used constant memory and was 8 lines of
Forth, calculating and printing the numbers on the fly.

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Rosetta Code: Zig-zag matrix "WJ" <w_a_x_man@yahoo.com> - 2016-09-12 02:52 +0000
  Re: Rosetta Code: Zig-zag matrix Paul Rubin <no.email@nospam.invalid> - 2016-09-11 22:05 -0700
    Re: Rosetta Code: Zig-zag matrix albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-09-12 13:50 +0200
      Re: Rosetta Code: Zig-zag matrix Paul Rubin <no.email@nospam.invalid> - 2016-09-12 13:12 -0700
        Re: Rosetta Code: Zig-zag matrix albert@cherry.spenarnc.xs4all.nl (Albert van der Horst) - 2016-09-12 22:38 +0200
          Re: Rosetta Code: Zig-zag matrix Paul Rubin <no.email@nospam.invalid> - 2016-09-12 14:15 -0700

csiph-web