Re: [Chicken-users] Port of racket/math to Chicken egg

2019-06-27 Thread Sungjin Chun
Wow, this is great! On Jun 27, 2019, 15:31 +0900, Diego , wrote: > I've begun to port https://docs.racket-lang.org/math/index.html to a Chicken > Scheme egg here: > > https://github.com/dieggsy/chicken-math > > math.number-theory (equivalent to math/number-theory in racket) is finished > with

[Chicken-users] [Q] Macro for defining function from string

2019-04-05 Thread Sungjin Chun
Hi, In writing FFI module for C library there’s too much repetition; so I’d like to write some macro to reduce this repetition. What I’d like to write is something as follows: (define-my-bindings …) (define-my-bindinngs “Float”) should emit following code. (define float-xxx-xxx (foreign-lambda

[Chicken-users] [Q] Overhead of FFI in Chicken scheme

2019-02-10 Thread Sungjin Chun
Hi, Are there any FFI overhead in case of compiling to a binary using "bind"? ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

[Chicken-users] [Q] Are there any performance-wise differences between Chicken 5 and Chicken 4?

2018-10-10 Thread Sungjin Chun
Hi, it seems that Chicken 5 will be released soon or else :-) I'd like to know whether there's any performance enhancement in Chicken 5 compared to Chicken 4. Thanks in advance. PS) I'd like to port my library to Chicken scheme (for fun) and the library is located at

[Chicken-users] [Q] Can I make port on byte array?

2015-10-06 Thread Sungjin Chun
Hi, In Common Lisp, I can make a stream on byte array and can write values on them, in Scheme, I think the equivalent stuff is port and I'd like to write values on byte array using port. Can anyone help me on finding documents or samples? Thanks in advance and sorry for my poor english.

[Chicken-users] [Q] How can I convert this lisp(SBCL) macro to chicken scheme?

2014-11-06 Thread Sungjin Chun
Hi, I've rather impressed on Clojure's easy to use hash and vector/array, I've written and used these macros in my lisp code. Now I want to convert them for chicken. (set-macro-character #\{ (lambda (stream char) (declare (ignore char)) (let ((*readtable* (copy-readtable *readtable*

Re: [Chicken-users] [Q] How can I convert this lisp(SBCL) macro to chicken scheme?

2014-11-06 Thread Sungjin Chun
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! #\[ (lambda (port) (let loop ((c (peek-char port)) (exps '())) (cond ((eof-object? c) (error EOF encountered while parsing [ ... ] clause))

[Chicken-users] [Q] Can I do this in Scheme(set-macro-character thing)?

2013-09-10 Thread Sungjin Chun
I'm using following macro in lisp(SBCL) for it's convenient (at least for me). Can I do this in chicken scheme? Thank you in advance. (set-macro-character #\[ (lambda (stream char) (declare (ignore char)) (let ((*readtable* (copy-readtable *readtable* nil))) (set-macro-character

[Chicken-users] [Q] Are there any egg for timer based scheduler like cron?

2013-09-04 Thread Sungjin Chun
Hi, I want to create a program which do some tasks with following condition; 1. During 08:00 to 16:00 (hour) of each day, 2. the task will run every 2 seconds (or minutes or so). The time for completing task is very tiny, for example 0.01ms to 1 sec. In Lisp(SBCL), I have used timer package but

[Chicken-users] [Q] How can I limit print level and length?

2013-06-28 Thread Sungjin Chun
Hi, I want to set the limit of the length of printed string. In SLIME(for SBCL) I can do this with following; (setq *PRINT-LEVEL* 10) (setq *PRINT-LENGTH* 20) How can I do this with Chicken Scheme (in chicken-slime in Emacs)? Thank you in advance.

[Chicken-users] [Q] Why this simple code does not run?

2013-04-09 Thread Sungjin Chun
(sort '(1 2 3 4 5 6 7 8 9) ) I can run this code in the interpreter env. and I can even compile this using chicken scheme compiler, however if I run the result binary, it emits following error message; Error: unbound variable: sort Call history: sort.scm:1: sort

Re: [Chicken-users] [Q] Why this simple code does not run?

2013-04-09 Thread Sungjin Chun
Thank you. And sometimes I have to include srfi-1 for drop and others. On Wed, Apr 10, 2013 at 11:39 AM, Matt Gushee m...@gushee.net wrote: On Tue, Apr 9, 2013 at 8:26 PM, Sungjin Chun chu...@gmail.com wrote: Error: unbound variable: sort Call history: sort.scm

Re: [Chicken-users] [Q] Is there any library for machine/statistical learning in Scheme(chicken scheme)?

2013-03-26 Thread Sungjin Chun
Thank you for your suggestions; what I've interested in is using ML for financial time series prediction such as stock price movement forecasting for pattern matching for trading. On Wed, Mar 27, 2013 at 1:27 AM, Andrei Barbu and...@0xab.com wrote: On Mon, Mar 25, 2013 at 11:18 PM, Sungjin

[Chicken-users] [Q] Is there any library for machine/statistical learning in Scheme(chicken scheme)?

2013-03-25 Thread Sungjin Chun
What I've found are (for chicken scheme): 1. libsvm 2. fann ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-14 Thread Sungjin Chun
can some up with a simple solution. Ivan On Mon, Jan 14, 2013 at 1:36 PM, Sungjin Chun chu...@gmail.com wrote: As far as I know, revised RFC permits UTF-8 characters in the URL without encoding. Am I wrong here? Even Solr (the search engine) permits them. On Mon, Jan 14, 2013 at 1:26

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-14 Thread Sungjin Chun
, so has my journey to hack started. If you have better approach than this, I'll be appreciated :-) On Tue, Jan 15, 2013 at 11:45 AM, Alex Shinn alexsh...@gmail.com wrote: On Tue, Jan 15, 2013 at 7:35 AM, Sungjin Chun chu...@gmail.com wrote: Thank you very much. :-) My proposed hack(yes

[Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-13 Thread Sungjin Chun
For testing solr, lucene based client, I have to create url which contains utf-8 encoding(for Korean). But having this encoding uri-common cannot create uri. Can any one help me on this? Thanks. Sent from my iPhone ___ Chicken-users mailing list

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-13 Thread Sungjin Chun
Though I'm not that fluent in scheme, I'll try to make test case for uri-generic with UTF-8 string. Thanks. On Mon, Jan 14, 2013 at 7:15 AM, Peter Bex peter@xs4all.nl wrote: On Mon, Jan 14, 2013 at 07:04:05AM +0900, Sungjin Chun wrote: For testing solr, lucene based client, I have

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-13 Thread Sungjin Chun
wrote: On Mon, Jan 14, 2013 at 07:04:05AM +0900, Sungjin Chun wrote: For testing solr, lucene based client, I have to create url which contains utf-8 encoding(for Korean). But having this encoding uri-common cannot create uri. Can any one help me on this? Thanks. Hello Sungjin, As far as I

Re: [Chicken-users] [Q] uri-common has problem with UTF-8 uri.

2013-01-13 Thread Sungjin Chun
As far as I know, revised RFC permits UTF-8 characters in the URL without encoding. Am I wrong here? Even Solr (the search engine) permits them. On Mon, Jan 14, 2013 at 1:26 PM, Alex Shinn alexsh...@gmail.com wrote: Hi, On Mon, Jan 14, 2013 at 12:52 PM, Sungjin Chun chu...@gmail.com wrote