00:03:38 -!- pierpa [~user@host6-229-dynamic.56-79-r.retail.telecomitalia.it] has quit [Ping timeout: 256 seconds] 00:10:43 -!- gleag_ [~gleag@71.175.broadband2.iol.cz] has quit [Quit: Odcházím] 00:12:55 Fare [fare@nat/google/x-ktfkhzssiichcrvh] has joined #scheme 00:17:36 -!- joneshf-laptop [~joneshf@mail.concordusapps.com] has quit [Remote host closed the connection] 00:18:23 toekutr [~user@50-0-51-11.dsl.static.sonic.net] has joined #scheme 00:18:27 joneshf-laptop [~joneshf@mail.concordusapps.com] has joined #scheme 00:22:10 -!- levi [~user@c-174-52-219-147.hsd1.ut.comcast.net] has quit [Read error: Connection reset by peer] 00:22:37 levi [~user@c-174-52-219-147.hsd1.ut.comcast.net] has joined #scheme 00:26:49 tenq [~tenq@ip68-100-228-234.dc.dc.cox.net] has joined #scheme 00:30:07 adu_ [~ajr@pool-71-191-154-98.washdc.fios.verizon.net] has joined #scheme 00:33:33 -!- githogori [~githogori@c-50-156-57-127.hsd1.ca.comcast.net] has quit [Read error: Operation timed out] 00:35:06 -!- bjz [~brendanza@125.253.99.68] has quit [Quit: Leaving...] 00:36:47 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Read error: Operation timed out] 00:41:16 jeapostrophe [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has joined #scheme 00:41:16 -!- jeapostrophe [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has quit [Changing host] 00:41:16 jeapostrophe [~jay@racket/jeapostrophe] has joined #scheme 00:42:49 qrstuv1 [bootes@50.122.23.63] has joined #scheme 00:42:56 -!- qrstuv [bootes@50.122.31.38] has quit [Ping timeout: 252 seconds] 00:47:19 -!- everbot [~squallltt@103.20.168.212] has quit [Quit: Leaving] 00:48:00 -!- lazyden [~lazyden@58.185.121.38] has quit [Quit: lazyden] 00:51:48 -!- Fare [fare@nat/google/x-ktfkhzssiichcrvh] has quit [Ping timeout: 252 seconds] 00:52:55 lazyden [~lazyden@58.185.121.38] has joined #scheme 00:55:30 -!- jeapostrophe [~jay@racket/jeapostrophe] has quit [Ping timeout: 260 seconds] 00:56:08 -!- cdidd [~cdidd@89.178.236.232] has quit [Ping timeout: 255 seconds] 01:15:53 -!- adu_ [~ajr@pool-71-191-154-98.washdc.fios.verizon.net] has quit [Quit: adu_] 01:16:48 -!- pyro-_ [~pyro@107.20.212.169] has quit [Remote host closed the connection] 01:19:12 adiii [~adityavit@24-158-1-110.static.mdsn.wi.charter.com] has joined #scheme 01:23:26 paddymahoney [~paddymaho@198-84-186-52.cpe.teksavvy.com] has joined #scheme 01:36:26 RageOfThou [~RageOfTho@cable-77-221-21-70.dynamic.telemach.ba] has joined #scheme 01:36:31 edw [~textual@cpe-67-250-41-22.nyc.res.rr.com] has joined #scheme 01:39:50 -!- MrFahrenheit [~RageOfTho@cable-77-221-21-70.dynamic.telemach.ba] has quit [Ping timeout: 260 seconds] 01:40:51 -!- toekutr [~user@50-0-51-11.dsl.static.sonic.net] has quit [Remote host closed the connection] 02:05:56 -!- GOMADWarrior [~Regis@187.65.193.132] has quit [Ping timeout: 260 seconds] 02:18:41 ympbyc [~ympbyc@p35134-ipbffx02marunouchi.tokyo.ocn.ne.jp] has joined #scheme 02:20:22 b4283 [~b4283@60-249-196-111.HINET-IP.hinet.net] has joined #scheme 02:32:07 toekutr [~user@50-0-51-11.dsl.static.sonic.net] has joined #scheme 02:35:23 -!- edw [~textual@cpe-67-250-41-22.nyc.res.rr.com] has quit [Quit: Computer has gone to sleep.] 02:37:28 -!- annodomini [~lambda@wikipedia/lambda] has quit [Quit: annodomini] 02:38:49 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 02:40:30 -!- BossKonaSegwaY [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has quit [Quit: Leaving.] 02:46:09 langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has joined #scheme 03:20:08 -!- agumonkey [~agu@8.158.70.86.rev.sfr.net] has quit [Ping timeout: 255 seconds] 03:27:06 jrajav [~jrajav@71-82-124-223.dhcp.roch.mn.charter.com] has joined #scheme 03:32:48 ^-. 03:36:52 '-v 03:38:30 <-< 03:44:02 - 03:44:30 -!- MichaelRaskin [~MichaelRa@195.91.224.225] has quit [Quit: MichaelRaskin] 03:45:17 () 03:47:12 Greetings. 03:47:25 kvda [~kvda@unaffiliated/kvda] has joined #scheme 03:48:04 *gnomon* looks at pr3d4t0r, then at the topic 03:48:12 pr3d4t0r, what in the blistering blue barnacles are you doing in here? 03:50:09 Q. I'm trying to embed Scheme into a Mule/Spring app server for non-trivial but simple scripts for workflow processing. The JSR-223 engine (last updated in 2006, according to dev.java.net) is allocating a random access input stream; the code may also use an in-memory random access input stream. What is this heap for? 03:50:39 Q. If I ignore the one in the file system and go straight to allocating it in memory, what would be the impact? 03:51:58 The heap in the file system fails because the system property sisc.home isn't set (nor are we planning to set it) and there's no logic for dealing with that in the JSR-223 sample code; I'm thinking of patching/updating this. Thanks in advance. 03:52:04 gnomon: Now you know what I'm doing here :) 03:52:21 INDEED 03:54:13 gnomon: So, any ideas? :) 03:54:59 Not a clue! 03:55:10 *gnomon* wanders around aimlessly, bouncing off the furniture 03:55:27 przl [~przlrkt@p54BF8C87.dip0.t-ipconnect.de] has joined #scheme 03:55:31 gnomon: Big help you are! 03:55:35 gnomon: Sheesh :) 03:55:45 pr3d4t0r: he just wastes our time. Very depressing. 03:55:54 gnomon: I'll share the document I'm putting up when I get this to work. I think it'll make for fascinating reading for someone. 03:56:15 offby1: Yeah, I ought to know better. Oh, well. He's cool, though, and makes great sandwiches. 03:56:17 offby1, d'aww 03:57:17 OKi, does the path for sisc.home need to be writeable? 03:57:27 *pr3d4t0r* guesses "yes" and tries to find infos about that in the wiki. 03:59:07 OKi, so -- sisc.home -- technically it ought to be a path inside a .jar - yes? If so, it's not writable. 03:59:15 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 04:00:33 uint64_t x = 0x0123456789abcdef; T n; printf("%016"PRIx64"\n", (x &~ (n - 1))); 04:00:57 *pr3d4t0r* is beginning to suspect that people here have no idea of how to configure Scheme either, and they're Scheme users, not internals gurus. 04:01:06 What does this do for various definitions of the type T? (Try to guess without running it!) 04:01:46 (e.g.: typedef char T; typedef uint8_t T; typedef uint32_t T; typedef uint64_t T; &c.) 04:03:13 pr3d4t0r, the authors of SISC used to hang out here, but I haven't seen them in years. 04:04:38 Riastradh: :( 04:05:42 Riastradh: I have no preference for Scheme vs. Clojure beyond which one I can get to work first. The JSR-223 for both suck and are amateurish. I can't believe the JCP allowed such crappy code to be part of the JSR-223 final version. 04:05:55 -!- przl [~przlrkt@p54BF8C87.dip0.t-ipconnect.de] has quit [Ping timeout: 258 seconds] 04:06:09 Riastradh: So I'm having to guess what the internals due based on what the external calls sequence and method names and such are. 04:06:16 Riastradh: Not a very happy way to go about solving this :) 04:06:37 I have no idea what JSR-223 is but I hope I don't have to fill out a 27b/6 and I didn't much care for what I've seen of Clojure. 04:07:20 -!- jrajav [~jrajav@71-82-124-223.dhcp.roch.mn.charter.com] has quit [Quit: I tend to be neutral about apples] 04:08:20 -!- langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has quit [Ping timeout: 252 seconds] 04:09:03 Riastradh: I don't care for either -- this is a research project to potentially help my scientists :) 04:09:22 I'd try the SISC mailing list. 04:09:24 Riastradh: They want Lisp on the app server. If I can get this to work they'll be happy. 04:09:30 Riastradh: OKi, will try. 04:10:35 Riastradh: From a practical approach, the one thing that puts Clojure above Scheme is the concurrency features, and the app server will do that better than Clojure (in fact, the Lisp scripts must NOT do their own concurrency in our setup). 04:11:04 Riastradh: Plus I suspect that our guys are better at Lisp than having to learn Clojure. 04:11:42 Riastradh: Clojure seems to be what would result from Lisp and Erlang having a baby :) 04:13:04 Could be. I don't remember what SISC provides for concurrency, although I seem to recall asymptonic (Scott Miller) making a point about it a long time ago. 04:13:16 Anyway, time for bed. 04:13:22 *poof* 04:13:31 how does he _do_ that/! 04:13:53 (and who is he talking to?!) 04:14:12 ((and how do I make my voice do this?)) 04:14:25 offby1: the ACME IRC Invisiblity Kit is available from all good retailers, and many bad ones 04:16:39 ijp, Riastradh: http://en.Wikipedia.org/wiki/Nick_Danger <-- read and learn, children 04:17:09 Well 04:17:24 ...er, ^J is not ^K. 04:17:29 jao [~jao@67.51.76.53] has joined #scheme 04:17:30 I'll grant you that. 04:17:32 -!- jao [~jao@67.51.76.53] has quit [Changing host] 04:17:32 jao [~jao@pdpc/supporter/professional/jao] has joined #scheme 04:17:50 *Riastradh* cues the organist and fades his voice out. 04:17:55 *poof* for real this time 04:18:22 :) 04:18:49 *offby1* crinkles some cellophane to suggest a fire 04:18:58 amoe_ [~amoe@host-78-147-157-125.as13285.net] has joined #scheme 04:19:55 -!- sambio [~sambio@190.57.227.109] has quit [] 04:21:20 Ah! Special SISC I/O classes. 04:21:42 Heh. 04:22:14 -!- amoe [~amoe@host-92-26-168-129.as13285.net] has quit [Ping timeout: 255 seconds] 04:26:33 The javadoc for SISC blows. This will be a long night :) 04:27:27 OKi, this sounds like the Smalltalk or R images. 04:27:54 Can you guys tell me what the Scheme Heap File is? Does Scheme keep state between re-starts? 04:28:39 some do, many don't 04:29:14 Many man smoke, but Fu Manchu 04:30:08 There is global symbol here, file: sisc.shp 04:30:10 -!- kvda [~kvda@unaffiliated/kvda] has quit [Quit: z____z] 04:30:36 It appears that it *should* be a resource in the sisc.jar or something in the classpath. 04:30:57 What is the purpose of that file? What happens if it's empty? 04:31:31 What happens in Scheme terms, I mean. I see in the code that I could allocate it into a memory buffer instead of a disk file, and from then on Scheme would probably manage it. 04:31:37 przl [~przlrkt@p54BF8C87.dip0.t-ipconnect.de] has joined #scheme 04:31:58 When you exit REPL, is there an option to save the environment? Is the environment being saved in this file? 04:32:55 -!- wbooze [~wbooze@xdsl-78-35-130-53.netcologne.de] has quit [Ping timeout: 260 seconds] 04:34:47 What size heap do you guys use for quick-n-dirty, interactive scripts? Will 128 MB be enough? Can the heap start with all zeroes? 04:36:27 *pr3d4t0r* found it. 04:39:39 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 258 seconds] 04:39:52 preflex_ [~preflex@unaffiliated/mauke/bot/preflex] has joined #scheme 04:40:36 -!- preflex_ is now known as preflex 04:42:05 yacks [~yacks@180.151.36.168] has joined #scheme 04:48:54 Ah!!!!!!!!! 04:48:57 It works! :) 04:52:13 BossKonaSegwaY [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has joined #scheme 05:17:46 -!- paddymahoney [~paddymaho@198-84-186-52.cpe.teksavvy.com] has quit [Remote host closed the connection] 05:20:39 -!- tenq [~tenq@ip68-100-228-234.dc.dc.cox.net] has quit [Ping timeout: 276 seconds] 05:32:34 tenq [~tenq@ip68-100-228-234.dc.dc.cox.net] has joined #scheme 05:37:27 gravicappa [~gravicapp@ppp91-77-180-207.pppoe.mtu-net.ru] has joined #scheme 05:41:04 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Quit: Leaving] 05:46:00 -!- jao [~jao@pdpc/supporter/professional/jao] has quit [Ping timeout: 256 seconds] 05:54:37 jewel [~jewel@105-237-24-49.access.mtnbusiness.co.za] has joined #scheme 05:59:03 -!- toekutr [~user@50-0-51-11.dsl.static.sonic.net] has left #scheme 06:01:17 toekutr [~user@50-0-51-11.dsl.static.sonic.net] has joined #scheme 06:18:29 kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has joined #scheme 06:21:04 -!- joneshf-laptop [~joneshf@mail.concordusapps.com] has quit [Remote host closed the connection] 06:24:18 foeniks [~fevon@p5083F556.dip.t-dialin.net] has joined #scheme 06:24:36 MichaelRaskin [~MichaelRa@195.178.216.22] has joined #scheme 06:30:37 pcl [~squip@cpe-68-174-132-160.nyc.res.rr.com] has joined #scheme 06:33:17 Nisstyre-laptop [~yours@oftn/member/Nisstyre] has joined #scheme 06:45:49 amoe [~amoe@host-78-147-145-98.as13285.net] has joined #scheme 06:47:31 Myk267 [~myk@adsl-71-149-249-241.dsl.mtry01.sbcglobal.net] has joined #scheme 06:47:53 -!- copumpkin [~copumpkin@unaffiliated/copumpkin] has quit [Ping timeout: 256 seconds] 06:48:21 copumpkin [~copumpkin@unaffiliated/copumpkin] has joined #scheme 06:48:43 -!- amoe_ [~amoe@host-78-147-157-125.as13285.net] has quit [Ping timeout: 260 seconds] 06:51:49 gnomon: Ping... 06:54:49 Can you please refer me to where to learn how to use an existing Java object (already bound to the Scheme run-time as a global) from a Scheme script? Example: The log object has a method info(String s) that would be called as: log.info("hello") in Python. I believe there is some (var (log info ("hello")) syntax but I can't figure it out. I'm not a Scheme programmer; trying to make this available to 06:54:51 someone who is and just need to test this part. Thanks in advance. 06:57:25 -!- pyro- [~pyro@chopstick.dcollins.info] has quit [Changing host] 06:57:25 pyro- [~pyro@unaffiliated/purplepanda] has joined #scheme 07:00:34 joneshf-laptop [~joneshf@086.112-30-64.ftth.swbr.surewest.net] has joined #scheme 07:15:34 pierpa [~user@host6-229-dynamic.56-79-r.retail.telecomitalia.it] has joined #scheme 07:15:38 -!- yacks [~yacks@180.151.36.168] has quit [Read error: Operation timed out] 07:17:03 snowylike [~sn@91-67-171-156-dynip.superkabel.de] has joined #scheme 07:17:31 yacks [~yacks@180.151.36.168] has joined #scheme 07:20:50 -!- rotty [rotty@78.47.92.94] has quit [Ping timeout: 252 seconds] 07:25:19 cdidd [~cdidd@95-27-69-201.broadband.corbina.ru] has joined #scheme 07:27:32 pr3d4t0r: which Scheme are you using? 07:27:47 ecraven: SISC on JVM. 07:28:21 the answer is probably somewhere here: http://sisc-scheme.org/manual/html/ch08.html#SchemeToJava 07:28:53 ecraven: Yeah, we figured this out partly in another channel. 07:29:30 ecraven: I need to figure out how to let SISC know about the context bindings from the app container somehow. They aren't automatic. Sorting that out now. 07:30:07 pr3d4t0r: I mostly use Kawa Scheme for Scheme-on-Java, which allows something like (log:info "Hello") 07:30:23 or alternatively (*:info log "hello") 07:30:34 ecraven: Oh, that would be nice :) 07:30:45 *pr3d4t0r* checks if there is a script engine for Kawa. 07:31:01 it is actively maintained, Per Bothner is very helpful! if you don't have a lot of legacy code on SISC, that might be an option 07:32:10 ecraven: All I need to write is one or two lines of Scheme :) 07:32:36 ecraven: No legacy code at all. I'm just testing a JSR-223 interface between Java and Scheme and how to pass it app server context bindings. 07:34:49 -!- kilimanjaro [~kilimanja@unaffiliated/kilimanjaro] has quit [Quit: Leaving] 07:35:01 that should work fine. Kawa Scheme also has annotations and (some) generic support :) 07:35:42 ecraven: Thanks for the recommendation. I'll pass it on to the guys who want/will use Scheme. Given where I am, it'll be faster for me to figure out how to make the context bindings and how to call Java-from-Scheme than removing everything I've done so far and start over with Kawa. 07:35:47 -!- Nisstyre-laptop [~yours@oftn/member/Nisstyre] has quit [Quit: Leaving] 07:36:27 ecraven: In general, when we do scripting, we try to keep a very clear separation between Java and the scripted language. Single integration point. I'm doing that part. 07:36:40 ecraven: Once that's done, I won't have to ever touch it again. 07:38:53 -!- amoe [~amoe@host-78-147-145-98.as13285.net] has quit [Ping timeout: 246 seconds] 07:41:14 amoe [~amoe@host-2-96-230-166.as13285.net] has joined #scheme 07:42:06 wingo [~wingo@cha74-2-88-160-190-192.fbx.proxad.net] has joined #scheme 07:43:14 -!- b4283 [~b4283@60-249-196-111.HINET-IP.hinet.net] has quit [Disconnected by services] 07:43:20 b4283 [~b4283@60-249-196-111.HINET-IP.hinet.net] has joined #scheme 07:46:43 -!- przl [~przlrkt@p54BF8C87.dip0.t-ipconnect.de] has quit [Read error: Connection reset by peer] 07:46:52 przl [~przlrkt@p54BF8C87.dip0.t-ipconnect.de] has joined #scheme 07:46:59 Nisstyre-laptop [~yours@oftn/member/Nisstyre] has joined #scheme 07:47:14 -!- foeniks [~fevon@p5083F556.dip.t-dialin.net] has quit [Quit: Leaving] 07:54:59 jao [~jao@67.51.76.53] has joined #scheme 07:55:03 -!- jao [~jao@67.51.76.53] has quit [Changing host] 07:55:03 jao [~jao@pdpc/supporter/professional/jao] has joined #scheme 07:56:09 hkBst [~marijn@gentoo/developer/hkbst] has joined #scheme 08:07:18 -!- Hermit [~hermit@unaffiliated/grpala] has quit [Ping timeout: 264 seconds] 08:12:38 pr3d4t0r: if you have any questions concerning Kawa Scheme, just ask, I'm no expert, but I've used it off and on ;) 08:14:46 ecraven: I will, thanks :) 08:16:38 amgarching [~amgarchin@theo1.theochem.tu-muenchen.de] has joined #scheme 08:18:22 -!- pcl [~squip@cpe-68-174-132-160.nyc.res.rr.com] has quit [Quit: Leaving.] 08:18:57 mmc1 [~michal@178-85-54-213.dynamic.upc.nl] has joined #scheme 08:21:48 -!- teiresias [~teiresias@archlinux/trusteduser/teiresias] has quit [Ping timeout: 264 seconds] 08:32:06 -!- hkBst [~marijn@gentoo/developer/hkbst] has quit [Read error: Connection reset by peer] 08:32:10 -!- taylanub [tub@p4FD93FB2.dip.t-dialin.net] has quit [Remote host closed the connection] 08:32:25 hkBst [~marijn@79.170.210.172] has joined #scheme 08:32:25 -!- hkBst [~marijn@79.170.210.172] has quit [Changing host] 08:32:25 hkBst [~marijn@gentoo/developer/hkbst] has joined #scheme 08:32:49 taylanub [tub@p4FD93FB2.dip.t-dialin.net] has joined #scheme 08:33:26 ecraven: What is a Scheme first class value? 08:33:37 ecraven: (x 5) -- is x such a value? 08:34:06 a value is first class if you can pass it as an argument to a procedure, return it from a procedure, store it in a datastructure, etc. 08:34:08 teiresias [~teiresias@archlinux/trusteduser/teiresias] has joined #scheme 08:34:30 all the things you expect from e.g. an integer 08:35:07 pr3d4t0r: most things in Scheme are first class. Macros for example aren't 08:35:24 functions, numbers, strings, pairs, records etc. are 08:35:38 -!- przl [~przlrkt@p54BF8C87.dip0.t-ipconnect.de] has quit [Quit: leaving] 08:36:05 ijp, ecraven: OKi, thanks. 08:36:18 *pr3d4t0r* realizes that the Java/Scheme JSR-223 interface is broken. 08:37:08 <^self> what do people use for r7rs these days? a friend recommends chibi-scheme 08:38:51 pr3d4t0r: unfortunately I never worked with that. in what way is it broken? 08:38:51 chibi is the only r7rs implementation 08:40:54 ecraven: It's for a mental experiment/request from a company to whose open source I contribute. 08:42:16 ecraven: They got a bee in their bonnet that they wanted to implement Scheme as a scripting language for an app server. Their stuff already supports more mainstream languages; this is for a very narrow demographic. Almost not worth pursuing. But it's a great mental exercise for showcasing how to implement Java/$LANGUAGE bridges. 08:42:56 ecraven: I can already run Scheme code in the app server. That took a few hours and a lot of guesswork to figure it out. 08:43:52 ecraven: Now I need to be able to pass the server context bindings to the Scheme run-time so that the server and the Scheme code can talk to one another. 08:44:39 ecraven: For example, the app server logger is written in Java. Let's say that my script is in Python. 08:44:45 pr3d4t0r: If it is a Java object, then it should "just work" with kawa scheme 08:45:01 pr3d4t0r: strictly speaking, with Kawa you don't need a bridge, as it all actually *is* Java 08:45:38 ecraven: Yeah, but the Kawa site wasn't loading, and I've invested too much time on this. My problem isn't support in SISC - I can see it there. I just don't know enough Scheme or SISC to figure out which method calls I need to make/replace. 08:45:48 ecraven: Ah, very nice. 08:46:18 ecraven: Kawa is GPL, though. No GPL. 08:46:19 -!- jewel [~jewel@105-237-24-49.access.mtnbusiness.co.za] has quit [Ping timeout: 256 seconds] 08:46:26 -!- toekutr [~user@50-0-51-11.dsl.static.sonic.net] has quit [Read error: Connection reset by peer] 08:47:08 ecraven: Actually - this part won't "just work" in Kawa either. I still need to tell Kawa what to bind. 08:47:22 ecraven: So I would have the same problem. Or in Clojure. 08:47:26 ecraven: Same issue. 08:48:17 ecraven: Kawa and Clojure have the syntactic advantage over SISC, but all of them are at least equally hard when it comes to binding the context variables. 08:48:43 what exactly do you mean by "bind the context variables"? 08:48:56 you want to introduce new global bindings? 08:49:32 ecraven: Yes. 08:49:54 ecraven: They don't permeate the Java/Scheme barrier automatically. 08:50:17 of course not ;) 08:50:31 for that you'll have to look into how to introduce new global bindings in your given Scheme implementation 08:50:37 there is no standard way of doing this I believe 08:50:40 htor [165479@safir.ifi.uio.no] has joined #scheme 08:51:08 ecraven: http://cl.ly/NjHe - the script I run is passed to the interpreter using evalInput() -- see the available calls. 08:52:44 ecraven: I need to pass Java objects converted to first class values to this somehow. So I need to replace evalInput(x) with one of the others. I don't know which one. 08:53:16 ecraven: I validated that the s2j library works, e.g. (import s2j) 08:53:38 ecraven: And I can check if the values exist already in the Scheme space or not, e.g. 08:53:55 ecraven: (display (if (java-object? log) "yes" "no")) 08:54:01 pr3d4t0r: you probably want the last EVAL, you have to insert your bindings into a SymbolicEnvironment, and pass the expression as a Value (that's my guess without knowing anything about SISC internals) 08:54:04 ecraven: "no" 08:54:28 ecraven: That's what I'm thinking. 08:54:54 ecraven: So now I'm learning about Value instances and eval, and abusing your collective kindness in helping me figure this out :) 08:55:19 ecraven: I know this is working fine when that last expression (?) returns "yes". 08:55:21 -!- jao [~jao@pdpc/supporter/professional/jao] has quit [Read error: Connection reset by peer] 08:55:27 ecraven: From then on it's all painting by numbers. 08:55:31 bjz [~brendanza@125.253.99.68] has joined #scheme 08:56:11 ecraven: Is this an expression or a statement in Scheme? --> (display (if (java-object? log) "yes" "no")) 08:57:35 pr3d4t0r: in Scheme, *everything* is an expression (which returns 0 to n values) 08:57:41 rudybot: (values) 08:57:41 ecraven: your sandbox is ready 08:57:42 ecraven: Done. 08:58:03 rudybot: (display "hello, pr3d") 08:58:04 pr3d4t0r: but if i try the obvious things, even my web browser won't display them except as a box 08:58:48 rudybot: eval the poor guys scheme expression 08:58:49 ijp: your sandbox is ready 08:58:49 ijp: error: the: undefined; cannot reference an identifier before its definition in module: 'program 08:58:57 okay, I walked right into that one 08:59:10 Heh. 08:59:54 ecraven: OKi, it's 0200 here. 09:00:17 ecraven: I'm going to hit the sack for a few hours, then get back to this. 09:00:25 ecraven, ijp: Thanks for your help. 09:00:49 pr3d4t0r: i believe you have to create a SymbolicEnvironment (http://sisc-scheme.org/manual/javadoc/sisc/env/SymbolicEnvironment.html), then DEFINE all your values, binding them to whatever symbols you want 09:01:00 ecraven: Yeah, agreed. 09:01:18 ecraven: That class isn't documented but I inferred it's some kind of dictionary. 09:01:31 yes, that's what environments are ;) 09:01:36 sleep well 09:01:59 ecraven: :) 09:02:40 ecraven: symbols.define(new Symbol("log"), Value.newInstanceFromJava(log)); or something like that. I'll sort it out in the morning. 09:02:47 Good night, Everyone! 09:02:48 Z z . 09:04:13 pr3d4t0r: that looks good ;) 09:17:06 SanderM [~quassel@2001:610:180:1:e2cb:4eff:fe41:41d] has joined #scheme 09:24:42 can anyone suggest a way of maping a procedure over pairs of characters from a string other than writing the loop myself? e.g. given f and "abcd" i should have (list (f "ab") (f "cd")) 09:27:58 amgarchIn9 [~matveev@theo1.theochem.tu-muenchen.de] has joined #scheme 09:29:55 well, if you happen to have a "string-chunks" procedure, then you could use that and map. 09:30:24 but since this sort of thing isn't that common, you'll probably have to write a chunking procedure yourself 09:30:43 thanks ijp :-) 09:33:39 -!- ympbyc [~ympbyc@p35134-ipbffx02marunouchi.tokyo.ocn.ne.jp] has quit [Remote host closed the connection] 09:34:25 ccorn [~ccorn@i52104.upc-i.chello.nl] has joined #scheme 09:38:29 ympbyc [~ympbyc@p35134-ipbffx02marunouchi.tokyo.ocn.ne.jp] has joined #scheme 09:46:20 -!- ympbyc [~ympbyc@p35134-ipbffx02marunouchi.tokyo.ocn.ne.jp] has quit [Remote host closed the connection] 09:56:05 -!- snowylike [~sn@91-67-171-156-dynip.superkabel.de] has quit [Quit: Nettalk6 - www.ntalk.de] 10:01:41 -!- permagreen [~donovan@204-195-27-175.wavecable.com] has quit [Quit: USER DEAD IMMINENT] 10:15:32 agumonkey [~agu@8.158.70.86.rev.sfr.net] has joined #scheme 10:57:52 Hermit [~hermit@unaffiliated/grpala] has joined #scheme 11:00:01 -!- cibs [~cibs@219-87-142-18.static.tfn.net.tw] has quit [Ping timeout: 256 seconds] 11:04:48 -!- b4283 [~b4283@60-249-196-111.HINET-IP.hinet.net] has quit [Remote host closed the connection] 11:07:04 jao [~jao@67.51.76.53] has joined #scheme 11:07:07 -!- jao [~jao@67.51.76.53] has quit [Changing host] 11:07:07 jao [~jao@pdpc/supporter/professional/jao] has joined #scheme 11:07:13 cibs [~cibs@218.211.32.194] has joined #scheme 11:15:33 fractastical [~jdietz@n80-237-194-102.cnet.hosteurope.de] has joined #scheme 11:22:59 jeapostrophe [~jay@racket/jeapostrophe] has joined #scheme 11:23:51 -!- jao [~jao@pdpc/supporter/professional/jao] has quit [Ping timeout: 256 seconds] 11:52:06 -!- hopfrog [~quassel@pool-96-236-222-96.pitbpa.fios.verizon.net] has quit [Read error: Connection reset by peer] 11:54:54 -!- bjz [~brendanza@125.253.99.68] has quit [Quit: Leaving...] 11:55:59 bjz [~brendanza@125.253.99.68] has joined #scheme 11:59:41 -!- Nisstyre-laptop [~yours@oftn/member/Nisstyre] has quit [Quit: Leaving] 12:00:26 -!- SanderM [~quassel@2001:610:180:1:e2cb:4eff:fe41:41d] has quit [Ping timeout: 245 seconds] 12:04:33 GOMADWarrior [~Regis@187.65.193.132] has joined #scheme 12:05:53 civodul [~user@nat-eduroam-36-gw-01-bso.bordeaux.inria.fr] has joined #scheme 12:09:00 gleag [~gleag@71.175.broadband2.iol.cz] has joined #scheme 12:11:40 -!- tenq [~tenq@ip68-100-228-234.dc.dc.cox.net] has quit [Quit: Leaving] 12:15:59 carleastlund [~cce@gotham.ccs.neu.edu] has joined #scheme 12:21:07 -!- fractastical [~jdietz@n80-237-194-102.cnet.hosteurope.de] has quit [Quit: fractastical] 12:23:15 sambio [~sambio@190.57.227.109] has joined #scheme 12:43:27 snowylike [~sn@91-67-171-156-dynip.superkabel.de] has joined #scheme 12:57:31 snowylike2 [~sn@91-67-171-156-dynip.superkabel.de] has joined #scheme 12:58:41 -!- snowylike [~sn@91-67-171-156-dynip.superkabel.de] has quit [Ping timeout: 248 seconds] 13:11:19 serhart [~Adium@173-10-225-9-BusName-WestFlorida.hfc.comcastbusiness.net] has joined #scheme 13:18:10 langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has joined #scheme 13:33:33 gleag_ [~gleag@71.175.broadband2.iol.cz] has joined #scheme 13:34:02 -!- serhart [~Adium@173-10-225-9-BusName-WestFlorida.hfc.comcastbusiness.net] has quit [Ping timeout: 252 seconds] 13:35:06 SanderM [~quassel@2001:610:180:1:e2cb:4eff:fe41:41d] has joined #scheme 13:36:12 -!- gleag [~gleag@71.175.broadband2.iol.cz] has quit [Ping timeout: 256 seconds] 13:36:38 -!- LAMMJohnson [~ja@user-5af433bb.broadband.tesco.net] has quit [Ping timeout: 255 seconds] 13:38:33 LAMMJohnson [~ja@user-5af433bb.broadband.tesco.net] has joined #scheme 13:41:37 fractastical [~jdietz@n80-237-194-102.cnet.hosteurope.de] has joined #scheme 13:44:58 edw [~textual@207.239.61.34] has joined #scheme 13:55:12 b4283 [~b4283@1-172-86-126.dynamic.hinet.net] has joined #scheme 14:00:36 jaaso [~user@178.239.31.138] has joined #scheme 14:02:42 gleag__ [~gleag@71.175.broadband2.iol.cz] has joined #scheme 14:03:20 -!- lazyden [~lazyden@58.185.121.38] has quit [Quit: lazyden] 14:06:06 -!- gleag_ [~gleag@71.175.broadband2.iol.cz] has quit [Ping timeout: 264 seconds] 14:08:16 jrajav [~jrajav@198.179.137.210] has joined #scheme 14:15:36 dEPY [~dEPY@46-150-62-58.cable.teleing.net] has joined #scheme 14:16:44 -!- mmc1 [~michal@178-85-54-213.dynamic.upc.nl] has quit [Ping timeout: 256 seconds] 14:17:40 -!- edw [~textual@207.239.61.34] has quit [Quit: Computer has gone to sleep.] 14:20:59 mmc1 [~michal@178-85-54-213.dynamic.upc.nl] has joined #scheme 14:24:34 gleag [~gleag@71.175.broadband2.iol.cz] has joined #scheme 14:25:37 wbooze [~wbooze@xdsl-78-35-153-41.netcologne.de] has joined #scheme 14:26:22 -!- gleag__ [~gleag@71.175.broadband2.iol.cz] has quit [Ping timeout: 256 seconds] 14:26:55 -!- hiroakip [~hiroaki@77-20-72-92-dynip.superkabel.de] has quit [Ping timeout: 264 seconds] 14:27:18 -!- LAMMJohnson [~ja@user-5af433bb.broadband.tesco.net] has quit [Remote host closed the connection] 14:31:13 -!- jrajav [~jrajav@198.179.137.210] has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE] 14:35:29 -!- fractastical [~jdietz@n80-237-194-102.cnet.hosteurope.de] has quit [Quit: fractastical] 14:45:04 -!- sirdancealo2 [~sirdancea@98.82.broadband5.iol.cz] has quit [Ping timeout: 256 seconds] 14:49:07 permagreen [~donovan@204-195-27-175.wavecable.com] has joined #scheme 14:52:57 fractastical [~jdietz@pd95ced3d.dip0.t-ipconnect.de] has joined #scheme 14:54:12 jrajav [~jrajav@198.179.137.210] has joined #scheme 14:59:28 -!- agumonkey [~agu@8.158.70.86.rev.sfr.net] has quit [Ping timeout: 258 seconds] 15:00:36 hkBst_ [~marijn@79.170.210.172] has joined #scheme 15:00:36 -!- hkBst_ [~marijn@79.170.210.172] has quit [Changing host] 15:00:36 hkBst_ [~marijn@gentoo/developer/hkbst] has joined #scheme 15:00:47 -!- hkBst [~marijn@gentoo/developer/hkbst] has quit [Ping timeout: 240 seconds] 15:02:06 sirdancealo2 [~sirdancea@98.82.broadband5.iol.cz] has joined #scheme 15:02:46 -!- fractastical [~jdietz@pd95ced3d.dip0.t-ipconnect.de] has quit [Quit: fractastical] 15:04:50 -!- gleag [~gleag@71.175.broadband2.iol.cz] has quit [Ping timeout: 255 seconds] 15:05:12 gleag [~gleag@71.175.broadband2.iol.cz] has joined #scheme 15:06:27 fractastical [~jdietz@pd95ced3d.dip0.t-ipconnect.de] has joined #scheme 15:12:53 -!- fractastical [~jdietz@pd95ced3d.dip0.t-ipconnect.de] has quit [Quit: fractastical] 15:13:48 fractastical [~jdietz@pd95ced3d.dip0.t-ipconnect.de] has joined #scheme 15:15:41 sttau [~sttau@unaffiliated/sttau] has joined #scheme 15:18:30 -!- fractastical [~jdietz@pd95ced3d.dip0.t-ipconnect.de] has quit [Ping timeout: 256 seconds] 15:30:18 rotty [rotty@yade.xx.vu] has joined #scheme 15:31:03 ijp` [~user@host86-173-114-23.range86-173.btcentralplus.com] has joined #scheme 15:33:38 -!- ijp [~user@host81-159-28-249.range81-159.btcentralplus.com] has quit [Ping timeout: 252 seconds] 15:40:09 fractastical [~jdietz@pd95ced3d.dip0.t-ipconnect.de] has joined #scheme 15:40:37 -!- fractastical [~jdietz@pd95ced3d.dip0.t-ipconnect.de] has quit [Client Quit] 15:42:47 -!- bjz [~brendanza@125.253.99.68] has quit [Ping timeout: 258 seconds] 15:46:16 -!- hkBst_ [~marijn@gentoo/developer/hkbst] has quit [Quit: Konversation terminated!] 15:47:00 -!- joneshf-laptop [~joneshf@086.112-30-64.ftth.swbr.surewest.net] has quit [Ping timeout: 258 seconds] 15:51:19 Apparently Lisp is all Greek to Google: http://mumble.net/~campbell/tmp/paredit-is-greek.png 15:56:34 -!- permagreen [~donovan@204-195-27-175.wavecable.com] has quit [Read error: Connection reset by peer] 15:56:56 Heh 15:57:47 permagreen [~donovan@204-195-27-175.wavecable.com] has joined #scheme 16:03:36 -!- jeapostrophe [~jay@racket/jeapostrophe] has quit [Ping timeout: 260 seconds] 16:10:45 Riastradh: lol. I had similar experience when testing my application and I inputed random characters in forms. Chrome said it's in lebanese or something. :D 16:13:58 Greetings. 16:14:28 How do you reference a variable in the "var" name space (I think that's what it's called) in Scheme? 16:15:47 -!- snowylike2 [~sn@91-67-171-156-dynip.superkabel.de] has quit [Quit: Nettalk6 - www.ntalk.de] 16:16:23 This is being set up before starting the interpreter: 16:16:25 interp.define(Symbol.get("var"), ctxProc, Util.TOPLEVEL); 16:19:04 The var symbol is acting like a name space. ctxProc evaluates a dictionary of bindings to associate with the symbol. 16:19:11 bjz [~brendanza@125.253.99.68] has joined #scheme 16:20:29 The last argument tells Scheme that the symbol definition applies to the whole script, based on what I gather from the sources (the documentation isn't very good). 16:21:03 -!- SanderM [~quassel@2001:610:180:1:e2cb:4eff:fe41:41d] has quit [Remote host closed the connection] 16:21:40 If this were Python, I believe this is how this would look: var = { x: '42', y: '69' } where the dictionary is extracted from ctxProc 16:22:12 Or, in a more general case, { var: { x: '42', y: '69' } } 16:22:32 How would one access these data? 16:23:02 This test: (display (if (java-object? x) "yes" "no")) ; => "no" 16:24:00 I need to tell something like var.x or var[x] or somehow tell Scheme that x is defined for the var dictionary. Thanks in advance. 16:24:05 gnomon: Ping... 16:24:14 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 256 seconds] 16:24:18 tupi [~user@139.82.89.157] has joined #scheme 16:32:10 agumonkey [~agu@8.158.70.86.rev.sfr.net] has joined #scheme 16:34:22 -!- b4283 [~b4283@1-172-86-126.dynamic.hinet.net] has quit [Remote host closed the connection] 16:36:04 -!- yacks [~yacks@180.151.36.168] has quit [Quit: Leaving] 16:47:09 edw [~textual@207.239.61.34] has joined #scheme 16:48:20 -!- edw [~textual@207.239.61.34] has quit [Client Quit] 16:48:44 edw [~edw@207.239.61.34] has joined #scheme 16:50:45 nomous [~nomous@78.209.173.133] has joined #scheme 16:56:15 toekutr [~user@50-0-51-11.dsl.static.sonic.net] has joined #scheme 16:58:25 yacks [~yacks@180.151.36.168] has joined #scheme 17:00:19 -!- civodul [~user@nat-eduroam-36-gw-01-bso.bordeaux.inria.fr] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 17:01:23 -!- MichaelRaskin [~MichaelRa@195.178.216.22] has quit [Remote host closed the connection] 17:08:36 -!- edw [~edw@207.239.61.34] has quit [Ping timeout: 252 seconds] 17:11:34 -!- sttau [~sttau@unaffiliated/sttau] has quit [Quit: Changing server] 17:12:07 sttau [~sttau@bl14-138-124.dsl.telepac.pt] has joined #scheme 17:12:07 -!- sttau [~sttau@bl14-138-124.dsl.telepac.pt] has quit [Changing host] 17:12:07 sttau [~sttau@unaffiliated/sttau] has joined #scheme 17:16:05 -!- acarrico [~acarrico@209.99.209.27] has quit [Remote host closed the connection] 17:16:07 Riastradh [~riastradh@fsf/member/riastradh] has joined #scheme 17:17:55 -!- amgarching [~amgarchin@theo1.theochem.tu-muenchen.de] has quit [Ping timeout: 264 seconds] 17:18:20 Fare [fare@nat/google/x-gygftqfcyouxocfh] has joined #scheme 17:20:48 acarrico [~acarrico@209.99.209.27] has joined #scheme 17:46:33 civodul [~user@reverse-83.fdn.fr] has joined #scheme 17:47:02 fractastical [~jdietz@pd95ced3d.dip0.t-ipconnect.de] has joined #scheme 17:47:42 -!- jrajav [~jrajav@198.179.137.210] has quit [Quit: phunq, sandwich store loop, WHAT NO UNIVERSE] 17:52:17 -!- yacks [~yacks@180.151.36.168] has quit [Quit: Leaving] 17:53:31 -!- fractastical [~jdietz@pd95ced3d.dip0.t-ipconnect.de] has quit [Quit: fractastical] 17:54:15 amgarching [~amgarchin@p4FD6075B.dip0.t-ipconnect.de] has joined #scheme 18:02:35 jrajav [~jrajav@198.179.137.210] has joined #scheme 18:04:31 annodomini [~lambda@173-14-129-9-NewEngland.hfc.comcastbusiness.net] has joined #scheme 18:04:31 -!- annodomini [~lambda@173-14-129-9-NewEngland.hfc.comcastbusiness.net] has quit [Changing host] 18:04:31 annodomini [~lambda@wikipedia/lambda] has joined #scheme 18:07:46 snowylike [~sn@91-67-171-156-dynip.superkabel.de] has joined #scheme 18:13:49 -!- taylanub [tub@p4FD93FB2.dip.t-dialin.net] has quit [Disconnected by services] 18:13:49 -!- rapacity [~rapacity@unaffiliated/rapacity] has quit [Read error: Connection reset by peer] 18:14:32 taylanub [tub@p4FD93D06.dip.t-dialin.net] has joined #scheme 18:19:49 pr3d4t0r: The closest concept to a "namespace" I know of in standard Scheme is an "environment." 18:20:05 Different concept. Different people mean different things by "namespace" 18:20:39 You need to specify the context for the term `namespace'. That is...you need to say what namespace you're talking in! 18:20:41 Usually Scheme is referred to as "single namespace" because the same name means the same thing everywhere.. let me contrast with other languages. 18:21:11 In C: typedef int foo; foo foo() { struct foo bar; foo: 1; goto foo; } <== these 'foo's are all different 18:21:55 In Perl: my $foo; my @foo; my %foo; sub foo {} *foo; open foo, "/path/to/file"; <== these 'foo's are all different 18:22:15 In Scheme: the moment you define a symbol called 'foo, the letters 'foo' in that lexical scope will always refer to the same symbol 18:23:09 Yes, Scheme has one name-space per environment, and it's not a concrete object in the language (although the environment is). Hence I assumed environments might've been meant .. 18:23:51 -!- toekutr [~user@50-0-51-11.dsl.static.sonic.net] has quit [Read error: Connection reset by peer] 18:24:04 -!- bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has quit [Ping timeout: 260 seconds] 18:24:17 Other than that, I see mention of dictionaries in other languages .. in Scheme that could be a hash-table or a record, I guess. 18:24:24 pr3d4t0r: You'll need to clarify .. a lot. :P 18:24:26 MichaelRaskin [~MichaelRa@195.91.224.225] has joined #scheme 18:24:42 toekutr [~user@50-0-51-11.dsl.static.sonic.net] has joined #scheme 18:27:50 fractastical [~jdietz@p57BD6A9B.dip0.t-ipconnect.de] has joined #scheme 18:36:40 -!- sambio [~sambio@190.57.227.109] has quit [Ping timeout: 245 seconds] 18:43:28 taylanub: Hola. 18:44:09 taylanub: It's an interface for a Java app server hosting Scheme using JSR-223. 18:44:35 taylanub: The app server defines some objects that the Scheme programs can use to communicate with it. 18:44:46 taylanub: They are called "context bindings". 18:45:13 taylanub: I can't figure out from looking at the Interpreter SISC class methods how to pass those bindings. 18:45:47 taylanub: I thought they were bing passed with the context, but after testing if the symbols that the Java code appears to pass are available in Scheme, they aren't. 18:45:59 taylanub: (display (if (java-object? context) "context yes;" "context no; ")) 18:46:02 taylanub: "no" 18:47:13 taylanub: Scheme programs can execute now, but they're useless if they can't receive data from the app server and respond. 18:47:22 edw [~edw@207.239.61.34] has joined #scheme 18:49:11 -!- qrstuv1 [bootes@50.122.23.63] has quit [Ping timeout: 252 seconds] 18:49:13 bipt [~bpt@cpe-173-095-170-102.nc.res.rr.com] has joined #scheme 18:50:28 qrstuv [bootes@50.122.25.46] has joined #scheme 18:53:15 taylanub: Looking at the interface between Java and Scheme, there might be a symbol called "var" that appears to be associated with dictionary/collection of associations/tuples/whatever they are called in Scheme. 19:00:16 sajith [~sajith@bog.hcoop.net] has joined #scheme 19:02:21 -!- annodomini [~lambda@wikipedia/lambda] has quit [Remote host closed the connection] 19:02:53 annodomini [~lambda@wikipedia/lambda] has joined #scheme 19:04:38 -!- sajith [~sajith@bog.hcoop.net] has quit [Quit: Changing server] 19:11:51 rndnick42023 [~user@stgt-5f718214.pool.mediaWays.net] has joined #scheme 19:16:04 -!- snowylike [~sn@91-67-171-156-dynip.superkabel.de] has quit [Quit: Nettalk6 - www.ntalk.de] 19:17:00 -!- gravicappa [~gravicapp@ppp91-77-180-207.pppoe.mtu-net.ru] has quit [Ping timeout: 260 seconds] 19:17:53 pr3d4t0r: You needn't highlight me on each message. 19:18:19 taylanub: Heh - habit. 19:18:26 *pr3d4t0r* stops the muscle memory. 19:19:34 when there is no set! in sight can one distinguish between "variables bound to a location" and "variables bound to a values"? 19:19:43 So those are the details. I just need to figure out how to get the context bindings across so that the Scheme scientists can start doing their work. 19:20:14 are there other scheme constructs that could expose the difference? 19:20:44 -!- araujo [~araujo@gentoo/developer/araujo] has quit [Ping timeout: 272 seconds] 19:23:34 gravicappa [~gravicapp@ppp91-77-160-180.pppoe.mtu-net.ru] has joined #scheme 19:23:58 -!- nomous [~nomous@78.209.173.133] has quit [Remote host closed the connection] 19:28:09 amgarching : i suppose macros which expand to uses of `set!' 19:30:28 LAMMJohnson [~ja@user-5af43fd6.broadband.tesco.net] has joined #scheme 19:33:29 does scheme specify if one can safely use (lambda (x) (set! x (+ 1 x))) on any kind of variable without seeing side effects? 19:38:11 -!- ccorn [~ccorn@i52104.upc-i.chello.nl] has quit [Quit: ccorn] 19:39:01 jcowan [~jcowan@mail.digitalkingdom.org] has joined #scheme 19:39:48 amgarching, if there's no SET! and no multiple-return LETREC, and nothing equivalent to those, then you can't distinguish them. But you might not `see' all the SET!s or LETRECs because of macros. 19:39:53 I guess that par 3.1 of r5rs in second paragraph says that new bindings in lambda have new locations. 19:39:58 (or multiple-return DEFINE) 19:40:02 (or...) 19:40:08 second paragraph, that is 19:50:23 pr3d4t0r: Sorry had to go after posting that line .. A bit busy. 19:51:16 -!- wbooze [~wbooze@xdsl-78-35-153-41.netcologne.de] has quit [Ping timeout: 240 seconds] 19:52:31 wbooze [~wbooze@xdsl-78-35-128-188.netcologne.de] has joined #scheme 19:54:17 taylanub: Getting help elsewhere, thanks. I will let you know how we resolved it (in fact, I'm writing an article; that's why this is needed). Carry on and I'll post the findings later. 19:58:36 pr3d4t0r: OK, I'm finally available .. but I'm afraid what you're describing is too domain-specific, doesn't sound like anything standard-Scheme to me. 19:58:48 (And I don't have any Java experience.) 19:58:50 taylanub: SISC - and we are almost there. 19:58:51 taylanub: It's not. It uses low-level SISC implementation details. 19:58:57 I see. 19:59:01 It's OKi, we're almost there. 19:59:17 pr3d4t0r: Good luck. If you don't win, ping me, and I'll look at the SISC JSR-223 engine. 19:59:28 The objects are in Scheme now. (display myObject) ;=> # 19:59:36 (I don't have lots of SISC experience, but I used JSR-223 a lot some years ago.) 19:59:45 Good job! 20:00:13 cky: Do you recall how to call a Java object's methods from Scheme? 20:00:41 cky: We think ((log "info") "some string") ;=> equivalent to: log.info("some string"); 20:00:50 cky: That's my last missing piece. 20:01:07 -!- langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has quit [Remote host closed the connection] 20:01:33 langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has joined #scheme 20:01:50 pr3d4t0r: http://sisc-scheme.org/manual/html/ch08.html 20:03:26 cky: No, that's a little different. 20:03:32 Okay. 20:03:38 cky: That's what we were using and where we were wrong. 20:04:01 cky: We have a Java object, log, that has one method, info("string"); 20:04:47 cky: That Java object was injected into the Scheme context in a way that it looks now as if someone had written the equivalent functionality in Scheme, no Java involved. 20:05:07 cky: That's why ch08 doesn't apply (and yes, we tried ch08 for several hours last night). 20:05:15 Hmmmm. 20:06:11 cky: If I can figure out what the equivalent to class Logger { public void log(String s); } .. Logger log = new Logger(); log.info("hello"); in Scheme, I'll be 85% done. 20:07:15 cky: The other 15% would be how to get information out of Scheme: String result = "some date here"; which I think will be something like (result "some data here") 20:07:59 You know, a lot of this might have to do with the specifics of the SISC JSR-223 engine. So I must study that up some before I can say more. :-) 20:08:47 cky: OKi. 20:09:16 cky: I've been looking at the source for two days but since the SISC Java parts aren't documented, and I don't know Scheme, what they're doing makes no sense to me anyway. 20:09:55 cky: I know that the Java objects are already in Scheme and can address them. I don't know how to refer to their methods. Some kind of eval(). 20:10:44 cky: ((log "info") "foo") ;=> ((message . "expected type number, got '\"info\"'.") (location . log) 20:11:21 I seem to recall you're supposed to use something like (define-java-generic info) (info log "foo"). 20:11:48 sambio [~sambio@190.57.227.109] has joined #scheme 20:11:57 Riastradh: I saw that in ch08 last night, but we were chasing the object definition first. Let me try that. 20:13:28 jeapostrophe [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has joined #scheme 20:13:29 -!- jeapostrophe [~jay@69.169.141.110.provo.static.broadweavenetworks.net] has quit [Changing host] 20:13:29 jeapostrophe [~jay@racket/jeapostrophe] has joined #scheme 20:15:07 ccorn [~ccorn@i52104.upc-i.chello.nl] has joined #scheme 20:17:19 Riastradh: OKi - read that, still don't understand how to tell Scheme that method doSomething() in object log (i.e. log.doSomething();) is tied to the log object. That Java generic thing only specifies the method, but methods are tied to specific instances. 20:17:51 When you call the generic, its behaviour will be determined by class of the first argument. 20:17:54 Riastradh: And I think that won't be the case. I'm almost 100% sure that log is a Scheme entity, not a Java-from-Scheme entity. 20:18:06 Riastradh: I see. 20:18:55 Riastradh: Let me try. 20:20:45 Riastradh: (generic-java-method '|info|) 20:20:51 Riastradh: That works... 20:21:38 Riastradh: (info log "test") ;=> ((message . "undefined variable 'info'.")) 20:22:16 -!- BossKonaSegwaY [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has quit [Quit: Leaving.] 20:23:12 Riastradh: (define info? (generic-java-method '|info|)) ; this works too -- no errors 20:25:06 Riastradh: http://eugeneciurana.com/pastebin/pastebin.php?show=45787 20:26:08 question mark missing? 20:26:23 The question mark is a part of the name. If you put it in the definition, you can't omit it in the reference. 20:26:38 Riastradh: Aha. 20:26:47 -!- bipt [~bpt@cpe-173-095-170-102.nc.res.rr.com] has quit [Quit: Leaving] 20:27:04 bipt [~bpt@cpe-173-095-170-102.nc.res.rr.com] has joined #scheme 20:27:22 Question mark on both definition and call result in: ((message . "no applicable method for args (# \"test\") in generic procedure #0=#")) 20:27:35 -!- rndnick42023 [~user@stgt-5f718214.pool.mediaWays.net] has quit [Remote host closed the connection] 20:28:43 -!- adiii [~adityavit@24-158-1-110.static.mdsn.wi.charter.com] has quit [Ping timeout: 264 seconds] 20:28:47 try (log 1) is that logarithm? 20:29:03 It looks like you passed the Scheme procedure LOG, not a Java logger object, to your INFOLOGGER generic. 20:29:06 rudybot: eval (log 123) 20:29:06 Riastradh: your sandbox is ready 20:29:07 Riastradh: ; Value: 4.812184355372417 20:29:22 amgarching: log == logger, not log10 :) 20:29:42 log is base e 20:29:44 rudybot: (log-warning "foo!") 20:29:44 stamourv: your sandbox is ready 20:29:44 stamourv: Done. 20:29:47 amgarching: Ah. 20:29:57 *pr3d4t0r* is used to ln(x) 20:30:03 That was underwhelming. 20:30:18 rudybot: (require unstable/logging) 20:30:18 stamourv: Done. 20:30:24 Riastradh: Correct. 20:30:27 rudybot: (define r (start-recording)) 20:30:27 stamourv: error: make-log-receiver: arity mismatch; the expected number of arguments does not match the given number expected: at least 2 given: 1 arguments...: # 20:30:33 :( 20:30:40 rudybot: (define r (start-recording 'warning)) 20:30:40 stamourv: Done. 20:30:46 rudybot: (log-warning "foo!") 20:30:46 stamourv: Done. 20:30:51 There is only one logarithm, and it is the natural one. 20:30:53 Riastradh: I contend that the Java log object is already mapped to the equivalent Scheme construct. 20:30:56 rudybot: (stop-recording r) 20:30:57 stamourv: ; Value: (#(warning "foo!" # #f)) 20:31:02 :D 20:31:25 Riastradh: That's why (generic-java-method x) doesn't look right to me. 20:32:10 Riastradh: If Java didn't exist, and we wanted the EQUIVALENT functionality to log.info("hola"); -- how would that be called? 20:32:13 Are you sure you have got a name for the Java `log' in Scheme? 20:32:20 Riastradh: Yes. 20:32:31 Riastradh: Sure now. 20:33:01 What happens when you try to pass it to the procedure you got from (generic-java-method '|info|)? 20:33:24 (display log) ;=> # 20:33:47 Yes -- the name LOG in Scheme refers to the procedure that computes natural logarithms. What's your name in Scheme for the Java `log'? 20:34:15 Riastradh: It should be log, unless there's some mangling or something happening before it gets to me. 20:34:21 Riastradh: Let me check a different one. 20:34:27 Can you try giving it a different name? 20:34:35 -!- ccorn [~ccorn@i52104.upc-i.chello.nl] has quit [Ping timeout: 260 seconds] 20:34:41 E.g., pr3d4t0r-log. 20:35:02 Riastradh: Agh! You're right. It's not there. That was Scheme's log, not my logger. 20:35:14 Riastradh: Dammit. 20:35:30 *pr3d4t0r* thinks. 20:35:58 -!- ASau [~user@46.115.86.86] has quit [Ping timeout: 245 seconds] 20:36:15 Riastradh: http://eugeneciurana.com/pastebin/pastebin.php?show=45786 - lines 57-60. Does that make sense? 20:37:11 I don't know. Looks vaguely plausible. What does Scheme think VAR and CONTEXT are? 20:37:48 BossKonaSegwaY [~Michael@cpe-75-187-45-52.columbus.res.rr.com] has joined #scheme 20:38:20 Riastradh: context # 20:38:22 (I don't see the string `log' anywhere in that code -- I would expect to see it somewhere in there if you want to name something LOG in Scheme.) 20:38:40 Riastradh: Let's forget log for a bit. Don't need it. 20:38:53 Riastradh: I want something external reflected internally; we'll deal with log in a bit. 20:38:55 hiroakip [~hiroaki@77-20-72-92-dynip.superkabel.de] has joined #scheme 20:39:27 Riastradh: One sec - need to do some surgery to the Java part, redeploy the server so that we can validate that context, var are coming from outside. 20:41:56 rapacity [~rapacity@unaffiliated/rapacity] has joined #scheme 20:42:22 Riastradh: OKi, 100% confirmed: context comes from outside Scheme and it's a # 20:43:10 Riastradh: Ditto for var 20:43:30 *pr3d4t0r* tries to see what those things are in Java. 20:46:17 ASau [~user@46.115.86.86] has joined #scheme 20:53:44 -!- toekutr [~user@50-0-51-11.dsl.static.sonic.net] has quit [Read error: Connection reset by peer] 20:59:22 araujo [~araujo@190.73.45.171] has joined #scheme 20:59:22 -!- araujo [~araujo@190.73.45.171] has quit [Changing host] 20:59:22 araujo [~araujo@gentoo/developer/araujo] has joined #scheme 20:59:30 ccorn [~ccorn@i52104.upc-i.chello.nl] has joined #scheme 21:07:00 -!- jcowan [~jcowan@mail.digitalkingdom.org] has quit [Remote host closed the connection] 21:07:53 -!- Myk267 [~myk@adsl-71-149-249-241.dsl.mtry01.sbcglobal.net] has quit [Quit: Ack! Hans, run! It's the lhurgoyf!] 21:09:48 -!- jrajav [~jrajav@198.179.137.210] has quit [Quit: I tend to be neutral about apples] 21:12:35 -!- Gurragchaa_ [uid6439@gateway/web/irccloud.com/x-bvljfbwskrqmfxnq] has quit [] 21:16:26 -!- Tanami [~carnage@9ch.in] has quit [Changing host] 21:16:26 Tanami [~carnage@unaffiliated/tanami] has joined #scheme 21:17:05 -!- hiroakip [~hiroaki@77-20-72-92-dynip.superkabel.de] has quit [Ping timeout: 245 seconds] 21:17:32 -!- permagreen [~donovan@204-195-27-175.wavecable.com] has quit [Quit: USER DEAD IMMINENT] 21:21:10 -!- mmc1 [~michal@178-85-54-213.dynamic.upc.nl] has quit [Ping timeout: 256 seconds] 21:26:44 -!- gravicappa [~gravicapp@ppp91-77-160-180.pppoe.mtu-net.ru] has quit [Remote host closed the connection] 21:37:14 adiii [~adityavit@24-158-1-110.static.mdsn.wi.charter.com] has joined #scheme 21:42:06 tenq [~tenq@ip68-100-228-234.dc.dc.cox.net] has joined #scheme 21:49:55 arbn_ [~arbn@auriga.kiwilight.com] has joined #scheme 21:50:03 http://bpaste.net/show/DcNrC0p8ytMKT4Gb62Tf/ 21:50:24 -!- arbn_ [~arbn@auriga.kiwilight.com] has quit [Client Quit] 21:51:14 arbn_ [~arbn@auriga.kiwilight.com] has joined #scheme 21:52:25 -!- arbn_ [~arbn@auriga.kiwilight.com] has quit [Client Quit] 21:52:26 joneshf-laptop [~joneshf@mail.concordusapps.com] has joined #scheme 21:53:35 dnolen [~user@97-115-20-36.ptld.qwest.net] has joined #scheme 21:58:50 -!- ijp` is now known as ijp 22:00:34 GOMADWarrior : did you define `for' ? 22:00:55 yes 22:01:07 it is working, just wanted to show it 22:01:39 how is `for' defined ? 22:01:55 (also, you seem to not really be using the main functionality of `for') 22:04:27 for is defined in javascript 22:04:35 I'm using a scheme interpreter in javascript 22:04:50 ok, so you didn't define `for' ? 22:04:58 (or did you define this interpreter ?) 22:05:07 function forr(init,cond,func){ var x=init; while(cond(x)){ func(x); x++; } } 22:05:08 -!- edw [~edw@207.239.61.34] has quit [Ping timeout: 246 seconds] 22:05:49 env["for"] = forr; 22:06:10 ok 22:06:31 -!- Fare [fare@nat/google/x-gygftqfcyouxocfh] has quit [Ping timeout: 264 seconds] 22:06:42 -!- langmartin [~user@host-68-169-175-226.WISOLT2.epbfi.com] has quit [Ping timeout: 264 seconds] 22:06:50 -!- bjz [~brendanza@125.253.99.68] has quit [Quit: Leaving...] 22:07:55 bjz [~brendanza@125.253.99.68] has joined #scheme 22:09:53 -!- zacts [~lcc@unaffiliated/zacts] has quit [Quit: leaving] 22:10:42 zacts [~user@unaffiliated/zacts] has joined #scheme 22:10:52 -!- adiii [~adityavit@24-158-1-110.static.mdsn.wi.charter.com] has quit [Ping timeout: 260 seconds] 22:11:36 -!- Riastradh [~riastradh@fsf/member/riastradh] has quit [Ping timeout: 264 seconds] 22:13:01 GOMADWarrior : and it returns nothing of interest ? or the last value of `x' ? 22:13:47 for returns nothing, it is simply for the side effects 22:13:55 i see 22:13:58 but you can put a set! function inside it 22:14:34 it will set whatever is inside or outside 22:14:51 *ski* nods 22:15:45 I'm using it because my interpreter isn't good with recursion 22:15:57 it gives me the error "too much recursion" sometimes 22:24:27 *ski* annotated "http://bpaste.net/show/DcNrC0p8ytMKT4Gb62Tf/" with "`for'" at 22:25:56 *ski* annotated "http://bpaste.net/show/DcNrC0p8ytMKT4Gb62Tf/" with "slight rewrite" at 22:33:48 *ski* annotated "http://bpaste.net/show/DcNrC0p8ytMKT4Gb62Tf/" with "`filter' rewritten into using `do'" at 22:33:51 GOMADWarrior ^ 22:34:57 I don't think I have do in my interpreter 22:35:05 GOMADWarrior : do you mean that the interpreter doesn't support proper tail calls ? 22:35:15 hm, ok. does it have macros of any kind ? 22:35:24 "named `let'" ? 22:35:30 let no 22:35:37 no `let' at all ? 22:35:44 I can do similar to let with begin and define 22:35:49 i see 22:45:17 -!- carleastlund [~cce@gotham.ccs.neu.edu] has quit [Quit: carleastlund] 22:46:40 -!- dnolen [~user@97-115-20-36.ptld.qwest.net] has quit [Ping timeout: 252 seconds] 22:50:19 -!- cdidd [~cdidd@95-27-69-201.broadband.corbina.ru] has quit [Ping timeout: 264 seconds] 22:50:28 -!- fractastical [~jdietz@p57BD6A9B.dip0.t-ipconnect.de] has quit [Quit: fractastical] 22:53:43 kvda [~kvda@unaffiliated/kvda] has joined #scheme 23:05:55 juxovec [~juxovec@88.103.13.78] has joined #scheme 23:07:14 -!- antoszka [~antoszka@unaffiliated/antoszka] has quit [Read error: Operation timed out] 23:07:46 -!- pierpa [~user@host6-229-dynamic.56-79-r.retail.telecomitalia.it] has quit [Ping timeout: 240 seconds] 23:09:27 -!- juxovec [~juxovec@88.103.13.78] has quit [Remote host closed the connection] 23:10:18 -!- preflex [~preflex@unaffiliated/mauke/bot/preflex] has quit [Ping timeout: 264 seconds] 23:10:25 preflex_ [~preflex@unaffiliated/mauke/bot/preflex] has joined #scheme 23:11:07 -!- preflex_ is now known as preflex 23:16:12 -!- bipt [~bpt@cpe-173-095-170-102.nc.res.rr.com] has quit [Ping timeout: 256 seconds] 23:16:17 antoszka [~antoszka@unaffiliated/antoszka] has joined #scheme 23:19:23 -!- ccorn [~ccorn@i52104.upc-i.chello.nl] has quit [Quit: ccorn] 23:22:16 -!- civodul [~user@reverse-83.fdn.fr] has quit [Quit: ERC Version 5.3 (IRC client for Emacs)] 23:24:43 -!- antoszka [~antoszka@unaffiliated/antoszka] has quit [Ping timeout: 245 seconds] 23:27:48 -!- gleag [~gleag@71.175.broadband2.iol.cz] has quit [Ping timeout: 264 seconds] 23:28:28 ddp [~ddp@71-83-115-6.static.reno.nv.charter.com] has joined #scheme 23:29:00 -!- tupi [~user@139.82.89.157] has quit [Remote host closed the connection] 23:29:17 dEPy_ [~dEPY@46-150-62-58.cable.teleing.net] has joined #scheme 23:31:05 -!- dEPY [~dEPY@46-150-62-58.cable.teleing.net] has quit [Ping timeout: 256 seconds] 23:31:24 -!- dEPy_ is now known as dEPy 23:32:14 antoszka [~antoszka@unaffiliated/antoszka] has joined #scheme 23:39:23 ccorn [~ccorn@i52104.upc-i.chello.nl] has joined #scheme 23:39:33 bipt [~bpt@cpe-071-070-253-241.nc.res.rr.com] has joined #scheme 23:39:57 juxovec [~juxovec@88.103.13.78] has joined #scheme 23:41:39 -!- ASau [~user@46.115.86.86] has quit [Ping timeout: 245 seconds] 23:45:06 -!- ccorn [~ccorn@i52104.upc-i.chello.nl] has quit [Ping timeout: 264 seconds] 23:48:54 -!- juxovec [~juxovec@88.103.13.78] has quit [Ping timeout: 276 seconds] 23:51:16 pcl [~squip@cpe-68-174-132-160.nyc.res.rr.com] has joined #scheme 23:55:57 langmartin [~user@host-68-169-154-130.WISOLT2.epbfi.com] has joined #scheme