9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] pico
  2002-07-17 23:06 [9fans] pico Fariborz (Skip) Tavakkolian
@ 2002-07-17 21:57 ` Sam
  0 siblings, 0 replies; 15+ messages in thread
From: Sam @ 2002-07-17 21:57 UTC (permalink / raw)
  To: 9fans

On Wed, 17 Jul 2002, Fariborz (Skip) Tavakkolian wrote:

> is there anything like it in Plan9?
>
Does ed(1) count?

(no, there isn't)

Sam



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

* [9fans] pico
@ 2002-07-17 23:06 Fariborz (Skip) Tavakkolian
  2002-07-17 21:57 ` Sam
  0 siblings, 1 reply; 15+ messages in thread
From: Fariborz (Skip) Tavakkolian @ 2002-07-17 23:06 UTC (permalink / raw)
  To: 9fans

is there anything like it in Plan9?



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

* Re: [9fans] pico
  2008-01-31  7:41                       ` Bruce Ellis
@ 2008-02-05  3:01                         ` Pietro Gagliardi
  0 siblings, 0 replies; 15+ messages in thread
From: Pietro Gagliardi @ 2008-02-05  3:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Okay, I got everything fixed a few days ago and added some more
features (simple arrays, r "long/file/name.1", etc.). The new pico is
in the usual place.

I'm redesigning my website, so I'm going to have my software
available from there too when that's done.

On Jan 31, 2008, at 2:41 AM, Bruce Ellis wrote:

> more debugging, please tell us about it.  yawn.
>
> On Jan 31, 2008 10:55 AM, Pietro Gagliardi <pietro10@mac.com> wrote:
>>
>> Well, I got the memory tampering bugs fixed, but a black and white
>> image now
>> does not show correctly. Gonna go back and check and fix. Will
>> report when I
>> put a new version up.
>>
>>
>>
>> On Jan 30, 2008, at 6:42 PM, Pietro Gagliardi wrote:
>>
>> What do you think I've been doing? :-)
>>
>> The problem seems to be in run(), because after run() returns,
>> poolcheck
>> fails. I'll go check it out.
>>
>> On Jan 30, 2008, at 1:53 AM, Bruce Ellis wrote:
>>
>> work it out.  it's called debugging.
>>
>> brucee
>>
>>


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

* Re: [9fans] pico
  2008-01-30 23:55                     ` Pietro Gagliardi
@ 2008-01-31  7:41                       ` Bruce Ellis
  2008-02-05  3:01                         ` Pietro Gagliardi
  0 siblings, 1 reply; 15+ messages in thread
From: Bruce Ellis @ 2008-01-31  7:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

more debugging, please tell us about it.  yawn.

On Jan 31, 2008 10:55 AM, Pietro Gagliardi <pietro10@mac.com> wrote:
>
> Well, I got the memory tampering bugs fixed, but a black and white image now
> does not show correctly. Gonna go back and check and fix. Will report when I
> put a new version up.
>
>
>
> On Jan 30, 2008, at 6:42 PM, Pietro Gagliardi wrote:
>
> What do you think I've been doing? :-)
>
> The problem seems to be in run(), because after run() returns, poolcheck
> fails. I'll go check it out.
>
> On Jan 30, 2008, at 1:53 AM, Bruce Ellis wrote:
>
> work it out.  it's called debugging.
>
> brucee
>
>


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

* Re: [9fans] pico
  2008-01-30 23:42                   ` Pietro Gagliardi
@ 2008-01-30 23:55                     ` Pietro Gagliardi
  2008-01-31  7:41                       ` Bruce Ellis
  0 siblings, 1 reply; 15+ messages in thread
From: Pietro Gagliardi @ 2008-01-30 23:55 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

Well, I got the memory tampering bugs fixed, but a black and white  
image now does not show correctly. Gonna go back and check and fix.  
Will report when I put a new version up.

On Jan 30, 2008, at 6:42 PM, Pietro Gagliardi wrote:

> What do you think I've been doing? :-)
>
> The problem seems to be in run(), because after run() returns,  
> poolcheck fails. I'll go check it out.
>
> On Jan 30, 2008, at 1:53 AM, Bruce Ellis wrote:
>
>> work it out.  it's called debugging.
>>
>> brucee
>


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

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

