Re: [Chicken-users] [ANN] Web and GUI related libraries
On Fri, Sep 23, 2011 at 11:55 PM, Thomas Chust wrote: > Hello, > > I've been playing around with two small library projects related to > web and GUI development: > > * http://www.chust.org/fossils/webkit > > A CHICKEN binding to WebKitGTK+ and JavaScriptCore. Runs a GTK+ > event loop in a CHICKEN thread, allows you to display HTML as a > GUI and to interact with the DOM and other JavaScript objects as > if they were Scheme values. > YEH! Thanks for that! It could lead to awesome stuff. -- Stephen *"Kids these days.* *Whatever happened to hard work?* -- Joel Spolsky, The perils of javaschools" ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Compiling modules
On Sat, 24 Sep 2011 23:54:29 +0200, Peter Bex wrote: > On Sat, Sep 24, 2011 at 05:48:58PM -0400, Blake Sweeney wrote: > > Thanks for the help but I'm still lost. I tried: > > > > $ csc -J module-a.scm > > I think there's a -s missing (you want to compile to a shared > library object). Sorry, I made this mistake in my second example > too. > > > I read a little and it seemed like you include import libraries that aren't > > in > > the normal path by using the extend option when compiling. Was I wrong? > > Could > > you give me a more help? > > I don't have much experience loading local libraries, but AFAIK it > should be possible to just (use module-a) or (require-extension module-a) > and it'll try to load from the current directory or the system path. Thanks I can compile things now. Blake ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] a memory issue; mildly scaring to me
On Sun, Sep 25, 2011 at 12:36:23PM +0200, Jörg F. Wittenberger wrote: > I'm still kinda lost. > > Is there any documentation I could read to understand a little more of > irregex code? The source says it should run on any Scheme; just not how. > ;-) The *portable* and upstream version of irregex is at http://code.google.com/p/irregex/ The in-tree version we have for Chicken is hacked up for performance, so it is no longer portable. I think this is probably a huge red herring; the equal? code you mentioned does seem to have an off-by-one error. Have you tried just returning true instead of the assignments and "goto loop;" at the end? Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] a memory issue; mildly scaring to me
I'm still kinda lost. Is there any documentation I could read to understand a little more of irregex code? The source says it should run on any Scheme; just not how. ;-) On repeated examination my problem really looks as if it was an initialisation issue. Just the odds have changed. While it used to be mostly working, it's working sometimes only now. (Whereby mysteriously it's already somewhat better today. Same machine, same executable.) That is, the actual prog is working as expected. Same way as on the other Scheme. No indication of errors, which could be relevant in the case at hand. The strange consumption looks like this: After a normal startup the prog will run into about 70M or 130M virtual memory within about 3-5 seconds. Only heavy load will make it expand beyond. Up to 2% CPU usage on my laptop. The rarest case: after running that way for possibly really long time, it might suddenly eat memory. The case which recently appears at about 50% of starts: it expands within 1 second to at least 130 or more likely 240M. Within the next seconds it will eat 2-3G. Thereby it will run on the same 2% CPU and work normally. That is until the whole machine dies from swap workload. On Sep 24 2011, Peter Bex wrote: On Sat, Sep 24, 2011 at 06:08:13PM +0200, Jörg F. Wittenberger wrote: Hi, I tried to change the procedure and instead of those 3 lines I left a "return 1;" there. This seems at least to work well for some simple checks in csi. But my app will now: a) run without valgrinds complaint b) into an endless loop. Taking into account that while compiling the DEBUGBUILD I ignored a ton of warnings about type issues in irregex.scm, I'm kinda alarmed that those calls to the questionable equal? originated from irregex. Please try the current master first; it contains some bugfixes to the types database, which make those irregex errors go away (changeset 0fbbba9d5fc0dcce7b2364beaf3396d501967d0e). ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users