Peter Nagy | 7 Jul 16:55 2016
Picon

macros

I have this simple macro that doesn't work :)

(define-macro (template file)
  (let1 templ (port->string (open-input-file file))
    (string-interpolate templ)))

Some background - I have a file with the interpolation syntax mixed in and would like to read it in and evaluate within the current environment. The macro works fine if file is passed in as a literal string. When I pass in a variable (the symbol which holds the value) then the macro crashes saying it expects a string and got a symbol.

I've been looking at the macro for an hour and can't think of how to write it correctly. Any tips from seasoned schemers welcome :) I guess most of you use the hygienic macros but coming from common lisp and clojure background I'm not familiar enough with them and didn't put the time in to study them yet.
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
JP T | 28 Jun 22:47 2016
Picon
Gravatar

opening dbf files...

Hi all,

I failed at googling for this and I guess no such thing exists but just in case;

Do you know of a gauche/scheme library to open DBF  (dbase/foxpro) files?

Thanks

--
JP

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
Peter Nagy | 27 Jun 14:42 2016
Picon

Productivity boosters

Any tips welcome :) To give an idea how general I am trying to be here are 2 tips:

- http://ready.to/search/en/
An implementation of threading macros inspired from Clojure.

(map (pa$ * 2) (filter odd? (grange 1 10)))

would be written as

(->> (grange 1 10)
     (filter odd?)
     (map (pa$ * 2)))

which reads (and writes) more cleanly for me.

---
I would also have a specific question - which emacs mode do you use to write gauche? I saw several of them lying around.

Cheers
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Peter Nagy | 27 Jun 08:52 2016
Picon

process piping?

What would be the currently idiomatic way of writing something akin to unix pipes? e.g. `echo -e 'foo\nbar\n' | grep foo`.
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Peter Nagy | 9 Jun 13:12 2016
Picon

General iteration constructs?

This is a bit of an elegance question, but I was looking at ways to iterate over a hash table and only found hash-table-for-each and map. There are several interesting ways to walk the data structures like generators, streams or srfi-42 but none seem to cover all data structures. Is there a unified interface I am missing? Common Lisp has loop, Racket has for, Clojure has a yet different for. These are usually unified to work on all of the default data structures and are often extensible as well.

Any tips welcome :)
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Peter Nagy | 6 Jun 16:04 2016
Picon

yaml parsing

Hi guys,

is there a yaml parser for gauche or standard scheme somewhere? I can't find one :(

I have a yaml file and actually hoped I could convert it to xml so that I can use the sxml libs but can't find a reasonable CLI application that would convert yaml to xml.

Any tips welcome!
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Peter Nagy | 2 Jun 12:19 2016
Picon

HTTP protocol over unix socket

Is this possible? I see gauche.net that works with sockets and rfc.http that works with HTTP but I don't think I can use either one correctly for this task. This would be an equivalent to curl's --unix-socket . Use case - the docker daemon has an HTTP API and locally it runs on a unix socket by default.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Peter Nagy | 1 Jun 07:34 2016
Picon

gauche on musl libc

Hi everyone,

has anyone tried (and succeeded) compiling gauche with musl libc?

---
Peter Nagy
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Gauche-devel mailing list
Gauche-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gauche-devel
Alex Shinn | 28 May 15:39 2016
Picon

Second CFP for Scheme and Functional Programming Workshop 2016

SECOND NOTICE
Call For Presentations

17th Annual Scheme and Functional Programming Workshop
WEBSITE: http://scheme2016.snow-fort.org/
LOCATION: Nara, Japan (Co-located with ICFP 2016)
DATE: 18 September 2016

========================================================================

The 2016 Scheme and Functional Programming Workshop is calling for
submissions.  This year we are accepting general presentation
proposals in addition to papers.

Submissions related to Scheme, Racket, Clojure, and functional
programming are welcome and encouraged. Topics of interest include
but are not limited to:

Program-development environments, debugging, testing
Implementation (interpreters, compilers, tools, benchmarks, etc.)
Syntax, macros, hygiene
Distributed computing, concurrency, parallelism
Probabilistic computing
Interoperability with other languages, FFIs
Continuations, modules, object systems, types
Theory, formal semantics, correctness
History, evolution and standardization of Scheme
Applications, experience and industrial uses of Scheme
Education
Scheme pearls (elegant, instructive uses of Scheme)

We also welcome submissions related to dynamic or multiparadigmatic
languages and programming techniques.

========================================================================

Important Dates:

24 June 2016 - Submissions deadline
22 July 2016 - Author notification
15 August 2016 - Camera-ready deadline
18 September 2016 - Workshop
All deadlines are 23:59 (UTC-12, "Anywhere on Earth").

Paper submissions must be in ACM proceedings format, no smaller than
9-point type (10-point type preferred). Microsoft Word and LaTeX
templates for this format are available at:
http://www.sigplan.org/Resources/Author/

Paper submissions should be in PDF and printable on US Letter, and
generally in the range of 6 to 12 pages.

Presentation submissions should include an outline of the material.
Talks are 40 minutes, including questions and answers.

More information available at: http://scheme2016.snow-fort.org/

========================================================================

Organizers:

Alex Shinn (general chair)
Kathy Gray (program chair)

(Apologies for duplications from cross-posting.)

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
JP T | 15 Apr 13:53 2016
Picon
Gravatar

Some libraries on Github

Hi,

So to be able to get them remotely, I have put my gauche/scheme libs on github

Since they are there, better share.  Nothing extraordinary but might
be useful to some.

https://github.com/kingu-gidora/gauche-scheme-lib

Thanks, have a nice day!

--
JP

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
Jonathan Chan | 5 Apr 16:37 2016
Gravatar

Documentation on C FFI

Hello all,

First of all, thanks for the great Scheme implementation!

Is there some documentation or a tutorial for the C FFI? I have been
looking at https://github.com/kahua/Gauche-dbd-pg as an example, but
grepping through the documentation included in the repo, I haven't been
able to find documentation for things like gauche-package compile, etc.

I understand if this wasn't seen as high priority and can make do by
messing around with the code out there, but just wanted to know
beforehand.

Thanks,
--

-- 
  Jonathan Chan
  jyc <at> fastmail.fm

------------------------------------------------------------------------------

Gmane