load 'socket'

      coinsert 'jsocket'

      ]sky=: 0 pick sdcheck sdsocket ''
952

   ]yahoo=: sdcheck sdgethostbyname 'ichart.finance.yahoo.com'  NB. find
host
+-+------------+
|2|76.13.114.89|
+-+------------+

   sdcheck sdconnect sky;yahoo,<80  NB. connect to port 80


   sdcheck ('GET
/table.csv?s=GE&d=31&e=1&f=2020&g=d&a=1&b=1&c=2008&ignore=.csv',CR,LF)
sdsend sky,0
+--+
|68|
+--+

   a=:; sdcheck sdrecv sky,1000,0

   a
Date,Open,High,Low,Close,Volume,Adj Close
2009-01-30,12.72,12.80,12.01,12.13,111388900,12.13
2009-01-29,13.33,13.35,12.69,12.72,79385900,12.72
2009-01-28,13.31,13.75,13.17,13.50,115415400,13.50
2009-01-27,12.73,13.19,12.65,13.06,119281300,13.06
2009-01-26,12.48,12.65,12.17,12.42,124256800,12.42
2009-01-23,12.69,13.19,11.87,12.03,326452700,12.03
2009-01-22,12.39,13.56,12.07,13.48,151556700,13.48
2009-01-21,11.88,13.23,11.88,13.03,147443700,13.03
2009-01-20,13.95,14.09,12.80,12.93,118771800,12.93
2009-01-16,14.20,14.34,13.06,13.96,128992900,13.96
2009-01-15,14.08,14.14,13.25,13.77,140464400,13.77
2009-01-14,14.59,14.64,14.02,14.11,100750600,14.11
2009-01-13,15.65,15.69,14.72,14.94,129101400,14.94
2009-01-12,15.97,16.20,15.68,15.83,65366500,15.83
2009-01-09,16.21,16.39,15.83,16.00,53153300,16.00
2009-01-08,16.05,16.20,15.72,16.14,62128700,16.14
2009-01-07,16.67,16.70,16.01,16.11,70807700,16.11
2009-01-06,16.86,16.98,16.46,16.86,71187500,16.86
2009-01-05,17.17,17.24,16.50,16.63,72526800,16


2009/1/31 Björn Helgason <[email protected]>

>    load 'socket'
>    coinsert 'jsocket'
>    ]sky=: 0 pick sdcheck sdsocket ''
> ]yahoo=: sdcheck sdgethostbyname 'ichart.finance.yahoo.com'  NB. find host
> sdcheck sdconnect sky;yahoo,<80  NB. connect to port 80
> sdcheck ('GET
> table.csv?s=GE&d=31&e=1&f=2020&g=d&a=1&b=1&c=2008&ignore=.csv',CR,LF) sdsend
> sky,0
> a=:; sdcheck sdrecv sky,1000,0
>
>
> 2009/1/31 Matthew Brand <[email protected]>
>
> Just thinking out loud about how to generate more exposure for J.
>> I am sure it is a common experience amongst J'ers, the frustration that
>> hardly any body has heard of or uses it. People seem to take its low
>> exposure as an indication of its low quality or worth and then refuse to
>> even look into it ... as though the rule of the mob ever resulted in good
>> decisions! No mention of any recent election results from this Ron Paul
>> advocate ;-)).
>>
>> Sometimes people who only use "__ generation languages" (joke) such as
>> Python, C++, Matlab expect you to start talking about grassy knolls in the
>> next sentence if you mention J ... following the standard conversation
>> where
>> you have explained that J is not short for Java.
>>
>> The PostGreSLQ database allows the creation of functions in popular
>> languages, Perl, TCL, Python ...
>> A very simple, and poorly written, example of using embedded Python to
>> read
>> data from yahoo reads,
>>
>> create or replace function yahooread ()
>> returns text
>> as $$
>> import httplib
>> conn = httplib.HTTPConnection("ichart.finance.yahoo.com")
>> conn.request("GET",
>> "/table.csv?s=GE&d=31&e=1&f=2020&g=d&a=1&b=1&c=2008&ignore=.csv")
>> r1 = conn.getresponse()
>> conn.close()
>> data1=r1.read()
>> return data1
>> $$
>> language plpythonu;
>>
>> select yahooread from yahooread();
>>
>> It occurs to me that when people read the PostGreSQL manual and see that
>> it
>> is compatible with Perl, Python and TCL then it works as an advertisement,
>> even an endorsement of those languages.
>>
>> To that end I was wondering how much effort it would take to make J appear
>> in the list of supported languages in popular software ... which hopefully
>> would eventually make J more acceptable to the mainstream.
>>
>> Why make it more popular? Well firstly because I enjoy using it and if it
>> was more popular then more employers would pay more of us more money to do
>> something we enjoy; secondly because it would increase the number of
>> developers making libraries which again in beneficial to people who enjoy
>> J.
>>
>> I am no expert in how to make languages talk to each other or to make this
>> kind of language embedding occur, but am just thinking that in order to
>> generate more exposure for J then providing ways to use it inside other
>> popular systems like PostGreSQL would be a great way to increase the user
>> base - or at least to get people to go to the jsoftware website and check
>> it
>> out - because J would appear in the manuals of all of those languages.
>>
>> I also note that there are many wiki pages that could have a reference to
>> J
>> added to them e.g. http://en.wikipedia.org/wiki/Matlab has a list of
>> languages at the bottom. I do not know how to edit wiki pages but it
>> occurs
>> to me that J could appear at the bottom of that page.
>>
>> It definitely should appear on but is absent from this page:
>> http://en.wikipedia.org/wiki/List_of_numerical_analysis_software
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
>
> --
> Björn Helgason, Verkfræðingur
> Fugl&Fiskur ehf,
> Þerneyjarsundi 23, Hraunborgum
> Po Box 127,801 Selfoss ,
> t-póst: [email protected]
> gsm: +3546985532
> Landslags og skrúðgarðagerð, gröfuþjónusta
> http://groups.google.com/group/J-Programming
>
>
> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
>
> góður kennari getur stigið á tær án þess að glansinn fari af skónum
>          /|_      .-----------------------------------.
>         ,'  .\  /  | Með léttri lund verður        |
>     ,--'    _,'   | Dagurinn í dag                     |
>    /       /       | Enn betri en gærdagurinn  |
>   (   -.  |        `-----------------------------------'
>   |     ) |         (\_ _/)
>  (`-.  '--.)       (='.'=)
>   `. )----'        (")_(") ☃☠
>



-- 
Björn Helgason, Verkfræðingur
Fugl&Fiskur ehf,
Þerneyjarsundi 23, Hraunborgum
Po Box 127,801 Selfoss ,
t-póst: [email protected]
gsm: +3546985532
Landslags og skrúðgarðagerð, gröfuþjónusta
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
         /|_      .-----------------------------------.
        ,'  .\  /  | Með léttri lund verður        |
    ,--'    _,'   | Dagurinn í dag                     |
   /       /       | Enn betri en gærdagurinn  |
  (   -.  |        `-----------------------------------'
  |     ) |         (\_ _/)
 (`-.  '--.)       (='.'=)
  `. )----'        (")_(") ☃☠
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to