* Re: [9fans] pico
  2008-01-30  6:53                 ` Bruce Ellis
@ 2008-01-30 23:42                   ` Pietro Gagliardi
  2008-01-30 23:55                     ` Pietro Gagliardi
  0 siblings, 1 reply; 15+ messages in thread
From: Pietro Gagliardi @ 2008-01-30 23:42 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

What do you think I've been doing? :-)

The problem seems to be in run(), because after run() returns,  
poolcheck fails. I'll go check it out.

On Jan 30, 2008, at 1:53 AM, Bruce Ellis wrote:

> work it out.  it's called debugging.
>
> brucee


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

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

* Re: [9fans] pico
  2008-01-30  1:13               ` Pietro Gagliardi
@ 2008-01-30  6:53                 ` Bruce Ellis
  2008-01-30 23:42                   ` Pietro Gagliardi
  0 siblings, 1 reply; 15+ messages in thread
From: Bruce Ellis @ 2008-01-30  6:53 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

work it out.  it's called debugging.

brucee

On Jan 30, 2008 12:13 PM, Pietro Gagliardi <pietro10@mac.com> wrote:
> In this case, it only told me where the program crashed, which told
> me nothing on why (because a different line or a color image worked).
>
>
> On Jan 29, 2008, at 5:46 PM, Russ Cox wrote:
>
> >> I get something that ends in "(double-free?)" and then the program
> >> crashes, but something like
> >
> > This usually means you have freed the same pointer twice
> > or you are passing a pointer to free that was not returned
> > by malloc.  If you run acid to get a stack trace to see the
> > context of the free, that is often enough to identify the
> > problem.
> >
> > % acid pid
> > acid: stk()
> > ...
> > ^D
> > %
> >
> > Russ
> >
>
>


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

* Re: [9fans] pico
  2008-01-29 22:46             ` Russ Cox
@ 2008-01-30  1:13               ` Pietro Gagliardi
  2008-01-30  6:53                 ` Bruce Ellis
  0 siblings, 1 reply; 15+ messages in thread
From: Pietro Gagliardi @ 2008-01-30  1:13 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

In this case, it only told me where the program crashed, which told  
me nothing on why (because a different line or a color image worked).

On Jan 29, 2008, at 5:46 PM, Russ Cox wrote:

>> I get something that ends in "(double-free?)" and then the program
>> crashes, but something like
>
> This usually means you have freed the same pointer twice
> or you are passing a pointer to free that was not returned
> by malloc.  If you run acid to get a stack trace to see the
> context of the free, that is often enough to identify the
> problem.
>
> % acid pid
> acid: stk()
> ...
> ^D
> %
>
> Russ
>


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

* Re: [9fans] pico
  2008-01-29 20:35           ` Pietro Gagliardi
@ 2008-01-29 22:46             ` Russ Cox
  2008-01-30  1:13               ` Pietro Gagliardi
  0 siblings, 1 reply; 15+ messages in thread
From: Russ Cox @ 2008-01-29 22:46 UTC (permalink / raw)
  To: 9fans

> I get something that ends in "(double-free?)" and then the program  
> crashes, but something like

This usually means you have freed the same pointer twice
or you are passing a pointer to free that was not returned
by malloc.  If you run acid to get a stack trace to see the
context of the free, that is often enough to identify the
problem.

% acid pid
acid: stk()
...
^D
%

Russ


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

