Re: [Chicken-users] Cryptographic eggs
A new version of aes with the hexstring stuff stripped out, and a new crypto-tools egg with the hexstring stuff in *and* an implementation of CBC in are now in SVN. I'd like to add some other modes to the crypto-tools egg, such as HMAC stuff, as time permits. But, first, I'm going to go and add encryption support to Ugarit, the goal of this egg-writing arc! ABS -- Alaric Snell-Pym Work: http://www.snell-systems.co.uk/ Play: http://www.snell-pym.org.uk/alaric/ Blog: http://www.snell-pym.org.uk/?author=4 ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] chicken-primitive-inlines.scm
On Thu, Feb 5, 2009 at 7:34 AM, Jim Ursetto wrote: > On Mon, Feb 2, 2009 at 12:07 PM, Kon Lovett wrote: >> (##sys#slot l 1) -> (%cdr l) >> (##sys#setslot l 1 x) -> (%set-cdr l x) > > I was wondering. The compiler already inlines primitives when > usual-integrations is in effect. Would it not be possible to tell it, > with a new declaration, to inline the *unsafe* versions of certain > primitives? Rather than manually specifying the % versions. These primitive inlines are mainly intended for use in the core libraries, where exact control over what is inlined and what not is crucial. These libraries can't be compiled in unsafe mode, but certain primitives can or must be coded with unsafe operations. cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] Scheme-based build system for Chicken
On Fri, Feb 6, 2009 at 1:57 AM, Ivan Raikov wrote: > > Dear all, > > Some time last December, I made a partial port of the Chicken > build system to Scheme, and I got as far as getting Chicken 3 to build > under Linux, Mac OS, and Mingw+msys. The code consists mainly of the > PLT make macro, some FFI definitions to support I/O pipe functionality > under both POSIX and Windows, and the ported make rules. I used the > Chicken compiler to generate one C file which can then be distributed > and used for boostrapping the Chicken build system. Even though the > port is quite rudimentary, I think the result is a much more > manageable build system, not in the least because it eliminates the > ridiculous make scoping rules. > > Is anybody here interested in helping me continue work on this > and porting it to Chicken 4? The current code is in the SVN > repository, in directory release/3/cmk. Feedback and comments are much > appreciated. > Hi, Ivan! I don't have the time for participating, but I think this is cool idea. Note that mingw (with windows shell) and msvc is the real challenge (but a good target, because we can get around the shell limitations that way). cheers, felix ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] http egg can't parse valid HTTP headers
On Thu, Feb 05, 2009 at 04:28:59PM -0800, Drew Hess wrote: > Hi Peter, > > Yes, that fix works for the particular case I was having a problem > with. Thanks for updating the egg. Any idea when it'll be released? I just released it. It should appear in the egg repository shortly. Thanks for reporting this bug! 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 pgpLnU15o5TRU.pgp Description: PGP signature ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] SDL egg: SDL_GL_SwapBuffers() not implemented?
On Tue, Feb 3, 2009 at 2:40 PM, felix winkelmann wrote: > On Tue, Feb 3, 2009 at 2:08 PM, Koen Weddepohl > wrote: > > Greetings, > > > > I'm interested in using Chicken for homebrew game development. > > > > Anyway, I've been trying to get the SDL egg to work with the OpenGL egg. > > However, I can't get any OpenGL graphics to display. I think this is > because > > I can't find an equivalent for SDL_GL_SwapBuffers() in the SDL bindings. > Am > > I correct in thinking this is function is not implemented in the SDL egg? > > > > Hi, Koen! > > This may very well be the case. I'll try to add this, ASAP. > > Note that you can get access to this function quickly using > > #> > #include > <# > > (define sdl:gl-swap-buffers > (foreign-lambda void "SDL_GL_SwapBuffers")) > > It's been a while since I've last tried using SDL with OpenGL, but that's not the only function that's missing. I had to set a few more things to get the program to display anything. Too bad I lost my modified SDL egg. Here's the initalization code I was using: (define (open-viewport width height) (initialize-video-mode width height 0 (+ SDL_OPENGL))) (define (initialize-video-mode width height bpp flags) (sdl-wm-set-caption "OpenGL Window" "OpenGL Window") (sdl-set-video-mode width height bpp flags) (sdl-gl-set-attribute SDL_GL_DOUBLEBUFFER 1) (sdl-gl-set-attribute SDL_GL_RED_SIZE 5) (sdl-gl-set-attribute SDL_GL_GREEN_SIZE 5) (sdl-gl-set-attribute SDL_GL_BLUE_SIZE 5) (sdl-gl-set-attribute SDL_GL_DEPTH_SIZE 16)) For some reason I still cannot understand, the program didn't work without setting those flags first. --Stephen programmer, n: A red eyed, mumbling mammal capable of conversing with inanimate monsters. > > cheers, > felix > > > ___ > Chicken-users mailing list > Chicken-users@nongnu.org > http://lists.nongnu.org/mailman/listinfo/chicken-users > ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] Scheme-based build system for Chicken
Dear all, Some time last December, I made a partial port of the Chicken build system to Scheme, and I got as far as getting Chicken 3 to build under Linux, Mac OS, and Mingw+msys. The code consists mainly of the PLT make macro, some FFI definitions to support I/O pipe functionality under both POSIX and Windows, and the ported make rules. I used the Chicken compiler to generate one C file which can then be distributed and used for boostrapping the Chicken build system. Even though the port is quite rudimentary, I think the result is a much more manageable build system, not in the least because it eliminates the ridiculous make scoping rules. Is anybody here interested in helping me continue work on this and porting it to Chicken 4? The current code is in the SVN repository, in directory release/3/cmk. Feedback and comments are much appreciated. -Ivan ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] http egg can't parse valid HTTP headers
Peter Bex writes: > For the time being, I changed the HTTP egg's regex to remove the > "nonspace character" match at the start of the submatch group, so > "Foo: " and "Foo:" are allowed header values. Please give the new trunk > a shot, and let me know whether it works for you. Hi Peter, Yes, that fix works for the particular case I was having a problem with. Thanks for updating the egg. Any idea when it'll be released? I'm looking forward to testing your "intarweb" egg, but I'll probably wait until Chicken 4 is released. thanks again d p.s. In my local version of the http egg, I replaced the definition of http:read-request-attributes with the slightly-modified rfc822-header->list procedure that I described in my previous email, and it's working fine, too. pgpsdMr7mrNRY.pgp Description: PGP signature ___ Chicken-users mailing list Chicken-users@nongnu.org http://lists.nongnu.org/mailman/listinfo/chicken-users