q-lang-users Mailing List for Q - Equational Programming Language (Page 34)
Brought to you by:
agraef
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(3) |
Feb
(27) |
Mar
|
Apr
(4) |
May
(11) |
Jun
(5) |
Jul
(5) |
Aug
(6) |
Sep
(15) |
Oct
(28) |
Nov
(8) |
Dec
|
2005 |
Jan
(9) |
Feb
(5) |
Mar
(10) |
Apr
(43) |
May
(8) |
Jun
(31) |
Jul
(45) |
Aug
(17) |
Sep
(8) |
Oct
(30) |
Nov
(2) |
Dec
(6) |
2006 |
Jan
(4) |
Feb
(20) |
Mar
(1) |
Apr
|
May
(92) |
Jun
(179) |
Jul
(26) |
Aug
(65) |
Sep
(36) |
Oct
(38) |
Nov
(44) |
Dec
(68) |
2007 |
Jan
(11) |
Feb
(25) |
Mar
(37) |
Apr
(7) |
May
(83) |
Jun
(77) |
Jul
(44) |
Aug
(4) |
Sep
(28) |
Oct
(53) |
Nov
(12) |
Dec
(21) |
2008 |
Jan
(66) |
Feb
(45) |
Mar
(30) |
Apr
(50) |
May
(9) |
Jun
(18) |
Jul
(11) |
Aug
(6) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
From: John C. <co...@cc...> - 2006-08-23 05:34:31
|
Albert Graef scripsit: > BTW, I just noticed that you made it on the frontpage of Slashdot, > congrats. ;-) Thanks for the heads-up; I don't normally read Slashdot, so you're the first to let me know. For those who care, eWeek's report is correct, at least with respect to my actions. I'm not sure why they think this is news. -- It was impossible to inveigle John Cowan <co...@cc...> Georg Wilhelm Friedrich Hegel http://www.ccil.org/~cowan Into offering the slightest apology For his Phenomenology. --W. H. Auden, from "People" (1953) |
From: Albert G. <Dr....@t-...> - 2006-08-23 04:11:06
|
John Cowan wrote: > Most probably your guess is correct, that a bad release of some > system library had slipped out. I do Cygwin Setup every day or so > to keep myself up to date. Thought so. BTW, I just noticed that you made it on the frontpage of Slashdot, congrats. ;-) Cheers, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |
From: Burton S. <kr...@gm...> - 2006-08-22 23:38:14
|
Hi Again, So, after getting over my little problem with the prelude option, I managed to expand my cat routine in the following way, to handle multiple arguments: cat F:String = cat_file (fopen F "r"); cat F:File = cat_file F; cat F = cat_file (fopen (str F) "r") if issym F; = prints "cat: unsupported type"; cat_file F:File = () if feof F; = putc (fgetc F) || cat F otherwise; Since I'm just learning the language, I figured I'd make a cat function that handled multiple types, like actual File handles, string/quoted names and symbol names (so it looked more like the Unix shell). The only problem that I found with that was that there was no Symbol type (that I could find), so my code for handling that case had to differ from the String and File handlers by using an 'if issym' call, which works fine, but breaks consistency with the other options. Not that that is a big problem, but one of the reasons I like higher level languages is their ability to work with actual language symbols as a type (something about the idea of symbols works very well with how my brain is wired). Is the Symbol type left out for a reason, or is it under a different name that I haven't found yet? Would there be any objection to adding it? -- burton samograd kr...@gm... kruhft.boldlygoingnowhere.org www.myspace.com/kruhft |
From: Burton S. <kr...@gm...> - 2006-08-22 23:31:10
|
On 8/22/06, Albert Graef <Dr....@t-...> wrote: > The following program, which doesn't depend on clib or anything else in > the standard library works fine with --no-prelude, though: > > cat F = () if feof F; > = writes (freads F) || writes "\n" || cat F otherwise; > > Your code (without the writes "\n") runs fine with --no-prelude, too, > but of course the newlines are missing. > > Could you please check whether the above program works ok for you when > run with --no-prelude? I.e., the output should be something like: > > $ q --no-prelude cat.q > > ==> def F = fopen "cat.q" "r"; cat F > cat F = () if feof F; > = writes (freads F) || writes "\n" || cat F otherwise; > () > I did just check your above code and my own code, and neither of them run when the --no-prelude option is given (both return the "cat <<File>>") but both work fine otherwise. > > This could be interesting to you since the code I wrote doesn' > > actually use any of the prelude functions; maybe there's a bit of code > > in the prelude loading code that sets something up in the interpreter > > that is causing this problem. > > There shouldn't be. The above program should work fine without the > prelude. If it doesn't then there's a bug lurking somewhere, which needs > to be fixed. I'd be surprised if this was so, because these basic > examples have been checked on many systems many times. But, C being what > it is, you can never be sure. ;-) Yes, that is true; bugs always lurk, and I have to admit, I'm really good at finding the obscure ones over the course of my lifetime ;-) Maybe I'll dig a bit into the code and see what I can find in there, and just to have a look around since I always like to know the internals of what I'm working with. For now I'll do my playing around with the prelude enabled, at least until we can get same behaviour from both; learning is hard with obscure bugs getting in the way sometimes. Thanks for your help with this issue. -- burton samograd kr...@gm... kruhft.boldlygoingnowhere.org www.myspace.com/kruhft |
From: Albert G. <Dr....@t-...> - 2006-08-22 11:23:19
|
Burton Samograd wrote: > I'm on Gentoo Linux, but I think I found the problem (which is my > fault, I would guess, but might be interesting for you to know about). > I was playing around running q with the --no-prelude option just to > cut down on the defined symbol space. It turns out the code works > fine without the option, but fails with it (no prelude loaded). Well, with --no-prelude clib::fgets is not defined, so the modified program (with fgets instead of freads) won't work anymore; it will (correctly) loop forever, because fgets F is just a normal form and hence nothing ever gets read. The following program, which doesn't depend on clib or anything else in the standard library works fine with --no-prelude, though: cat F = () if feof F; = writes (freads F) || writes "\n" || cat F otherwise; Your code (without the writes "\n") runs fine with --no-prelude, too, but of course the newlines are missing. Could you please check whether the above program works ok for you when run with --no-prelude? I.e., the output should be something like: $ q --no-prelude cat.q ==> def F = fopen "cat.q" "r"; cat F cat F = () if feof F; = writes (freads F) || writes "\n" || cat F otherwise; () > This could be interesting to you since the code I wrote doesn' > actually use any of the prelude functions; maybe there's a bit of code > in the prelude loading code that sets something up in the interpreter > that is causing this problem. There shouldn't be. The above program should work fine without the prelude. If it doesn't then there's a bug lurking somewhere, which needs to be fixed. I'd be surprised if this was so, because these basic examples have been checked on many systems many times. But, C being what it is, you can never be sure. ;-) Cheers, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |
From: Lehman <bel...@su...> - 2006-08-22 08:50:13
|
<HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> </HEAD> <BODY> <DIV><img src="cid:4PXPVFPZ39KE4Y4OQVLG"></DIV> <DIV>incriminate nobody. And he would go up to Umballa leisurely and - at aof a large manufacturing city, and the crowded tram car with itssee, if thou art rested.' Out shuffled the lama to the main hall, and,because those words were written below his signature thereon, andin the name of the Compassionate.' He loosed a thin stream into Kim'schased him out of his shop for spitting at the joss above the boots.dropped into the easy sleep of age, as the shadow of Zam-Zammah grewother than English, and the guntrade was, in brief, a small portion ofthe Arrow. There is, moreover, a written paper of the hours of the'That is the Government's house and there is no idolatry in it, butstallions; cuffing the surly caravan dogs; paying off camel-drivers;knives. Surely there is a woman behind this. Hai! Hai! in a whisper toRiver? My dream told me to find it. So I came. I am here. But where is</DIV> <DIV>cpa controlled began andrei</DIV> </BODY></HTML> |
From: Burton S. <kr...@gm...> - 2006-08-22 02:42:47
|
On 8/21/06, Albert Graef <Dr....@t-...> wrote: > In any case, if you get that 'cat <<File>>' response you mentioned > earlier, something is going severely wrong in the interpreter; your > definition should *never* return that value. It should either bail out > with an "error in conditional" if feof F fails to evaluate, or return > (). So if the problem persists, it's most likely an obscure bug in the > interpreter, and I'd appreciate any info that could help me to find out > what's going on there. > > BTW, what system are you running Q on? I'm on Gentoo Linux, but I think I found the problem (which is my fault, I would guess, but might be interesting for you to know about). I was playing around running q with the --no-prelude option just to cut down on the defined symbol space. It turns out the code works fine without the option, but fails with it (no prelude loaded). This could be interesting to you since the code I wrote doesn' actually use any of the prelude functions; maybe there's a bit of code in the prelude loading code that sets something up in the interpreter that is causing this problem. Just a thought. So I won't be doing that anymore, or at least until it gets fixed or someone tells me what I might be doing wrong. -- burton samograd kr...@gm... kruhft.boldlygoingnowhere.org www.myspace.com/kruhft |
From: Albert G. <Dr....@t-...> - 2006-08-21 23:29:25
|
I've just uploaded another snapshot with some bugfixes and performance improvements. It's available here: http://prdownloads.sourceforge.net/q-lang/qyacclex-0.5.tar.gz?download I've also created a new qyacclex package in the download area for these programs. Cheers, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |
From: Albert G. <Dr....@t-...> - 2006-08-21 23:24:28
|
Burton Samograd wrote: > Hmmm. And then I tried it again and it didn't work. I must have > missed something; I'll look into this further. If you can produce a debug log of the *errorneous* computation, that would be most helpful. I cannot reproduce your problem here, your script works fine 100% of the time over here (with Q 7.3, that is). In any case, if you get that 'cat <<File>>' response you mentioned earlier, something is going severely wrong in the interpreter; your definition should *never* return that value. It should either bail out with an "error in conditional" if feof F fails to evaluate, or return (). So if the problem persists, it's most likely an obscure bug in the interpreter, and I'd appreciate any info that could help me to find out what's going on there. BTW, what system are you running Q on? Cheers, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |
From: Burton S. <kr...@gm...> - 2006-08-21 17:50:10
|
On 8/21/06, Burton Samograd <kr...@gm...> wrote: > > The code works fine with 7.0 (except for a the missing newline you > > mentioned, but that's in my code). I'll attach the log so that you > > can diff it against a newer version to see the differences. > > And I just updated to the current CVS code and it also works, so > something must have been fixed in the meantime. Hmmm. And then I tried it again and it didn't work. I must have missed something; I'll look into this further. -- burton samograd kr...@gm... kruhft.boldlygoingnowhere.org www.myspace.com/kruhft |
From: Burton S. <kr...@gm...> - 2006-08-21 17:45:42
|
> The code works fine with 7.0 (except for a the missing newline you > mentioned, but that's in my code). I'll attach the log so that you > can diff it against a newer version to see the differences. And I just updated to the current CVS code and it also works, so something must have been fixed in the meantime. Now back to my regularly scheduled hacking in my new favorite languge ;-) Thanks. -- burton samograd kr...@gm... kruhft.boldlygoingnowhere.org www.myspace.com/kruhft |
From: Burton S. <kr...@gm...> - 2006-08-21 17:18:36
|
On 8/21/06, Albert Graef <Dr....@t-...> wrote: > Burton Samograd wrote: > > I just tried it with a freshly built 7.3 and I still have the same > > results. I really have to head to bed, but I will try with 7.0 > > tomorrow. > > Ok, please let me know what you get. A complete log of a session with > the debugger would help, too. E.g., you can try something like the > following in a Unix shell: > > q cat -d -c 'cat (fopen "cat" "r")' >log.txt > > The log will end up in log.txt, please attach to your reply. The code works fine with 7.0 (except for a the missing newline you mentioned, but that's in my code). I'll attach the log so that you can diff it against a newer version to see the differences. Thanks for the help. -- burton samograd kr...@gm... kruhft.boldlygoingnowhere.org www.myspace.com/kruhft |
From: John C. <co...@cc...> - 2006-08-21 16:48:26
|
Albert Graef scripsit: > Hmm, that makes me scratch my head and wonder why your earlier build > attempts failed... ;-) But anyway, great news, thanks for the report! Most probably your guess is correct, that a bad release of some system library had slipped out. I do Cygwin Setup every day or so to keep myself up to date. -- No, John. I want formats that are actually John Cowan useful, rather than over-featured megaliths that http://www.ccil.org/~cowan address all questions by piling on ridiculous co...@cc... internal links in forms which are hideously over-complex. --Simon St. Laurent on xml-dev |
From: Albert G. <Dr....@t-...> - 2006-08-21 16:29:17
|
John Cowan wrote: > Mirabile dictu, the 7.3 release build works perfectly under Cygwin! Hmm, that makes me scratch my head and wonder why your earlier build attempts failed... ;-) But anyway, great news, thanks for the report! Cheers, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |
From: John C. <co...@cc...> - 2006-08-21 15:43:29
|
Albert Graef scripsit: > Meanwhile I'm going to proceed with the release of 7.3; there's a > critical bug in 7.2 so I want to get the new version out of the door > asap. We can always provide a hotfix for Cygwin later. Mirabile dictu, the 7.3 release build works perfectly under Cygwin! -- John Cowan co...@cc... http://ccil.org/~cowan I am he that buries his friends alive and drowns them and draws them alive again from the water. I came from the end of a bag, but no bag went over me. I am the friend of bears and the guest of eagles. I am Ringwinner and Luckwearer; and I am Barrel-rider. --Bilbo to Smaug |
From: Albert G. <Dr....@t-...> - 2006-08-21 12:33:00
|
Burton Samograd wrote: > I just tried it with a freshly built 7.3 and I still have the same > results. I really have to head to bed, but I will try with 7.0 > tomorrow. Ok, please let me know what you get. A complete log of a session with the debugger would help, too. E.g., you can try something like the following in a Unix shell: q cat -d -c 'cat (fopen "cat" "r")' >log.txt The log will end up in log.txt, please attach to your reply. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |
From: Albert G. <Dr....@t-...> - 2006-08-21 12:15:56
|
Hi all, Q 7.3 is now available, which fixes a critical bug related to the new memoization feature introduced in Q 7.1. Some other bugs in compiler and interpreter were also fixed. If you are currently running Q 7.1 or 7.2, upgrading is strongly recommended. Here's a direct pointer to the packages: http://sourceforge.net/project/showfiles.php?group_id=96881&package_id=103965&release_id=441036 The release notes are available here: http://sourceforge.net/project/shownotes.php?group_id=96881&release_id=441036 Cheers, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |
From: Burton S. <kr...@gm...> - 2006-08-21 10:27:44
|
On 8/21/06, Albert Graef <Dr....@t-...> wrote: > /me wrote: > > There's definitely something strange going on there. Are you running Q > > 7.2? Unfortunately, there's a bug in that version which might cause the > > behaviour that you see. Could you please try your example with Q 7.1? > > Hmm, actually the bug was probably introduced already with Q 7.1. You > can try your example with Q 7.0, or wait until I release Q 7.3 later > today. Sorry for the hassle. I just tried it with a freshly built 7.3 and I still have the same results. I really have to head to bed, but I will try with 7.0 tomorrow. Thanks for the help. -- burton samograd kr...@gm... kruhft.boldlygoingnowhere.org www.myspace.com/kruhft |
From: Albert G. <Dr....@t-...> - 2006-08-21 09:55:53
|
/me wrote: > There's definitely something strange going on there. Are you running Q > 7.2? Unfortunately, there's a bug in that version which might cause the > behaviour that you see. Could you please try your example with Q 7.1? Hmm, actually the bug was probably introduced already with Q 7.1. You can try your example with Q 7.0, or wait until I release Q 7.3 later today. Sorry for the hassle. Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |
From: Albert G. <Dr....@t-...> - 2006-08-21 09:42:47
|
John Cowan wrote: > Yup, you were right: 7.2 no longer builds properly either. The > line that provokes the error is: > > ) = sys_vars; Yes, that line causes problem because sys_vars doesn't evaluate, but that's only because the C module cannot be loaded. My guess is that the dynamic loader cannot resolve one of the externals used in clib.c any longer. Since the compile went ok on your system before, it must be a change in a part of your cygwin environment (a recent upgrade maybe?). Now the problem is to find out which external is causing the problem. Maybe recompiling clib.c with -Wall will tell us more. Or maybe it's just a broken update of the cygwin libraries or the gcc header files. Meanwhile I'm going to proceed with the release of 7.3; there's a critical bug in 7.2 so I want to get the new version out of the door asap. We can always provide a hotfix for Cygwin later. -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |
From: Albert G. <Dr....@t-...> - 2006-08-21 09:08:38
|
Burton Samograd wrote: > public cat F; > > cat F = () if feof F; > = writes (freads F) || cat F otherwise; That script works fine over here. I'd suggest replacing freads with fgets from clib, though, because freads chops off the newline at the end of a line, whereas fgets keeps it. > [.q/cat] def F = fopen "cat" "r" > [.q/cat] cat F > cat <<File>> There's definitely something strange going on there. Are you running Q 7.2? Unfortunately, there's a bug in that version which might cause the behaviour that you see. Could you please try your example with Q 7.1? Or with the latest release candidate, Q 7.3 RC1, which is available here: http://prdownloads.sourceforge.net/q-lang/q-7.3rc1.tar.gz?download HTH, Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |
From: Burton S. <kr...@gm...> - 2006-08-21 07:56:13
|
Hi Everyone, I just started working with Q and I seem to be running in a newbie problem that I can't seem to get around. My first little function I am trying to write would be a copy of the Unix 'cat' utility, which I thought would be rather simple. I found the example for 'fcopy' in the manual and made a file 'cat' (the Q source file) containing the following code: public cat F; cat F = () if feof F; = writes (freads F) || cat F otherwise; And then in the interpreter i do the following: [.q/] run cat [.q/cat] def F = fopen "cat" "r" [.q/cat] cat F cat <<File>> [.q/cat] cat::cat F cat <<File>> [.q/cat] whos cat cat function symbol defined in /home/kruhft/.q/cat cat X1 As you can see, there seems to be some sort of problem but I can't seem to figure it out (hence my asking here ;-). I tried playing around with the interpreter and file handles and noticed that <<File>> seems to be returned on errors during file operations, but I don't understand how that's happening on a freshly opened file. Any help or suggestions for this newbie problem? TIA -- burton samograd kr...@gm... kruhft.boldlygoingnowhere.org www.myspace.com/kruhft |
From: John C. <co...@cc...> - 2006-08-21 01:35:06
|
Albert Graef scripsit: > John Cowan wrote: > > Yup, you were right: 7.2 no longer builds properly either. The > > line that provokes the error is: > > Same error message during make as with 7.3? Yes, precisely. -- John Cowan co...@cc... http://ccil.org/~cowan Half the lies they tell about me are true. -- Tallulah Bankhead, American actress |
From: Albert G. <Dr....@t-...> - 2006-08-21 01:25:25
|
John Cowan wrote: > Yup, you were right: 7.2 no longer builds properly either. The > line that provokes the error is: Same error message during make as with 7.3? -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |
From: John C. <co...@cc...> - 2006-08-20 05:43:06
|
Albert Graef scripsit: > Could you please try and recompile the most recent version that you had > working on your system (7.2 I guess) and see whether it still builds ok? Yup, you were right: 7.2 no longer builds properly either. The line that provokes the error is: ) = sys_vars; -- Said Agatha Christie / To E. Philips Oppenheim John Cowan "Who is this Hemingway? / Who is this Proust? co...@cc... Who is this Vladimir / Whatchamacallum, http://www.ccil.org/~cowan This neopostrealist / Rabble?" she groused. --author unknown to me; any suggestions? |