You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(4) |
May
(10) |
Jun
(6) |
Jul
(1) |
Aug
(10) |
Sep
(20) |
Oct
(5) |
Nov
(2) |
Dec
(4) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(25) |
Feb
(6) |
Mar
(59) |
Apr
(9) |
May
(3) |
Jun
(13) |
Jul
(6) |
Aug
(16) |
Sep
(14) |
Oct
(12) |
Nov
(4) |
Dec
(10) |
2004 |
Jan
(16) |
Feb
(12) |
Mar
(53) |
Apr
(16) |
May
(43) |
Jun
(40) |
Jul
(48) |
Aug
(20) |
Sep
(23) |
Oct
(27) |
Nov
(33) |
Dec
(8) |
2005 |
Jan
(2) |
Feb
(20) |
Mar
(7) |
Apr
(9) |
May
(2) |
Jun
(6) |
Jul
(5) |
Aug
|
Sep
|
Oct
(3) |
Nov
(3) |
Dec
(6) |
2006 |
Jan
(6) |
Feb
(6) |
Mar
(1) |
Apr
(4) |
May
|
Jun
(1) |
Jul
|
Aug
(2) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2007 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
(8) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
(2) |
Jun
(2) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
(2) |
Nov
|
Dec
(2) |
2009 |
Jan
(2) |
Feb
|
Mar
(1) |
Apr
|
May
(4) |
Jun
(2) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Ken A. <kan...@bb...> - 2004-08-05 21:03:33
|
Here's how to get the jscheme icon to appear on the title bar of a frame: (import "javax.swing.UIManager") (import "javax.swing.JFrame") (import "javax.swing.ImageIcon") (define (frameExample) (UIManager.setLookAndFeel (UIManager.getSystemLookAndFeelClassName)) (JFrame.setDefaultLookAndFeelDecorated #t) (let ((frame (JFrame. "DEMO"))) (.setIconImage frame (.getImage (ImageIcon. "jscheme/images/jscheme-icon2.gif"))) (.pack frame) (.show frame) frame)) |
From: Timothy J. H. <tim...@ma...> - 2004-08-04 19:24:57
|
On Aug 4, 2004, at 2:58 PM, Ken Anderson wrote: > When we go to http://jscheme.sourceforge.net it redirects to > jscheme/mainwebpage.html, not the main.html page. WHere does this > happen? the /home/groups/j/js/jscheme/htdocs/index.html file does the redirecting to mainwebpage.html I thought it would be nice to wait until we make an official JScheme 7.1 release before we make the new webpages public. That way users will be directed to our latest version of JScheme instead of a 1 year old stable version..... > > Maybe we should have a bin directory for scripts. I was thinking that myself.... > However, i'd like to convert your new scripts to use > src/using/command.scm, so we'd have one script, > bin/make, say which would take commands like -clean -javac ... I agree... ---Tim--- |
From: Ken A. <kan...@bb...> - 2004-08-04 18:59:04
|
When we go to http://jscheme.sourceforge.net it redirects to jscheme/mainwebpage.html, not the main.html page. WHere does this happen? Maybe we should have a bin directory for scripts. However, i'd like to convert your new scripts to use src/using/command.scm, so we'd have one script, bin/make, say which would take commands like -clean -javac ... k At 02:36 PM 8/4/2004 -0400, Timothy John Hickey wrote: >JScheme users! > >We are preparing a new release of JScheme. > >There are no major changes to the core language, but we've >been working on making the jscheme.sourceforge.net website >more useful. > > The main changes are: > >1. A new look for the webpages > (You can get a preview at > http://jscheme.sourceforge.net/jscheme/main.html > for a version which is running a servlet, you can visit > http://quine.cs-i.brandeis.edu:8080/jscheme main.html > but this link is just a temporary link and may be moved elsewhere soon) > >2. A new CVS subtree "contrib" that contains useful applications of JScheme > we currently have two such contributed codebases > > a. jswebapp -- the code supporting Scheme servlets and applets > with several demos (including a little database-backed wiki > that runs out of the box!) > > b. ia -- some sample Interval Arithmetic programs that give examples > of mixing Scheme and Java code > > 3. An "ext" subtree that contains 3rd party jars, in particular it contains the > key jars for running jetty and the jars needed in the webapp to send mail, > read multi-part forms, etc. README files in these folder explain the licenses > of the 3rd party sources. These will allow us to start a jetty server from > inside JScheme (provide those jars are in the classpath) > > 4. Some scripts (in src/build) including > > a. start-server.sh -- a script for starting a jetty server running > the jscheme distribution as a webapp > > b. secure.sh - a script for starting a jetty server with a fairly strict security policy > (in server.policy) that does not allow the server to access the file system outside > of the jscheme folder ... > This one runs the jscheme/contrib/jswebapp/jscheme webapp on port 8088 > > c. build-contrib.sh - a script for generating all of the new webpages from their > JScheme servlet sources, as well as creating all of the zip files needed in the website. > >The public CVS is about 1 day behind the developer's CVS so you won't be able to access >the most recent changes (for secure servers) until tomorrow, but if anyone has feedback >about how to improve the site design, we'd be happy to hear from you! > >If any JScheme users would like to have same-day non-write access to the CVS repository >send me mail and I'll look into adding you as non-write access developers using the CVS >Access Control Scripts (cvsacls)... > >---Tim--- > > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by OSTG. Have you noticed the changes on >Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, >one more big change to announce. We are now OSTG- Open Source Technology >Group. Come see the changes on the new OSTG site. www.ostg.com >_______________________________________________ >Jscheme-user mailing list >Jsc...@li... >https://lists.sourceforge.net/lists/listinfo/jscheme-user |
From: Timothy J. H. <tim...@ma...> - 2004-08-04 18:36:16
|
JScheme users! We are preparing a new release of JScheme. There are no major changes to the core language, but we've been working on making the jscheme.sourceforge.net website more useful. The main changes are: 1. A new look for the webpages (You can get a preview at http://jscheme.sourceforge.net/jscheme/main.html for a version which is running a servlet, you can visit http://quine.cs-i.brandeis.edu:8080/jscheme main.html but this link is just a temporary link and may be moved elsewhere soon) 2. A new CVS subtree "contrib" that contains useful applications of JScheme we currently have two such contributed codebases a. jswebapp -- the code supporting Scheme servlets and applets with several demos (including a little database-backed wiki that runs out of the box!) b. ia -- some sample Interval Arithmetic programs that give examples of mixing Scheme and Java code 3. An "ext" subtree that contains 3rd party jars, in particular it contains the key jars for running jetty and the jars needed in the webapp to send mail, read multi-part forms, etc. README files in these folder explain the licenses of the 3rd party sources. These will allow us to start a jetty server from inside JScheme (provide those jars are in the classpath) 4. Some scripts (in src/build) including a. start-server.sh -- a script for starting a jetty server running the jscheme distribution as a webapp b. secure.sh - a script for starting a jetty server with a fairly strict security policy (in server.policy) that does not allow the server to access the file system outside of the jscheme folder ... This one runs the jscheme/contrib/jswebapp/jscheme webapp on port 8088 c. build-contrib.sh - a script for generating all of the new webpages from their JScheme servlet sources, as well as creating all of the zip files needed in the website. The public CVS is about 1 day behind the developer's CVS so you won't be able to access the most recent changes (for secure servers) until tomorrow, but if anyone has feedback about how to improve the site design, we'd be happy to hear from you! If any JScheme users would like to have same-day non-write access to the CVS repository send me mail and I'll look into adding you as non-write access developers using the CVS Access Control Scripts (cvsacls)... ---Tim--- |
From: Ken A. <kan...@bb...> - 2004-07-30 15:49:56
|
I refactored Scheme.java to remove set/get methods for input output and error ports. I think we should deprecate the static methods that call currentEvaluator() to do the actual work. This will allow us to shrink Scheme. It will still do main() load() analyze() and execute() but these should be moved to better places and eventually Scheme can vanish. One issue is Scheme.isInterruptable() which originally was just a static field lookup, but now is a static method which calls several others. Its impact is 2% on the Gabriel benchmarks. k |
From: Ken A. <kan...@bb...> - 2004-07-28 19:38:57
|
Here's a simple autoload procedure like EMACS has. (define (autoload name file) ;; Usage: (autoload 'trace "elf/trace.scm") ;; The first time (trace) is called, "elf/trace.scm will be loaded ;; and the real trace called instead. (.setGlobalValue name (lambda args (display {Loading [file]\n}) (load file) (apply (.getGlobalValue name) args)))) (autoload 'trace "elf/trace.scm") (autoload 'future "elf/future.scm") |
From: Ken A. <kan...@bb...> - 2004-07-28 17:20:32
|
Thanks Tim! I'll try it. k At 12:54 PM 7/28/2004 -0400, Timothy John Hickey wrote: >On Jul 27, 2004, at 3:51 PM, Ken Anderson wrote: > >>So you start up jetty from inside JScheme. >>Could we do that and run Tim's nice servlet stuff he just checked in? >>Would we still need to package it up as a war? >I've just checked in to CVS two little programs for running a Jetty server directly from Scheme. >(They won't be available on public CVS for another 24 hours....) > >The first is about 40 lines (1.4KB) including comments and requires four jar files >and requires you create a webapp (or a war file). > >>{ >> File: startserver.scm >> Author: Tim Hickey, adapting code from David May's jetty example >> Date: 7/28/2004 >> >> Use: copy jscheme.jar and startserver.scm to the toplevel of the jetty folder >> and then issue the following command: >> % java -cp jscheme.jar jscheme.REPL startserver.scm >> >> This will start a server on port 8088. >>} >> >>(use-module "elf/basic.scm" 'import 'all) >>(use-module "elf/classpath.scm" 'import 'all) >>(use-module "using/run.scm" 'import 'all) >> >>; first we load in all of the jars from the lib and ext folders >>; we're actually only using 2 jars in lib/ and 2 in ext/ >>; javax.servlet.jar, org.morthbay.jetty.jar, jasper-runtime.jar jasper-compiler.jar >> >>(for-each addClasspathUrl (files** (File. "lib") isJarFile)) >>(for-each addClasspathUrl (files** (File. "ext") isJarFile)) >> >> >>(define (start-server port context webapp) >> (define server (org.mortbay.jetty.Server.)) >> (define listener (org.mortbay.http.SocketListener.)) >> (.setPort listener port); >> (.addListener server listener) >> (.addWebApplication server context webapp) >> (.start server) >> server >>) >> >>; now startup two servers.... >>(define server >> (start-server 8088 "/jscheme" "/Users/tim/Desktop/MyJetty/webapps/jscheme")) >>(define server2 >> (start-server 8090 "/" "/Users/tim/Research/Software/jscheme")) > > >The second is about 80 lines (2.8KB) and is included below. It requires only two additional jars: > javax.servlet.jar > org.mortbay.jetty.jar >which run about 600KB total. This example allows you to create servlets directly in Scheme >(with no war file or web.xml etc) and to associate them to contexts in your webserver.... > >>{ >> File: simpleserver.scm >> Author: Tim Hickey (adapting some code of David May) >> Date: 7/28/2004 >> >> Starting a servlet directly in Jetty without a webapp. >> Here we show how to create two simple servlets running >> in a webserver.... >> >> Use: >> copy jscheme.jar and simpleserver.scm to the toplevel of the Jetty folder, >> and execute the following command: >> % java -cp jscheme.jar jscheme.REPL simpleserver.scm >> >> This will start a server on port 8088 >>} >> >>(use-module "elf/basic.scm" 'import 'all) >>(use-module "elf/classpath.scm" 'import 'all) >>(use-module "using/run.scm" 'import 'all) >> >>; first we load in all of the jars from the lib and ext folders >>; This example only needs two jars from the lib folder: javax.servlet.jar, org.mortbay.jetty.jar >>(for-each addClasspathUrl (files** (File. "lib") isJarFile)) >> >>; Next, create a server, a listener, and two ServletHttpContext (one for each servlet we will create) >> (define server (org.mortbay.http.HttpServer.)) >> (define listener (org.mortbay.http.SocketListener.)) >> (define time-servlet-context (org.mortbay.jetty.servlet.ServletHttpContext.)) >> (define dump-servlet-context (org.mortbay.jetty.servlet.ServletHttpContext.)) >> >>; Now we can put in some SchemeServlets >> (define time-servlet-holder >> (.addServlet time-servlet-context "time-servlet" "*.time" "jschemeweb.SchemeServlet")) >> (define dump-servlet-holder >> (.addServlet dump-servlet-context "dump-servlet" "*.zz" "jschemeweb.SchemeServlet")) >> >> >>; and define their functionality using Scheme code >>; (but don't initialize them until after the server is started!!) >> >> (define (init-time-servlet) >> (define the-servlet (.getServlet time-servlet-holder)) >> (define do_get >> (lambda (request response) >> (.println (.getWriter response) {The local time is [(Date.)]\n\n}))) >> (.do_get$ the-servlet do_get) >> (.do_put$ the-servlet do_get) >> ) >> >> (define (init-dump-servlet) >> (define the-servlet (.getServlet dump-servlet-holder)) >> (define do_get >> (lambda (request response) >> (.setContentType response "text/html") >> (.println (.getWriter response) >> {The servlet parameters are: <ol>[ >> (map* (lambda(x) {<li>[x] -> [(.getParameter request x)]</li>\n}) (.getParameterNames request))]</ol><br/>}))) >> (.do_get$ the-servlet do_get) >> (.do_put$ the-servlet do_get) >> ) >> >> >> >> >> (define start-it-up >> (begin >> (.setContextPath time-servlet-context "/js/*") >> (.setContextPath dump-servlet-context "/js/*") >> (.setPort listener 8088) >> (.addListener server listener) >> (.setContexts server >> (list->array org.mortbay.jetty.servlet.ServletHttpContext.class >> (list >> time-servlet-context >> dump-servlet-context >> ))) >> (.start server) >> )) >> >> >>; Finally initialize the servlets >> (init-time-servlet) >> (init-dump-servlet) >> >> > > > >> >>I think it would be nice if a JScheme application could become a webserver whenever it wanted to rather than have to always live inside one. >> >>k >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by BEA Weblogic Workshop >>FREE Java Enterprise J2EE developer tools! >>Get your free copy of BEA WebLogic Workshop 8.1 today. >>http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >>_______________________________________________ >>Jscheme-user mailing list >>Jsc...@li... >>https://lists.sourceforge.net/lists/listinfo/jscheme-user |
From: Timothy J. H. <tim...@ma...> - 2004-07-28 16:54:33
|
On Jul 27, 2004, at 3:51 PM, Ken Anderson wrote: > So you start up jetty from inside JScheme. > Could we do that and run Tim's nice servlet stuff he just checked in? > Would we still need to package it up as a war? I've just checked in to CVS two little programs for running a Jetty server directly from Scheme. (They won't be available on public CVS for another 24 hours....) The first is about 40 lines (1.4KB) including comments and requires four jar files and requires you create a webapp (or a war file). > { > File: startserver.scm > Author: Tim Hickey, adapting code from David May's jetty example > Date: 7/28/2004 > > Use: copy jscheme.jar and startserver.scm to the toplevel of the > jetty folder > and then issue the following command: > % java -cp jscheme.jar jscheme.REPL startserver.scm > > This will start a server on port 8088. > } > > (use-module "elf/basic.scm" 'import 'all) > (use-module "elf/classpath.scm" 'import 'all) > (use-module "using/run.scm" 'import 'all) > > ; first we load in all of the jars from the lib and ext folders > ; we're actually only using 2 jars in lib/ and 2 in ext/ > ; javax.servlet.jar, org.morthbay.jetty.jar, jasper-runtime.jar > jasper-compiler.jar > > (for-each addClasspathUrl (files** (File. "lib") isJarFile)) > (for-each addClasspathUrl (files** (File. "ext") isJarFile)) > > > (define (start-server port context webapp) > (define server (org.mortbay.jetty.Server.)) > (define listener (org.mortbay.http.SocketListener.)) > (.setPort listener port); > (.addListener server listener) > (.addWebApplication server context webapp) > (.start server) > server > ) > > ; now startup two servers.... > (define server > (start-server 8088 "/jscheme" > "/Users/tim/Desktop/MyJetty/webapps/jscheme")) > (define server2 > (start-server 8090 "/" "/Users/tim/Research/Software/jscheme")) > The second is about 80 lines (2.8KB) and is included below. It requires only two additional jars: javax.servlet.jar org.mortbay.jetty.jar which run about 600KB total. This example allows you to create servlets directly in Scheme (with no war file or web.xml etc) and to associate them to contexts in your webserver.... > { > File: simpleserver.scm > Author: Tim Hickey (adapting some code of David May) > Date: 7/28/2004 > > Starting a servlet directly in Jetty without a webapp. > Here we show how to create two simple servlets running > in a webserver.... > > Use: > copy jscheme.jar and simpleserver.scm to the toplevel of the Jetty > folder, > and execute the following command: > % java -cp jscheme.jar jscheme.REPL simpleserver.scm > > This will start a server on port 8088 > } > > (use-module "elf/basic.scm" 'import 'all) > (use-module "elf/classpath.scm" 'import 'all) > (use-module "using/run.scm" 'import 'all) > > ; first we load in all of the jars from the lib and ext folders > ; This example only needs two jars from the lib folder: > javax.servlet.jar, org.mortbay.jetty.jar > (for-each addClasspathUrl (files** (File. "lib") isJarFile)) > > ; Next, create a server, a listener, and two ServletHttpContext (one > for each servlet we will create) > (define server (org.mortbay.http.HttpServer.)) > (define listener (org.mortbay.http.SocketListener.)) > (define time-servlet-context > (org.mortbay.jetty.servlet.ServletHttpContext.)) > (define dump-servlet-context > (org.mortbay.jetty.servlet.ServletHttpContext.)) > > ; Now we can put in some SchemeServlets > (define time-servlet-holder > (.addServlet time-servlet-context "time-servlet" "*.time" > "jschemeweb.SchemeServlet")) > (define dump-servlet-holder > (.addServlet dump-servlet-context "dump-servlet" "*.zz" > "jschemeweb.SchemeServlet")) > > > ; and define their functionality using Scheme code > ; (but don't initialize them until after the server is started!!) > > (define (init-time-servlet) > (define the-servlet (.getServlet time-servlet-holder)) > (define do_get > (lambda (request response) > (.println (.getWriter response) {The local time is > [(Date.)]\n\n}))) > (.do_get$ the-servlet do_get) > (.do_put$ the-servlet do_get) > ) > > (define (init-dump-servlet) > (define the-servlet (.getServlet dump-servlet-holder)) > (define do_get > (lambda (request response) > (.setContentType response "text/html") > (.println (.getWriter response) > {The servlet parameters are: <ol>[ > (map* (lambda(x) {<li>[x] -> [(.getParameter request > x)]</li>\n}) (.getParameterNames request))]</ol><br/>}))) > (.do_get$ the-servlet do_get) > (.do_put$ the-servlet do_get) > ) > > > > > (define start-it-up > (begin > (.setContextPath time-servlet-context "/js/*") > (.setContextPath dump-servlet-context "/js/*") > (.setPort listener 8088) > (.addListener server listener) > (.setContexts server > (list->array org.mortbay.jetty.servlet.ServletHttpContext.class > (list > time-servlet-context > dump-servlet-context > ))) > (.start server) > )) > > > ; Finally initialize the servlets > (init-time-servlet) > (init-dump-servlet) > > > > > I think it would be nice if a JScheme application could become a > webserver whenever it wanted to rather than have to always live inside > one. > > k > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user |
From: Ken A. <kan...@bb...> - 2004-07-28 06:18:25
|
So you start up jetty from inside JScheme. Could we do that and run Tim's nice servlet stuff he just checked in? Would we still need to package it up as a war? I think it would be nice if a JScheme application could become a webserver whenever it wanted to rather than have to always live inside one. k |
From: Ken A. <kan...@bb...> - 2004-07-27 21:30:39
|
I tried to send a message about this before, bit it didn't seem to go through. I like the webapp example you added to contrib. But David sent in an example of starting Jetty from inside JScheme. Could we do something like that without having to deliver JScheme as a webapp? I'm not opposed to that, it would just be nice if JScheme could become a webserver when it needed to. k |
From: Greg T. <gd...@ir...> - 2004-07-26 22:43:27
|
The issue in guile is that guile had the 'guile license', which was GPL, but with a special exemption linking libguile with something does not cause that something to be restricted to the GPL. GNU readline was straight GPL, so linking guile, readline into foo meant that the resulting derived work could be distributed at most under the GPL -- or not at all, if foo's license was not GPL-compatible. guile created a loadable binary module that linked in readline to programs that used libguile. One did this by running scheme code - I have this in my .guile: (use-modules (ice-9 readline)) (define (ar) (activate-readline) ) In this way, readline becomes available in programs I run that use guile, but not in the installed version. Since the resulting dynamically linked binary is not distributed, there are no issues. IANAL, TINLA, blah blah blah. Also, I have heard of a tcsh-like readline library that Sun uses, and I think it might be called tecla. I would be inclined to have generic readline-like hooks, and be able to dynlink in a library that uses readline, following the guile example. |
From: Ken A. <kan...@bb...> - 2004-07-26 22:33:05
|
Rusty was just cautioning me about adding any GPL software to JScheme. Alan, can you use java-readline? Also Tim is working on a scheme where we can contribute examples of using JScheme which include components under various licences. I know there's been discussion about readline on the Guile mailing list. Greg, can you comment on it? BTW, i run JScheme in Emacs to be safe, so i don't need to add these features through another mechanism. Am i just old, or what? k At 06:02 PM 7/26/2004 -0400, Michael R Head wrote: >Meant to send this to the list... > >On Mon, 2004-07-26 at 17:00 -0400, Ken Anderson wrote: >> This is a C library right, what does it let you do. > >It gives you all the nice features like history with up arrow/down arrow >access, tab completion (I think), basically everything you get with a >mysql console, or python interactive mode, or bash. I understand that >Jython uses Java-Readline http://java-readline.sourceforge.net/, which >just JNI-wrappers the C library. > >It's definitely very nice and would make the jscheme interpreter act >more like most commandline driven Linux tools. > >Unfortunately, GNU readline is GPL licensed (as you might imagine). My >understanding is that there is a BSD licensed replacement >(http://sourceforge.net/projects/libedit/), but I don't know how active >or useful it is, and I don't know how well it works with Java-readline >(which itself is LGPL). > >mike > >> >> k >> At 03:28 PM 7/26/2004 -0400, Alan Donovan wrote: >> >> >Hello Schemers, >> > >> >I have a patch, if anyone is interested, that lets you use the GNU >> >'readline' library for interactive expression editing in the REPL; it >> >also supports S-expression history. >> > >> >Let me know if you're interested. >> > >> >alan >> > >> > >> > >> >------------------------------------------------------- >> >This SF.Net email is sponsored by BEA Weblogic Workshop >> >FREE Java Enterprise J2EE developer tools! >> >Get your free copy of BEA WebLogic Workshop 8.1 today. >> >http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >> >_______________________________________________ >> >Jscheme-user mailing list >> >Jsc...@li... >> >https://lists.sourceforge.net/lists/listinfo/jscheme-user >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by BEA Weblogic Workshop >> FREE Java Enterprise J2EE developer tools! >> Get your free copy of BEA WebLogic Workshop 8.1 today. >> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >> _______________________________________________ >> Jscheme-user mailing list >> Jsc...@li... >> https://lists.sourceforge.net/lists/listinfo/jscheme-user >-- >Michael R Head <bu...@su...> >GPG: http://www.suppressingfire.org/~burner/gpg.key.txt (ID 23A02B1F) |
From: Michael R H. <bu...@su...> - 2004-07-26 22:04:18
|
Meant to send this to the list... On Mon, 2004-07-26 at 17:00 -0400, Ken Anderson wrote: > This is a C library right, what does it let you do. It gives you all the nice features like history with up arrow/down arrow access, tab completion (I think), basically everything you get with a mysql console, or python interactive mode, or bash. I understand that Jython uses Java-Readline http://java-readline.sourceforge.net/, which just JNI-wrappers the C library. It's definitely very nice and would make the jscheme interpreter act more like most commandline driven Linux tools. Unfortunately, GNU readline is GPL licensed (as you might imagine). My understanding is that there is a BSD licensed replacement (http://sourceforge.net/projects/libedit/), but I don't know how active or useful it is, and I don't know how well it works with Java-readline (which itself is LGPL).=20 mike >=20 > k > At 03:28 PM 7/26/2004 -0400, Alan Donovan wrote: >=20 > >Hello Schemers, > > > >I have a patch, if anyone is interested, that lets you use the GNU > >'readline' library for interactive expression editing in the REPL; it > >also supports S-expression history. > > > >Let me know if you're interested. > > > >alan > > > > > > > >------------------------------------------------------- > >This SF.Net email is sponsored by BEA Weblogic Workshop > >FREE Java Enterprise J2EE developer tools! > >Get your free copy of BEA WebLogic Workshop 8.1 today. > >http://ads.osdn.com/?ad_id=3D4721&alloc_id=3D10040&op=3Dclick > >_______________________________________________ > >Jscheme-user mailing list > >Jsc...@li... > >https://lists.sourceforge.net/lists/listinfo/jscheme-user >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=3D4721&alloc_id=3D10040&op=3Dclick > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user --=20 Michael R Head <bu...@su...> GPG: http://www.suppressingfire.org/~burner/gpg.key.txt (ID 23A02B1F) |
From: Ken A. <kan...@bb...> - 2004-07-26 21:01:25
|
This is a C library right, what does it let you do. k At 03:28 PM 7/26/2004 -0400, Alan Donovan wrote: >Hello Schemers, > >I have a patch, if anyone is interested, that lets you use the GNU >'readline' library for interactive expression editing in the REPL; it >also supports S-expression history. > >Let me know if you're interested. > >alan > > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >_______________________________________________ >Jscheme-user mailing list >Jsc...@li... >https://lists.sourceforge.net/lists/listinfo/jscheme-user |
From: Alan D. <ado...@cs...> - 2004-07-26 19:28:27
|
Hello Schemers, I have a patch, if anyone is interested, that lets you use the GNU 'readline' library for interactive expression editing in the REPL; it also supports S-expression history. Let me know if you're interested. alan |
From: Ken A. <kan...@bb...> - 2004-07-26 19:11:45
|
'{[3]} (!{} "" 3 "") I'm wondering if we could add a couple of check to not add empty strings. |
From: Geoffrey K. <gk...@sf...> - 2004-07-22 17:11:43
|
On Jul 22, 2004, at 13:02, Ken Anderson wrote: >> It would be nice for users to have a little script for downloading and >> building the latest jscheme .... > > But it should be written in JScheme. True, but that would assume users already had JScheme. Geoffrey -- Geoffrey S. Knauth | http://knauth.org/gsk |
From: Ken A. <kan...@bb...> - 2004-07-22 17:02:21
|
At 12:47 PM 7/22/2004 -0400, Timothy John Hickey wrote: >Nice! > >Lets add this to the CVS tree and user documentation. >It would be nice for users to have a little script for downloading and >building the latest jscheme .... But it should be written in JScheme. >---Tim--- > >On Jul 22, 2004, at 12:07 PM, Geoffrey Knauth wrote: > >>Since I do this almost daily--here's a small time-saver. >>-- >>Geoffrey S. Knauth | http://knauth.org/gsk >> >>----- get-build-jscheme-sh ----- >> >>#!/bin/sh >> >>echo logging into JScheme sourceforge site >>cvs -d:pserver:ano...@cv...:/cvsroot/jscheme login >>cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jscheme co jscheme >>cd jscheme >>src/build/bootstrap >> >>echo Done with JScheme download and build. >>echo To try JScheme: >> >>echo " cd jscheme" >>echo " java -cp lib/jscheme.jar jscheme.REPL" >>echo " JScheme x.y (timestamp) http://jscheme.sourceforge.net" >>echo " > (java.util.Date.)" >>echo " > (exit)" >>exit 0 >> >> >> >>------------------------------------------------------- >>This SF.Net email is sponsored by BEA Weblogic Workshop >>FREE Java Enterprise J2EE developer tools! >>Get your free copy of BEA WebLogic Workshop 8.1 today. >>http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >>_______________________________________________ >>Jscheme-user mailing list >>Jsc...@li... >>https://lists.sourceforge.net/lists/listinfo/jscheme-user > > > >------------------------------------------------------- >This SF.Net email is sponsored by BEA Weblogic Workshop >FREE Java Enterprise J2EE developer tools! >Get your free copy of BEA WebLogic Workshop 8.1 today. >http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click >_______________________________________________ >Jscheme-user mailing list >Jsc...@li... >https://lists.sourceforge.net/lists/listinfo/jscheme-user |
From: Geoffrey K. <gk...@sf...> - 2004-07-22 16:53:25
|
To give credit where credit is due, I constructed the script directly FROM the documentation you already provide. Geoffrey -- Geoffrey S. Knauth | http://knauth.org/gsk On Jul 22, 2004, at 12:47, Timothy John Hickey wrote: > Lets add this to the CVS tree and user documentation. > It would be nice for users to have a little script for downloading and > building the latest jscheme .... |
From: Timothy J. H. <tim...@ma...> - 2004-07-22 16:48:38
|
Nice! Lets add this to the CVS tree and user documentation. It would be nice for users to have a little script for downloading and building the latest jscheme .... ---Tim--- On Jul 22, 2004, at 12:07 PM, Geoffrey Knauth wrote: > Since I do this almost daily--here's a small time-saver. > -- > Geoffrey S. Knauth | http://knauth.org/gsk > > ----- get-build-jscheme-sh ----- > > #!/bin/sh > > echo logging into JScheme sourceforge site > cvs -d:pserver:ano...@cv...:/cvsroot/jscheme login > cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jscheme co > jscheme > cd jscheme > src/build/bootstrap > > echo Done with JScheme download and build. > echo To try JScheme: > > echo " cd jscheme" > echo " java -cp lib/jscheme.jar jscheme.REPL" > echo " JScheme x.y (timestamp) http://jscheme.sourceforge.net" > echo " > (java.util.Date.)" > echo " > (exit)" > exit 0 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user |
From: Geoffrey K. <gk...@sf...> - 2004-07-22 16:07:15
|
Since I do this almost daily--here's a small time-saver. -- Geoffrey S. Knauth | http://knauth.org/gsk ----- get-build-jscheme-sh ----- #!/bin/sh echo logging into JScheme sourceforge site cvs -d:pserver:ano...@cv...:/cvsroot/jscheme login cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jscheme co jscheme cd jscheme src/build/bootstrap echo Done with JScheme download and build. echo To try JScheme: echo " cd jscheme" echo " java -cp lib/jscheme.jar jscheme.REPL" echo " JScheme x.y (timestamp) http://jscheme.sourceforge.net" echo " > (java.util.Date.)" echo " > (exit)" exit 0 |
From: Ken A. <kan...@bb...> - 2004-07-21 21:49:15
|
I added your patches. If you'd like to provide several unit tests for serialization, i'll add them to our test suit. k |
From: Toby A. <tob...@pe...> - 2004-07-19 23:32:25
|
Your changes made things much better, but I still needed to make the following changes to get serialisation to work correctly for me: Index: src/jsint/DynamicVariable.java =================================================================== RCS file: /cvsroot/jscheme/jscheme/src/jsint/DynamicVariable.java,v retrieving revision 1.6 diff -u -r1.6 DynamicVariable.java --- src/jsint/DynamicVariable.java 16 Jul 2004 22:02:13 -0000 1.6 +++ src/jsint/DynamicVariable.java 19 Jul 2004 23:27:15 -0000 @@ -59,10 +59,10 @@ out.writeObject(name); try { - out.writeObject(getDynamicValue()); + out.writeObject(value); } catch (java.io.IOException e) { System.out.println("Exception trying to serialize " + - getDynamicValue() + ": " + e); + value + ": " + e); throw e; } } @@ -78,7 +78,7 @@ **/ private Object readResolve() throws java.io.ObjectStreamException { DynamicVariable it = Scheme.getInteractionEnvironment().intern(name); - if (it.value != U.UNDEFINED) it.value = value; + if (value != U.UNDEFINED) it.value = value; return it; } The first change means that it won't barf when trying to serialise Javadot values that refer to classes that aren't available in the environment in which serialisation is taking place. The second change just corrects a typo, I think. Without it deserialised DynamicVariables are always undefined. Toby. On Fri, Jul 16, 2004 at 06:10:09PM -0400, Ken Anderson wrote: > I just made the changes for this. > The Gabriel benchmarks show a 3% improvement. > I should have tried your benchmark. > > Toby, > Can you test serialization and see if your patch is still needed. > > k |
From: Ken A. <kan...@bb...> - 2004-07-19 21:30:30
|
Wow, bug fixes and a patch on your first day of using JScheme! You should be an expert by the end of the week! Some Common Lisper's have asked for features like this. Rather than making this patch, i'd like to make things like the REPL, load, eval, analyze, execute, and read procedures that can be replaced by user's jscheme code. This would let us experiment with different approaches. We should be able to write this in JScheme so you can use it. At 02:54 PM 7/19/2004 -0400, Alan Donovan wrote: >Ken, here's a patch to implement named REPL results, like GDB, e.g. > > > (lambda (x) x) > $1 = (lambda (x) x) > > 3 > $2 = 3 > > ($1 $2) > $3 = 3 > >cheers >alan > > > > >=================================================================== >RCS file: /cvsroot/jscheme/jscheme/src/jsint/Evaluator.java,v >retrieving revision 1.8 >diff -c -w -r1.8 Evaluator.java >*** src/jsint/Evaluator.java 16 Jul 2004 22:02:13 -0000 1.8 >--- src/jsint/Evaluator.java 19 Jul 2004 18:52:17 -0000 >*************** >*** 87,103 **** > System.exit(0); > } > > /** Prompt, read, eval, and write the result. > * Also sets up a catch for any RuntimeExceptions encountered. **/ > public void readEvalWriteLoop(String prompt) { > Object x; > if (!EXIT) > for(;;) { > try { > if (EXIT) break; > output.print(prompt); output.flush(); > if ((x = input.read()) == InputPort.EOF) break; >! U.write(eval(x), output, true); > output.println(); output.flush(); > } catch (Throwable e) { > e.printStackTrace(error); >--- 87,116 ---- > System.exit(0); > } > >+ /** >+ * If true, results of REPL evaluations are named (e.g. $3) for future >+ * reference. >+ */ >+ private static final boolean opt_NAME_REPL_RESULTS = true; >+ > /** Prompt, read, eval, and write the result. > * Also sets up a catch for any RuntimeExceptions encountered. **/ > public void readEvalWriteLoop(String prompt) { > Object x; >+ int count = 0; > if (!EXIT) > for(;;) { > try { > if (EXIT) break; > output.print(prompt); output.flush(); > if ((x = input.read()) == InputPort.EOF) break; >! Object result = eval(x); >! if(opt_NAME_REPL_RESULTS) { >! String name = "$" + (++count); >! output.print(name+" = "); >! interactionEnvironment.setValue(Symbol.intern(name), result); >! } >! U.write(result, output, true); > output.println(); output.flush(); > } catch (Throwable e) { > e.printStackTrace(error); |
From: Timothy J. H. <tim...@ma...> - 2004-07-19 16:32:52
|
On Jul 19, 2004, at 12:13 PM, Ken Anderson wrote: > At 11:54 AM 7/19/2004 -0400, Alan Donovan wrote: >> On Mon, Jul 19, 2004 at 11:24:26AM -0400, Ken Anderson wrote: >>> Tim, i'd like to propose this as a new definition of eqv? This looks fine to me (after adding in Character.class....) ---Tim--- >>> (define (atomicClass? c) >>> (or (eq? c Boolean.class) >>> (eq? c Byte.class) >>> (eq? c Short.class) >>> (eq? c Integer.class) >>> (eq? c Long.class) >>> (eq? c Float.class) >>> (eq? c Double.class) >>> (eq? c Symbol.class))) >> >> (and don't forget Character.class) >> >> >>> (define (eqv? x y) >>> (or (eqv? x y) (eq? x y) >>> (let ((c (.getClass x))) >>> (and (atomicClass? c) >>> (eq? c (.getClass y)) >>> (.equals x y))))) >> >> I think there's a typo for 'eq?' on line 2. >> >> What about the #null value? This is handled by the (eq? x y) clause.. >> This would (unfortunately) require extra >> cases because (.getClass #null) fails.\ > Questions and comments are always welcome! > BTW, i should mention to the group that Alan gave a great talk at BBN > last week on JDK 1.5 and automatic conversion of 1.4 code to 1.5: > http://pag.csail.mit.edu/~adonovan/pubs/slides-bbn-jul04.pdf Nice! > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Jscheme-user mailing list > Jsc...@li... > https://lists.sourceforge.net/lists/listinfo/jscheme-user |