Here's another draft. I do not know if anyone else has been able to
run this code (needs j602 and opengl), or cares to, but this is as
much an attempt on my part to resolve emailing issues as it is to
explain or propagate the code.
Steps I have taken here include making sure no lines are longer
Those numbers are from the mouse move event. They are not particularly
meaningful and can be ignored.
I've mostly been playing with the slider on the left, which represents
the position of the visible slice on the white/black axis (white
should be with the slider all the way to the top).
Thanks,
Galaxy if I turn it sideways.
Not bad the otherway round either.
On Dec 15, 2013 5:43 AM, Raul Miller rauldmil...@gmail.com wrote:
Here's another draft. I do not know if anyone else has been able to
run this code (needs j602 and opengl), or cares to, but this is as
much an attempt on my part
symmetry is not a problem.
NB. pick next corner based on closeness:
choose=: cdr #~ [: (= ./) rms@(cdr -1 {:@:car)
--
Raul
On Sun, Dec 15, 2013 at 7:27 PM, Raul Miller rauldmil...@gmail.com wrote:
On Sun, Dec 15, 2013 at 5:56 PM, Don Kelly d...@shaw.ca wrote:
And that's what this -@^.@rms bit
On Sun, Dec 15, 2013 at 5:56 PM, Don Kelly d...@shaw.ca wrote:
And that's what this -@^.@rms bit is doing - finding that angle.
What you have noted threw me (NB.root mean square)isn't that but is a root
(sum of squares) -really a 'distance'.
(on a plane for the white-black point fixed)
On Mon, Dec 16, 2013 at 4:42 PM, Dan Bron j...@bron.us wrote:
I know there are subtle and beautiful connections between the trigonometric
and exponential functions, and the e hidden in r. is one expression of
that. But I'm still not seeing the fundamental physical interpretation.
In other
^ 2
7.38906
(%!i.40) p. 2
7.38906
(^ = (%!i.40)p.) 0j1p1
1
I'd just use ^
--
Raul
On Sat, Dec 21, 2013 at 5:43 PM, km k...@math.uh.edu wrote:
Verb exp below uses the series for monadic ^ to calculate ^ y . Can you
remind me how to do exp tacitly? You may omit the clean
On Sun, Dec 22, 2013 at 10:50 AM, Roger Hui rogerhui.can...@gmail.com wrote:
I expect exp can be improved. The details are left as an exercise for the
reader. :-)
And, perhaps, the concept of what improved means can be an exercise
for the reader? Here, I'll optimize for useless accuracy (or at
On 12/22/2013 3:27 AM, km wrote:
Thanks, Raul, for a cool solution. I'm still interested in tacitly
terminating a series when its partial sums stop changing. --Kip
Sent from my iPad
On Dec 22, 2013, at 12:34 AM, Raul Miller rauldmil...@gmail.com wrote:
^ 2
7.38906
(%!i.40) p. 2
I'd like to note an oddity about numbers and their words:
0 First
1 Second
2 Third
3 Fourth
The numerals are ordinal numbers while the words are canonical numbers?
Anyways, with that out of the way we can talk about your code a bit:
(1 numerize each t) would go into each box of t and numerize
This smells like the use of uninitialized memory in the interpreter.
--
Raul
On Sat, Dec 28, 2013 at 12:57 PM, Brian Schott schott.br...@gmail.com wrote:
('b')(test=. ('a')`) NB. First it works...
+-+-+
|a|b|
+-+-+
('b')test NB. ... Then, again, if literals?
+-+-+
|a|b|
+-+-+
I tried running my copy of ...ide/jhs/jdemo.jhs. I saw no visible
result, but I can see that it ran because HBS_jdemo_ no longer gives
me a value error after running it.
I then stopped and restarted the jhs server, and selected studio -
demos and I got a similar effect (after selecting this
What kind of events do you want to be dealing with?
Javascript document events?
Http request events?
Some other kind of events?
Thanks,
--
Raul
On Tue, Jan 7, 2014 at 12:58 PM, Devon McCormick devon...@gmail.com wrote:
Is there a way to do event-driven input using JHS?
On Tue, Jan 7,
Cute!
--
Raul
On Tue, Jan 7, 2014 at 2:14 PM, Michal Wallace michal.wall...@gmail.com wrote:
Hey all,
I made an adverb ('xy') that lets trains refer to their arguments
explicitly.
Example:
f =: (Y * X + Y)xy
1 2 f 3 4
12 24
X and Y behave like [ and ], but reference the
If you are using the jhs supplied utilities to build your page, it
looks like hrtemplate (defined in jhs and in d3 (which inherits from
jhs)) provides the template for the head of the page.
Does this help?
Thanks,
--
Raul
On Wed, Jan 8, 2014 at 2:45 PM, Brian Schott schott.br...@gmail.com
Michal posted that definition at
https://github.com/tangentstorm/tangentlabs/blob/master/j/tacitxy.ijs
as he noted in his message.
FYI,
--
Raul
On Wed, Jan 8, 2014 at 10:05 PM, Linda Alvord lindaalv...@verizon.net wrote:
What is your defiiniton of xy ?
f =: (Y * X + Y)xy
1 2 f 3 4
, Raul Miller rauldmil...@gmail.com wrote:
Michal posted that definition at
https://github.com/tangentstorm/tangentlabs/blob/master/j/tacitxy.ijs
as he noted in his message.
FYI,
--
Raul
On Wed, Jan 8, 2014 at 10:05 PM, Linda Alvord lindaalv...@verizon.net
wrote:
What is your defiiniton
I think I prefer LU to be explicit.
But I think I'd write rop tacitly. Perhaps:
rop=: (({~ {.) - ({~ {:) * 1{])~`({.@[)`]}
Or, just for fun:
rop=: ] -1 ] +/ .*~ 1{@[ * 1 0 1#@[ */ .=1(#: i.)@$@]
Thanks,
--
Raul
On Sun, Jan 12, 2014 at 9:00 PM, km k...@math.uh.edu wrote:
Verb LU below
Sometimes it helps to inspect intermediate results. With recursion,
though, it can be a bit tricky for a casual observer to see the
intermediate results. With that in mind, here's what I am seeing for
your example:
a1=: (calcU calcL) saveAA
a2=: (calcU calcL) a1
a3=: (calcU calcL) a2
A4=:
({. x)} y'
u ff v
0 1 2
3 4 5
2 3 0
--Kip Murray
Sent from my iPad
On Jan 12, 2014, at 10:41 PM, Raul Miller rauldmil...@gmail.com wrote:
Sometimes it helps to inspect intermediate results. With recursion,
though, it can be a bit tricky for a casual observer to see the
intermediate
That sounds about right.
The big caution I would place on interpreting these results is: This
won't necessarily apply for games implemented in J for Linux, where I
intend to rely on the SDL and byte-per-pixel graphics layouts.
Nonetheless, I retain the logic here, since it's representative of a
I find that my experiences and insights from working with J transport
to other languages (often with some frustrations, but life is full of
frustrations) in a useful fashion.
It would take some time, but I imagine you could translate that code
you wrote into another language (perhaps paraphrasing
is a simpler question. Is there a tacit version of ff below?
u =: 2 3 0
v =: i. 3 3
ff =: 4 : 'x ({. x)} y'
u ff v
0 1 2
3 4 5
2 3 0
--Kip Murray
Sent from my iPad
On Jan 12, 2014, at 10:41 PM, Raul Miller rauldmil...@gmail.com wrote:
Sometimes it helps to inspect
(repeatedly amending an array), m} is still going to create
new copies of the array, leading to memory use of O(n^3).
An explicit version that uses assignment in place will be leaner for large
n.
Henry Rich
On 1/13/2014 2:50 PM, Raul Miller wrote:
This is probably too much information
can figure out when a copy can be
deleted. Often it can't. We would need the exact code to be sure.
Code that modifies part of an array is often - I would say usually - faster
when explicit.
Henry Rich
On 1/13/2014 3:14 PM, Raul Miller wrote:
Could you explain your reasoning?
I
I'll counter your suggestion that it's easier to write unreadable code
in APL derivatives with an observation that looks to me like a social
issue rather than anything intrinsic in the language.
I say this because with minimal training (one class in APL at a
community college, and occasional use
On Mon, Jan 13, 2014 at 8:32 PM, Joe Bogner joebog...@gmail.com wrote:
PicoLisp
(de rdConf (File)
(pipe (in File (while (echo # ;) (till ^J)))
(while (read)
(skip)
(set @ (or (line T) T)) ) ) )
Is that complete?
I learned lisp back in highschool, and I've used
be useful?
Philip
Le 14.01.2014 16:01, Raul Miller a écrit :
I have also struggled with documentation, and not only in the context
of apl and/or j.
I sometimes wonder, though, how important it really is. So much of the
skill of computer programming comes through seeing the code through
|
+--+-+
|OTHERFAMILY |Rhu Barber, Harry Barber |
+--+-+
|SEEDSREMOVED |F|
+--+-+
On Tue, Jan 14, 2014 at 9:48 AM, Raul Miller rauldmil...@gmail.com wrote:
It might be interesting to try
Yes.
if. -. (2 = sideff y)_ ^: (*./ y) 1 do. 'bad' return. end.
J needs to resolve the contents of the parenthesis to a single entity
(noun, verb, adverb or conjunction).
In this case I think you want a verb, which would be controlled by ^:
Also, I do not see that that _ does anything useful
was in the second part, and asking why the 'guard'
conjunction doesn't work.
- Original Message -
From: Raul Miller rauldmil...@gmail.com
To: Programming forum programm...@jsoftware.com
Cc:
Sent: Tuesday, January 14, 2014 11:38:12 PM
Subject: Re: [Jprogramming] maybe a bug in short circuiting
still interested in the guard conjunction that I don't understand why it
doesn't work.
thanks.
- Original Message -
From: Raul Miller rauldmil...@gmail.com
To: Programming forum programm...@jsoftware.com
Cc:
Sent: Wednesday, January 15, 2014 12:37:08 AM
Subject: Re: [Jprogramming
A classic work is APL: An Interactive Approach by Leonard Gilman and
Allen J. Rose. I've seen it for sale for as low as $3 recently, but it
looks like computer bidding is driving the price up right now.
And, of course, anything written by Ken Iverson is good - especially
if you take the time to
I think we some simple, evocative fork examples which are not mean.
One possibility is fahrenheit to centigrade conversion:
(5r9 * -32)
Another might be area of a circle with the given radius:
(2 * o.)
What might some others be? Perhaps a dyadic use of fork could be both
simple to
,
This fact amazed Euler,
That genius toiler,
And still gives us pause, bye the bye.
—— John Scholes, http://dfns.dyalog.com/n_Euler.htm
On Wed, Jan 15, 2014 at 8:03 PM, Raul Miller rauldmil...@gmail.comwrote:
I think we some simple, evocative fork examples which are not mean.
One
edit 'verbname' works in j6, I use it there relatively often. I think
I remember some discussion about making it work in jhs.
A limitation of edit is that it needs an unambiguously defined editor
for J to use to do the editing.
A related issue is that we have a tradition of integrating the
Have you seen the wikipedia entry on rank?
http://en.wikipedia.org/wiki/Rank_(J_programming_language)
I've a plane to catch, I will be back next week and maybe check in
somehow. But I happen to like the perspective expressed on that page
(I, um, wrote it).
That said, I will agree with Henry,
x on its own is a part of J's mini-language for numeric constants.
Just as 2e3 means 2000 and 0j1 means the square root of negative one,
letters can also be used to express other numeric flavors. See also:
http://www.jsoftware.com/help/dictionary/dcons.htm
Thanks,
--
Raul
On Wed, Jan 22, 2014
Given pi=:1p1
The volume of a pizza of thickness 'a' and radius 'z' is given by
pi*z*z*a (From Nancy Lebovitz's button catalog)
Of course, we could just give z and a numeric values, but perhaps more
evocative would be
'`a z'=:[`]
And, of course, this does not answer the question: what possible
Looking at your current nuvoc page, I see 22 distinct ranks. The
most common rank entries are _ _ _ (27 of those) and 0 0 0 (26 of
those). Actual numeric values are limited to 0, 1, 2 and _. and there
are also a variety of abstract values (mv, mu, lv, rv, lu, ru).
So one observation is that the
551188310
On Fri, Jan 24, 2014 at 9:58 AM, Raul Miller rauldmil...@gmail.com wrote:
Would http://rosettacode.org/wiki/Linear_congruential_generator#J
satisfy your need for a portable RNG or do you have deeper needs?
Thanks,
--
Raul
--
(B
:55 AM, Raul Miller rauldmil...@gmail.com
wrote:
Looking at your current nuvoc page, I see 22 distinct ranks. The
most common rank entries are _ _ _ (27 of those) and 0 0 0 (26 of
those). Actual numeric values are limited to 0, 1, 2 and _. and there
are also a variety of abstract values (mv
. Then,
it won't surprise me if the final material isn't adaptable to the portal
too.
Maybe I'm missing something, but isn't this in essence the same thing as
you're proposing?
On Sat, Jan 25, 2014 at 2:21 PM, Raul Miller rauldmil...@gmail.com wrote:
I doubt many will see it, the way you
Very nice - I really like your approach. And, I am tempted to carry it
a bit further.
First, we can take your manual procedure and turn it into an explicit verb:
abase=:4 :0
z=.y
r=.i.0
for_b. |.x do.
a=. b|z
z=. (z-a)%b
r=. r,a
end.
|.r
)
2 5r2 2 5 abase 38
1 1r2 1 3
Perhaps you would like a bowl for your omelette?
' #'{~ ((i.-10) / (]^2:)) i:3j20
###
###
#
#
###
#
###
#
###
Thanks,
--
Raul
On Fri, Jan 24, 2014 at
/main/files and system/packages/mist/task
Also J6 can in fact do signatures, or at least can with upto 768bit long
keys. (earlier Problem was unrelated to j32. fixed in listing)
- Original Message -
From: Raul Miller rauldmil...@gmail.com
To: Programming forum programm
in '~system' that are extremely unlikely to
exist.
- Original Message -
From: Raul Miller rauldmil...@gmail.com
To: Programming forum programm...@jsoftware.com
Cc:
Sent: Tuesday, January 28, 2014 9:47:54 AM
Subject: Re: [Jprogramming] An RSA encryption implementation
I added the line
contain
the key data, but if openssl has any error, it will contain those errors
(.cfg file not found can be ignored_
- Original Message -
From: Raul Miller rauldmil...@gmail.com
To: Programming forum programm...@jsoftware.com
Cc:
Sent: Tuesday, January 28, 2014 5:01:39 PM
Subject
Perhaps my issue is that I am using the cygwin64 openssl? Binary
interfaces are notoriously fussy.
Thanks,
--
Raul
On Tue, Jan 28, 2014 at 7:45 PM, Raul Miller rauldmil...@gmail.com wrote:
They do have the double quotes in place, both to the left of ',y and
to the right of .pem
And, as I
to call just rsa.
- Original Message -
From: Raul Miller rauldmil...@gmail.com
To: Programming forum programm...@jsoftware.com
Cc:
Sent: Tuesday, January 28, 2014 7:52:02 PM
Subject: Re: [Jprogramming] An RSA encryption implementation
Perhaps my issue is that I am using the cygwin64
Seconded - try ] t (+/)
Thanks,
--
Raul
On Wed, Jan 29, 2014 at 8:21 PM, bill lam bbill@gmail.com wrote:
You forgot to bracket +/
On Jan 30, 2014 9:09 AM, Pascal Jasmin godspiral2...@yahoo.ca wrote:
Is there a way to set the rank of the resulting verb of a conjunction? A
bit
I have been looking at this, and I did a straightforward conversion of
the python code to J (not quite complete). And I have a couple issues
I would like to talk through before proceeding (I've also not yet
studied Cliff Reiter's code).
First, I would like to quibble with what I assume is the
-~ #)@:(2#. inv) NB. for some reason
divides msb by 2.
From: Raul Miller rauldmil...@gmail.com
To: Programming forum programm...@jsoftware.com
Sent: Thursday, January 30, 2014 12:32:59 PM
Subject: Re: [Jprogramming] math requests
I have been looking
Here's an alternative to imw (an implementation of the extended
euclidean algorithm):
eeu=: [: , (] ,: (1 1 1 0*[) - .@%{. * (1 1 1
0^~]))/^:(*@{.@{:)^:_@(,.(x:=0 1 0))
Example use:
eeu 11 3
1 _1 4 _1 0 3 _11 _2
Note, however, that the result is structured differently:
The result of (4 {
Thanks,
--
Raul
On Sun, Feb 2, 2014 at 7:22 PM, Raul Miller rauldmil...@gmail.com wrote:
Here's an alternative to imw (an implementation of the extended
euclidean algorithm):
eeu=: [: , (] ,: (1 1 1 0*[) - .@%{. * (1 1 1
0^~]))/^:(*@{.@{:)^:_@(,.(x:=0 1 0))
Example use:
eeu 11 3
1 _1 4 _1
The source map comment causes a problem on some versions of internet
explorer because of how it interacts with some of its backwards
compatibility features.
This problem is usually innocuous (just a spurious error) but I have
never been completely convinced that it is always innocuous on older
---
Subject: Re: [Jprogramming] math requests
From: Raul Miller rauldmil...@gmail.com
Date: Mon, 3 Feb 2014 09:44:15 -0500
To: Programming forum programm...@jsoftware.com
I am going over the messages in this thread slowly, because this
subject requires some thought. But that also means
comments on how
to express /\ (or *./\ or some boolean function/\ ) without actually
having to use #: ?
-Dan
- Original Message ---
Subject: Re: [Jprogramming] math requests
From: Raul Miller rauldmil...@gmail.com
Date: Mon, 3 Feb 2014 10:49:20 -0500
To: Programming
() {
Modernizr.load([
{
load : [
scripts/sizzle.js,
scripts/dom.js,
scripts/game.js
],
complete : function() {
jewel.game.showScreen(splash-screen);
}
}
]);
}, false);
On Mon, Feb 3, 2014 at 11:24 AM, Raul Miller
On Mon, Feb 3, 2014 at 1:26 PM, Dan Bron j...@bron.us wrote:
So, the question still stands: are there reduction or moving window or
running analogs to the bitwise functions provided by b. ? Given the
direction this thread has taken, I'm guessing not, but I'd be happy to be
proven wrong.
I am
On Mon, Feb 3, 2014 at 6:19 PM, Pascal Jasmin godspiral2...@yahoo.ca wrote:
In terms of distinguishing arrays, the key visual effect should be based on
is there some leading unobvious rank information?
More specifically, leading 1 dimensions are invisible (and so is type
information), by
, Raul Miller rauldmil...@gmail.com wrote:
On Mon, Feb 3, 2014 at 6:19 PM, Pascal Jasmin godspiral2...@yahoo.ca wrote:
In terms of distinguishing arrays, the key visual effect should be based on
is there some leading unobvious rank information?
More specifically, leading 1 dimensions
if=: 2 :0
u_`(v_)
)
else=: 2 :0
v_`(0{m)@.((1{m)`:6)
)
('O' if (=0:) else ('' if (0:) else ''))0 i:5
O
Do you also want to see an implementation for your alternate proposal?
Thanks,
--
Raul
On Tue, Feb 4, 2014 at 3:48 AM, Michal Wallace michal.wall...@gmail.com wrote:
('O'
Here's an implementation of your if/then/else variant:
else=: 2 :0
|. u`v
)
then=: 2 :0
n@.u((1{n)`:6)
)
if=: ]
a =: assert
a 4 1 0 2 4 -: if (0:) then (*: else +:) i:2
a 4 1 0 2 4 -: (if (0:) then (*: else +:)) i:2
a (if ] then (| else -.)) 1 1 0 0 1 0 1 0
On Tue, Feb 4, 2014 at 11:14 AM, Michal Wallace
michal.wall...@gmail.com wrote:
Sure! :) If it wasn't clear, I've actually implemented both versions
already, but I've only been doing
J for a few weeks, and kind of wanted some expert feedback. :)
It was clear, but... I must admit that I jumped
Try wrapping the native code in form and see what happens?
Thanks,
--
Raul
On Tue, Feb 4, 2014 at 2:51 PM, Brian Schott schott.br...@gmail.com wrote:
Bill, no. I mean that the two sets of code [one is native html and the
other is JHS produced html] are identical when I look at the browser
While you cannot apply rank to an adverb you can arrange for it to
be applied to the result of the adverb.
For example
Red=: /(1)
+Red i.3 3
3 12 21
Thanks,
--
Raul
On Tue, Feb 4, 2014 at 8:08 PM, Don Guinn dongu...@gmail.com wrote:
OK. You're right it can be applied to nouns. But
Message -
From: Raul Miller rauldmil...@gmail.com
To: Programming forum programm...@jsoftware.com
Cc:
Sent: Tuesday, February 4, 2014 9:00:42 PM
Subject: Re: [Jprogramming] Re {programming] setting rank to a a conjunction
While you cannot apply rank to an adverb you can arrange
to verbify the leftmost argument.
- Original Message -
From: Raul Miller rauldmil...@gmail.com
To: Programming forum programm...@jsoftware.com
Cc:
Sent: Wednesday, February 5, 2014 9:21:15 AM
Subject: Re: [Jprogramming] Re {programming] setting rank to a a conjunction
Can you
: Raul Miller rauldmil...@gmail.com
To: Programming forum programm...@jsoftware.com
Cc:
Sent: Wednesday, February 5, 2014 9:52:43 AM
Subject: Re: [Jprogramming] Re {programming] setting rank to a a conjunction
Why are you using 'else' without 'if'?
As near as I can tell, you are trying
I do not know exactly what ' \: and /: do in K - if I recall
correctly, these are somewhat like rank specifications (0) (1 0) and
(0 1) except maybe use _ in place of 1 depending on what you want to
do, and somewhat like the use of each (.) and possibly boxing either
the left or right argument.
This is the first of what should be several posts centered around parsing
nif.xml
https://raw.github.com/amorilia/nifxml/master/nif.xml
I have a variety of reasons for choosing this particular xml file, and
maybe at some point we can talk about some of them on the chat forum.
But, first, I'd
-to-display-the-shapes-of-arrays-on-the-jhs-platform/?relatedposts_exclude=513
Cheers, bob
On Feb 4, 2014, at 8:25 AM, robert therriault bobtherria...@mac.com
wrote:
On Feb 4, 2014, at 5:29 AM, Raul Miller rauldmil...@gmail.com wrote:
Of course you will also get an error if you try
Be sure to use netstat -n if you are looking for a number. But Bill's
suggestion is probably more straightfoward. (Some netstat versions have an
option to show you the executable listed as being responsible for holding a
local port open, but I do not remember the details of how well that works
on
Previously, in
http://jsoftware.com/pipermail/programming/2014-February/034926.html I went
through a basic illustration of sax/xml. There are more examples at
http://www.jsoftware.com/jwiki/Addons/xml/sax
And, if you deploy something based on J in a corporate context, it would be
a good idea to
Hmm...
x2jDefn is defined in the px2j locale which is defined by the statement
require 'sax/xml/x2j'
So what I had meant to paste into my message was:
x2jDefn_px2j_
Meanwhile, nifxml was the locale which I had defined, and it inherits from
px2j, as you can see here:
copath'nifxml'
I can throw together an example or two, but first allow me to make an
observation, and ask a question:
The observation is that the xml itself is a bit messy. Every data item you
have mentioned corresponds to a pair of [consecutive] xml elements. And, as
is usual for xml, the result is somewhat
NOT get the problem if I use _px2j_ .
But I still do not understand what this part of the code is accomplishing.
Thanks,
On Wed, Feb 12, 2014 at 3:22 PM, Raul Miller rauldmil...@gmail.com
wrote:
Hmm...
x2jDefn is defined in the px2j locale which is defined by the statement
require
the data. I have never imagined dealing with a complex
file like the one in your examples. So it is hard for me to follow your
example. But presently I have no immediate needs for xml beyond the one I
showed.
On Wed, Feb 12, 2014 at 4:08 PM, Raul Miller rauldmil...@gmail.com
wrote:
I can
|| ||+-+-+|| |:
|| || || |Result=: ''
|| || |+-+---+|||
|| |+-+---+||
|+-+---+|
+---+
On Wed, Feb 12, 2014 at 4:29 PM, Raul Miller rauldmil...@gmail.com
wrote:
Ok, let's recap.
Here's the code you quoted
I am a little uncomfortable, reading ad-hoc code in the 'z' locale. Why not
use some other locale?
Also, I am not clear what you are asking for, with the event handler, but
clearly you can call it yourself if you wish to do so (and you could
maintain your own queue of commands to feed it, if you
it, if you want that
I'm surprised to hear this. I assume J/QT would also double call it, if
I did. Would probably cause its own problems. Its possible that you are
describing a technique I don't know of, in maintaining my own queue of
commands
- Original Message -
From: Raul
|| ||+-+-+|| |:
|| || || |Result=: ''
|| || |+-+---+|||
|| |+-+---+||
|+-+---+|
+---+
On Wed, Feb 12, 2014 at 4:29 PM, Raul Miller rauldmil...@gmail.com
wrote:
Ok, let's recap.
Here's the code you quoted
surprised to hear this. I assume J/QT would also double call it,
if I did. Would probably cause its own problems. Its possible that you
are describing a technique I don't know of, in maintaining my own queue of
commands
- Original Message -
From: Raul Miller rauldmil
Might be easier after you try to teach it to someone else and/or after you
cook up an additional example.
Failing that, I am very fond of phrases like ([smoutput) or ([ [: smoutput
'label';]) to show me the internal workings of a J expression in action.
Quite often I find that I reason best
J/QT would also double call it,
if I did. Would probably cause its own problems. Its possible that you
are describing a technique I don't know of, in maintaining my own queue of
commands
- Original Message -
From: Raul Miller rauldmil...@gmail.com
To: Programming forum
One additional comment.
I was using the idiom }. attributes x because when using the J6 version of
sax/xml there was an extraneous attribute row corresponding to the name
of the element.
Under J8, I am not seeing this row, so I need to remove the }. because that
would cause me to not see the
message before long).
Thanks, and sorry about the mistake,
--
Raul
On Thu, Feb 13, 2014 at 1:09 AM, Raul Miller rauldmil...@gmail.com wrote:
One additional comment.
I was using the idiom }. attributes x because when using the J6 version of
sax/xml there was an extraneous attribute row
Here's another version of my nif parsing code. It still fits in a single
file, so, code:
require 'xml/sax/x2j'
x2jclass 'nifxml'
extract=:4 :0
Name=: x
process fread y
)
NB. nif versioning:
vton=: 256 #. '.' 0.;._1@, ]
Version=: vton '4.0.0.2' NB. Morrowind
'Items' x2jDefn NB. dispatch
'
wd 'ws send ' , s , ' f123'
work fine. (but they would fail in a script)
- Original Message -
From: Raul Miller rauldmil...@gmail.com
To: Programming forum programm...@jsoftware.com
Cc:
Sent: Wednesday, February 12, 2014 10:43:23 PM
Subject: Re
Ironically, I think we had older versions which used some similar numbers
(I think I remember a J version 6, a long time ago, with only a passing
relationship to the current J6).
Meanwhile, the current decoupling of J Engine version from J Application
version probably needs a little more thought.
at 11:20 AM, Raul Miller rauldmil...@gmail.com
wrote:
Hopefully this is not too inappropriate:
require 'plot'
X=: 16 * (1o.)^3:
Y=: 13 _5 _2 _1 +/ .* 2 o. (1+i.4)*
plot (X j. Y0) i: 3.15j1000
Thanks,
--
Raul
, 2014 at 12:25 PM, Raul Miller rauldmil...@gmail.com
wrote:
Oh, that leads to some interesting ideas. Here's a fun one:
require 'plot'
X=: 16 * (1o.)^3:
Y=: 13 _5 _2 _1 +/ .* 2 o. (1+i.4)*
'color red' plot (X j. Y0) 1j1#i: 3.15j1000
The 1j1# makes every other point
joebog...@gmail.com
wrote:
I had the same issue and had to restart J and remove 'cairo'. I
think pd
might be caching the option that was previously set. I agree, the
picture
looked nice
On Fri, Feb 14, 2014 at 3:02 PM, Raul Miller
rauldmil...@gmail.com
We have a good set of J examples on rosettacode.org.
You should feel free to copy and paste them when you need a cookbook
approach to something.
And, you should feel free to ask questions about them if you want more
explanation. (Also, some have comments on the talk page - though of course
One thing to be careful about - awk is designed for a unix command line.
When using J, you should assume a J command line. With a little work, you
can use a J program at the unix command line, but I am not really
comfortable with the way that works, yet.
Meanwhile, at the unix command line you
WEEKS
f=: 13 :':+/2{.y'
f A
24
f
[: : [: +/ 2 {.
(f A),' WEEKS'
24 WEEKS
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Raul Miller
Sent: Friday, February 14, 2014 11:40 PM
Conceptually speaking, J has three atomic data types:
Numeric
Literal
Boxed
Numeric types support arithmetic: 1+1
Literal types are what might be called character types in other languages.
(ascii or unicode)
Boxed types are what might be called reference types in other languages.
J tries to
It might be fun to run something like this on a disposable ec2 box (or
maybe one of the alternatives, like hostgator or liquidweb, or whatever),
ideally in a readonly chroot partition (partition to work around some ..
issues).
Thanks,
--
Raul
On Sat, Feb 15, 2014 at 11:00 AM, Lee Fallat
Perhaps it is also worth noting that we are not going to impress everyone,
nor should we want to.
J currently caters to some high powered wallstreet types, high quality
engineering types and so on. But it's hardly the only language in use for
any of those categories.
... anyways we should
501 - 600 of 4342 matches
Mail list logo