Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-07 Thread Henry Rich
=: (anonymous noun)" - Original Message - From: Henry Rich To: [email protected] Sent: Wednesday, October 5, 2016 3:58 PM Subject: Re: [Jprogramming] Early assignment WAS: Non-mutable arrays All I can say is, It doesn't work that way. (You have 2 statements, each with 2 version

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-07 Thread Erling Hellenäs
erstanding, is there a counter example to "There is no possible f such that f N differs from f N =: (anonymous noun)" - Original Message - From: Henry Rich To: [email protected] Sent: Wednesday, October 5, 2016 3:58 PM Subject: Re: [Jprogramming] Early assignment WAS: Non-

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread 'Pascal Jasmin' via Programming
ware.com Sent: Wednesday, October 5, 2016 11:21 PM Subject: Re: [Jprogramming] Early assignment WAS: Non-mutable arrays I have been assuming that by 'N' you meant 'any name'. And in that case, the statements are assuredly NOT the same. N =: value f N is different from f N =: v

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread Henry Rich
- Original Message - From: Henry Rich To: [email protected] Sent: Wednesday, October 5, 2016 8:31 PM Subject: Re: [Jprogramming] Early assignment WAS: Non-mutable arrays I am changing your statement to: "There is no possible f such that N =: (anonymous name) f N gives a differ

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread 'Pascal Jasmin' via Programming
lt, but (f N) cannot, unless it is (N =: f N). Logically though, (N =: f N =: 1) can be treated like (N =: f N). - Original Message - From: Henry Rich To: [email protected] Sent: Wednesday, October 5, 2016 8:31 PM Subject: Re: [Jprogramming] Early assignment WAS: Non-

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread Henry Rich
differs from f N =: (anonymous noun)" - Original Message - From: Henry Rich To: [email protected] Sent: Wednesday, October 5, 2016 3:58 PM Subject: Re: [Jprogramming] Early assignment WAS: Non-mutable arrays All I can say is, It doesn't work that way. (You have 2 statements, each

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread bill lam
e > precisely the anonymous "usecount" is freed) > > > > There is no possible f such that f N differs from f N =: (noun). ie. the > line is always identical to the 2 lines > > > > N =: (noun) > > f N > > > > > > > > > > -

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread 'Pascal Jasmin' via Programming
PM Subject: Re: [Jprogramming] Early assignment WAS: Non-mutable arrays All I can say is, It doesn't work that way. (You have 2 statements, each with 2 versions. All 4 statements are false.) Henry Rich On 10/5/2016 10:10 AM, 'Pascal Jasmin' via Programming wrote: > >> Assignment

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread Henry Rich
[email protected] Sent: Tuesday, October 4, 2016 10:42 PM Subject: Re: [Jprogramming] Early assignment WAS: Non-mutable arrays Yes, you're right, I misanalyzed. It goes like this: 1 2 3 starts with a usecount of 1, and a mark to indicate that the usecount should be decremented when t

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread Louis de Forcrand
a use count of 1 here, right after the assignment. (more >>> precisely the anonymous "usecount" is freed) >>> >>> There is no possible f such that f N differs from f N =: (noun). ie. the >>> line is always identical to the 2 lines >>> >>> N

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread Xiao-Yong Jin
I understand your argument. One needs to walk through the execution before knowing whether to make an early copy. I guess we can do it manually, if so desires, but how do you actually make a copy that has refcount 1 in J? The use case would be saving the old argument while letting the interpr

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread Henry Rich
one installer) - Original Message - From: Henry Rich To: [email protected] Sent: Tuesday, October 4, 2016 10:14 PM Subject: Re: [Jprogramming] Early assignment WAS: Non-mutable arrays Yes, this is executed in-place. In general, an assignment to a name whose value is not i

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread Louis de Forcrand
gt; On 10/4/2016 10:21 PM, 'Pascal Jasmin' via Programming wrote: >> this didn't seem to work in beta 12 (latest all in one installer) >> >> >> >> >> - Original Message - >> From: Henry Rich >> To: [email protected] &g

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread Henry Rich
entical to the 2 lines N =: (noun) f N - Original Message - From: Henry Rich To: [email protected] Sent: Tuesday, October 4, 2016 10:42 PM Subject: Re: [Jprogramming] Early assignment WAS: Non-mutable arrays Yes, you're right, I misanalyzed. It goes like this: 1 2 3 star

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-05 Thread 'Pascal Jasmin' via Programming
al Message - > From: Henry Rich > To: [email protected] > Sent: Tuesday, October 4, 2016 10:14 PM > Subject: Re: [Jprogramming] Early assignment WAS: Non-mutable arrays > > Yes, this is executed in-place. > > In general, an assignment to a name whose value is not

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-04 Thread Henry Rich
[email protected] Sent: Tuesday, October 4, 2016 10:14 PM Subject: Re: [Jprogramming] Early assignment WAS: Non-mutable arrays Yes, this is executed in-place. In general, an assignment to a name whose value is not in use in another name causes that value to become eligible for in-place

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-04 Thread 'Pascal Jasmin' via Programming
this didn't seem to work in beta 12 (latest all in one installer) - Original Message - From: Henry Rich To: [email protected] Sent: Tuesday, October 4, 2016 10:14 PM Subject: Re: [Jprogramming] Early assignment WAS: Non-mutable arrays Yes, this is executed in-place

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-04 Thread Henry Rich
th consistent results. - Original Message - From: Henry Rich To: [email protected] Sent: Tuesday, October 4, 2016 7:25 PM Subject: [Jprogramming] Early assignment WAS: Non-mutable arrays The whole point of operation in place is to avoid having to copy an in-placeable argument;

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-04 Thread 'Pascal Jasmin' via Programming
name to be safe", works ok, but above line in console can be edited and reapplied with consistent results. - Original Message - From: Henry Rich To: [email protected] Sent: Tuesday, October 4, 2016 7:25 PM Subject: [Jprogramming] Early assignment WAS: Non-mutable arrays

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-04 Thread bill lam
IMO the dependence of so many preconditions that affects the behavior is convoluted and unhelpful. Or at least these preconditions should be fine tuned or overrided by some 9!:53 options. On Oct 5, 2016 7:25 AM, "Henry Rich" wrote: > The whole point of operation in place is to avoid having to

Re: [Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-04 Thread Raul Miller
Whatever you go with, I think the dictionary should be updated to describe the new behavior. Perhaps we need a new supplement to the parsing&execution appendix? Thanks, -- Raul On Tue, Oct 4, 2016 at 7:25 PM, Henry Rich wrote: > The whole point of operation in place is to avoid having to cop

[Jprogramming] Early assignment WAS: Non-mutable arrays

2016-10-04 Thread Henry Rich
The whole point of operation in place is to avoid having to copy an in-placeable argument; copying the argument would not be a good solution. After hearing the screams and dodging the dead cats, I have some proposals: 1. Early assignment (which is what we'll call the act of assigning an interm