The intermittent not-working seems to be an artefact of the parameter
getting messed up (as I should have known!). Don't understand the bindings
well enough to see why the latter is happening.
martin
On Sun, Nov 15, 2015 at 1:49 AM, Martin DeMello <martindeme...@gmail.com>
wrote:
&g
for the three callbacks are pretty close together and the
differences are always constant, so it looks like some sort of pointer is
getting passed in place of an arg.
martin
On Sun, Nov 15, 2015 at 1:49 AM, Martin DeMello <martindeme...@gmail.com>
wrote:
> Couple of weird problems with the co
title: 'E
expand: 'Yes
tip: "Close button"
action: (lambda (self) 'close)))
title: 'IUP))
(show dlg)
(main-loop)
(destroy! dlg)
(exit 0)
On Sat, Nov 7, 2015 at 2:58 PM, Martin DeMello <martindeme...@gmail.com>
wrote:
> Finally had time to finish
<ch...@web.de> wrote:
> On 2015-10-15 04:04, Martin DeMello wrote:
> > [...]
> > it looks like the cb-draw callback has format "iiC", which doesn't
> > match the sigil regex. I take it that means callbacks with a Canvas*
> > argument are unsuppor
Hi,
I'm trying to port the chessboard example from IUP to chicken. The C code
is here:
http://webserver2.tecgraf.puc-rio.br/iup/examples/C/cells_checkboard.c
I'm stuck when trying to add a draw callback - it crashes with
Error: (callback-set!) callback has bad signature
The code is here:
eans callbacks with a Canvas*
argument are unsupported in chicken-iup?
martin
On Wed, Oct 14, 2015 at 12:51 AM, Martin DeMello <martindeme...@gmail.com>
wrote:
> Hi,
>
> I'm trying to port the chessboard example from IUP to chicken. The C code
> is here:
>
> http://we
Post to /r/scheme about chicken's bignum performance. (Not my post,
just figured it could use some eyeballs.)
http://www.reddit.com/r/scheme/comments/3b1ujw/performance_of_chicken_scheme_numbers_bignums/
martin
___
Chicken-users mailing list
check out the clojurian egg too: http://wiki.call-cc.org/eggref/4/clojurian
martin
On Thu, Nov 6, 2014 at 6:21 PM, Sungjin Chun chu...@gmail.com wrote:
Thank you. Though I'm not sure on my code is in good style, I managed to
convert my
code to chicken scheme like this;
(set-read-syntax!
This might be useful:
http://fedoraproject.org/wiki/Features/Windows_cross_compiler
(not used it personally, just wanted to share the link)
martin
On Mon, Feb 3, 2014 at 7:58 AM, Stephen Eilert spedr...@gmail.com wrote:
On Sat, Feb 1, 2014 at 11:32 PM, Matt Welland estifo...@gmail.com
Wow, I've been wondering what to do with my Raspberry Pi and Alaric's
idea looks fantastic.
martin
On Thu, Aug 2, 2012 at 11:01 AM, Erik Falor ewfa...@gmail.com wrote:
I want to announce that Chicken 4.7.0.6 builds runs on a Raspberry
Pi (http://www.raspberrypi.org/).
I did this without the
On Mon, Oct 25, 2010 at 3:37 PM, Felix
fe...@call-with-current-continuation.org wrote:
I added a wish-list to the wiki to hold stuff that would be nice to
have. This is of course not meant as a replacement for the
bug-tracker, but it may be worthwhile to have a place where to put
more
On Wed, Oct 27, 2010 at 12:42 PM, Felix
fe...@call-with-current-continuation.org wrote:
From: Martin DeMello martindeme...@gmail.com
Good stuff! What is the current state of affairs with respect to this one?
* Make it easy to create monoliths with no run-time demands to run on
targets
On Thu, Sep 30, 2010 at 3:02 AM, Thomas Chust ch...@web.de wrote:
in case anybody else finds this useful: I have created fairly full-featured
bindings for the IUP graphical user interface library [1] that work
identically
(to the maximum possible extent) under the Racket [2] and CHICKEN [3]
On Wed, Aug 25, 2010 at 5:05 PM, Felix
fe...@call-with-current-continuation.org wrote:
Parsing the headerfiles is not that easy - there is a lot of magic
in there and complex macros. You also would end up with a huge pile
of wrapper code. There appear to be ways to invoke object-methods
learning effort to
extend the multiple GUI widgets after the guys set the coordinates.
Regards,
Arthur
2010/8/25 Martin DeMello martindeme...@gmail.com
On Wed, Aug 25, 2010 at 5:05 PM, Felix
fe...@call-with-current-continuation.org wrote:
Parsing the headerfiles is not that easy
I tried to compile chicken 4.5.0 under a cygwin-mingw environment
(cygwin with mingw/bin set as the first entry in $PATH) using
make PLATFORM=mingw-msys PREFIX=c:/mingw install
It errored in the middle with
cp -r chicken-uninstall.exe c:/mingw/bin
cp -r chicken-status.exe c:/mingw/bin
On Mon, Aug 9, 2010 at 2:10 AM, Felix
fe...@call-with-current-continuation.org wrote:
If this is plain mingw (no MSYS), then you should do
make PLATFORM=mingw PREFIX=c:/mingw install
That doesn't work because I'm running inside cygwin and it can't find `del`
I gave up and installed msys
I stole the doto macro from clojure. Quite useful for GUI code in
particular. It might make a nice addition to miscmacros too.
(define-syntax doto
(lambda (f r c)
(let [(s (cadr f))
(forms (cddr f))]
`(let [(x ,s)]
,@(map (lambda (form)
(if (list?
Coming from a traditional single-dispatch OOP background, one of the
biggest problems I'm finding with coops's CLOS-style multimethods is
that methods are no longer namespaced by their classes, but leak into
the current namespace. Thus, when I import a module containing some
classes, I have to be
Here's some code I'm using to test various module features (attached,
and at http://github.com/martindemello/test-chicken-modules)
In cprog-binding.scm, I define a binding to a C enum via:
(define-foreign-enum-type (ccount int)
(ccount-int int-ccount)
On Tue, Jul 27, 2010 at 1:20 AM, Jim Ursetto zbignie...@gmail.com wrote:
The right way is to use include, foreign variables are not visible outside
the compilation unit they are declared in.
Alternatively if you want a user accessible interface to the constants, and
do not want to use the
2010/7/20 Arthur Maciel arthurmac...@gmail.com:
Congratulations to all who make this project as good as it is!
Thanks for reminding us, Mario!
Seconded!!
martin
___
Chicken-users mailing list
Chicken-users@nongnu.org
I have some scheme code that I want to wrap in a module and then use
as a shared library.
$ cat body.scm
(define (hello)
(print hello world))
$ cat outer.scm
(module foo *
(import chicken)
(import scheme)
(include body))
$ csc -s outer.scm
$ cat test.scm
(load outer.so)
(import foo)
What's going wrong here?
$ cat t.scm
(define *hash* (make-hash-table))
$ csi t.scm
; loading t.scm ...
#;1 *hash*
#hash-table (0)
$ csc t.scm
$ ./t
Error: unbound variable: make-hash-table
Call history:
t.scm:1: make-hash-table--
$ csc -version
there.
On Jul 9, 2010, at 12:04, Mario Domenech Goulart mario.goul...@gmail.com
wrote:
Hi Martin
On Fri, 9 Jul 2010 22:14:09 +0530 Martin DeMello martindeme...@gmail.com
wrote:
What's going wrong here?
$ cat t.scm
(define *hash* (make-hash-table))
$ csi t.scm
; loading t.scm
The qt egg example on http://chicken.wiki.br/eggref/4/qt doesn't work
out of the box - Qt seems to want
classForm/class
rather than
[class] Form
in the ui file, and likewise for all other such declarations.
martin
___
Chicken-users mailing list
On Tue, Dec 1, 2009 at 10:42 PM, Nicholas Indy Ray arel...@gmail.com wrote:
While the code is in egg form, It isn't actually ment for general
consumption yet, If you are interested in trying it out, I can give
you an overview of how to use it.
I'm interested! I've beaten my head against the qt
Interesting post on one of the advantages of C++ - I just wondered how
such problems are handled in the scheme world
--
What you can do in C++ that you *can't* do in Java is define a class
whose
are looking at
packing data into messages in a machine independent way it might be
useful.
Cheers,
John.
On 16/04/2008, Martin DeMello [EMAIL PROTECTED] wrote:
Interesting post on one of the advantages of C++ - I just wondered how
such problems are handled in the scheme world
On Wed, Apr 16, 2008 at 12:09 PM, Hans Bulfone [EMAIL PROTECTED] wrote:
On Wed, Apr 16, 2008 at 11:38:44AM -0700, Martin DeMello wrote:
Ah - okay, if it's serialisation-specific, it's not what I'm looking
for. I was looking for an analogue to the C trick of interpreting a
block of bits
On 7/31/07, Peter Bex [EMAIL PROTECTED] wrote:
On Tue, Jul 31, 2007 at 09:47:46AM +0200, felix winkelmann wrote:
On 7/31/07, Ivan Raikov [EMAIL PROTECTED] wrote:
5. Create section `External library interfaces' and move the following
eggs to it: svn-client, mpd-client, gettext,
Does anyone know if chicken/gdbm works on windows? I have an app using
GDBM that I'd like to port to windows at some point, but I don't
actually have a windows setup to try it on right now. Should I be
making plans to move it over to sqlite3 or something?
martin
On 7/17/07, Kon Lovett [EMAIL PROTECTED] wrote:
On Jul 16, 2007, at 10:34 AM, Martin DeMello wrote:
Does anyone know if chicken/gdbm works on windows? I have an app using
GDBM that I'd like to port to windows at some point, but I don't
actually have a windows setup to try it on right now
On 7/9/07, felix winkelmann [EMAIL PROTECTED] wrote:
On 7/8/07, Martin DeMello [EMAIL PROTECTED] wrote:
No, I want a C function whose body is a string generated by combining
a template and some arguments that fill in slots in the template.
(define-macro (foo name x)
`(define ,name
Is there any way to do this?
(define str hello)
(foreign-lambda* int ((int x)) str)
(Actually i'm trying to solve the more restricted problem of
generating a call to foreign-lambda* from a macro and synthesising the
string it's passed within the macro, so if the general case has no
answer I'm
On 7/8/07, Alex Queiroz [EMAIL PROTECTED] wrote:
On 7/8/07, Martin DeMello [EMAIL PROTECTED] wrote:
Is there any way to do this?
(define str hello)
(foreign-lambda* int ((int x)) str)
(define str Hello)
(define my-func
(let ((foreign (foreign-lambda* int ((int x) (c-string str
On 7/8/07, John Cowan [EMAIL PROTECTED] wrote:
Martin DeMello scripsit:
No, I don't want to pass str into the foreign function, i want str to
*be* the foreign function. That is, I want to use a variable rather
than an explicit string, or a macro that generates and inserts a
string
On 7/9/07, John Cowan [EMAIL PROTECTED] wrote:
Yes, that works. However, it occurs to me that if what Martin actually
wants is a C function whose body is some string whose value
is not known until run-time, no amount of fiddling with macros will
accomplish that; C functions have to be known
On 7/4/07, Alex Queiroz [EMAIL PROTECTED] wrote:
I was looking for something:
+ With native controls;
+ MIT or BSD-licensed;
+ Lightweight and *just* a GUI;
+ C, not C++;
+ Works in Linux Windows, at least.
I couldn't find anything that covered all of this, so started an
IUP[1]
On 7/3/07, Jong-Hyouk Yun [EMAIL PROTECTED] wrote:
Hi, I found some mailings in archive.
http://lists.gnu.org/archive/html/chicken-users/2007-02/msg00055.html
I went through that thread, but it seems to be mostly about future
directions for a toolkit. I want to know which if any of the
On 7/2/07, felix winkelmann [EMAIL PROTECTED] wrote:
On 7/1/07, Martin DeMello [EMAIL PROTECTED] wrote:
The qt egg currently doesn't seem to support QLayoutWidget - it fails with
QFormBuilder: Cannot create widget of class QLayoutWidget.
Are there any plans to add this?
IIRC, this error
What is the currently preferred cross-platform gui library to use with
chicken? Are there any examples of real-world gui applications?
martin
___
Chicken-users mailing list
Chicken-users@nongnu.org
The qt egg currently doesn't seem to support QLayoutWidget - it fails with
QFormBuilder: Cannot create widget of class QLayoutWidget.
Are there any plans to add this?
martin
___
Chicken-users mailing list
Chicken-users@nongnu.org
I have a list of words (182260 words, 1.6MB) that I need to read into
a series of hashes, e.g.
(word = true) for quick lookups,(word = (anagrams)), etc. Rather
than do this every time the program is run, I want to serialise the
hashes and dump them to a file, and subsequently loading in the file
Also, serializing a hash dies when it hits the end (and attempting to
deserialize the file segfaults). Here's a minimal example:
#;1 (use s11n)
; loading /usr/lib/chicken/1/s11n.so ...
#;2 (serialize (make-hash-table))
Error: (serialize) unable to serialize object - unable to serialize
procedure
On 7/2/07, Zbigniew [EMAIL PROTECTED] wrote:
Two options come to mind.
1) Use a database.
Good point! Will go the sqlite3 route.
martin
___
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users
46 matches
Mail list logo