* Re: [9fans] pico
  2008-01-29 20:33         ` Pietro Gagliardi
@ 2008-01-29 20:35           ` Pietro Gagliardi
  2008-01-29 22:46             ` Russ Cox
  0 siblings, 1 reply; 15+ messages in thread
From: Pietro Gagliardi @ 2008-01-29 20:35 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

This only happens with black/white images, I ran a color image (boyd)  
through and it worked fine. I think it's with the run function...

On Jan 29, 2008, at 3:33 PM, Pietro Gagliardi wrote:

> In the latest update, I tried adding differentiating between color  
> and b/w images. However, I can't test anything because every time I  
> try a line like
>
> 	x new = dennis
>
> I get something that ends in "(double-free?)" and then the program  
> crashes, but something like
>
> 	x new
> 	x new =
>
> do call the error() function. The lexer did not change since I  
> started this update, but it did change when I improved symbol  
> handling.
>
> On Jan 29, 2008, at 12:30 AM, Bruce Ellis wrote:
>
>> well i agree that russ did a good job but JITs are fun and often
>> make things 10 times faster.
>>
>> brucee
>>
>> On Jan 29, 2008 11:30 AM, Pietro Gagliardi <pietro10@mac.com> wrote:
>>> Wow, that's very impressive!
>>>
>>>        open: /tmp/something does not exist (2x)
>>>        no image lerp
>>>        no image doug
>>>
>>> But you have a preview, which I was going to add soon.
>>>
>>> I am sticking with my code interpreter because I know how to use one
>>> (I toiled over hoc. and fossil ate my code up last December) and it
>>> doesn't require hooking to a C compiler. I do like the preprocessor
>>> idea though.
>>>
>>>
>>> On Jan 28, 2008, at 6:36 PM, Russ Cox wrote:
>>>
>>>>> Byron Rakitzis (of posix rc fame) produced a version popi with the
>>>>> JIT
>>>>> compiler, though sadly his where for cpus which are common cpus
>>>>> these days.
>>>>
>>>> Computers and compilers are fast enough now
>>>> that you can get away with just feeding code
>>>> into a C compiler instead of writing a full JIT.
>>>> And there's no porting to do!
>>>>
>>>> I just put a pico on sources that does this - 738 lines,
>>>> not many of which are the "JIT".
>>>>
>>>> 9fs sources
>>>> cd /n/sources/contrib/rsc/pico
>>>> mk demo
>>>>
>>>> Russ
>>>>
>>>
>>>
>


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

* Re: [9fans] pico
  2008-01-29  5:30       ` Bruce Ellis
@ 2008-01-29 20:33         ` Pietro Gagliardi
  2008-01-29 20:35           ` Pietro Gagliardi
  0 siblings, 1 reply; 15+ messages in thread
From: Pietro Gagliardi @ 2008-01-29 20:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

In the latest update, I tried adding differentiating between color  
and b/w images. However, I can't test anything because every time I  
try a line like

	x new = dennis

I get something that ends in "(double-free?)" and then the program  
crashes, but something like

	x new
	x new =

do call the error() function. The lexer did not change since I  
started this update, but it did change when I improved symbol handling.

On Jan 29, 2008, at 12:30 AM, Bruce Ellis wrote:

> well i agree that russ did a good job but JITs are fun and often
> make things 10 times faster.
>
> brucee
>
> On Jan 29, 2008 11:30 AM, Pietro Gagliardi <pietro10@mac.com> wrote:
>> Wow, that's very impressive!
>>
>>        open: /tmp/something does not exist (2x)
>>        no image lerp
>>        no image doug
>>
>> But you have a preview, which I was going to add soon.
>>
>> I am sticking with my code interpreter because I know how to use one
>> (I toiled over hoc. and fossil ate my code up last December) and it
>> doesn't require hooking to a C compiler. I do like the preprocessor
>> idea though.
>>
>>
>> On Jan 28, 2008, at 6:36 PM, Russ Cox wrote:
>>
>>>> Byron Rakitzis (of posix rc fame) produced a version popi with the
>>>> JIT
>>>> compiler, though sadly his where for cpus which are common cpus
>>>> these days.
>>>
>>> Computers and compilers are fast enough now
>>> that you can get away with just feeding code
>>> into a C compiler instead of writing a full JIT.
>>> And there's no porting to do!
>>>
>>> I just put a pico on sources that does this - 738 lines,
>>> not many of which are the "JIT".
>>>
>>> 9fs sources
>>> cd /n/sources/contrib/rsc/pico
>>> mk demo
>>>
>>> Russ
>>>
>>
>>


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

* Re: [9fans] pico
  2008-01-29  0:30     ` Pietro Gagliardi
@ 2008-01-29  5:30       ` Bruce Ellis
  2008-01-29 20:33         ` Pietro Gagliardi
  0 siblings, 1 reply; 15+ messages in thread
From: Bruce Ellis @ 2008-01-29  5:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

well i agree that russ did a good job but JITs are fun and often
make things 10 times faster.

brucee

On Jan 29, 2008 11:30 AM, Pietro Gagliardi <pietro10@mac.com> wrote:
> Wow, that's very impressive!
>
>        open: /tmp/something does not exist (2x)
>        no image lerp
>        no image doug
>
> But you have a preview, which I was going to add soon.
>
> I am sticking with my code interpreter because I know how to use one
> (I toiled over hoc. and fossil ate my code up last December) and it
> doesn't require hooking to a C compiler. I do like the preprocessor
> idea though.
>
>
> On Jan 28, 2008, at 6:36 PM, Russ Cox wrote:
>
> >> Byron Rakitzis (of posix rc fame) produced a version popi with the
> >> JIT
> >> compiler, though sadly his where for cpus which are common cpus
> >> these days.
> >
> > Computers and compilers are fast enough now
> > that you can get away with just feeding code
> > into a C compiler instead of writing a full JIT.
> > And there's no porting to do!
> >
> > I just put a pico on sources that does this - 738 lines,
> > not many of which are the "JIT".
> >
> > 9fs sources
> > cd /n/sources/contrib/rsc/pico
> > mk demo
> >
> > Russ
> >
>
>


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

* Re: [9fans] pico
  2008-01-28 23:36   ` Russ Cox
