Jens Thiele | 29 May 2013 07:50
Picon

selectively disable lambda lifting?

is there a way to selectively disable lambda lifting?
only found -fno-lambda-lifting-pass to disable it globally

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
Jens Thiele | 25 May 2013 16:51
Picon

gauche-gl simple viewer single threaded exit

i am not sure about this one / did only have a quick look

the quit-loop using (thread-terminate! (current-thread)) is not
good (at least in the single threaded case on debian/wheezy on X, the
window stays open and must be xkilled)
maybe something like below would help?
greetings
jens

diff --git a/lib/gl/simple/viewer.scm b/lib/gl/simple/viewer.scm
index fee729c..0afd80e 100644
--- a/lib/gl/simple/viewer.scm
+++ b/lib/gl/simple/viewer.scm
 <at>  <at>  -298,7 +298,9  <at>  <at> 

 (define (quit-loop)
   (cond-expand
-   [gauche.sys.pthreads (thread-terminate! (current-thread))]
+   [gauche.sys.pthreads (if (string=? (ref (current-thread) 'name) "root")
+                          (exit)
+                          (thread-terminate! (current-thread)))]
    [else (exit)]))

 ;; common key handler

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
(Continue reading)

Jens Thiele | 1 May 2013 15:10
Picon

[Planet Debian] David Bremner: Exporting Debian packaging patches from git, (redux)*

hmm
there really isn't a nice and simple packaging workflow using git?

From: nobody
Subject: David Bremner: Exporting Debian packaging patches from git, (redux)*
Newsgroups: Planet, Debian
Date: 2013-04-25 16:58:00 GMT

(Debian) packaging and Git.

The big picture is as follows. In my view, the most natural way to work on a packaging project in version control [1] is to have an upstream branch which either tracks upstream Git/Hg/Svn, or imports of tarballs (or some combination thereof, and a Debian branch where both modifications to upstream source and commits to stuff in ./debian are added [2]. Deviations from this are mainly motivated by a desire to export source packages, a version control neutral interchange format that still preserves the distinction between upstream source and distro modifications. Of course, if you're happy with the distro modifications as one big diff, then you can stop reading now gitpkg $debian_branch $upstream_branch and you're done. The other easy case is if your changes don't touch upstream; then 3.0 (quilt) packages work nicely with ./debian in a separate tarball.

So the tension is between my preferred integration style, and making source packages with changes to upstream source organized in some (Continue reading)

shuji yamamoto | 30 Apr 2013 09:12
Picon
Gravatar

generize -> , ->>

Hi all.
I wrote macro generized ->,->> of clojure.

(define-macro (-*> x form . more)
(if (pair? more)
`(-*> (-*> ,x ,form) , <at> more)
(if (pair? form)
(receive (head tail) (break (cut eq? '<*> <>) form)
(if (null? tail)
`(, <at> head ,x)
`(, <at> head ,x , <at> (cdr tail) ) ) )
`(,form ,x) ) ) )

#|
gosh> (-*> 1 (+ 12 <*>))
13
gosh> (-*> 1 (cut + 12 <*>))
#<closure #f>
gosh> (-*> 1 (cut + 12 <*>) (<*>) )
13
gosh> (-*> 1 (cut list 12 <*>) (<*>) )
(12 1)
gosh> (-*> 1 (cut list 12 <*> 67 ) (<*>) )
(12 1 67)
gosh> (-*> (quotient&remainder 13 5) (receive (x y) <*> (print x y)))
23
#<undef>
gosh> (-*> (quotient&remainder 13 5) (receive (x y) <*> (list x y)))
(2 3)

(Continue reading)

Shiro Kawai | 17 Apr 2013 04:34
Favicon

Repository URL changed

Recently Sourceforge.net rolled out a new infrastructure
and is asking projects to upgrade, which requires repo URL
to be changed.  I fetch this opportunity to migrate Gauche
and Gauche-gl repo to github.

  Gauche:    https://github.com/shirok/Gauche
  Gauche-gl: https://github.com/shirok/Gauche-gl

These are now 'official' repositories; the ones on sf.net
won't be updated and will eventually be deleted.  Note that
I still use sf.net for release file distribution and mailing
lists.

If you've been tracking Gauche HEAD, the easiest way is to
clone from the new repo.   Alternatively, if you have your
local stuff in your repo to carry over, a quick hack is to
edit '[remote "origin"]' section of .git/config like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git://github.com/shirok/Gauche.git

Then you should be able to do 'git pull' to get changes
from the new repo.

--shiro

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
(Continue reading)

Jens Thiele | 9 Apr 2013 13:16
Picon

(expt 2 1000000000000)

gosh> (expt 2 1000000000000)
0

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
nozomi | 20 Mar 2013 00:41
Picon

write-ber-integer ignores given port

Hello,

Though I gave a file port to write-ber-integer, it wrote to the stdout.
Probably it is a bug.

Here is the patch to fix it.

diff --git ext/binary/io.scm ext/binary/io.scm
index bd825af..54ae77b 100644
--- ext/binary/io.scm
+++ ext/binary/io.scm
 <at>  <at>  -219,8 +219,8  <at>  <at> 
         [start (ash number -7)])
     (unless (zero? start)
       (let loop ([n start])
-        (cond [(< n 128) (write-u8 (logior n #b10000000))]
+        (cond [(< n 128) (write-u8 (logior n #b10000000) port)]
               [else (loop (ash n -7)) ;; write high bytes first
-                    (write-u8 (logior (logand n #b01111111) #
b10000000))])))
-    (write-u8 final)))
+                    (write-u8 (logior (logand n #b01111111) #
b10000000) port)])))
+    (write-u8 final port)))

This is the first time for me to send a patch. I'd be glad if you 
indicate some mistakes
on this e-mail (if there is).

Regards
(Continue reading)

Stephen Lewis | 13 Mar 2013 06:54
Picon
Favicon

macro question

Shiro,

I am still learning Scheme macros so I may be misunderstanding something,
but when I tried the following:

(define-syntax sl-macro
  (syntax-rules ()
                ((sl-macro _expr)
                 (let-syntax
                   ((sl-rule-1
                      (syntax-rules ()
                                    ((_ expr)
                                     (sl-rule-2 expr))
                                    ))
                    (sl-rule-2
                      (syntax-rules ()
                                    ((_ expr) (print expr)))))
                   (sl-rule-1 _expr)))))

(sl-macro (+ 1 2 3))

I get the error:
gosh> (sl-macro (+ 1 2 3))
*** ERROR: unbound variable: sl-rule-2

Which is understandable because 'sl-rule-2' is not in scope in sl-rule-1.
However when I replace the 'let-syntax' with 'letrec-syntax' the problem
is still there,

(define-syntax sl-macro
(Continue reading)

Jens Thiele | 20 Feb 2013 15:33
Picon

(make-u8vector (ash 1 32))

gosh> (make-u8vector (ash 1 32))
#u8()
gosh> (make-u8vector (ash 1 60))
#u8()

:-)

looking at the uvector functions size is an int (32bit on amd64/x86_64)
internally size is stored as ScmWord => intptr_t which is 64bit on amd64/x86_64
shouldn't the uvector functions use something like size_t then?

greetings
karme

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
alpha gamma | 5 Jan 2013 00:59
Picon

gosh crashes with big arg values in SICP expmod function

Hello,

I see a gosh crash when executing the expmod function (as defined in the SICP book
in "The Fermat Test" paragraph) when passing some big number to it.

This is the code:

gosh> (define (expmod base exp m)
  (cond ((= exp 0) 1)
        ((even? exp)
         (remainder (square (expmod base (/ exp 2) m))
                    m))
        (else
         (remainder (* base (expmod base (- exp 1) m))
                    m))))      
expmod
gosh> expmod
#<closure expmod>
gosh> (expmod 39946212748484926716547576613536335244212076288673919135945266186958748103426425703814309198601642350315000896671931766728383932165170481242281502692377651264308084928779825974300461250516314879806400112473529994805032016172865793130893434344597739942980810628981974738091062467640291490240751539719709498119 45797114117393039327816419508235363622609848475602079961050610485247446660281827445966357298221826191573406210018663265709688700252853378352398750572094319817469983349586925622987631992713037527311612293786295333721923497520820229552634439171208976869535656738261827728568148117087083531877295300814699018473 5)
Segmentation fault (core dumped)

I am using Gauche v0.9.3.3 in a Linux machine.

maybe it can be traced in your machines as well?
It looks like a stack overflow, probably too much space is needed to execute this function with
those arguments.

Best Regards

Ale
------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
JP Theberge | 18 Dec 2012 16:19
Picon

Makiki and $

Hi,

I am trying out the Makiki server but encounter the following problems:

~/test/Gauche-makiki-master$ ./sample-server
2012-12-18T10:16:58-0500: started on ([::]:8012)
2012-12-18T10:17:08-0500: handle-client error "unbound variable: $"
2012-12-18T10:17:08-0500: ::ffff:127.0.0.1 "[E] unbound variable: $"
500 21 "-" 92.091ms
2012-12-18T10:17:09-0500: handle-client error "unbound variable: $"
2012-12-18T10:17:08-0500: ::ffff:127.0.0.1 "[E] unbound variable: $"
500 21 "-" 692.832ms

~/test/Gauche-makiki-master$ gosh
gosh> $
*** ERROR: unbound variable: $
Stack Trace:
_______________________________________
gosh> (gauche-version)
"0.9.1"
gosh>

Any Ideas why the $ macro is missing?

Thanks.

--JP

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d

Gmane