@ 2008-01-29  0:30     ` Pietro Gagliardi
  2008-01-29  5:30       ` Bruce Ellis
  0 siblings, 1 reply; 15+ messages in thread
From: Pietro Gagliardi @ 2008-01-29  0:30 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Wow, that's very impressive!

	open: /tmp/something does not exist (2x)
	no image lerp
	no image doug

But you have a preview, which I was going to add soon.

I am sticking with my code interpreter because I know how to use one  
(I toiled over hoc. and fossil ate my code up last December) and it  
doesn't require hooking to a C compiler. I do like the preprocessor  
idea though.

On Jan 28, 2008, at 6:36 PM, Russ Cox wrote:

>> Byron Rakitzis (of posix rc fame) produced a version popi with the  
>> JIT
>> compiler, though sadly his where for cpus which are common cpus  
>> these days.
>
> Computers and compilers are fast enough now
> that you can get away with just feeding code
> into a C compiler instead of writing a full JIT.
> And there's no porting to do!
>
> I just put a pico on sources that does this - 738 lines,
> not many of which are the "JIT".
>
> 9fs sources
> cd /n/sources/contrib/rsc/pico
> mk demo
>
> Russ
>


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

* Re: [9fans] pico
  2008-01-27 19:29 ` [9fans] pico Steve Simon
@ 2008-01-28 23:36   ` Russ Cox
  2008-01-29  0:30     ` Pietro Gagliardi
  0 siblings, 1 reply; 15+ messages in thread
From: Russ Cox @ 2008-01-28 23:36 UTC (permalink / raw)
  To: 9fans

> Byron Rakitzis (of posix rc fame) produced a version popi with the JIT
> compiler, though sadly his where for cpus which are common cpus these days.

Computers and compilers are fast enough now
that you can get away with just feeding code
into a C compiler instead of writing a full JIT.
And there's no porting to do!

I just put a pico on sources that does this - 738 lines,
not many of which are the "JIT".

9fs sources
cd /n/sources/contrib/rsc/pico
mk demo

Russ


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

* [9fans] pico
  2008-01-27 18:55 [9fans] How to read/write pixels from Memimage Pietro Gagliardi
@ 2008-01-27 19:29 ` Steve Simon
  2008-01-28 23:36   ` Russ Cox
  0 siblings, 1 reply; 15+ messages in thread
From: Steve Simon @ 2008-01-27 19:29 UTC (permalink / raw)
  To: 9fans

FYI

Byron Rakitzis (of posix rc fame) produced a version popi with the JIT
compiler, though sadly his where for cpus which are common cpus these days.

Also possibly of interest is the paper from the 10th edition manual
http://plan9.bell-labs.com/10thEdMan/pico.pdf

And a few fun pictures that where generated
http://plan9.bell-labs.com/10thEdMan/v2pix.html

-Steve


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

end of thread, other threads:[~2008-02-05  3:01 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-17 23:06 [9fans] pico Fariborz (Skip) Tavakkolian
2002-07-17 21:57 ` Sam
2008-01-27 18:55 [9fans] How to read/write pixels from Memimage Pietro Gagliardi
2008-01-27 19:29 ` [9fans] pico Steve Simon
2008-01-28 23:36   ` Russ Cox
2008-01-29  0:30     ` Pietro Gagliardi
2008-01-29  5:30       ` Bruce Ellis
2008-01-29 20:33         ` Pietro Gagliardi
2008-01-29 20:35           ` Pietro Gagliardi
2008-01-29 22:46             ` Russ Cox
2008-01-30  1:13               ` Pietro Gagliardi
2008-01-30  6:53                 ` Bruce Ellis
2008-01-30 23:42                   ` Pietro Gagliardi
2008-01-30 23:55                     ` Pietro Gagliardi
2008-01-31  7:41                       ` Bruce Ellis
2008-02-05  3:01                         ` Pietro Gagliardi

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